Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-1920

Upgrade appears to have broken "validator-info --nagios"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Complete
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 1.6.80
    • Fix Version/s: 1.6.83
    • Component/s: validator-info
    • Labels:
    • Documentation Impact:
      Unset
    • Epic Link:
    • Sprint:
      Ev-Node 19.02

      Description

      Running:

      validator-info --nagios

      Output: 
      Traceback (most recent call last):
      File "/usr/local/bin/validator-info", line 866, in <module>
      sys.exit(main())
      File "/usr/local/bin/validator-info", line 850, in main
      print(get_stats_from_file(json_data, args.verbose, args.json, args.nagios))
      File "/usr/local/bin/validator-info", line 589, in get_stats_from_file
      return nagios(vstats)
      File "/usr/local/bin/validator-info", line 574, in nagios
      ] + [
      TypeError: 'TransactionsStats' object is not subscriptable
      Error in sys.excepthook:
      Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
      from apport.fileutils import likely_packaged, get_recent_crashes
      File "/usr/lib/python3/dist-packages/apport/_init_.py", line 5, in <module>
      from apport.report import Report
      File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
      import apport.fileutils
      File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
      from apport.packaging_impl import impl as packaging
      File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in <module>
      import apt
      File "/usr/lib/python3/dist-packages/apt/_init_.py", line 34, in <module>
      apt_pkg.init_config()
      SystemError: E:Opening configuration file /etc/apt/apt.conf.d/01turnkey - ifstream::ifstream (13: Permission denied)

      Original exception was:
      Traceback (most recent call last):
      File "/usr/local/bin/validator-info", line 866, in <module>
      sys.exit(main())
      File "/usr/local/bin/validator-info", line 850, in main
      print(get_stats_from_file(json_data, args.verbose, args.json, args.nagios))
      File "/usr/local/bin/validator-info", line 589, in get_stats_from_file
      return nagios(vstats)
      File "/usr/local/bin/validator-info", line 574, in nagios
      ] + [
      TypeError: 'TransactionsStats' object is not subscriptable

        Attachments

        1. sparknz-validator-info.log.tgz
          31 kB
          Paul Tinson
        2. validator-info.json
          21 kB
          Paul Tinson

          Activity

            People

            Assignee:
            VladimirWork Vladimir Shishkin
            Reporter:
            nzHiggy Kevin Higgins
            Watchers:
            Kevin Higgins, Paul Tinson, Renata Toktar, Vladimir Shishkin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: