Skrevet av Emne: DBI:ODBC "File size limit exceeded"  (Lest 3711 ganger)

Utlogget Floyd-ATC

  • Livstidsdiktator
  • Administrator
  • Guru
  • *****
  • Innlegg: 542
  • Karma: +12/-0
    • MSN Messenger - floyd@atc.no
    • Vis profil
    • floyd.atc.no
    • E-post
DBI:ODBC "File size limit exceeded"
« på: 15. Juli 2014, 10:42 am »
  • [applaud]0
  • [smite]0
  • Problem:
    Perl DBI with FreeTDS ODBC suddenly stopped working with the curious error message "File size limit exceeded".

    Solution:
    FreeTDS logs to a file /var/log/odbc.log which has to be rotated. If the log file size reaches 2 Gbytes, FreeTDS crashes.

    Rename the logfile to "/var/log/odbc.log.1" (or simply rename/delete it), then create a file "/etc/logrotate.d/freetds" with the following settings:
    Kode: [Velg]
    /var/log/odbc.log {
        daily
        rotate 3
        missingok
        sharedscripts
        postrotate
        endscript
    }


    -Floyd.

    --
    Det finnes 10 typer mennesker;
    de som forstår binærtall, de som ikke gjør det, og de som forstår Grey code.