action stuck in pending
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
New
|
High
|
Unassigned |
Bug Description
I've got a k8s charm running on juju 3.1.6, and have run an action against it over an hour ago. The action is simply running a django management command which performs a read only query against a PostgreSQL database. When testing locally returns within a few seconds. For some reason on this production instance the action is stuck in pending:
```
$ juju show-task 2
Task 2 pending
```
I can't see any process on the charm or workload container related to this.
The charm itself has errors in the debug-log related to being unable to connect to external resources to download a binary for the loki charm:
```
unit-httpreques
Traceback (most recent call last):
File "/usr/lib/
h.request(
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.connect()
File "/usr/lib/
super(
File "/usr/lib/
self.sock = self._create_
File "/usr/lib/
raise err
File "/usr/lib/
sock.
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/
ops.
File "/var/lib/
_emit_
File "/var/lib/
event_
File "/var/lib/
framework.
File "/var/lib/
self.
File "/var/lib/
custom_
File "/var/lib/
self.
File "/var/lib/
self.
File "/var/lib/
self.
File "/var/lib/
with opener.
File "/usr/lib/
response = self._open(req, data)
File "/usr/lib/
result = self._call_
File "/usr/lib/
result = func(*args)
File "/usr/lib/
return self.do_
File "/usr/lib/
raise URLError(err)
urllib.
unit-httpreques
```
This is being fixed separately (by adding support for proxies in this situation). Is it possible that this is blocking the action(s) from running? I don't see anything related to actions in `juju debug-log --no-tail --replay`.
Please let me know how do debug this further.
tags: | added: canonical-is |
Changed in juju: | |
status: | Incomplete → New |
Changed in juju: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in juju: | |
status: | Triaged → New |
we've now done a charm upgrade to fix the error in django- app-pebble- ready so the charm in question is now not displaying any errors in juju debug-log, but rerunning the action and it's still stuck in pending.