Hook error when using commit-or-branch config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Discourse Charm |
New
|
Undecided
|
Unassigned |
Bug Description
When using the config "commit-or-branch" the install or upgrade phases fail due to a non-existing discourse directory. The directory keeps changing at every run so it's not possible to bypass it by renaming the directory and trying again.
Trace:
2018-06-18 20:28:59 ERROR juju-log Hook error:
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
update_
File "lib/charms/
res = check_call(
File "/usr/lib/
raise CalledProcessEr
subprocess.
2018-06-18 20:28:59 DEBUG install Traceback (most recent call last):
2018-06-18 20:28:59 DEBUG install File "/var/lib/
2018-06-18 20:28:59 DEBUG install main()
2018-06-18 20:28:59 DEBUG install File "/var/lib/
2018-06-18 20:28:59 DEBUG install bus.dispatch(
2018-06-18 20:28:59 DEBUG install File "/var/lib/
2018-06-18 20:28:59 DEBUG install _invoke(
2018-06-18 20:28:59 DEBUG install File "/var/lib/
2018-06-18 20:28:59 DEBUG install handler.invoke()
2018-06-18 20:28:59 DEBUG install File "/var/lib/
2018-06-18 20:28:59 DEBUG install self._action(*args)
2018-06-18 20:28:59 DEBUG install File "/var/lib/
2018-06-18 20:28:59 DEBUG install update_
2018-06-18 20:28:59 DEBUG install File "lib/charms/
2018-06-18 20:28:59 DEBUG install res = check_call(
2018-06-18 20:28:59 DEBUG install File "/usr/lib/
2018-06-18 20:28:59 DEBUG install raise CalledProcessEr
2018-06-18 20:28:59 DEBUG install subprocess.
2018-06-18 20:28:59 ERROR juju.worker.
2018-06-18 20:28:59 INFO juju.worker.uniter resolver.go:100 awaiting error resolution for "install" hook