Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail on empty (0-byte) cache files #13

Open
boegel opened this issue Jul 7, 2014 · 0 comments
Open

fail on empty (0-byte) cache files #13

boegel opened this issue Jul 7, 2014 · 0 comments

Comments

@boegel
Copy link
Member

boegel commented Jul 7, 2014

Traceback (most recent call last):
  File "/usr/bin/release_jobholds", line 186, in <module>
    main()
  File "/usr/bin/release_jobholds", line 182, in main
    opts.epilogue("Release jobholds finished", stats)
  File "/usr/lib/python2.6/site-packages/vsc/utils/script_tools.py", line 162, in epilogue
    self.nagios_reporter._eval_and_exit(**nagios_thresholds)
  File "/usr/lib/python2.6/site-packages/vsc/utils/nagios.py", line 365, in _eval_and_exit
    self.ok(self)
  File "/usr/lib/python2.6/site-packages/vsc/utils/nagios.py", line 332, in ok
    self._exit(NAGIOS_EXIT_OK, msg)
  File "/usr/lib/python2.6/site-packages/vsc/utils/nagios.py", line 329, in _exit
    self._final(nagios_exitcode, msg)
  File "/usr/lib/python2.6/site-packages/vsc/utils/nagios.py", line 171, in cache
    self.log.raiseException("Cannot save to the nagios gzipped JSON file (%s)" % (self.filename))
  File "/usr/lib/python2.6/site-packages/vsc/utils/fancylogger.py", line 216, in raiseException
    raise exception(message)
ValueError: Cannot save to the nagios gzipped JSON file (/var/cache/release_jobholds.nagios.json.gz) (No JSON object could be decoded)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant