2017-09-02 12:51:02 INFO juju-log cluster:2: Starting apache
2017-09-02 12:51:02 INFO cluster-relation-changed Site archive_ubuntu_com already enabled
2017-09-02 12:51:02 INFO cluster-relation-changed active
2017-09-02 12:51:02 INFO juju-log cluster:2: Cleaning metadata directory
2017-09-02 12:51:02 INFO juju-log cluster:2: Removing tree /srv/ubuntu-repository-cache/apache/data/ubuntu_2017-09-02_12:49:01_u0
2017-09-02 12:51:03 INFO cluster-relation-changed Traceback (most recent call last):
2017-09-02 12:51:03 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/hooks/cluster-relation-changed", line 245, in <module>
2017-09-02 12:51:03 INFO cluster-relation-changed HOOKS.execute(sys.argv)
2017-09-02 12:51:03 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/lib/charmhelpers/core/hookenv.py", line 715, in execute
2017-09-02 12:51:03 INFO cluster-relation-changed self._hooks[hook_name]()
2017-09-02 12:51:03 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/hooks/cluster-relation-changed", line 186, in cluster_relation_changed
2017-09-02 12:51:03 INFO cluster-relation-changed mirror.peer_update_metadata()
2017-09-02 12:51:03 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/lib/ubuntu_repository_cache/mirror.py", line 301, in peer_update_metadata
2017-09-02 12:51:03 INFO cluster-relation-changed _leader_update_metadata()
2017-09-02 12:51:03 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/lib/ubuntu_repository_cache/mirror.py", line 181, in _leader_update_metadata
2017-09-02 12:51:03 INFO cluster-relation-changed metadata_sync.clean_metadata_dir(apache_root, LOG)
2017-09-02 12:51:03 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/lib/ubuntu_repository_cache/metadata_sync.py", line 362, in clean_metadata_dir
2017-09-02 12:51:03 INFO cluster-relation-changed shutil.rmtree(entry)
2017-09-02 12:51:03 INFO cluster-relation-changed File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
2017-09-02 12:51:03 INFO cluster-relation-changed _rmtree_safe_fd(fd, path, onerror)
2017-09-02 12:51:03 INFO cluster-relation-changed File "/usr/lib/python3.5/shutil.py", line 416, in _rmtree_safe_fd
2017-09-02 12:51:03 INFO cluster-relation-changed onerror(os.rmdir, fullname, sys.exc_info())
2017-09-02 12:51:03 INFO cluster-relation-changed File "/usr/lib/python3.5/shutil.py", line 414, in _rmtree_safe_fd
2017-09-02 12:51:03 INFO cluster-relation-changed os.rmdir(name, dir_fd=topfd)
2017-09-02 12:51:03 INFO cluster-relation-changed OSError: [Errno 39] Directory not empty: 'dists'
2017-09-02 12:51:03 ERROR juju.worker.uniter.operation runhook.go:107 hook "cluster-relation-changed" failed: exit status 1
2017-09-02 13:21:46 [ERROR] Error in juju status on ubuntu-repository-cache/0
2017-09-02 12:51:02 INFO juju-log cluster:2: Starting apache relation- changed Site archive_ubuntu_com already enabled relation- changed active repository- cache/apache/ data/ubuntu_ 2017-09- 02_12:49: 01_u0 relation- changed Traceback (most recent call last): relation- changed File "/var/lib/ juju/agents/ unit-ubuntu- repository- cache-0/ charm/hooks/ cluster- relation- changed" , line 245, in <module> relation- changed HOOKS.execute( sys.argv) relation- changed File "/var/lib/ juju/agents/ unit-ubuntu- repository- cache-0/ charm/lib/ charmhelpers/ core/hookenv. py", line 715, in execute relation- changed self._hooks[ hook_name] () relation- changed File "/var/lib/ juju/agents/ unit-ubuntu- repository- cache-0/ charm/hooks/ cluster- relation- changed" , line 186, in cluster_ relation_ changed relation- changed mirror. peer_update_ metadata( ) relation- changed File "/var/lib/ juju/agents/ unit-ubuntu- repository- cache-0/ charm/lib/ ubuntu_ repository_ cache/mirror. py", line 301, in peer_update_ metadata relation- changed _leader_ update_ metadata( ) relation- changed File "/var/lib/ juju/agents/ unit-ubuntu- repository- cache-0/ charm/lib/ ubuntu_ repository_ cache/mirror. py", line 181, in _leader_ update_ metadata relation- changed metadata_ sync.clean_ metadata_ dir(apache_ root, LOG) relation- changed File "/var/lib/ juju/agents/ unit-ubuntu- repository- cache-0/ charm/lib/ ubuntu_ repository_ cache/metadata_ sync.py" , line 362, in clean_metadata_dir relation- changed shutil. rmtree( entry) relation- changed File "/usr/lib/ python3. 5/shutil. py", line 474, in rmtree relation- changed _rmtree_safe_fd(fd, path, onerror) relation- changed File "/usr/lib/ python3. 5/shutil. py", line 416, in _rmtree_safe_fd relation- changed onerror(os.rmdir, fullname, sys.exc_info()) relation- changed File "/usr/lib/ python3. 5/shutil. py", line 414, in _rmtree_safe_fd relation- changed os.rmdir(name, dir_fd=topfd) relation- changed OSError: [Errno 39] Directory not empty: 'dists' uniter. operation runhook.go:107 hook "cluster- relation- changed" failed: exit status 1
2017-09-02 12:51:02 INFO cluster-
2017-09-02 12:51:02 INFO cluster-
2017-09-02 12:51:02 INFO juju-log cluster:2: Cleaning metadata directory
2017-09-02 12:51:02 INFO juju-log cluster:2: Removing tree /srv/ubuntu-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 ERROR juju.worker.
2017-09-02 13:21:46 [ERROR] Error in juju status on ubuntu- repository- cache/0