Comment 1 for bug 1884332

Revision history for this message
Michael Skalka (mskalka) wrote : Re: 2.7.7+2.7-5323b92 worker.uniter.jujuc config-get ERROR connection is shut down

Seeing this bug again here: https://solutions.qa.canonical.com/#/qa/testRun/beec9b26-8e52-40f4-8eeb-a0bbf22c0371

e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG worker.uniter.jujuc server.go:204 running hook tool "config-get"
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 ERROR connection is shut down
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 Traceback (most recent call last):
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 File "hooks/hooks.py", line 1093, in <module>
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 main(hook_name)
35c20d9c-69ba-4c05-8152-70a77f6a60ce: machine-0 2020-06-24 03:10:57 DEBUG juju.apiserver request_notifier.go:178 <- [69] unit-apache2-0 {"request-id":28,"type":"NotifyWatcher","version":1,"id":"5","request":"Next","params":"'params redacted'"}
35c20d9c-69ba-4c05-8152-70a77f6a60ce: machine-0 2020-06-24 03:10:57 DEBUG juju.apiserver request_notifier.go:195 -> [69] unit-apache2-0 2.317674ms {"request-id":27,"response":"'body redacted'"} ProxyUpdater[""].ProxyConfig
35c20d9c-69ba-4c05-8152-70a77f6a60ce: machine-0 2020-06-24 03:10:57 DEBUG juju.apiserver request_notifier.go:195 -> [69] unit-apache2-0 17.674085ms {"request-id":16,"response":"'body redacted'"} MeterStatus[""].WatchMeterStatus
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 File "hooks/hooks.py", line 1045, in main
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 install_hook()
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 File "hooks/hooks.py", line 294, in install_hook
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 apt_source = config_get('apt-source') or ''
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 File "hooks/hooks.py", line 285, in config_get
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 result = orig_config_get(scope)
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 File "/var/lib/juju/agents/unit-apache2-0/charm/hooks/charmhelpers/core/hookenv.py", line 436, in config
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 subprocess.check_output(config_cmd_line).decode('UTF-8'))
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 raise CalledProcessError(retcode, cmd, output=output)
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 DEBUG unit.apache2/0.install runner.go:387 subprocess.CalledProcessError: Command '['config-get', '--all', '--format=json']' returned non-zero exit status 1
e24a18bc-f64b-473e-854d-6bb19b6c00b9: unit-apache2-0 2020-06-24 03:10:54 ERROR juju.worker.uniter.operation runhook.go:132 hook "install" failed: exit status 1