Weird error coming from charm, is it a timeout?

I have written a charm in the past which basically instantiates… downloads a somewhat large installer… and then runs it… it works fine for me but my colleague with a perhaps slower internet connection is seeing some sort of error

any ideas what is going on or how to fix?

unit-ibgateway-0: 13:00:24 INFO juju.worker.uniter.storage initial storage attachments ready
unit-ibgateway-0: 13:00:24 INFO juju.worker.uniter found queued "install" hook
unit-ibgateway-0: 13:00:24 WARNING unit.ibgateway/0.install 
unit-ibgateway-0: 13:00:24 WARNING unit.ibgateway/0.install WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
unit-ibgateway-0: 13:00:24 WARNING unit.ibgateway/0.install 
unit-ibgateway-0: 13:00:30 WARNING unit.ibgateway/0.install ERROR invalid status "maintanence", expected one of [maintenance blocked waiting active]
unit-ibgateway-0: 13:00:30 WARNING unit.ibgateway/0.install   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
unit-ibgateway-0: 13:00:30 WARNING unit.ibgateway/0.install                                  Dload  Upload   Total   Spent    Left  Speed
 96  145M   96  139M    0     0  2859k      0  0:00:52  0:00:50  0:00:03 4021k
100  145M  100  145M    0     0  2867k      0  0:00:51  0:00:51 --:--:-- 3668k
unit-ibgateway-0: 13:01:22 WARNING unit.ibgateway/0.install ERROR invalid status "maintanence", expected one of [maintenance blocked waiting active]
unit-ibgateway-1: 14:54:20 INFO juju Starting unit workers for "ibgateway/1"
unit-ibgateway-1: 14:54:20 INFO juju.worker.apicaller [5b1524] "unit-ibgateway-1" successfully connected to "10.238.33.244:17070"
unit-ibgateway-1: 14:54:20 INFO juju.worker.apicaller [5b1524] password changed for "unit-ibgateway-1"
unit-ibgateway-1: 14:54:20 INFO juju.worker.apicaller [5b1524] "unit-ibgateway-1" successfully connected to "10.238.33.244:17070"
unit-ibgateway-1: 14:54:20 INFO juju.worker.migrationminion migration phase is now: NONE
unit-ibgateway-1: 14:54:20 INFO juju.worker.logger logger worker started
unit-ibgateway-1: 14:54:20 INFO juju.worker.upgrader no waiter, upgrader is done
unit-ibgateway-1: 14:54:20 INFO juju.worker.uniter unit "ibgateway/1" started
unit-ibgateway-1: 14:54:20 INFO juju.worker.uniter resuming charm install
unit-ibgateway-1: 14:54:20 INFO juju.worker.uniter.charm downloading local:focal/ibgateway-1 from API server
unit-ibgateway-1: 14:54:21 INFO juju.worker.uniter hooks are retried true
unit-ibgateway-1: 14:54:21 INFO juju.worker.uniter.storage initial storage attachments ready
unit-ibgateway-1: 14:54:21 INFO juju.worker.uniter found queued "install" hook
unit-ibgateway-1: 10:10:54 ERROR juju.worker.uniter resolver loop error: could not acquire "run install hook" lock for ibgateway/1: cancelled acquiring mutex
unit-ibgateway-2: 10:13:11 INFO juju Starting unit workers for "ibgateway/2"
unit-ibgateway-2: 10:13:11 INFO juju.worker.apicaller [5b1524] "unit-ibgateway-2" successfully connected to "10.238.33.244:17070"
unit-ibgateway-2: 10:13:11 INFO juju.worker.apicaller [5b1524] password changed for "unit-ibgateway-2"
unit-ibgateway-2: 10:13:11 INFO juju.worker.apicaller [5b1524] "unit-ibgateway-2" successfully connected to "10.238.33.244:17070"
unit-ibgateway-2: 10:13:11 INFO juju.worker.upgrader no waiter, upgrader is done
unit-ibgateway-2: 10:13:11 INFO juju.worker.migrationminion migration phase is now: NONE
unit-ibgateway-2: 10:13:11 INFO juju.worker.logger logger worker started
unit-ibgateway-2: 10:13:11 INFO juju.worker.meterstatus skipped "meter-status-changed" hook (missing)
unit-ibgateway-2: 10:13:11 INFO juju.worker.uniter unit "ibgateway/2" started
unit-ibgateway-2: 10:13:11 INFO juju.worker.uniter resuming charm install
unit-ibgateway-2: 10:13:11 INFO juju.worker.uniter.charm downloading local:focal/ibgateway-1 from API server
unit-ibgateway-2: 10:13:12 INFO juju.worker.uniter hooks are retried true
unit-ibgateway-2: 10:13:12 INFO juju.worker.uniter.storage initial storage attachments ready
unit-ibgateway-2: 10:13:12 INFO juju.worker.uniter found queued "install" hook
unit-ibgateway-2: 10:13:12 WARNING unit.ibgateway/2.install 
unit-ibgateway-2: 10:13:12 WARNING unit.ibgateway/2.install WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
unit-ibgateway-2: 10:13:12 WARNING unit.ibgateway/2.install 
unit-ibgateway-2: 10:13:15 WARNING unit.ibgateway/2.install ERROR invalid status "maintanence", expected one of [maintenance blocked waiting active]
unit-ibgateway-2: 10:13:15 WARNING unit.ibgateway/2.install   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
unit-ibgateway-2: 10:13:15 WARNING unit.ibgateway/2.install                                  Dload  Upload   Total   Spent    Left  Speed
 52  145M   52 76.8M    0     0  1572k      0  0:01:34  0:00:50  0:00:44 1444k
100  145M  100  145M    0     0  1515k      0  0:01:38  0:01:38 --:--:-- 1767k
unit-ibgateway-2: 10:14:53 WARNING unit.ibgateway/2.install ERROR invalid status "maintanence", expected one of [maintenance blocked waiting active]

Something in your code is triggering a maintenance state, and on that line of code, maintenance is spelled incorrectly.

The state attempting to be set is: maintanence

swap the a and e in the middle of the word in the code and it should stop alerting.

2 Likes

it turned out the warning was not the reason it was freeze… and it was something in my charm itself… I debugged it by just juju sshing into my charm that was stuck and running my hook command myself to see it was not longer working