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

2015-11-25 Thread Olaf Meeuwissen
Olaf Meeuwissen writes:

> 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

Curious where /etc/docker/ originated, I tracked that down and found it
was first created during the upgrade of docker.io from 1.3.3~dfsg1-2 to
1.6.1+dfsg1-2.  That upgrade added a /etc/docker/key.json but I have no
clue how/why that happened.

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

___
Pkg-go-maintainers mailing list
Pkg-go-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers


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

2015-11-25 Thread Olaf Meeuwissen
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  libc62.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

___
Pkg-go-maintainers mailing list
Pkg-go-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers