inteos / IBAdmin

Inteos Backup Administration GUI - Bacula Enterprise
http://inteosbackup.pl/
GNU Affero General Public License v3.0
7 stars 6 forks source link

ibadstatd crash on database close #7

Open rkorzeniewski opened 6 years ago

rkorzeniewski commented 6 years ago

When ibadstatd is collecting data and database will close then it crashes with the following error:

    Tue Aug 14 14:26:40 2018 : Collecting ...
    Traceback (most recent call last):
      File "/opt/ibadmin/utils/ibadstatd.py", line 154, in <module>
        mainloop(fg=1)
      File "/opt/ibadmin/utils/ibadstatd.py", line 108, in mainloop
        Bacula.collect(conn, fg)
      File "/opt/ibadmin/utils/Collect/Bacula.py", line 158, in collect
        cur.execute(SQL[param])
      File "/usr/lib64/python2.7/site-packages/psycopg2/extras.py", line 120, in execute
        return super(DictCursor, self).execute(query, vars)
    psycopg2.OperationalError: terminating connection due to administrator command
    server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.