[pkg-go] Bug#806261: docker-registry: Cannot access config.yml

Olaf Meeuwissen olaf.meeuwissen at avasys.jp
Wed Nov 25 23:45:07 UTC 2015


Package: docker-registry
Version: 2.1.1~ds1-4
Severity: important

Dear Maintainer,

I just installed docker-registry and noticed it didn't start up during
installation.  A look at /var/log/docker-registry.log said:

  configuration error: open /etc/docker/registry/config.yml: permission denied

I tracked this down to a permission issue on /etc/docker/:

  $ ls -dl /etc/docker
  drwx------ 3 root root 4096 Nov 26 08:15 /etc/docker

The init script checks whether it is being run as root so that isn't the
problem but then tries to run `start-stop-daemon --chuid "$EXECUSER"`
with EXECUSER=docker-registry.  This means that the BINARY cannot access
its own configuration file.  Oops.

A subsequent attempt to purge the package failed because docker-registry
could not be stopped.  Obvious, because it isn't running in the first
place.  Perhaps you should add a check that it is indeed running before
exiting with a failure when you cannot stop it because it isn't running.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-updates'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.0.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages docker-registry depends on:
ii  adduser  3.113+nmu3
ii  libc6    2.19-22

docker-registry recommends no packages.

docker-registry suggests no packages.

-- Configuration Files:
/etc/docker/registry/config.yml [Errno 13] Permission denied: u'/etc/docker/registry/config.yml'

-- no debconf information

-- 
Olaf Meeuwissen, LPIC-2     EPSON FLOSS Engineer -- AVASYS CORPORATION
FSF Associate Member #1962               Help support software freedom
                 http://www.fsf.org/jf?referrer=1962



More information about the Pkg-go-maintainers mailing list