Where is the bug:s url for the “charm” tool?
I was hit by a bug that “charm build” creates empty hook scripts that fails to execute. The scripts are are added automatically to my built charm, so I feel this must be a problem with “charm” and/or juju failing to execute these scripts.
#ubuntu@juju-04b40a-0:~$ cat /var/log/juju/unit-realmd-ubuntu-0.log | grep ERROR
2020-06-11 12:17:34 ERROR juju.worker.uniter.operation runhook.go:132 hook "leader-elected" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/leader-elected: exec format error
2020-06-11 12:17:40 ERROR juju.worker.uniter.operation runhook.go:132 hook "leader-elected" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/leader-elected: exec format error
2020-06-11 12:17:51 ERROR juju.worker.uniter.operation runhook.go:132 hook "leader-elected" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/leader-elected: exec format error
2020-06-11 12:18:12 ERROR juju.worker.uniter.operation runhook.go:132 hook "leader-elected" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/leader-elected: exec format error
2020-06-11 12:18:53 ERROR juju.worker.uniter.operation runhook.go:132 hook "leader-elected" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/leader-elected: exec format error
2020-06-11 12:20:17 ERROR juju.worker.uniter.operation runhook.go:132 hook "leader-elected" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/leader-elected: exec format error
2020-06-11 12:21:23 ERROR juju.worker.uniter.operation runhook.go:132 hook "juju-info-relation-joined" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/juju-info-relation-joined: exec format error
2020-06-11 12:21:28 ERROR juju.worker.uniter.operation runhook.go:132 hook "juju-info-relation-joined" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/juju-info-relation-joined: exec format error
2020-06-11 12:21:38 ERROR juju.worker.uniter.operation runhook.go:132 hook "juju-info-relation-joined" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/juju-info-relation-joined: exec format error
2020-06-11 12:21:58 ERROR juju.worker.uniter.operation runhook.go:132 hook "juju-info-relation-changed" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/juju-info-relation-changed: exec format error
2020-06-11 12:22:01 ERROR juju.worker.uniter.operation runhook.go:132 hook "juju-info-relation-changed" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/juju-info-relation-changed: exec format error
2020-06-11 12:22:06 ERROR juju.worker.uniter.operation runhook.go:132 hook "juju-info-relation-changed" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/juju-info-relation-changed: exec format error
2020-06-11 12:25:06 ERROR juju.worker.uniter.operation runhook.go:132 hook "update-status" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/update-status: exec format error
2020-06-11 12:25:26 ERROR juju.worker.uniter.operation runhook.go:132 hook "update-status" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/update-status: exec format error
2020-06-11 12:26:06 ERROR juju.worker.uniter.operation runhook.go:132 hook "update-status" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/update-status: exec format error
2020-06-11 12:27:28 ERROR juju.worker.uniter.operation runhook.go:132 hook "update-status" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/update-status: exec format error
2020-06-11 12:30:15 ERROR juju.worker.uniter.operation runhook.go:132 hook "update-status" failed: fork/exec /var/lib/juju/agents/unit-realmd-ubuntu-0/charm/hooks/update-status: exec format error
After removing the empty scripts, it all works fine.
juju 2.8
charmstore-client 2.4.0+snap-461+git-13-547c6f2
charm-tools 2.7.4