linuxserver / docker-syslog-ng

GNU General Public License v3.0
51 stars 9 forks source link

Can't reload syslog-ng #9

Closed Issykul closed 1 year ago

Issykul commented 1 year ago

linuxserver.io


Expected Behavior

With syslog-ng-ctl reload i should be able to reload the config file.

Current Behavior

Instead of reloading the config the container prints out this: Error connecting control socket, socket='/run/syslog-ng.ctl', error='No such file or directory'

Steps to Reproduce

  1. Pull Image
  2. Start Container
  3. Do something or nothing to the config, doesn't matter
  4. docker exec syslog-ng syslog-ng-ctl reload or do docker exec -it syslog-ng bash and run the command inside.

Environment

OS: Ubuntu 20.04.4 LTS CPU architecture: x86_64 How docker service was installed: From the docker hub. Version 3.36.1

Command used to create docker container (run/create/compose/screenshot)

version: "3"
services:
  syslog-ng:
    image: linuxserver/syslog-ng:3.36.1
    container_name: syslog-ng
    environment:
      - PUID=0
      - PGID=0
      - TZ=[REDACTED]
    volumes:
      - /srv/syslog/config:/config
      - /srv/syslog/logs:/var/log
    ports:
      - 514:5514/udp
      - 601:6601/tcp
      - 6514:6514/tcp
    restart: unless-stopped
    networks:
      - syslog
    deploy:
      mode: replicated
      replicas: 1
      placement:
        constraints:
        - node.hostname == [REDACTED]
    logging:
      driver: "json-file"
networks:
  syslog:
    external: true

Docker logs

Nothing gets printed in the logs, so not relatable.

github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

Issykul commented 1 year ago

I know i could re-deploy the compose file. But that is not what i am looking for.

thespad commented 1 year ago

Let me do some tests, it's an achievable goal but I'm not sure the cleanest way to do it.

thespad commented 1 year ago

Try syslog-ng-ctl reload -c /config/syslog-ng.ctl

Issykul commented 1 year ago

@thespad Could you add this to the Support Info Headline in the README? So if I forget about this in the future, i can find it here 😂

thespad commented 1 year ago

I'll add it to the readme when I get a chance.

Issykul commented 1 year ago

@thespad Thanks. And Thank you for all your work that you do 🙏