Juju run command reaches controller but exits with "ERROR connection is shut down"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Medium
|
Unassigned |
Bug Description
Using both Juju 2.8.1 and 2.8.2 a `juju run` command was issued against a unit. The controller's audit log shows the command being registered however the machine log does not show the run command being executed. Instead the log is full of transaction errors between the unit and what looks like the controller.
Client side log:
...
2020-09-15-00:52:46 root ERROR [localhost] Command failed: juju run -m foundations-
2020-09-15-00:52:46 root ERROR [localhost] STDOUT follows:
ERROR connection is shut down
2020-09-15-00:52:46 root ERROR [localhost] STDERR follows:
None
...
...
subprocess.
Controller log:
...
{"request"
{"errors"
{"conversation"
{"request"
{"errors"
{"request"
{"errors"
...
machine-
/build/
/build/
/build/
2020-09-15 00:52:32 ERROR juju.api.watcher watcher.go:92 error trying to stop watcher: txn watcher sync error
2020-09-15 00:52:32 ERROR juju.api.watcher watcher.go:92 error trying to stop watcher: txn watcher sync error
2020-09-15 00:52:32 DEBUG juju.worker.
2020-09-15 00:52:32 ERROR juju.worker.
2020-09-15 00:52:32 DEBUG juju.worker.
txn watcher sync error
/build/
/build/
2020-09-15 00:52:32 DEBUG juju.worker.
2020-09-15 00:52:32 ERROR juju.worker.
2020-09-15 00:52:32 ERROR juju.api.watcher watcher.go:92 error trying to stop watcher: txn watcher sync error
2020-09-15 00:52:32 DEBUG juju.worker.
txn watcher sync error
...
...
/build/
/build/
2020-09-15 00:52:32 DEBUG juju.api monitor.go:35 RPC connection died
2020-09-15 00:52:32 ERROR juju.api.watcher watcher.go:92 error trying to stop watcher: codec.ReadHeader error: error receiving message: read tcp 10.246.
2020-09-15 00:52:32 DEBUG juju.rpc server.go:328 error closing codec: write tcp 10.246.
2020-09-15 00:52:32 ERROR juju.api.watcher watcher.go:92 error trying to stop watcher: codec.ReadHeader error: error receiving message: read tcp 10.246.
Test run can be found here:
https:/
Artifacts here:
https:/
Changed in juju: | |
milestone: | 2.9-beta1 → 2.9-rc1 |
I'm not sure that we have a clean repro case here, but we do have extensive logs (thx, mskalka!)
Adding this to 2.9 milestone, as I'd like us to take a shot at squashing it at the end of this cycle.