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

Bug: rsyslogd: imklog: cannot open kernel log (/proc/kmsg): Operation not permitted. #157

Open
MichaelLeeHobbs opened this issue Mar 20, 2021 · 0 comments

Comments

@MichaelLeeHobbs
Copy link

In /etc/rsyslog.conf need to comment out the following line

#module(load="imklog")   # provides kernel logging support

Work around

  1. From the folder you have setup to run/manage pureftp container
  2. docker cp $(docker ps -f name=pure-ftpd -q):/etc/rsyslog.conf ./
  3. sed -i '/imklog/s/^/#/' rsyslog.conf
  4. In your docker-compose.yml
version: '3'
services:
  ftpd_server:
    image: stilliard/pure-ftpd
    container_name: pure-ftpd
    ports:
      - "21:21"
      - "30000-30009:30000-30009"
    volumes: # remember to replace /folder_on_disk/ with the path to where you want to store the files on the host machine
      - "/etc/localtime:/etc/localtime:ro"
      - "/ftp/rsyslog.conf:/etc/rsyslog.conf:ro"  ## <-- Add this line where /ftp is the folder you have setup for pureftp container data
      - "/ftp/var/log:/var/log"
      - "/ftp/data:/home/ftpusers/"
      - "/ftp/etc/ssl/private:/etc/ssl/private"
      - "/ftp/passwd:/etc/pure-ftpd/passwd"
    environment:
      PUBLICHOST: "localhost"
#      FTP_USER_NAME: admin
#      FTP_USER_PASS: ...
#      FTP_USER_HOME: /home/admin
      ADDED_FLAGS: "-d -d --tls --tls=2"
    restart: always
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

1 participant