Permission denied on 'ubuntu-archive-keyring.gpg.sig'

Bug #1828745 reported by Alexandre Gomes
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Repository Cache Charm
New
Undecided
Unassigned

Bug Description

During the repository_cache.metadata_sync a permission error is happening. This is not blocking the sync though.

Error trace:
root@ip-172-31-31-169:~# run-one python3 -m ubuntu_repository_cache.metadata_sync
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/hooks/ubuntu-repository-cache-sync", line 265, in <module>
    HOOKS.execute(sys.argv)
  File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/lib/charmhelpers/core/hookenv.py", line 914, in execute
    self._hooks[hook_name]()
  File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/lib/ubuntu_repository_cache/util.py", line 150, in wrapper
    result = function(*args, **kwargs)
  File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/hooks/ubuntu-repository-cache-sync", line 118, in ubuntu_repository_cache_sync
    metadata_sync.clean_metadata_dir(apache_root, LOG)
  File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/lib/ubuntu_repository_cache/metadata_sync.py", line 350, in clean_metadata_dir
    shutil.rmtree(entry)
  File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 412, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: 'ubuntu-archive-keyring.gpg.sig'
Traceback (most recent call last):
  File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/lib/ubuntu_repository_cache/metadata_sync.py", line 544, in <module>
    main(environment, cache_logger.info)
  File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/lib/ubuntu_repository_cache/metadata_sync.py", line 280, in main
    check_call(cmd)
  File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['juju-run', 'ubuntu-repository-cache/0', '/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/hooks/ubuntu-repository-cache-sync ubuntu_2019-05-11_03:36:34_u0']' retu
rned non-zero exit status 1

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.