NGINX failed to start: no memory on Raspi5 NVMe 8GB RAM
robig opened this issue · 1 comments
Problem/Motivation
I moved from my Raspberry Pi 4 installation to a new Raspberry Pi 5 8GB with NVMe SSD by installing a new Debian 12, installing HASS and restoring from backup.
Everything works fine, except for influxdb.
Expected behavior
Influxdb can be installed and started from HASS Adons and starts up correctly.
Actual behavior
Influxdb will not come up, but die during boot up:
2024-05-14T06:20:13.321205000Z [08:20:13] INFO: Starting the InfluxDB...
2024-05-14T06:20:23.458425000Z [08:20:23] INFO: Starting the Kapacitor
2024-05-14T06:20:23.459256000Z [08:20:23] INFO: Starting Chronograf...
2024-05-14T06:20:23.520432000Z
2024-05-14T06:20:23.520606000Z '##:::'##::::'###::::'########:::::'###:::::'######::'####:'########::'#######::'########::
2024-05-14T06:20:23.520664000Z ##::'##::::'## ##::: ##.... ##:::'## ##:::'##... ##:. ##::... ##..::'##.... ##: ##.... ##:
2024-05-14T06:20:23.520709000Z ##:'##::::'##:. ##:: ##:::: ##::'##:. ##:: ##:::..::: ##::::: ##:::: ##:::: ##: ##:::: ##:
2024-05-14T06:20:23.520758000Z #####::::'##:::. ##: ########::'##:::. ##: ##:::::::: ##::::: ##:::: ##:::: ##: ########::
2024-05-14T06:20:23.520796000Z ##. ##::: #########: ##.....::: #########: ##:::::::: ##::::: ##:::: ##:::: ##: ##.. ##:::
2024-05-14T06:20:23.520833000Z ##:. ##:: ##.... ##: ##:::::::: ##.... ##: ##::: ##:: ##::::: ##:::: ##:::: ##: ##::. ##::
2024-05-14T06:20:23.520867000Z ##::. ##: ##:::: ##: ##:::::::: ##:::: ##:. ######::'####:::: ##::::. #######:: ##:::. ##:
2024-05-14T06:20:23.520902000Z ..::::..::..:::::..::..:::::::::..:::::..:::......:::....:::::..::::::.......:::..:::::..::
2024-05-14T06:20:23.520941000Z
2024-05-14T06:20:23.520969000Z 2024/05/14 08:20:23 Using configuration at: /etc/kapacitor/kapacitor.conf
2024-05-14T06:20:28.337284000Z time="2024-05-14T08:20:28+02:00" level=info msg="Reporting usage stats" component=usage freq=24h reporting_addr="https://usage.influxdata.com" stats="os,arch,version,cluster_id,uptime"
2024-05-14T06:20:28.337687000Z time="2024-05-14T08:20:28+02:00" level=info msg="Serving chronograf at http://127.0.0.1:8889" component=server
2024-05-14T06:20:28.834316000Z [08:20:28] INFO: Starting NGINX...
2024-05-14T06:20:28.886921000Z 2024/05/14 08:20:28 [crit] 344#344: ngx_slab_alloc() failed: no memory
2024-05-14T06:20:28.904783000Z [08:20:28] WARNING: NGINX crashed, halting add-on
2024-05-14T06:20:28.907286000Z [08:20:28] INFO: NGINX stopped, restarting...
2024-05-14T06:20:28.907826000Z s6-rc: info: service legacy-services: stopping
2024-05-14T06:20:28.910951000Z [tcp] 2024/05/14 08:20:28 tcp.Mux: Listener at 127.0.0.1:8088 failed failed to accept a connection, closing all listeners - accept tcp 127.0.0.1:8088: use of closed network connection
2024-05-14T06:20:28.934121000Z [08:20:28] INFO: Chronograf stopped, restarting...
2024-05-14T06:20:28.934371000Z [08:20:28] INFO: Kapacitor stopped, restarting...
2024-05-14T06:20:28.934413000Z [08:20:28] INFO: InfluxDB stopped, restarting...
2024-05-14T06:20:28.935092000Z s6-rc: info: service legacy-services successfully stopped
2024-05-14T06:20:28.935361000Z s6-rc: info: service legacy-cont-init: stopping
2024-05-14T06:20:28.939048000Z s6-rc: info: service legacy-cont-init successfully stopped
2024-05-14T06:20:28.939376000Z s6-rc: info: service fix-attrs: stopping
2024-05-14T06:20:28.939492000Z s6-rc: info: service base-addon-timezone: stopping
2024-05-14T06:20:28.939579000Z s6-rc: info: service base-addon-log-level: stopping
2024-05-14T06:20:28.940539000Z s6-rc: info: service fix-attrs successfully stopped
2024-05-14T06:20:28.940675000Z s6-rc: info: service base-addon-timezone successfully stopped
2024-05-14T06:20:28.940770000Z s6-rc: info: service base-addon-log-level successfully stopped
2024-05-14T06:20:28.940946000Z s6-rc: info: service base-addon-banner: stopping
2024-05-14T06:20:28.941859000Z s6-rc: info: service base-addon-banner successfully stopped
2024-05-14T06:20:28.942220000Z s6-rc: info: service s6rc-oneshot-runner: stopping
2024-05-14T06:20:28.943245000Z s6-rc: info: service s6rc-oneshot-runner successfully stopped
Steps to reproduce
- Must be related to Raspi5 or NVMe storage?
- Did already try to do a clean install of this addon. Same result.
Proposed changes
Please help :)
PS: whats that nginx used for?
Please see #321
This is likely to do with the changes in memory allocation with Bookworm on a Pi5. although there possibly could be changes to the addon to help with this, the user base for running a Supervised install on a Pi5 is minimal. There don't appear to have been any reports of this under the HA OS.
I'm going to close this out, as it's a symptom of the OS, not the addon.