Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#862988: dante-server: Job for danted.service failed because the control process exited with error code during installation

1,520 views
Skip to first unread message

Daniel Bareiro

unread,
May 19, 2017, 1:00:04 PM5/19/17
to
Package: dante-server
Version: 1.4.1+dfsg-4
Severity: important

Dear Maintainer,

I am trying to install dante-server in Debian Stretch but the
installations fails with the following error:

-----------------------------------------------------------------------
root@defiant:~# aptitude install dante-server
Se instalarán los siguiente paquetes NUEVOS:
dante-server
0 paquetes actualizados, 1 nuevos instalados, 0 para eliminar y 0 sin actualizar.
Necesito descargar 0 B/373 kB de ficheros. Después de desempaquetar se usarán 993 kB.
Seleccionando el paquete dante-server previamente no seleccionado.
(Leyendo la base de datos ... 157294 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar .../dante-server_1.4.1+dfsg-4_amd64.deb ...
Desempaquetando dante-server (1.4.1+dfsg-4) ...
Procesando disparadores para systemd (232-23) ...
Configurando dante-server (1.4.1+dfsg-4) ...
Job for danted.service failed because the control process exited with error code.
See "systemctl status danted.service" and "journalctl -xe" for details.
invoke-rc.d: initscript danted, action "start" failed.
● danted.service - SOCKS (v4 and v5) proxy daemon (danted)
Loaded: loaded (/lib/systemd/system/danted.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2017-05-19 13:21:14 -03; 14ms ago
Docs: man:danted(8)
man:danted.conf(5)
Process: 15761 ExecStart=/usr/sbin/danted -D (code=exited, status=1/FAILURE)
Process: 15755 ExecStartPre=/bin/sh -c uid=`sed -n -e "s/[[:space:]]//g" -e "s/#.*//" -e "/^user\.privileged/{s/[^:]*://p;q;}" /etc/danted.conf`;
if [ -n "$uid" ]; then touch /var/run/danted.pid; chown $uid /var/run/danted.pid; fi (code=exited, status=0/SUCCESS)

may 19 13:21:14 defiant systemd[1]: Starting SOCKS (v4 and v5) proxy daemon (danted)...
may 19 13:21:14 defiant danted[15761]: May 19 13:21:14 (1495210874.811468) danted[15761]: warning: checkconfig(): no socks authentication metho…t intended?
may 19 13:21:14 defiant danted[15761]: May 19 13:21:14 (1495210874.811545) danted[15761]: error: checkconfig(): no internal address given for s… clients on
may 19 13:21:14 defiant danted[15761]: May 19 13:21:14 (1495210874.811565) danted[15761]: alert: mother[1/1]: shutting down
may 19 13:21:14 defiant systemd[1]: danted.service: Control process exited, code=exited status=1
may 19 13:21:14 defiant systemd[1]: Failed to start SOCKS (v4 and v5) proxy daemon (danted).
may 19 13:21:14 defiant systemd[1]: danted.service: Unit entered failed state.
may 19 13:21:14 defiant systemd[1]: danted.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error al procesar el paquete dante-server (--configure):
el subproceso instalado el script post-installation devolvió el código de salida de error 1
Procesando disparadores para man-db (2.7.6.1-2) ...
Procesando disparadores para systemd (232-23) ...
Se encontraron errores al procesar:
dante-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Configurando dante-server (1.4.1+dfsg-4) ...
Job for danted.service failed because the control process exited with error code.
See "systemctl status danted.service" and "journalctl -xe" for details.
invoke-rc.d: initscript danted, action "start" failed.
● danted.service - SOCKS (v4 and v5) proxy daemon (danted)
Loaded: loaded (/lib/systemd/system/danted.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2017-05-19 13:21:16 -03; 16ms ago
Docs: man:danted(8)
man:danted.conf(5)
Process: 15865 ExecStart=/usr/sbin/danted -D (code=exited, status=1/FAILURE)
Process: 15859 ExecStartPre=/bin/sh -c uid=`sed -n -e "s/[[:space:]]//g" -e "s/#.*//" -e "/^user\.privileged/{s/[^:]*://p;q;}" /etc/danted.conf`;
if [ -n "$uid" ]; then touch /var/run/danted.pid; chown $uid /var/run/danted.pid; fi (code=exited, status=0/SUCCESS)

may 19 13:21:16 defiant systemd[1]: Starting SOCKS (v4 and v5) proxy daemon (danted)...
may 19 13:21:16 defiant danted[15865]: May 19 13:21:16 (1495210876.368422) danted[15865]: warning: checkconfig(): no socks authentication metho…t intended?
may 19 13:21:16 defiant danted[15865]: May 19 13:21:16 (1495210876.368495) danted[15865]: error: checkconfig(): no internal address given for s… clients on
may 19 13:21:16 defiant danted[15865]: May 19 13:21:16 (1495210876.368514) danted[15865]: alert: mother[1/1]: shutting down
may 19 13:21:16 defiant systemd[1]: danted.service: Control process exited, code=exited status=1
may 19 13:21:16 defiant systemd[1]: Failed to start SOCKS (v4 and v5) proxy daemon (danted).
may 19 13:21:16 defiant systemd[1]: danted.service: Unit entered failed state.
may 19 13:21:16 defiant systemd[1]: danted.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error al procesar el paquete dante-server (--configure):
el subproceso instalado el script post-installation devolvió el código de salida de error 1
Se encontraron errores al procesar:
dante-server
-----------------------------------------------------------------------

Please let me know if I can provide more information.

Thanks in advance.

Kind regards,
Daniel

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

Kernel: Linux 4.9.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dante-server depends on:
ii libc6 2.24-10
ii libpam0g 1.1.8-3.5
ii libwrap0 7.6.q-26
ii lsb-base 9.20161125

dante-server recommends no packages.

dante-server suggests no packages.

-- no debconf information

Peter Pentchev

unread,
May 20, 2017, 9:40:03 AM5/20/17
to
On Fri, May 19, 2017 at 01:43:37PM -0300, Daniel Bareiro wrote:
> Package: dante-server
> Version: 1.4.1+dfsg-4
> Severity: important
>
> Dear Maintainer,
>
> I am trying to install dante-server in Debian Stretch but the
> installations fails with the following error:
>
> -----------------------------------------------------------------------
> root@defiant:~# aptitude install dante-server
[snip]
> Job for danted.service failed because the control process exited with error code.
> See "systemctl status danted.service" and "journalctl -xe" for details.
> invoke-rc.d: initscript danted, action "start" failed.
[snip]
> may 19 13:21:14 defiant systemd[1]: Starting SOCKS (v4 and v5) proxy daemon (danted)...
> may 19 13:21:14 defiant danted[15761]: May 19 13:21:14 (1495210874.811468) danted[15761]: warning: checkconfig(): no socks authentication metho…t intended?
> may 19 13:21:14 defiant danted[15761]: May 19 13:21:14 (1495210874.811545) danted[15761]: error: checkconfig(): no internal address given for s… clients on
> may 19 13:21:14 defiant danted[15761]: May 19 13:21:14 (1495210874.811565) danted[15761]: alert: mother[1/1]: shutting down
> may 19 13:21:14 defiant systemd[1]: danted.service: Control process exited, code=exited status=1
> may 19 13:21:14 defiant systemd[1]: Failed to start SOCKS (v4 and v5) proxy daemon (danted).

Hi,

Yeah, I guess I'll have to fix that at some point, probably before the
stretch release. Right after installation, the sample config file for
dante-server does not specify any network interfaces at all (obviously,
since nothing is known at that point), but then the dante server is
automatically started, so it fails, and the installation itself fails.
The correct fix would be to make dante-server not start automatically on
installation; I'll take a look at this in the next couple of days.

In the meantime, could you try to take a look at the /etc/danted.conf
file, configure it for your use case (at the very least, specify the
listening address, and maybe some rules), then try to start the
dante-server service? If this works, if the dante-server service may be
started properly, you can then run:

dpkg-reconfigure -a

...to let dpkg and apt complete the package installation.

Sorry about that, I keep forgetting about it :( I'll fix it soon.

Thanks for your interest in Dante!

G'luck,
Peter

--
Peter Pentchev ro...@ringlet.net ro...@FreeBSD.org p...@storpool.com
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
signature.asc

Daniel Bareiro

unread,
May 20, 2017, 12:10:03 PM5/20/17
to
On 20/05/17 10:17, Peter Pentchev wrote:

>> Package: dante-server
>> Version: 1.4.1+dfsg-4
>> Severity: important
>>
>> Dear Maintainer,
>>
>> I am trying to install dante-server in Debian Stretch but the
>> installations fails with the following error:
>>
>> -----------------------------------------------------------------------
>> root@defiant:~# aptitude install dante-server
> [snip]
>> Job for danted.service failed because the control process exited with error code.
>> See "systemctl status danted.service" and "journalctl -xe" for details.
>> invoke-rc.d: initscript danted, action "start" failed.
> [snip]
>> may 19 13:21:14 defiant systemd[1]: Starting SOCKS (v4 and v5) proxy daemon (danted)...
>> may 19 13:21:14 defiant danted[15761]: May 19 13:21:14 (1495210874.811468) danted[15761]: warning: checkconfig(): no socks authentication metho…t intended?
>> may 19 13:21:14 defiant danted[15761]: May 19 13:21:14 (1495210874.811545) danted[15761]: error: checkconfig(): no internal address given for s… clients on
>> may 19 13:21:14 defiant danted[15761]: May 19 13:21:14 (1495210874.811565) danted[15761]: alert: mother[1/1]: shutting down
>> may 19 13:21:14 defiant systemd[1]: danted.service: Control process exited, code=exited status=1
>> may 19 13:21:14 defiant systemd[1]: Failed to start SOCKS (v4 and v5) proxy daemon (danted).

> Hi,

Hi, Peter.

> Yeah, I guess I'll have to fix that at some point, probably before the
> stretch release. Right after installation, the sample config file for
> dante-server does not specify any network interfaces at all (obviously,
> since nothing is known at that point), but then the dante server is
> automatically started, so it fails, and the installation itself fails.
> The correct fix would be to make dante-server not start automatically on
> installation; I'll take a look at this in the next couple of days.
>
> In the meantime, could you try to take a look at the /etc/danted.conf
> file, configure it for your use case (at the very least, specify the
> listening address, and maybe some rules), then try to start the
> dante-server service? If this works, if the dante-server service may be
> started properly, you can then run:
>
> dpkg-reconfigure -a
>
> ...to let dpkg and apt complete the package installation.
>
> Sorry about that, I keep forgetting about it :( I'll fix it soon.
>
> Thanks for your interest in Dante!

Thanks for your reply.

I added a minimal configuration, specifying the internal and external
interfaces and then running "aptitude reinstall dante-server". This
seems to solve the issue with the installation and then the service
starts without problems:

----------------------------------------------------------------------
# aptitude reinstall dante-server
Se REINSTALARÁN los siguientes paquetes:
dante-server
0 paquetes actualizados, 0 nuevos instalados, 1 reinstalados, 0 para
eliminar y 0 sin actualizar.
Necesito descargar 0 B/373 kB de ficheros. Después de desempaquetar se
usarán 0 B.
(Leyendo la base de datos ... 162559 ficheros o directorios instalados
actualmente.)
Preparando para desempaquetar .../dante-server_1.4.1+dfsg-4_amd64.deb ...
Desempaquetando dante-server (1.4.1+dfsg-4) sobre (1.4.1+dfsg-4) ...
Procesando disparadores para systemd (232-23) ...
Configurando dante-server (1.4.1+dfsg-4) ...
Procesando disparadores para man-db (2.7.6.1-2) ...
----------------------------------------------------------------------

----------------------------------------------------------------------
# tail -F /var/log/sockd.log | ccze -A
May 20 12:42:45 (1495294965.380768) danted[14627]: warning:
checkconfig(): no socks authentication methods enabled. This means all
socks requests will be blocked after negotiation. Perhaps this is not
intended?
May 20 12:42:45 (1495294965.396822) danted[14628]: info:
Dante/server[1/1] v1.4.1 running
----------------------------------------------------------------------


Thanks for your time.

Kind regards,

--
Ing. Daniel Bareiro

Opción Libre - Soberanía tecnológica para su empresa
WWW: http://www.opcion-libre.com.ar
Tel: +54 11 5235-3090
Correo-e: cont...@opcion-libre.com.ar

signature.asc

Peter Pentchev

unread,
May 21, 2017, 10:40:02 AM5/21/17
to
control: severity -1 serious
control: tags -1 + confirmed pending
Ahh, so that's what happens when one posts before caffeine... of course,
this was supposed to be:

dpkg --configure -a

...there's nothing that dpkg-reconfigure can do to help.

> > Sorry about that, I keep forgetting about it :( I'll fix it soon.
> >
> > Thanks for your interest in Dante!
>
> Thanks for your reply.
>
> I added a minimal configuration, specifying the internal and external
> interfaces and then running "aptitude reinstall dante-server". This
> seems to solve the issue with the installation and then the service
> starts without problems:

I'm glad that it worked for you! I've committed the fix to my dante
packaging Git repository, I'll ask the release team for a freeze
exception so that the fix makes it into the next release.

Thanks for your understanding, and do not hesitate to let me know if
you hit any other problems!
signature.asc
0 new messages