Bug#948217: docker-registry: failed to open htpasswd path open /etc/registry

2020-01-06 Thread Vincent Smeets
Hallo,

Thanks for your reply. I manually changed the config file as you suggested
and now the service is starting.

Thanks

Op ma 6 jan. 2020 om 06:01 schreef Arnaud Rebillout <
arnaud.rebill...@collabora.com>:

>
> On 1/5/20 9:07 PM, Vincent Smeets wrote:
> > Package: docker-registry
> > Version: 2.7.1+ds2-5
> > Severity: important
> >
> > docker-registry is not starting. I installed docker.io and then
> > docker-registry. docker.io is working normally, but docker-registry
> > isn't started by systemd. The following error is shown in journalctl:
> >
> > panic: unable to configure authorization (htpasswd): failed to open
> htpasswd path open /etc/registry: permission denied
> >
> > The file or directory /etc/registry doesn't exists. I would have
> > expected that this file is created during the installation. I did find
> > the directory /etc/docker/registry. Is there some configuration error
> > that the wrong directory name is specified?
>
>
> Indeed, there was a configuration error, thanks for reporting.
>
> In the file /etc/docker/registry/config.yml, the configuration for auth:
> htpasswd: path: /etc/registry should be /etc/docker/registry
>
> Can you please make this change on your side, and confirm that it fixes
> the issue? I will upload a new package with the fix after your
> confirmation.
>
>
> > Additional point:
> > I didn't find a manual page.
>
>
> I don't think upstream provides a man page, and I don't think they will
> (the maintenance level has been rather low on this repo). But their
> online documentation is quite OK. If you think they should provide a man
> page, maybe try opening an issue on GitHub?
>
>
> Regards,
>
>Arnaud
>
>


Bug#948217: docker-registry: failed to open htpasswd path open /etc/registry

2020-01-05 Thread Arnaud Rebillout



On 1/5/20 9:07 PM, Vincent Smeets wrote:

Package: docker-registry
Version: 2.7.1+ds2-5
Severity: important

docker-registry is not starting. I installed docker.io and then
docker-registry. docker.io is working normally, but docker-registry
isn't started by systemd. The following error is shown in journalctl:

panic: unable to configure authorization (htpasswd): failed to open htpasswd 
path open /etc/registry: permission denied

The file or directory /etc/registry doesn't exists. I would have
expected that this file is created during the installation. I did find
the directory /etc/docker/registry. Is there some configuration error
that the wrong directory name is specified?



Indeed, there was a configuration error, thanks for reporting.

In the file /etc/docker/registry/config.yml, the configuration for auth: 
htpasswd: path: /etc/registry should be /etc/docker/registry


Can you please make this change on your side, and confirm that it fixes 
the issue? I will upload a new package with the fix after your confirmation.




Additional point:
I didn't find a manual page.



I don't think upstream provides a man page, and I don't think they will 
(the maintenance level has been rather low on this repo). But their 
online documentation is quite OK. If you think they should provide a man 
page, maybe try opening an issue on GitHub?



Regards,

  Arnaud



Bug#948217: docker-registry: failed to open htpasswd path open /etc/registry

2020-01-05 Thread Vincent Smeets
Package: docker-registry
Version: 2.7.1+ds2-5
Severity: important

docker-registry is not starting. I installed docker.io and then
docker-registry. docker.io is working normally, but docker-registry
isn't started by systemd. The following error is shown in journalctl:

panic: unable to configure authorization (htpasswd): failed to open htpasswd 
path open /etc/registry: permission denied

The file or directory /etc/registry doesn't exists. I would have
expected that this file is created during the installation. I did find
the directory /etc/docker/registry. Is there some configuration error
that the wrong directory name is specified?

Additional point:
I didn't find a manual page.

regards,
Vincent

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.3.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=nl_NL.utf8, LC_CTYPE=nl_NL.utf8 (charmap=UTF-8), 
LANGUAGE=nl_NL.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages docker-registry depends on:
ii  adduser  3.118
ii  init-system-helpers  1.57
ii  libc62.29-7
ii  lsb-base 11.1.0

docker-registry recommends no packages.

docker-registry suggests no packages.

-- no debconf information