Uploaded image for project: 'Instrument control development'
  1. Instrument control development
  2. INSTRM-125

Archiver dies when table does not have any row

    XMLWordPrintable

    Details

      Description

      pfs@ics-arch:/simdata/ics-arch-201701/products/Linux64/ics_archiver/master-ga619cf6fd9$ ./bin/archiveServer.py
      Running ./bin/archiveServer.py as PID 22621
      Starting archive server with output to /simdata/ics-arch-201701//logs/actors/archiver/archiver-22621
      importing postgres dbapi module psycopg2
      reply_raw
      Traceback (most recent call last):
      File "./bin/archiveServer.py", line 196, in <module>
      main()
      File "./bin/archiveServer.py", line 193, in main
      startServer(options)
      File "./bin/archiveServer.py", line 69, in startServer
      archiver.database.init(options)
      File "/simdata/ics-arch-201701/products/Linux64/ics_archiver/master-ga619cf6fd9/python/archiver/database.py", line 105, in init
      print "database: table %s contains %d rows" % (tableName,tableRows)
      TypeError: %d format: a number is required, not NoneType

      max() will return null value but not 0 for no row inserted. need to add handler when no row exists.

        Attachments

          Activity

            People

            • Assignee:
              cloomis cloomis
              Reporter:
              atsushi.shimono shimono
              Reviewers:
              arnaud.lefur
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: