apache2 keyError on deploy

Bug #1611807 reported by Jeff Pihach
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apache2 (Juju Charms Collection)
New
Undecided
Unassigned

Bug Description

When attempting to deploy apache2 related to wordpress. It fails to deploy with the following traceback.

apache2 is deployed on bare metal with mysql and wordpress is on another machine.

unit-apache2-0: 2016-08-10 14:51:00 INFO unit.apache2/0.config-changed logger.go:40 Traceback (most recent call last):
unit-apache2-0: 2016-08-10 14:51:00 INFO unit.apache2/0.config-changed logger.go:40 File "/var/lib/juju/agents/unit-apache2-0/charm/hooks/config-changed", line 1088, in <module>
unit-apache2-0: 2016-08-10 14:51:00 INFO unit.apache2/0.config-changed logger.go:40 main(hook_name)
unit-apache2-0: 2016-08-10 14:51:00 INFO unit.apache2/0.config-changed logger.go:40 File "/var/lib/juju/agents/unit-apache2-0/charm/hooks/config-changed", line 1043, in main
unit-apache2-0: 2016-08-10 14:51:00 INFO unit.apache2/0.config-changed logger.go:40 config_changed()
unit-apache2-0: 2016-08-10 14:51:00 INFO unit.apache2/0.config-changed logger.go:40 File "/var/lib/juju/agents/unit-apache2-0/charm/hooks/config-changed", line 604, in config_changed
unit-apache2-0: 2016-08-10 14:51:00 INFO unit.apache2/0.config-changed logger.go:40 apt_source = config_data['apt-source']
unit-apache2-0: 2016-08-10 14:51:00 INFO unit.apache2/0.config-changed logger.go:40 File "/var/lib/juju/agents/unit-apache2-0/charm/hooks/charmhelpers/core/hookenv.py", line 238, in _
_getitem__
unit-apache2-0: 2016-08-10 14:51:00 INFO unit.apache2/0.config-changed logger.go:40 return (self._prev_dict or {})[key]
unit-apache2-0: 2016-08-10 14:51:00 INFO unit.apache2/0.config-changed logger.go:40 KeyError: 'apt-source'
unit-apache2-0: 2016-08-10 14:51:00 ERROR juju.worker.uniter.operation runhook.go:107 hook "config-changed" failed: exit status 1
unit-apache2-0: 2016-08-10 14:51:00 INFO juju.worker.uniter resolver.go:107 awaiting error resolution for "config-changed" hook

Revision history for this message
Katja (katja-decuir) wrote :

effects me too.

completely uninstallable.. and it wont uninstall after it is brought in.. so i have to remove the entire controller and make a new one, else apache2 just stays there and says it can't do anything because of a key error.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.