Open cah-adean opened 6 years ago
What is the response of that first red response (jsLoader.php
)?
I mean response returned from the server - there can be an error. I'm not able to replicate your problem:
Your response has 79KB, in my case it's 156KB. Check also container logs. Maybe some nginx error. Do you use any proxy/container resource limits/additional container/LB in front of your dockbix container?
I'll check the logs.
I don't have any resource limits or any orchestration around this container, it's a plain jane 'docker run'. No LB in front, no SSL termination, etc. All done over OpenVPN.
2018-05-08 10:59:24,504 DEBG 'nginx' stderr output: 2018/05/08 10:59:24 [crit] 454#0: *794 open() "/var/lib/nginx/tmp/fastcgi/5/03/0000000035" failed (13: Permission denied) while reading upstream, client: 10.253.2.20, server: , request: "GET /jsLoader.php?ver=3.4.7%20Dockbix%20XXL%20(2018-04-06)&lang=en_US&showGuiMessaging=1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm-www.sock:", host: "mydomain.com", referrer: "http://mydomain.com/zabbix.php?action=dashboard.view&ddreset=1"
Something appears to be changing ownership of directories:
/var/lib:
drwxr-xr-x 1 root root 4096 Apr 6 11:22 alternatives
drwxr-xr-x 2 root root 4096 Nov 6 2016 dbus
drwxr-xr-x 2 root root 4096 Nov 5 2016 games
drwxr-xr-x 2 root root 4096 Jan 5 07:47 initramfs
drwxr-xr-x 2 root root 4096 Aug 1 2017 logrotate
drwx------ 2 root root 4096 Mar 1 20:07 machines
drwxr-xr-x 2 root root 4096 Nov 5 2016 misc
drwxr-xr-x 1 root root 4096 Apr 6 11:13 net-snmp
drwx------ 1 unbound unbound 4096 Apr 6 11:12 nginx
drwxr-xr-x 5 root root 4096 Apr 6 11:13 php
drwxr-xr-x 1 root root 4096 Apr 6 11:24 rpm
drwxr-xr-x 1 root root 4096 Apr 6 11:17 rpm-state
drwxr-xr-x 4 root root 4096 Apr 6 11:13 stateless
drwxr-xr-x 1 root root 4096 Apr 6 11:11 systemd
drwx------ 2 tss tss 4096 Aug 3 2017 tpm
drwxr-xr-x 2 unbound unbound 4096 Apr 6 11:22 unbound
drwxr-xr-x 1 root root 4096 May 2 09:24 yum
chmod'ing it to -R 777 made the Zabbix UI work again
Do you use custom nginx config? I don't see any reason, why it's caching to /var/lib/nginx/
I am not, I am using the base image ( monitoringartist/dockbix-xxl:latest ) with a variety of environment vars, but nothing custom as far as changing configurations. I can provide said environment vars if you think it is relevant.
Yes, pls provide your dockbix run command & host OS and Docker version.
docker run --name zabbix
-e ZS_DBHost="xxxx.us-east-1.rds.amazonaws.com"
-e ZS_DBUser="zabbix"
-e ZS_DBPassword="zPASSwordHere"
-e ZS_CacheSize=128M
-e ZW_ZBX_SERVER="0.0.0.0"
-e ZJ_LISTEN_IP="0.0.0.0"
-e ZJ_enabled="true"
-e ZS_JavaGateway="127.0.0.1"
-e ZS_JavaGatewayPort="10052"
-e ZS_StartJavaPollers="20"
-e ZS_StartPollers="200"
-e ZS_StartPingers="30"
-e ZS_StartPollersUnreachable="40"
-e ZS_StartTrappers="20"
-e ZS_StartDiscoverers="10"
-p 80:80
-p 443:443
-p 10050:10050
-p 10051:10051
-p 10052:10052
--restart=always
-v /root/zabbix/externalscripts:/usr/local/share/zabbix/externalscripts/
-v /root/zabbix/alertscripts:/usr/local/share/zabbix/alertscripts
-v /root/zabbix/aws:/etc/zabbix/.aws
-v /etc/localtime:/etc/localtime:ro
-d monitoringartist/dockbix-xxl:latest
OK, what is host OS and Docker version?
Host OS: Linux ip-10-34-7-104 4.4.0-1041-aws #50-Ubuntu SMP Wed Nov 15 22:18:17 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial
Docker version: Client: Version: 17.12.0-ce API version: 1.35 Go version: go1.9.2 Git commit: c97c6d6 Built: Wed Dec 27 20:11:19 2017 OS/Arch: linux/amd64
Server: Engine: Version: 17.12.0-ce API version: 1.35 (minimum version 1.12) Go version: go1.9.2 Git commit: c97c6d6 Built: Wed Dec 27 20:09:53 2017 OS/Arch: linux/amd64 Experimental: false
No clue. Could you paste the output of:
docker info
docker inspect zabbix
Containers: 2
Running: 2
Paused: 0
Stopped: 0
Images: 6
Server Version: 17.12.0-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 89623f28b87a6004d4b785663257362d1658a729
runc version: b2567b37d7b75eb4cf325b77297b140ea686ce8f
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-1041-aws
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.508GiB
Name: ip-10-34-7-104
ID: 7V2R:BVKI:LKOJ:XZ57:55EU:URFL:6PWA:DB6K:BYDE:EVCN:N4YK:LP6A
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No swap limit support
[
{
"Id": "78842dbe6bd55185ee10ff87fcb76793c40fa4870b0f2e03bf9db5fa8fac25a2",
"Created": "2018-04-27T15:14:51.120459394Z",
"Path": "/config/bootstrap.sh",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 26775,
"ExitCode": 0,
"Error": "",
"StartedAt": "2018-05-08T13:57:48.806573224Z",
"FinishedAt": "2018-05-08T13:57:47.886546559Z"
},
"Image": "sha256:84d48002c9c6ddc5bd4065013124e154a30e5db42cc066bb9146ebf2dc7ea611",
"ResolvConfPath": "/var/lib/docker/containers/78842dbe6bd55185ee10ff87fcb76793c40fa4870b0f2e03bf9db5fa8fac25a2/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/78842dbe6bd55185ee10ff87fcb76793c40fa4870b0f2e03bf9db5fa8fac25a2/hostname",
"HostsPath": "/var/lib/docker/containers/78842dbe6bd55185ee10ff87fcb76793c40fa4870b0f2e03bf9db5fa8fac25a2/hosts",
"LogPath": "/var/lib/docker/containers/78842dbe6bd55185ee10ff87fcb76793c40fa4870b0f2e03bf9db5fa8fac25a2/78842dbe6bd55185ee10ff87fcb76793c40fa4870b0f2e03bf9db5fa8fac25a2-json.log",
"Name": "/zabbix",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "docker-default",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/root/zabbix/aws:/etc/zabbix/.aws",
"/etc/localtime:/etc/localtime:ro",
"/root/zabbix/externalscripts:/usr/local/share/zabbix/externalscripts/",
"/root/zabbix/alertscripts:/usr/local/share/zabbix/alertscripts"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {
"10050/tcp": [
{
"HostIp": "",
"HostPort": "10050"
}
],
"10051/tcp": [
{
"HostIp": "",
"HostPort": "10051"
}
],
"10052/tcp": [
{
"HostIp": "",
"HostPort": "10052"
}
],
"443/tcp": [
{
"HostIp": "",
"HostPort": "443"
}
],
"80/tcp": [
{
"HostIp": "",
"HostPort": "80"
}
]
},
"RestartPolicy": {
"Name": "always",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "shareable",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DiskQuota": 0,
"KernelMemory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": 0,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/e7253a5e2c0bb75c633c182c8fe2b059a8a93e360b2b2322dd74bcb247ecb1e4-init/diff:/var/lib/docker/overlay2/484c62771da043d430394394eb879eb0ad0db5d89437f8c6ed4ace45e52d939b/diff:/var/lib/docker/overlay2/949ba7664c95e0ef4dda3e83a0e3c753bc03ed57fd40273bf781b3e885c415fe/diff:/var/lib/docker/overlay2/76fdd75cd4c9eeb7e3ef411e48dff90ec2cc3ac2b78d9b330a7d6e29e802aae2/diff:/var/lib/docker/overlay2/a68d977ac02157d7f2134afc9e8736a2213fe8dbf1d6d3aa93da369e4379b178/diff:/var/lib/docker/overlay2/db82ad68411610a9b8141a7224d3f70af38dc8f5b1005a0df1a62aa7d7142ba2/diff:/var/lib/docker/overlay2/67c47f5bc4e4cce01cf34963f2165f65edfc159a699755bb96d7102c782bb528/diff:/var/lib/docker/overlay2/7127b43ef123b895285c76b591ab706b35cacc15771b7944797d6afbfcb2f3e0/diff",
"MergedDir": "/var/lib/docker/overlay2/e7253a5e2c0bb75c633c182c8fe2b059a8a93e360b2b2322dd74bcb247ecb1e4/merged",
"UpperDir": "/var/lib/docker/overlay2/e7253a5e2c0bb75c633c182c8fe2b059a8a93e360b2b2322dd74bcb247ecb1e4/diff",
"WorkDir": "/var/lib/docker/overlay2/e7253a5e2c0bb75c633c182c8fe2b059a8a93e360b2b2322dd74bcb247ecb1e4/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "volume",
"Name": "f089fcd5abdde02f36ef692be4bda3c14a41d9a66da906e4883f86fd1a0987e5",
"Source": "/var/lib/docker/volumes/f089fcd5abdde02f36ef692be4bda3c14a41d9a66da906e4883f86fd1a0987e5/_data",
"Destination": "/etc/snmp",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
},
{
"Type": "volume",
"Name": "be085591f2db3a02c197367dafd1b87c434aa72cc12eb26141f16dea593bd8b8",
"Source": "/var/lib/docker/volumes/be085591f2db3a02c197367dafd1b87c434aa72cc12eb26141f16dea593bd8b8/_data",
"Destination": "/usr/local/share/zabbix/ssl/certs",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
},
{
"Type": "volume",
"Name": "9af4b62197786c03c8ad60e2c74f6211ecd947e3b5cbfe94a92c9f27c81f8201",
"Source": "/var/lib/docker/volumes/9af4b62197786c03c8ad60e2c74f6211ecd947e3b5cbfe94a92c9f27c81f8201/_data",
"Destination": "/etc/openldap",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
},
{
"Type": "bind",
"Source": "/etc/localtime",
"Destination": "/etc/localtime",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/root/zabbix/externalscripts",
"Destination": "/usr/local/share/zabbix/externalscripts",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "volume",
"Name": "218a0c6941f289368c4b11c23cca3f4148adb4665bfb1b168b4b9f098c2ce08e",
"Source": "/var/lib/docker/volumes/218a0c6941f289368c4b11c23cca3f4148adb4665bfb1b168b4b9f098c2ce08e/_data",
"Destination": "/usr/local/share/zabbix/ssl/keys",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
},
{
"Type": "volume",
"Name": "57f3a608601ab0d64fad81ee4080792d464b515507fd6233d4104bef0276c423",
"Source": "/var/lib/docker/volumes/57f3a608601ab0d64fad81ee4080792d464b515507fd6233d4104bef0276c423/_data",
"Destination": "/usr/lib/zabbix/modules",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
},
{
"Type": "bind",
"Source": "/root/zabbix/aws",
"Destination": "/etc/zabbix/.aws",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/root/zabbix/alertscripts",
"Destination": "/usr/local/share/zabbix/alertscripts",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "volume",
"Name": "aabf1d7a25ef69639050a9a061197c065c18500626755c77b37c498440d70711",
"Source": "/var/lib/docker/volumes/aabf1d7a25ef69639050a9a061197c065c18500626755c77b37c498440d70711/_data",
"Destination": "/usr/share/snmp/mibs",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
},
{
"Type": "volume",
"Name": "2eba8768c9d3a0d1c568d599f4c333bdde62b8abd0a518bb2927093985cd003f",
"Source": "/var/lib/docker/volumes/2eba8768c9d3a0d1c568d599f4c333bdde62b8abd0a518bb2927093985cd003f/_data",
"Destination": "/etc/custom-config",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
}
],
"Config": {
"Hostname": "78842dbe6bd5",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"10050/tcp": {},
"10051/tcp": {},
"10052/tcp": {},
"162/udp": {},
"443/tcp": {},
"80/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"ZS_DBUser=zabbix",
"ZW_ZBX_SERVER=0.0.0.0",
"ZS_JavaGateway=127.0.0.1",
"ZS_StartPollersUnreachable=40",
"ZS_DBHost=operations-xxx.us-east-1.rds.amazonaws.com",
"ZS_DBPassword=zpassword",
"ZJ_enabled=true",
"ZS_StartPingers=30",
"ZS_StartTrappers=20",
"ZS_StartDiscoverers=10",
"ZJ_LISTEN_IP=0.0.0.0",
"ZS_JavaGatewayPort=10052",
"ZS_StartPollers=200",
"ZS_CacheSize=128M",
"ZS_StartJavaPollers=20",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"ZABBIX_VERSION=tags/3.4.7",
"ZS_enabled=true",
"ZA_enabled=true",
"ZW_enabled=true",
"ZP_enabled=false",
"SNMPTRAP_enabled=false",
"STATUS_PAGE_ALLOWED_IP=127.0.0.1",
"JAVA_HOME=/usr/lib/jvm/jre",
"JAVA=/usr/bin/java",
"PHP_date_timezone=UTC",
"PHP_max_execution_time=300",
"PHP_max_input_time=300",
"PHP_memory_limit=128M",
"PHP_error_reporting=E_ALL",
"ZS_LogType=console",
"ZS_PidFile=/tmp/zabbix_server.pid",
"ZS_User=zabbix",
"ZS_DBName=zabbix",
"ZS_DBPort=3306",
"ZS_AlertScriptsPath=/usr/local/share/zabbix/alertscripts",
"ZS_ExternalScripts=/usr/local/share/zabbix/externalscripts",
"ZS_SSLCertLocation=/usr/local/share/zabbix/ssl/certs",
"ZS_SSLKeyLocation=/usr/local/share/zabbix/ssl/keys",
"ZS_LoadModulePath=/usr/lib/zabbix/modules",
"ZS_SNMPTrapperFile=/tmp/zabbix_traps.tmp",
"ZW_ZBX_SERVER_PORT=10051",
"ZW_ZBX_SERVER_NAME=Zabbix Server",
"ZA_LogType=console",
"ZA_Hostname=Zabbix Server",
"ZA_User=zabbix",
"ZA_PidFile=/tmp/zabbix_agentd.pid",
"ZA_Server=127.0.0.1",
"ZA_ServerActive=127.0.0.1",
"ZJ_LISTEN_PORT=10052",
"ZJ_PID_FILE=/tmp/zabbix_java.pid",
"ZJ_START_POLLERS=5",
"ZJ_TIMEOUT=3",
"ZJ_LogLevel=error",
"ZJ_TCP_TIMEOUT=3000",
"ZP_LogType=console",
"ZP_DBHost=zabbixproxy.db",
"ZP_DBName=zabbix",
"ZP_DBUser=zabbix",
"ZP_DBPassword=xxxx",
"ZP_User=zabbix",
"XXL_searcher=true",
"XXL_updatechecker=true",
"XXL_zapix=false",
"XXL_grapher=false",
"XXL_api=true",
"XXL_apiuser=Admin",
"XXL_apipass=xxx",
"XXL_analytics=true",
"TERM=xterm"
],
"Cmd": [
"/config/bootstrap.sh"
],
"ArgsEscaped": true,
"Image": "monitoringartist/dockbix-xxl:latest",
"Volumes": {
"/etc/custom-config": {},
"/etc/openldap/": {},
"/etc/snmp": {},
"/usr/lib/zabbix/modules": {},
"/usr/local/share/zabbix/alertscripts": {},
"/usr/local/share/zabbix/externalscripts": {},
"/usr/local/share/zabbix/ssl/certs": {},
"/usr/local/share/zabbix/ssl/keys": {},
"/usr/share/snmp/mibs": {}
},
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"build-date": "20180302",
"license": "GPLv2",
"maintainer": "Jan Garaj <info@monitoringartist.com>",
"name": "CentOS Base Image",
"vendor": "CentOS"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "e357a57d96a03ff430a8086a4690337ae5b13b094d8fdeaf462baccd60682673",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"10050/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "10050"
}
],
"10051/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "10051"
}
],
"10052/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "10052"
}
],
"162/udp": null,
"443/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "443"
}
],
"80/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "80"
}
]
},
"SandboxKey": "/var/run/docker/netns/e357a57d96a0",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "6e6b3f2ab71932dd383c0849e8a19156fa0d3d7dee57bb6acc24e11b4584c2ba",
"Gateway": "172.17.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"MacAddress": "02:42:ac:11:00:02",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "f960888a7e560892c2e34523969a6fd9ecd1c78e8b2dfd79a1a6f80efa533e0d",
"EndpointID": "6e6b3f2ab71932dd383c0849e8a19156fa0d3d7dee57bb6acc24e11b4584c2ba",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:02",
"DriverOpts": null
}
}
}
}
]
I'm still not able to replicate it. My test command:
docker run \
-d \
--name dockbix-db \
-v /backups:/backups \
-v /etc/localtime:/etc/localtime:ro \
--env="MARIADB_USER=zabbix" \
--env="MARIADB_PASS=my_password" \
--env="DB_innodb_buffer_pool_size=512M" \
monitoringartist/zabbix-db-mariadb
docker run --name zabbix \
--link dockbix-db:dockbix.db \
--env="ZS_DBHost=dockbix.db" \
--env="ZS_DBUser=zabbix" \
--env="ZS_DBPassword=my_password" \
-e ZS_CacheSize=128M \
-e ZW_ZBX_SERVER="0.0.0.0" \
-e ZJ_LISTEN_IP="0.0.0.0" \
-e ZJ_enabled="true" \
-e ZS_JavaGateway="127.0.0.1" \
-e ZS_JavaGatewayPort="10052" \
-e ZS_StartJavaPollers="1" \
-e ZS_StartPollers="2" \
-e ZS_StartPingers="1" \
-e ZS_StartPollersUnreachable="1" \
-e ZS_StartTrappers="1" \
-e ZS_StartDiscoverers="1" \
-p 80:80 -p 443:443 -p 10050:10050 -p 10051:10051 -p 10052:10052 \
--restart=always \
-v /etc/localtime:/etc/localtime:ro \
-d monitoringartist/dockbix-xxl:3.4.7
OS: Linux x 4.4.0-1052-aws #61-Ubuntu SMP Mon Feb 12 23:05:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Docker: 17.12.0-ce
You nginx uses \var\lib\nginx
as a cache dir, but my instance uses /var/cache/nginx
.
You can try to play with nginx config customization.
I have the same, or at least a very similar, error on my server.
My host is a Debian 9 system:
Linux docker-01.example.org 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux
Docker: Docker version 18.06.1-ce, build e68fc7a
I start the container using the following compose file:
version: '2'
services:
zabbix-db:
image: monitoringartist/zabbix-db-mariadb
volumes:
- /mnt/data-1/docker/appdata/zabbix-db/storage:/var/lib/mysql
- /mnt/data-1/docker/appdata/zabbix-db/backups:/backups
- /etc/localtime:/etc/localtime:ro
environment:
- MARIADB_USER=zabbix
- MARIADB_PASS=verysecurepassword123
zabbix-server:
image: monitoringartist/dockbix-xxl:latest
depends_on:
- zabbix-db
ports:
- "8080:80"
- "10051:10051"
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
- ZS_DBHost=zabbix-db
- ZS_DBUser=zabbix
- ZS_DBPassword=verysecurepassword123
$ docker info
Containers: 10
Running: 7
Paused: 0
Stopped: 3
Images: 19
Server Version: 18.06.1-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.0-8-amd64
Operating System: Debian GNU/Linux 9 (stretch)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.845GiB
Name: docker-01.example.org
ID: SITP:2VC4:OSY3:NBP6:GRGC:K23Z:77KU:WOJE:IKEW:PH3N:5WLV:JUJX
Docker Root Dir: /mnt/data-1/docker/images
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No swap limit support
$ docker inspect zabbix
{
"AppArmorProfile": "",
"Args": [],
"Config": {
"ArgsEscaped": true,
"AttachStderr": false,
"AttachStdin": false,
"AttachStdout": false,
"Cmd": [
"/config/bootstrap.sh"
],
"Domainname": "",
"Entrypoint": null,
"Env": [
"ZS_DBHost=zabbix-db",
"ZS_DBUser=zabbix",
"ZS_DBPassword=verysecurepassword123",
"affinity:container==58d46bafcb071480acbfd7e2ae5d6dbc6bdb2346ee91774428938377f9827ea5",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"ZABBIX_VERSION=tags/3.4.7",
"ZS_enabled=true",
"ZA_enabled=true",
"ZW_enabled=true",
"ZJ_enabled=false",
"ZP_enabled=false",
"SNMPTRAP_enabled=false",
"STATUS_PAGE_ALLOWED_IP=127.0.0.1",
"JAVA_HOME=/usr/lib/jvm/jre",
"JAVA=/usr/bin/java",
"PHP_date_timezone=UTC",
"PHP_max_execution_time=300",
"PHP_max_input_time=300",
"PHP_memory_limit=128M",
"PHP_error_reporting=E_ALL",
"ZS_LogType=console",
"ZS_PidFile=/tmp/zabbix_server.pid",
"ZS_User=zabbix",
"ZS_DBName=zabbix",
"ZS_DBPort=3306",
"ZS_AlertScriptsPath=/usr/local/share/zabbix/alertscripts",
"ZS_ExternalScripts=/usr/local/share/zabbix/externalscripts",
"ZS_SSLCertLocation=/usr/local/share/zabbix/ssl/certs",
"ZS_SSLKeyLocation=/usr/local/share/zabbix/ssl/keys",
"ZS_LoadModulePath=/usr/lib/zabbix/modules",
"ZS_JavaGateway=127.0.0.1",
"ZS_JavaGatewayPort=10052",
"ZS_SNMPTrapperFile=/tmp/zabbix_traps.tmp",
"ZW_ZBX_SERVER=localhost",
"ZW_ZBX_SERVER_PORT=10051",
"ZW_ZBX_SERVER_NAME=Zabbix Server",
"ZA_LogType=console",
"ZA_Hostname=Zabbix Server",
"ZA_User=zabbix",
"ZA_PidFile=/tmp/zabbix_agentd.pid",
"ZA_Server=127.0.0.1",
"ZA_ServerActive=127.0.0.1",
"ZJ_LISTEN_IP=0.0.0.0",
"ZJ_LISTEN_PORT=10052",
"ZJ_PID_FILE=/tmp/zabbix_java.pid",
"ZJ_START_POLLERS=5",
"ZJ_TIMEOUT=3",
"ZJ_LogLevel=error",
"ZJ_TCP_TIMEOUT=3000",
"ZP_LogType=console",
"ZP_DBHost=zabbixproxy.db",
"ZP_DBName=zabbix",
"ZP_DBUser=zabbix",
"ZP_DBPassword=zabbix",
"ZP_User=zabbix",
"XXL_searcher=true",
"XXL_updatechecker=true",
"XXL_zapix=false",
"XXL_grapher=false",
"XXL_api=true",
"XXL_apiuser=Admin",
"XXL_apipass=zabbix",
"XXL_analytics=true",
"TERM=xterm"
],
"ExposedPorts": {
"10051/tcp": {},
"10052/tcp": {},
"162/udp": {},
"80/tcp": {}
},
"Hostname": "e6bd073de803",
"Image": "monitoringartist/dockbix-xxl:latest",
"Labels": {
"build-date": "20180302",
"com.docker.compose.config-hash": "1d4768ec517bbc8f01d6e7b28257b9c5e95b2933044df28fbdc7ee08f1b5ab05",
"com.docker.compose.container-number": "1",
"com.docker.compose.oneoff": "False",
"com.docker.compose.project": "compose",
"com.docker.compose.service": "zabbix-server",
"com.docker.compose.version": "1.21.0",
"license": "GPLv2",
"maintainer": "Jan Garaj <info@monitoringartist.com>",
"name": "CentOS Base Image",
"vendor": "CentOS"
},
"OnBuild": null,
"OpenStdin": false,
"StdinOnce": false,
"Tty": false,
"User": "",
"Volumes": {
"/etc/custom-config": {},
"/etc/localtime": {},
"/etc/openldap/": {},
"/etc/snmp": {},
"/usr/lib/zabbix/modules": {},
"/usr/local/share/zabbix/alertscripts": {},
"/usr/local/share/zabbix/externalscripts": {},
"/usr/local/share/zabbix/ssl/certs": {},
"/usr/local/share/zabbix/ssl/keys": {},
"/usr/share/snmp/mibs": {}
},
"WorkingDir": ""
},
"Created": "2018-09-14T14:03:57.576131177Z",
"Driver": "overlay2",
"ExecIDs": [
"332dd088efd202461f8a267b57ae49ce183bec13664a0e7cc5ce926b76336e31"
],
"GraphDriver": {
"Data": {
"LowerDir": "/mnt/data-1/docker/images/overlay2/0ba10a74c60519ff38ae6e8411c012ef34559e5e518161190ca58917c92d75e9-init/diff:/mnt/data-1/docker/images/overlay2/5f579a1a9c3a9983be54412b9e22c4a2ca216e5ac25cafa86769de26f7d966dc/diff:/mnt/data-1/docker/images/overlay2/ed56c44f71936e27cc34e25491e4f20423ca398e57e7168d24d97cb08ac12ecc/diff:/mnt/data-1/docker/images/overlay2/87095caa2a2afc9be7da460c6790e380c6956230d49e2aff0bd59efa5114bf14/diff:/mnt/data-1/docker/images/overlay2/81fafb9862771cc9832769fe6898c4aa2fed039fe05ed06bb2c94cbb4bc1699f/diff:/mnt/data-1/docker/images/overlay2/c1706170f67c7dd74d992a396c42fbc2b98f74b6e52d1b4bdfacfc63fd16d50e/diff:/mnt/data-1/docker/images/overlay2/29c04a5b32426f78ffe12c045f8c30cde26c5f8389cf281d24e41499064c4ab3/diff:/mnt/data-1/docker/images/overlay2/1d36a747d0e15dd97c1b68c39dc6b062ec9b38709cf3acb5ccbd0374d23ffdf2/diff",
"MergedDir": "/mnt/data-1/docker/images/overlay2/0ba10a74c60519ff38ae6e8411c012ef34559e5e518161190ca58917c92d75e9/merged",
"UpperDir": "/mnt/data-1/docker/images/overlay2/0ba10a74c60519ff38ae6e8411c012ef34559e5e518161190ca58917c92d75e9/diff",
"WorkDir": "/mnt/data-1/docker/images/overlay2/0ba10a74c60519ff38ae6e8411c012ef34559e5e518161190ca58917c92d75e9/work"
},
"Name": "overlay2"
},
"HostConfig": {
"AutoRemove": false,
"Binds": [
"/etc/localtime:/etc/localtime:ro",
"702765813f21142be43f1ade6728cabd1ca977a0376c86fc271105fa96f8a292:/usr/local/share/zabbix/ssl/keys:rw",
"9e8da17e46a3456ec35d002732498837e71b787caffa51c1d0af1e52b2af1c7f:/usr/local/share/zabbix/ssl/certs:rw",
"ef89d895cf8370d9ff6f8111deed061b1f7dc2de85520ff6f6b02eb3b401af0a:/usr/lib/zabbix/modules:rw",
"71b695cbf4e7cbaabeafc4cd73587c986e54d5d8d988a185a2bd7af00dedf052:/usr/share/snmp/mibs:rw",
"edee0f2c59de039adbbcff97b4533b1967e13211ecd4747d8433e02aae416420:/etc/custom-config:rw",
"7dd9830b891d282f742d5af2ffd2a462c072349438db9d863b698732e95fe072:/etc/openldap:rw",
"5f8263b5af44e4842ef8d8f9ea743517f17f1810c1d3beaae9355267d5d3d63e:/etc/snmp:rw",
"ad5461ec95568892f0531a5622b4eb28f0e1e416b954fe51a1a41be6c51880cf:/usr/local/share/zabbix/externalscripts:rw",
"fda049d0befd06d5b12da32f0dafbdc776492656038c43a41e0b4cc7a1602002:/usr/local/share/zabbix/alertscripts:rw"
],
"BlkioDeviceReadBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceWriteIOps": null,
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"CapAdd": null,
"CapDrop": null,
"Cgroup": "",
"CgroupParent": "",
"ConsoleSize": [
0,
0
],
"ContainerIDFile": "",
"CpuCount": 0,
"CpuPercent": 0,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpuShares": 0,
"CpusetCpus": "",
"CpusetMems": "",
"DeviceCgroupRules": null,
"Devices": null,
"DiskQuota": 0,
"Dns": null,
"DnsOptions": null,
"DnsSearch": null,
"ExtraHosts": null,
"GroupAdd": null,
"IOMaximumBandwidth": 0,
"IOMaximumIOps": 0,
"IpcMode": "shareable",
"Isolation": "",
"KernelMemory": 0,
"Links": null,
"LogConfig": {
"Config": {},
"Type": "json-file"
},
"MaskedPaths": [
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"Memory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"NanoCpus": 0,
"NetworkMode": "compose_default",
"OomKillDisable": false,
"OomScoreAdj": 0,
"PidMode": "",
"PidsLimit": 0,
"PortBindings": {
"10051/tcp": [
{
"HostIp": "",
"HostPort": "10051"
}
],
"80/tcp": [
{
"HostIp": "",
"HostPort": "8080"
}
]
},
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyPaths": [
"/proc/asound",
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
],
"ReadonlyRootfs": false,
"RestartPolicy": {
"MaximumRetryCount": 0,
"Name": ""
},
"Runtime": "runc",
"SecurityOpt": null,
"ShmSize": 67108864,
"UTSMode": "",
"Ulimits": null,
"UsernsMode": "",
"VolumeDriver": "",
"VolumesFrom": []
},
"HostnamePath": "/mnt/data-1/docker/images/containers/e6bd073de803ac8d5cb70469e9b6b638992989404949fa2aa3397c22239691a1/hostname",
"HostsPath": "/mnt/data-1/docker/images/containers/e6bd073de803ac8d5cb70469e9b6b638992989404949fa2aa3397c22239691a1/hosts",
"Id": "e6bd073de803ac8d5cb70469e9b6b638992989404949fa2aa3397c22239691a1",
"Image": "sha256:84d48002c9c6ddc5bd4065013124e154a30e5db42cc066bb9146ebf2dc7ea611",
"LogPath": "/mnt/data-1/docker/images/containers/e6bd073de803ac8d5cb70469e9b6b638992989404949fa2aa3397c22239691a1/e6bd073de803ac8d5cb70469e9b6b638992989404949fa2aa3397c22239691a1-json.log",
"MountLabel": "",
"Mounts": [
{
"Destination": "/usr/lib/zabbix/modules",
"Driver": "local",
"Mode": "rw",
"Name": "ef89d895cf8370d9ff6f8111deed061b1f7dc2de85520ff6f6b02eb3b401af0a",
"Propagation": "",
"RW": true,
"Source": "/mnt/data-1/docker/images/volumes/ef89d895cf8370d9ff6f8111deed061b1f7dc2de85520ff6f6b02eb3b401af0a/_data",
"Type": "volume"
},
{
"Destination": "/etc/openldap",
"Driver": "local",
"Mode": "rw",
"Name": "7dd9830b891d282f742d5af2ffd2a462c072349438db9d863b698732e95fe072",
"Propagation": "",
"RW": true,
"Source": "/mnt/data-1/docker/images/volumes/7dd9830b891d282f742d5af2ffd2a462c072349438db9d863b698732e95fe072/_data",
"Type": "volume"
},
{
"Destination": "/etc/snmp",
"Driver": "local",
"Mode": "rw",
"Name": "5f8263b5af44e4842ef8d8f9ea743517f17f1810c1d3beaae9355267d5d3d63e",
"Propagation": "",
"RW": true,
"Source": "/mnt/data-1/docker/images/volumes/5f8263b5af44e4842ef8d8f9ea743517f17f1810c1d3beaae9355267d5d3d63e/_data",
"Type": "volume"
},
{
"Destination": "/etc/localtime",
"Mode": "ro",
"Propagation": "rprivate",
"RW": false,
"Source": "/etc/localtime",
"Type": "bind"
},
{
"Destination": "/usr/local/share/zabbix/ssl/certs",
"Driver": "local",
"Mode": "rw",
"Name": "9e8da17e46a3456ec35d002732498837e71b787caffa51c1d0af1e52b2af1c7f",
"Propagation": "",
"RW": true,
"Source": "/mnt/data-1/docker/images/volumes/9e8da17e46a3456ec35d002732498837e71b787caffa51c1d0af1e52b2af1c7f/_data",
"Type": "volume"
},
{
"Destination": "/etc/custom-config",
"Driver": "local",
"Mode": "rw",
"Name": "edee0f2c59de039adbbcff97b4533b1967e13211ecd4747d8433e02aae416420",
"Propagation": "",
"RW": true,
"Source": "/mnt/data-1/docker/images/volumes/edee0f2c59de039adbbcff97b4533b1967e13211ecd4747d8433e02aae416420/_data",
"Type": "volume"
},
{
"Destination": "/usr/local/share/zabbix/externalscripts",
"Driver": "local",
"Mode": "rw",
"Name": "ad5461ec95568892f0531a5622b4eb28f0e1e416b954fe51a1a41be6c51880cf",
"Propagation": "",
"RW": true,
"Source": "/mnt/data-1/docker/images/volumes/ad5461ec95568892f0531a5622b4eb28f0e1e416b954fe51a1a41be6c51880cf/_data",
"Type": "volume"
},
{
"Destination": "/usr/local/share/zabbix/alertscripts",
"Driver": "local",
"Mode": "rw",
"Name": "fda049d0befd06d5b12da32f0dafbdc776492656038c43a41e0b4cc7a1602002",
"Propagation": "",
"RW": true,
"Source": "/mnt/data-1/docker/images/volumes/fda049d0befd06d5b12da32f0dafbdc776492656038c43a41e0b4cc7a1602002/_data",
"Type": "volume"
},
{
"Destination": "/usr/local/share/zabbix/ssl/keys",
"Driver": "local",
"Mode": "rw",
"Name": "702765813f21142be43f1ade6728cabd1ca977a0376c86fc271105fa96f8a292",
"Propagation": "",
"RW": true,
"Source": "/mnt/data-1/docker/images/volumes/702765813f21142be43f1ade6728cabd1ca977a0376c86fc271105fa96f8a292/_data",
"Type": "volume"
},
{
"Destination": "/usr/share/snmp/mibs",
"Driver": "local",
"Mode": "rw",
"Name": "71b695cbf4e7cbaabeafc4cd73587c986e54d5d8d988a185a2bd7af00dedf052",
"Propagation": "",
"RW": true,
"Source": "/mnt/data-1/docker/images/volumes/71b695cbf4e7cbaabeafc4cd73587c986e54d5d8d988a185a2bd7af00dedf052/_data",
"Type": "volume"
}
],
"Name": "/compose_zabbix-server_1",
"NetworkSettings": {
"Bridge": "",
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"HairpinMode": false,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"MacAddress": "",
"Networks": {
"compose_default": {
"Aliases": [
"e6bd073de803",
"zabbix-server"
],
"DriverOpts": null,
"EndpointID": "571c6a6329b5e63840c0c1f9bc19594a15e27650be7d5bb38b5cac3667c83da4",
"Gateway": "172.18.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAMConfig": null,
"IPAddress": "172.18.0.8",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"Links": null,
"MacAddress": "02:42:ac:12:00:08",
"NetworkID": "fc341aafa748f3c145eda94825a94db324de9147302fa4591672479ed2576121"
}
},
"Ports": {
"10051/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "10051"
}
],
"10052/tcp": null,
"162/udp": null,
"80/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "8080"
}
]
},
"SandboxID": "45e22a614f76b67478f01d4f6e185c7f309c899dc73aa79c3a9e80f2c2dba8d4",
"SandboxKey": "/var/run/docker/netns/45e22a614f76",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null
},
"Path": "/config/bootstrap.sh",
"Platform": "linux",
"ProcessLabel": "",
"ResolvConfPath": "/mnt/data-1/docker/images/containers/e6bd073de803ac8d5cb70469e9b6b638992989404949fa2aa3397c22239691a1/resolv.conf",
"RestartCount": 0,
"State": {
"Dead": false,
"Error": "",
"ExitCode": 0,
"FinishedAt": "0001-01-01T00:00:00Z",
"OOMKilled": false,
"Paused": false,
"Pid": 8060,
"Restarting": false,
"Running": true,
"StartedAt": "2018-09-14T14:03:58.114496862Z",
"Status": "running"
}
}
Hello,
I don't know if this is a Dockbix-xxl issue or a Zabbix problem, but I am regularly getting errors in the UI where elements refuse to load, and it cripples the ability to use Zabbix. I've attached a screenshot of the Chrome dev tools console.