Comments (4)
@chirogocki I cannot reproduce your issue:
librenms | Seeding: DefaultAlertTemplateSeeder
librenms | Seeding: DefaultWidgetSeeder
librenms | Seeding: DefaultLegacySchemaSeeder
librenms | Database seeding completed successfully.
librenms | Creating admin user...
librenms | User librenms added successfully
librenms | [cont-init.d] 04-svc-main.sh: exited 0.
librenms | [cont-init.d] 05-svc-cron.sh: executing...
librenms | [cont-init.d] 05-svc-cron.sh: exited 0.
librenms | [cont-init.d] 06-svc-syslogng.sh: executing...
librenms | [cont-init.d] 06-svc-syslogng.sh: exited 0.
librenms | [cont-init.d] done.
librenms | [services.d] starting services
librenms | 2020/01/08 09:05:26 [notice] 324#324: using the "epoll" event method
librenms | 2020/01/08 09:05:26 [notice] 324#324: nginx/1.16.1
librenms | 2020/01/08 09:05:26 [notice] 324#324: OS: Linux 4.19.76-linuxkit
librenms | 2020/01/08 09:05:26 [notice] 324#324: getrlimit(RLIMIT_NOFILE): 1048576:1048576
librenms | 2020/01/08 09:05:26 [notice] 324#324: start worker processes
librenms | 2020/01/08 09:05:26 [notice] 324#324: start worker process 332
librenms | 2020/01/08 09:05:26 [notice] 324#324: start worker process 333
librenms | [services.d] done.
librenms | [08-Jan-2020 09:05:26] NOTICE: fpm is running, pid 328
librenms | [08-Jan-2020 09:05:26] NOTICE: ready to handle connections
$ /opt/librenms # ls -al /var/tmp/nginx/
total 32
drwx------ 1 librenms librenms 4096 Jan 8 09:05 .
drwxrwxrwt 1 root root 4096 Dec 6 10:32 ..
drwx------ 2 librenms librenms 4096 Jan 8 09:05 client_body
drwx------ 2 librenms librenms 4096 Jan 8 09:05 fastcgi
drwx------ 2 librenms librenms 4096 Jan 8 09:05 proxy
drwx------ 2 librenms librenms 4096 Jan 8 09:05 scgi
drwx------ 2 librenms librenms 4096 Jan 8 09:05 uwsgi
Please include all necessary configuration files : docker-compose.yml
, .env
, ...
from docker.
Hi,
Here is the Ansible docker-compose template wich include the variable:
version: "3.7"
services:
db:
image: mariadb:10.2
networks:
- traefik_network
command:
- "mysqld"
- "--sql-mode="
- "--innodb-file-per-table=1"
- "--lower-case-table-names=0"
- "--character-set-server=utf8"
- "--collation-server=utf8_unicode_ci"
volumes:
- "/mnt/nfs/librenms/db:/var/lib/mysql"
environment:
- "TZ=Europe/Paris"
- "MYSQL_ALLOW_EMPTY_PASSWORD=yes"
- "MYSQL_DATABASE=librenms"
- "MYSQL_USER={{librenms_mysql_user}}"
- "MYSQL_PASSWORD={{librenms_mysql_password}}"
- "PUID=1024"
- "PGID=100"
deploy:
replicas: 1
placement:
constraints:
- node.hostname==docker.{{domain}}
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 3
window: 120s
memcached:
image: memcached:alpine
networks:
- traefik_network
environment:
- "TZ=TZ=Europe/Paris"
deploy:
replicas: 1
placement:
constraints:
- node.hostname==docker.{{domain}}
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 3
window: 120s
rrdcached:
image: crazymax/rrdcached
networks:
- traefik_network
volumes:
- "/mnt/nfs/librenms/librenms/rrd:/data/db"
- "/mnt/nfs/librenms/librenms/rrd-journal:/data/journal"
environment:
- "TZ=Europe/Paris"
- "LOG_LEVEL=LOG_INFO"
- "WRITE_TIMEOUT=1800"
- "WRITE_JITTER=1800"
- "WRITE_THREADS=4"
- "FLUSH_DEAD_DATA_INTERVAL=3600"
- "PUID=1024"
- "PGID=100"
deploy:
replicas: 1
placement:
constraints:
- node.hostname==docker.{{domain}}
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 3
window: 120s
smtp:
image: juanluisbaptiste/postfix
networks:
- traefik_network
volumes:
- "/etc/localtime:/etc/localtime:ro"
environment:
- "TZ=Europe/Paris"
- "SERVER_HOSTNAME=librenms.{{domain}}"
- "SMTP_SERVER={{domain}}"
- "SMTP_USERNAME={{librenms_smtp_user}}"
- "SMTP_PASSWORD={{librenms_smtp_password}}"
deploy:
replicas: 1
placement:
constraints:
- node.hostname==docker.{{domain}}
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 3
window: 120s
librenms:
image: librenms/librenms:latest
networks:
- traefik_network
domainname: "{{domain}}"
hostname: librenms
depends_on:
- db
- memcached
- rrdcached
- smtp
volumes:
- "/mnt/nfs/librenms/librenms:/data"
environment:
- "TZ=Europe/Paris"
- "APP_URL=https://librenms.{{domain}}"
- "PUID=1024"
- "PGID=100"
- "DB_HOST=db"
- "DB_NAME=librenms"
- "DB_USER={{librenms_mysql_user}}"
- "DB_PASSWORD={{librenms_mysql_password}}"
- "DB_TIMEOUT=60"
- "MEMORY_LIMIT=256M"
- "UPLOAD_MAX_SIZE=16M"
- "OPCACHE_MEM_SIZE=128"
- "REAL_IP_FROM=0.0.0.0/32"
- "REAL_IP_HEADER=X-Forwarded-For"
- "LOG_IP_VAR=http_x_forwarded_for"
- "LIBRENMS_POLLER_THREADS=16"
- "LIBRENMS_POLLER_INTERVAL=5"
- "LIBRENMS_CRON_DISCOVERY_ENABLE=true"
- "LIBRENMS_CRON_DAILY_ENABLE=true"
- "LIBRENMS_CRON_ALERTS_ENABLE=true"
- "LIBRENMS_CRON_BILLING_ENABLE=true"
- "LIBRENMS_CRON_BILLING_CALCULATE_ENABLE=true"
- "LIBRENMS_CRON_CHECK_SERVICES_ENABLE=true"
- "LIBRENMS_CRON_POLLER_ENABLE=true"
- "LIBRENMS_SNMP_COMMUNITY=public"
- "MEMCACHED_HOST=memcached"
- "MEMCACHED_PORT=11211"
- "RRDCACHED_HOST=rrdcached"
- "RRDCACHED_PORT=42217"
deploy:
replicas: 1
placement:
constraints:
- node.hostname==docker.{{domain}}
labels:
- "traefik.enable=true"
- "traefik.http.routers.librenms-unsecure.rule=Host(`librenms.{{domain}}`)"
- "traefik.http.routers.librenms-unsecure.middlewares=redirect@file"
- "traefik.http.routers.librenms-unsecure.entrypoints=http"
- "traefik.http.routers.librenms.rule=Host(`librenms.{{domain}}`)"
- "traefik.http.routers.librenms.tls=true"
- "traefik.http.routers.librenms.entrypoints=https"
- "traefik.http.routers.librenms.service=librenms"
- "traefik.http.services.librenms.loadbalancer.server.port=8000"
resources:
limits:
memory: 4096M
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 3
window: 120s
cron:
image: librenms/librenms:latest
networks:
- traefik_network
domainname: "{{domain}}"
hostname: librenms
depends_on:
- librenms
volumes:
- "/mnt/nfs/librenms/librenms:/data"
environment:
- "TZ=Europe/Paris"
- "PUID=1024"
- "PGID=100"
- "DB_HOST=db"
- "DB_NAME=librenms"
- "DB_USER={{librenms_mysql_user}}"
- "DB_PASSWORD={{librenms_mysql_password}}"
- "DB_TIMEOUT=60"
- "SIDECAR_CRON=1"
- "MEMORY_LIMIT=256M"
- "UPLOAD_MAX_SIZE=16M"
- "OPCACHE_MEM_SIZE=128"
- "REAL_IP_FROM=0.0.0.0/32"
- "REAL_IP_HEADER=X-Forwarded-For"
- "LOG_IP_VAR=http_x_forwarded_for"
- "LIBRENMS_POLLER_THREADS=16"
- "LIBRENMS_POLLER_INTERVAL=5"
- "LIBRENMS_CRON_DISCOVERY_ENABLE=true"
- "LIBRENMS_CRON_DAILY_ENABLE=true"
- "LIBRENMS_CRON_ALERTS_ENABLE=true"
- "LIBRENMS_CRON_BILLING_ENABLE=true"
- "LIBRENMS_CRON_BILLING_CALCULATE_ENABLE=true"
- "LIBRENMS_CRON_CHECK_SERVICES_ENABLE=true"
- "LIBRENMS_CRON_POLLER_ENABLE=true"
- "LIBRENMS_SNMP_COMMUNITY=public"
- "MEMCACHED_HOST=memcached"
- "MEMCACHED_PORT=11211"
- "RRDCACHED_HOST=rrdcached"
- "RRDCACHED_PORT=42217"
deploy:
replicas: 1
placement:
constraints:
- node.hostname==docker.{{domain}}
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 3
window: 120s
syslog-ng:
image: librenms/librenms:latest
networks:
- traefik_network
domainname: "{{domain}}"
hostname: librenms
depends_on:
- librenms
ports:
- target: 514
published: 514
protocol: tcp
- target: 514
published: 514
protocol: udp
volumes:
- "/mnt/nfs/librenms/librenms:/data"
environment:
- "TZ=Europe/Paris"
- "PUID=1024"
- "PGID=100"
- "DB_HOST=db"
- "DB_NAME=librenms"
- "DB_USER={{librenms_mysql_user}}"
- "DB_PASSWORD={{librenms_mysql_password}}"
- "DB_TIMEOUT=60"
- "SIDECAR_SYSLOGNG=1"
- "MEMORY_LIMIT=256M"
- "UPLOAD_MAX_SIZE=16M"
- "OPCACHE_MEM_SIZE=128"
- "REAL_IP_FROM=0.0.0.0/32"
- "REAL_IP_HEADER=X-Forwarded-For"
- "LOG_IP_VAR=http_x_forwarded_for"
- "LIBRENMS_POLLER_THREADS=16"
- "LIBRENMS_POLLER_INTERVAL=5"
- "LIBRENMS_CRON_DISCOVERY_ENABLE=true"
- "LIBRENMS_CRON_DAILY_ENABLE=true"
- "LIBRENMS_CRON_ALERTS_ENABLE=true"
- "LIBRENMS_CRON_BILLING_ENABLE=true"
- "LIBRENMS_CRON_BILLING_CALCULATE_ENABLE=true"
- "LIBRENMS_CRON_CHECK_SERVICES_ENABLE=true"
- "LIBRENMS_CRON_POLLER_ENABLE=true"
- "LIBRENMS_SNMP_COMMUNITY=public"
- "MEMCACHED_HOST=memcached"
- "MEMCACHED_PORT=11211"
- "RRDCACHED_HOST=rrdcached"
- "RRDCACHED_PORT=42217"
deploy:
replicas: 1
placement:
constraints:
- node.hostname==docker.{{domain}}
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 3
window: 120s
networks:
traefik_network:
external: true
Here is an output of librenms image used from the running container :
docker image inspect 61363b9b5bf0
[
{
"Id": "sha256:61363b9b5bf0585a6ad277054d26036804f908dd40c830e9469411ad45a2b08f",
"RepoTags": [],
"RepoDigests": [
"librenms/librenms@sha256:6f3f933d4348ce6b754dd85203af8def75099e97814b6e9fe4635e5337dec88f"
],
"Parent": "",
"Comment": "",
"Created": "2019-12-20T22:28:25.651316716Z",
"Container": "89bddb71fb5b3a05948a3d55af9bd9141960858f8adc8996fbc37c93be3db4be",
"ContainerConfig": {
"Hostname": "89bddb71fb5b",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"514/tcp": {},
"514/udp": {},
"8000/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"S6_BEHAVIOUR_IF_STAGE2_FAILS=2",
"LIBRENMS_VERSION=1.58.1",
"LIBRENMS_PATH=/opt/librenms",
"LIBRENMS_DOCKER=1",
"TZ=UTC",
"PUID=1000",
"PGID=1000"
],
"Cmd": [
"/bin/sh",
"-c",
"#(nop) ",
"ENTRYPOINT [\"/init\"]"
],
"Image": "sha256:73f1b354ef58f8971858ea04a7a3c292228253779577b8bf7358cbdf1c568c3f",
"Volumes": {
"/data": {}
},
"WorkingDir": "/opt/librenms",
"Entrypoint": [
"/init"
],
"OnBuild": null,
"Labels": {
"maintainer": "CrazyMax",
"org.label-schema.build-date": "2019-12-20T22:26:40Z",
"org.label-schema.description": "LibreNMS",
"org.label-schema.name": "librenms",
"org.label-schema.schema-version": "1.0",
"org.label-schema.url": "https://github.com/librenms/docker",
"org.label-schema.vcs-ref": "b3c296eb",
"org.label-schema.vcs-url": "https://github.com/librenms/docker",
"org.label-schema.vendor": "LibreNMS",
"org.label-schema.version": "1.58.1"
}
},
"DockerVersion": "3.0.8",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"514/tcp": {},
"514/udp": {},
"8000/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"S6_BEHAVIOUR_IF_STAGE2_FAILS=2",
"LIBRENMS_VERSION=1.58.1",
"LIBRENMS_PATH=/opt/librenms",
"LIBRENMS_DOCKER=1",
"TZ=UTC",
"PUID=1000",
"PGID=1000"
],
"Cmd": null,
"Image": "sha256:73f1b354ef58f8971858ea04a7a3c292228253779577b8bf7358cbdf1c568c3f",
"Volumes": {
"/data": {}
},
"WorkingDir": "/opt/librenms",
"Entrypoint": [
"/init"
],
"OnBuild": null,
"Labels": {
"maintainer": "CrazyMax",
"org.label-schema.build-date": "2019-12-20T22:26:40Z",
"org.label-schema.description": "LibreNMS",
"org.label-schema.name": "librenms",
"org.label-schema.schema-version": "1.0",
"org.label-schema.url": "https://github.com/librenms/docker",
"org.label-schema.vcs-ref": "b3c296eb",
"org.label-schema.vcs-url": "https://github.com/librenms/docker",
"org.label-schema.vendor": "LibreNMS",
"org.label-schema.version": "1.58.1"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 835838296,
"VirtualSize": 835838296,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/f568182c6306639f6c6f0239eea31fe4cc4c834e0765d75cbd140baa7b5dbbbc/diff:/var/lib/docker/overlay2/1dadbfed26e9c052f74cc819849f00f50e950551a81b1afa9ddaf34306ffa33e/diff:/var/lib/docker/overlay2/2060df5be980f74b43d48116a3d9b045378bf1576c3629533aaed10c73d0b63c/diff:/var/lib/docker/overlay2/e354c91a654eb5aa2e2bf07d17e0ffa7ad857327459c3193ce7fd9519deab761/diff",
"MergedDir": "/var/lib/docker/overlay2/1a927705e403c05c740e6774dcb018825de369a88b28d2604f0f1cb2cbfdbc96/merged",
"UpperDir": "/var/lib/docker/overlay2/1a927705e403c05c740e6774dcb018825de369a88b28d2604f0f1cb2cbfdbc96/diff",
"WorkDir": "/var/lib/docker/overlay2/1a927705e403c05c740e6774dcb018825de369a88b28d2604f0f1cb2cbfdbc96/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:77cae8ab23bf486355d1b3191259705374f4a11d483b24964d2f729dd8c076a0",
"sha256:c3a94a7d9fece8725b5383f426a47901df11c50d5d8a30a50fb59801fb1f6bfe",
"sha256:00fa48ac6d0249178cb0ccf889140bc601bdf20c260c708e9daa4969bd89f5ac",
"sha256:e75315c12d683c448cfcf84d3003ce671a4bbdc9094627f1557e411a273cba81",
"sha256:97921b1a9fb3d97e9c99e087136e7660f7a22634ca47e23b0079637478e4a4da"
]
},
"Metadata": {
"LastTagTime": "0001-01-01T00:00:00Z"
}
}
]
Thanks for your help and your work !
from docker.
@chirogocki Looking at your yml definition, it looks like you use PUID=1024
and PGID=100
but looking at your logs, it doesn't look like these env vars are currently use:
[email protected] | [cont-init.d] 01-fix-uidgid.sh: executing...
[email protected] | [cont-init.d] 01-fix-uidgid.sh: exited 0.
Should be:
[email protected] | [cont-init.d] 01-fix-uidgid.sh: executing...
[email protected] | Switching to PGID 100
[email protected] | Switching to PUID 1024
[email protected] | [cont-init.d] 01-fix-uidgid.sh: exited 0.
I think you don't use this current compose file on your server.
from docker.
Should be ok with latest image now, thanks for your input.
from docker.
Related Issues (20)
- Error polling ports module. Check log file for more details. HOT 5
- Failed to create rrd directory error HOT 2
- Custom Interface Description Parsing not work HOT 7
- Scheduler is not running when using compose.yml HOT 3
- Redis seem to be required by the container, but not according to the documentation HOT 1
- Running with docker compose and Redis is not working HOT 1
- Enable billing module HOT 3
- Main container fails to start HOT 1
- Update Redis to Supported Version HOT 2
- Plugin is not persisting between container recreations HOT 5
- Device Perf schema change on April 10th HOT 2
- Include jq - for config dump HOT 1
- Main container will not start HOT 7
- Create Release for 24.05.0
- Auto-discovery not running automatically, works manually HOT 1
- @crazy-max - attempting to add MIBS but still unable to find the location to place them. HOT 1
- Docker Compose Upgrade fails to start
- Docker compose - librenms container does not start - HOT 1
- Docker env file MYSQL_PASSWORD cannot contain a `\` (backslash) HOT 1
- FPM Initialization failed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker.