Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syslog socket bind exception in digitalocean deployment #494

Open
Luke-Shepp opened this issue Oct 17, 2023 · 2 comments
Open

Syslog socket bind exception in digitalocean deployment #494

Luke-Shepp opened this issue Oct 17, 2023 · 2 comments

Comments

@Luke-Shepp
Copy link

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
[]
@braco
Copy link

braco commented Dec 3, 2023

Getting this too, did you ever find a solution?

@Luke-Shepp
Copy link
Author

@braco kind of, I just disabled syslogd;

RUN mv /opt/docker/etc/supervisor.d/syslog.conf /opt/docker/etc/supervisor.d/syslog.conf.disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants