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

NPM running out of resources #326

Open
prinler opened this issue Aug 23, 2024 · 0 comments
Open

NPM running out of resources #326

prinler opened this issue Aug 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@prinler
Copy link

prinler commented Aug 23, 2024

Current Behavior

NPM stops working, no errors on logs in unraid. Inside of appdata/logs there is a fallback_error.log expressing
512 worker_connections are not enough, reusing connections" over and over.

Expected Behavior

20 seconds after reboot.

Steps To Reproduce

Rebooting, and waiting.

Environment

  • OS: Unraid
  • OS version: 6:12:10
  • CPU:Intel
  • Docker version:
  • Device model:
  • Browser/OS :chrome

Container creation

I used the community apps.
"NginxProxyManager by jlesage"

Container log

[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-3/fullchain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-4/privkey6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-4/cert6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-4/chain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-4/fullchain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-5/privkey6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-5/cert6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-5/chain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-5/fullchain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-6/privkey6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-6/cert6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-6/chain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-6/fullchain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-7/privkey6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-7/cert6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-7/chain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-7/fullchain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-8/privkey6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-8/cert6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-8/chain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-8/fullchain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-9/privkey6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-9/cert6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-9/chain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-9/fullchain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-10/privkey6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-10/cert6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-10/chain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-10/fullchain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-11/privkey6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-11/cert6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-11/chain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-11/fullchain6.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-12/privkey5.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-12/cert5.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-12/chain5.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-12/fullchain5.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-23/cert1.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-23/privkey1.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-23/chain1.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-23/fullchain1.pem.
[cert_cleanup] 52 file(s) kept.
[cert_cleanup] 0 file(s) deleted.
[app         ] [8/23/2024] [2:07:38 PM] [Migrate  ] › ℹ  info      Current database version: none
[app         ] [8/23/2024] [2:07:38 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-1' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
[app         ] dns_cloudflare_api_token = q4s1QDIb0thaRVCfW0occ7V_9NYqmY4HwzOQzgYO' > '/etc/letsencrypt/credentials/credentials-1' && chmod 600 '/etc/letsencrypt/credentials/credentials-1'; }
[app         ] [8/23/2024] [2:07:38 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-2' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
[app         ] dns_cloudflare_api_token = q4s1QDIb0thaRVCfW0occ7V_9NYqmY4HwzOQzgYO' > '/etc/letsencrypt/credentials/credentials-2' && chmod 600 '/etc/letsencrypt/credentials/credentials-2'; }
[app         ] [8/23/2024] [2:07:38 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-3' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
[app         ] dns_cloudflare_api_token = q4s1QDIb0thaRVCfW0occ7V_9NYqmY4HwzOQzgYO' > '/etc/letsencrypt/credentials/credentials-3' && chmod 600 '/etc/letsencrypt/credentials/credentials-3'; }
[app         ] [8/23/2024] [2:07:38 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-4' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
[app         ] dns_cloudflare_api_token = q4s1QDIb0thaRVCfW0occ7V_9NYqmY4HwzOQzgYO' > '/etc/letsencrypt/credentials/credentials-4' && chmod 600 '/etc/letsencrypt/credentials/credentials-4'; }
[app         ] [8/23/2024] [2:07:38 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-5' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
[app         ] dns_cloudflare_api_token = q4s1QDIb0thaRVCfW0occ7V_9NYqmY4HwzOQzgYO' > '/etc/letsencrypt/credentials/credentials-5' && chmod 600 '/etc/letsencrypt/credentials/credentials-5'; }
[app         ] [8/23/2024] [2:07:38 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-6' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
[app         ] dns_cloudflare_api_token = jAO28qEczQoHKRi9eo_r4E4nqITTSSSFmLtvh0Oe' > '/etc/letsencrypt/credentials/credentials-6' && chmod 600 '/etc/letsencrypt/credentials/credentials-6'; }
[app         ] [8/23/2024] [2:07:38 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-7' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
[app         ] dns_cloudflare_api_token = jAO28qEczQoHKRi9eo_r4E4nqITTSSSFmLtvh0Oe' > '/etc/letsencrypt/credentials/credentials-7' && chmod 600 '/etc/letsencrypt/credentials/credentials-7'; }
[app         ] [8/23/2024] [2:07:38 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-8' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
[app         ] dns_cloudflare_api_token = jAO28qEczQoHKRi9eo_r4E4nqITTSSSFmLtvh0Oe' > '/etc/letsencrypt/credentials/credentials-8' && chmod 600 '/etc/letsencrypt/credentials/credentials-8'; }
[app         ] [8/23/2024] [2:07:38 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-9' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
[app         ] dns_cloudflare_api_token = jAO28qEczQoHKRi9eo_r4E4nqITTSSSFmLtvh0Oe' > '/etc/letsencrypt/credentials/credentials-9' && chmod 600 '/etc/letsencrypt/credentials/credentials-9'; }
[app         ] [8/23/2024] [2:07:38 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-10' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
[app         ] dns_cloudflare_api_token = jAO28qEczQoHKRi9eo_r4E4nqITTSSSFmLtvh0Oe' > '/etc/letsencrypt/credentials/credentials-10' && chmod 600 '/etc/letsencrypt/credentials/credentials-10'; }
[app         ] [8/23/2024] [2:07:38 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-11' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
[app         ] dns_cloudflare_api_token = jAO28qEczQoHKRi9eo_r4E4nqITTSSSFmLtvh0Oe' > '/etc/letsencrypt/credentials/credentials-11' && chmod 600 '/etc/letsencrypt/credentials/credentials-11'; }
[app         ] [8/23/2024] [2:07:38 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-12' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
[app         ] dns_cloudflare_api_token = q4s1QDIb0thaRVCfW0occ7V_9NYqmY4HwzOQzgYO' > '/etc/letsencrypt/credentials/credentials-12' && chmod 600 '/etc/letsencrypt/credentials/credentials-12'; }
[app         ] [8/23/2024] [2:07:38 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-23' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
[app         ] dns_cloudflare_api_token=4ewDgdcTOZ4l4luL4cXwng7M0atS7u1NAZ8MGkFE' > '/etc/letsencrypt/credentials/credentials-23' && chmod 600 '/etc/letsencrypt/credentials/credentials-23'; }
[app         ] [8/23/2024] [2:07:38 PM] [Certbot  ] › ▶  start     Installing cloudflare...
[app         ] [8/23/2024] [2:07:38 PM] [Global   ] › ⬤  debug     CMD: pip install --no-cache-dir cloudflare==2.19.* acme==$(certbot --version | grep -Eo '[0-9](\.[0-9]+)+') certbot-dns-cloudflare==$(certbot --version | grep -Eo '[0-9](\.[0-9]+)+')
[app         ] [8/23/2024] [2:07:51 PM] [Certbot  ] › ☒  complete  Installed cloudflare
[app         ] [8/23/2024] [2:07:51 PM] [Setup    ] › ℹ  info      Added Certbot plugins cloudflare
[app         ] [8/23/2024] [2:07:51 PM] [Setup    ] › ℹ  info      Logrotate Timer initialized
[app         ] [8/23/2024] [2:07:51 PM] [Global   ] › ⬤  debug     CMD: logrotate -s /config/logrotate.status /etc/logrotate.d/nginx-proxy-manager
[app         ] [8/23/2024] [2:07:52 PM] [Setup    ] › ℹ  info      Logrotate completed.
[app         ] [8/23/2024] [2:07:52 PM] [IP Ranges] › ℹ  info      Fetching IP Ranges from online services...
[app         ] [8/23/2024] [2:07:52 PM] [IP Ranges] › ℹ  info      Fetching https://ip-ranges.amazonaws.com/ip-ranges.json
[app         ] [8/23/2024] [2:07:52 PM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v4
[app         ] [8/23/2024] [2:07:52 PM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v6
[app         ] [8/23/2024] [2:07:52 PM] [SSL      ] › ℹ  info      Let's Encrypt Renewal Timer initialized
[app         ] [8/23/2024] [2:07:52 PM] [SSL      ] › ℹ  info      Renewing SSL certs expiring within 30 days ...
[app         ] [8/23/2024] [2:07:52 PM] [IP Ranges] › ℹ  info      IP Ranges Renewal Timer initialized
[app         ] [8/23/2024] [2:07:52 PM] [Global   ] › ℹ  info      Backend PID 675 listening on port 3000 ...
[app         ] [8/23/2024] [2:07:52 PM] [SSL      ] › ℹ  info      Completed SSL cert renew process
[app         ] [8/23/2024] [2:11:51 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/18.conf
[app         ] [8/23/2024] [2:11:51 PM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -t 
[app         ] [8/23/2024] [2:11:51 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[app         ] [8/23/2024] [2:11:51 PM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -s reload

Container inspect

root@Prinler:~# docker inspect NginxProxyManager
[
    {
        "Id": "1ea08f89c2148619f3eb5e5454a2a03c0fa1717dac59a4c3b0bfed99954c7375",
        "Created": "2024-08-19T17:25:33.822419459Z",
        "Path": "/init",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 24567,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2024-08-23T21:07:27.36265184Z",
            "FinishedAt": "2024-08-23T21:07:20.685410663Z"
        },
        "Image": "sha256:d018e76bbd40547b6de5de5e2149a4d7286bcd7c5e17c9d45a9285563d94c1c2",
        "ResolvConfPath": "/var/lib/docker/containers/1ea08f89c2148619f3eb5e5454a2a03c0fa1717dac59a4c3b0bfed99954c7375/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/1ea08f89c2148619f3eb5e5454a2a03c0fa1717dac59a4c3b0bfed99954c7375/hostname",
        "HostsPath": "/var/lib/docker/containers/1ea08f89c2148619f3eb5e5454a2a03c0fa1717dac59a4c3b0bfed99954c7375/hosts",
        "LogPath": "/var/lib/docker/containers/1ea08f89c2148619f3eb5e5454a2a03c0fa1717dac59a4c3b0bfed99954c7375/1ea08f89c2148619f3eb5e5454a2a03c0fa1717dac59a4c3b0bfed99954c7375-json.log",
        "Name": "/NginxProxyManager",
        "RestartCount": 0,
        "Driver": "btrfs",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/mnt/cache/appdata/NginxProxyManager:/config:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {
                    "max-file": "1",
                    "max-size": "50m"
                }
            },
            "NetworkMode": "bridge",
            "PortBindings": {
                "18443/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "18443"
                    }
                ],
                "1880/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "1880"
                    }
                ],
                "4443/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "4443"
                    }
                ],
                "7818/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "7818"
                    }
                ],
                "8181/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8181"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": true,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": [
                "label=disable"
            ],
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": [],
            "BlkioDeviceWriteBps": [],
            "BlkioDeviceReadIOps": [],
            "BlkioDeviceWriteIOps": [],
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": null,
            "ReadonlyPaths": null
        },
        "GraphDriver": {
            "Data": null,
            "Name": "btrfs"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/mnt/cache/appdata/NginxProxyManager",
                "Destination": "/config",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "1ea08f89c214",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "18443/tcp": {},
                "1880/tcp": {},
                "4443/tcp": {},
                "7818/tcp": {},
                "8080/tcp": {},
                "8181/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "USER_ID=99",
                "HOST_OS=Unraid",
                "HOST_HOSTNAME=Prinler",
                "HOST_CONTAINERNAME=NginxProxyManager",
                "GROUP_ID=100",
                "UMASK=0000",
                "APP_NICENESS=0",
                "DISABLE_IPV6=1",
                "TZ=America/Los_Angeles",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/base/sbin:/opt/base/bin",
                "ENV=/root/.docker_rc",
                "SUP_GROUP_IDS=",
                "LANG=en_US.UTF-8",
                "KEEP_APP_RUNNING=0",
                "INSTALL_PACKAGES=",
                "PACKAGES_MIRROR=",
                "CONTAINER_DEBUG=0"
            ],
            "Cmd": [
                "/init"
            ],
            "Image": "jlesage/nginx-proxy-manager",
            "Volumes": {
                "/config": {}
            },
            "WorkingDir": "/tmp",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {
                "net.unraid.docker.icon": "https://raw.githubusercontent.com/jlesage/docker-templates/master/jlesage/images/nginx-proxy-manager-icon.png",
                "net.unraid.docker.managed": "dockerman",
                "net.unraid.docker.webui": "http://[IP]:[PORT:8181]",
                "org.label-schema.description": "Docker container for Nginx Proxy Manager",
                "org.label-schema.name": "nginx-proxy-manager",
                "org.label-schema.schema-version": "1.0",
                "org.label-schema.vcs-url": "https://github.com/jlesage/docker-nginx-proxy-manager",
                "org.label-schema.version": "24.07.1"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "c61bf8f8fd96cb5df79c1ac987cfc5d763d0179757fb514a54014f45cab78549",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "18443/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "18443"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "18443"
                    }
                ],
                "1880/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "1880"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "1880"
                    }
                ],
                "4443/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "4443"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "4443"
                    }
                ],
                "7818/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "7818"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "7818"
                    }
                ],
                "8080/tcp": null,
                "8181/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "8181"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "8181"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/c61bf8f8fd96",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "1860cae427e9365621024e3d214a52a4ce7dc840c40b4e63d90ee57cbf258484",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.19",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:13",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "49237f31d118eae3fc09f751bc012b71432ffe1b80b9cb52922fe05d8f5fb062",
                    "EndpointID": "1860cae427e9365621024e3d214a52a4ce7dc840c40b4e63d90ee57cbf258484",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.19",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:13",
                    "DriverOpts": null
                }
            }
        }
    }
]
root@Prinler:~#

Anything else?

Here is the top part of the nginx.conf from inside of the container, this helped extend my crash to days and not seconds.
"# run nginx in foreground
daemon off;
pid /run/nginx/nginx.pid;
#user npm;

Set number of worker processes automatically based on number of CPU cores.

worker_processes 32768;

Enables the use of JIT for regular expressions to speed-up their processing.

pcre_jit on;

error_log /data/logs/fallback_error.log warn;

Includes files with directives to load dynamic modules.

include /etc/nginx/modules/*.conf;

Custom

include /data/nginx/custom/root_top[.]conf;

events {
include /data/nginx/custom/events[.]conf;
worker_connections 20000;
}

http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
server_tokens off;
tcp_nopush on;
tcp_nodelay on;
client_body_temp_path /var/tmp/nginx/body 1 2;
keepalive_timeout 90s;
proxy_connect_timeout 90s;
proxy_send_timeout 90s;
proxy_read_timeout 90s;
ssl_prefer_server_ciphers on;
gzip on;
proxy_ignore_client_abort off;
client_max_body_size 2000m;
server_names_hash_bucket_size 1024;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "";
proxy_cache off;
proxy_cache_path /var/lib/nginx/cache/public levels=1:2 keys_zone=public-cache:30m max_size=192m;
proxy_cache_path /var/lib/nginx/cache/private levels=1:2 keys_zone=private-cache:5m max_size=1024m;

    # Log format and fallback log file                                                                                                                                                                                                  
    include /etc/nginx/conf.d/include/log.conf;                                                                                                                                                                                         
  • /etc/nginx/nginx.conf 1/97 1%"
@prinler prinler added the bug Something isn't working label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant