I tried installing Discourse form a juju charm, but the install hook failed because of some GPG problem. I tried to debug it using:
juju debug-hooks discourse/0 install
But the folder where this shell that was started (~
) doesn't have the hooks
subfolder, as the documentation states. What is more, when I manually navigate to /var/lib/juju/agents/unit-discourse-0/charm/
and run the hook from there, using
./hooks/install
I get errors about environment variables being not set (like $CHARM_DIR
) and commands not available (like config-get
). The point is, the script does not even get to the GPG stuff that failed before, it fails on one of the first lines.
What could have caused this? Is it my misunderstanding of the docs, or a bug in juju?