I am trying to write a charm for Magento but running into an issue.
Here is the source for charm https://github.com/MoT3rror/Magento-Charm
The install works perfect. Still needs a lot of work but works.
I having trouble with database-relation-joined hook to run through. It is saying the file doesn't exist but I am able to edit it on that machine so it there. I gave the file execute privileges. I am stuck why I got the error.
Steps deploying charm
juju bootstrap juju deploy mysql juju deploy --repository=/home/$USER/charms/ local:precise/magento juju add-relation mysql magento
2013-11-21 05:48:51 INFO juju.worker.uniter uniter.go:517 joining relation "magento:database mysql:db" 2013-11-21 05:48:51 INFO juju.worker.uniter uniter.go:543 joined relation "magento:database mysql:db" 2013-11-21 05:48:56 INFO juju.worker.uniter uniter.go:348 running "database-relation-joined" hook 2013-11-21 05:48:56 ERROR juju.worker.uniter uniter.go:350 hook failed: fork/exec /var/lib/juju/agents/unit-magento-0/charm/hooks/database-relation-joined: no such file or directory 2013-11-21 05:48:56 DEBUG juju.worker.uniter modes.go:423 ModeAbide exiting 2013-11-21 05:48:56 INFO juju.worker.uniter modes.go:421 ModeHookError starting 2013-11-21 05:48:56 DEBUG juju.worker.uniter.filter filter.go:418 want resolved event 2013-11-21 05:48:56 DEBUG juju.worker.uniter.filter filter.go:412 want forced upgrade true 2013-11-21 05:48:56 DEBUG juju.worker.uniter.filter filter.go:523 no new charm event
List of the files on the server. https://github.com/MoT3rror/Magento-Charm/blob/master/list%20of%20files.jpg
Also is there a way to update a charm without destroying the environment and bootstrapping the environment?