Dockerfile icon indicating copy to clipboard operation
Dockerfile copied to clipboard

Syslog socket bind exception in digitalocean deployment

Open Luke-Shepp opened this issue 9 months ago • 2 comments

I am deploying a laravel project as a digitalocean app.

My Dockerfile is very simply;

FROM webdevops/php-nginx:8.2-alpine

WORKDIR /app

ENV WEB_DOCUMENT_ROOT="/app/public"

RUN apk update
RUN apk add npm

COPY --chown=application:application . .

RUN composer install --no-dev --no-interaction

RUN npm install
RUN npm run prod

The build works fine; Screenshot 2023-10-17 at 09 56 04

However on the deploy step (the container is started), the container exits with an error:

Error binding socket; addr='AF_UNIX(/dev/log)', error='Address in use (98)

Some more log file for context;

[2023-10-17 08:03:50] 2023-10-17 08:03:50,928 WARN exited: syslogd (exit status 2; not expected)
[2023-10-17 08:03:52] 2023-10-17 08:03:52,965 INFO spawned: 'syslogd' with pid 76
[2023-10-17 08:03:53] -> Executing /opt/docker/bin/service.d/syslog-ng.d//10-init.sh
[2023-10-17 08:03:53] [2023-10-17T08:03:53.205200] WARNING: Your configuration file uses an obsoleted keyword, please update your configuration; keyword='stats_freq', change='Use the stats() block. E.g. stats(freq(1));', location='/etc/syslog-ng/syslog-ng.conf:19:5'
[2023-10-17 08:03:53] [2023-10-17T08:03:53.218587] WARNING: With use-dns(no), dns-cache() will be forced to 'no' too!;
[2023-10-17 08:03:53] [2023-10-17T08:03:53.219381] Error binding socket; addr='AF_UNIX(/dev/log)', error='Address in use (98)'
[2023-10-17 08:03:53] [2023-10-17T08:03:53.219438] Error initializing message pipeline; plugin_name='unix-stream', location='/etc/syslog-ng/syslog-ng.conf:25:5'
[2023-10-17 08:03:53] 2023-10-17 08:03:53,233 WARN exited: syslogd (exit status 2; not expected)
[2023-10-17 08:03:56] 2023-10-17 08:03:56,266 INFO spawned: 'syslogd' with pid 79
[2023-10-17 08:03:56] -> Executing /opt/docker/bin/service.d/syslog-ng.d//10-init.sh
[2023-10-17 08:03:56] [2023-10-17T08:03:56.489245] WARNING: Your configuration file uses an obsoleted keyword, please update your configuration; keyword='stats_freq', change='Use the stats() block. E.g. stats(freq(1));', location='/etc/syslog-ng/syslog-ng.conf:19:5'
[2023-10-17 08:03:56] [2023-10-17T08:03:56.504281] WARNING: With use-dns(no), dns-cache() will be forced to 'no' too!;
[2023-10-17 08:03:56] [2023-10-17T08:03:56.504903] Error binding socket; addr='AF_UNIX(/dev/log)', error='Address in use (98)'
[2023-10-17 08:03:56] [2023-10-17T08:03:56.505071] Error initializing message pipeline; plugin_name='unix-stream', location='/etc/syslog-ng/syslog-ng.conf:25:5'
[2023-10-17 08:03:56] 2023-10-17 08:03:56,520 WARN exited: syslogd (exit status 2; not expected)
[2023-10-17 08:03:57] 2023-10-17 08:03:57,523 INFO gave up: syslogd entered FATAL state, too many start retries too quickly
[]

Luke-Shepp avatar Oct 17 '23 08:10 Luke-Shepp