/Var/Log is getting full - nchan: Out of shared memory while allocating message of size


Recommended Posts

Same problem here again. It's the second time in 7 days now and I need to restart before the log is full. Every goddamn second. Diagnostics attached.

 

Jan 10 19:31:30 UNRAID-Server nginx: 2024/01/10 19:31:30 [crit] 18760#18760: ngx_slab_alloc() failed: no memory
Jan 10 19:31:30 UNRAID-Server nginx: 2024/01/10 19:31:30 [error] 18760#18760: shpool alloc failed
Jan 10 19:31:30 UNRAID-Server nginx: 2024/01/10 19:31:30 [error] 18760#18760: nchan: Out of shared memory while allocating message of size 15621. Increase nchan_max_reserved_memory.
Jan 10 19:31:30 UNRAID-Server nginx: 2024/01/10 19:31:30 [error] 18760#18760: *1269271 nchan: error publishing message (HTTP status code 500), client: unix:, server: , request: "POST /pub/disks?buffer_length=1 HTTP/1.1", host: "localhost"
Jan 10 19:31:30 UNRAID-Server nginx: 2024/01/10 19:31:30 [error] 18760#18760: MEMSTORE:00: can't create shared message for channel /disks
Jan 10 19:31:32 UNRAID-Server nginx: 2024/01/10 19:31:32 [crit] 18760#18760: ngx_slab_alloc() failed: no memory
Jan 10 19:31:32 UNRAID-Server nginx: 2024/01/10 19:31:32 [error] 18760#18760: shpool alloc failed
Jan 10 19:31:32 UNRAID-Server nginx: 2024/01/10 19:31:32 [error] 18760#18760: nchan: Out of shared memory while allocating message of size 15621. Increase nchan_max_reserved_memory.
Jan 10 19:31:32 UNRAID-Server nginx: 2024/01/10 19:31:32 [error] 18760#18760: *1269275 nchan: error publishing message (HTTP status code 500), client: unix:, server: , request: "POST /pub/disks?buffer_length=1 HTTP/1.1", host: "localhost"
Jan 10 19:31:32 UNRAID-Server nginx: 2024/01/10 19:31:32 [error] 18760#18760: MEMSTORE:00: can't create shared message for channel /disks
Jan 10 19:31:33 UNRAID-Server nginx: 2024/01/10 19:31:33 [crit] 18760#18760: ngx_slab_alloc() failed: no memory
Jan 10 19:31:33 UNRAID-Server nginx: 2024/01/10 19:31:33 [error] 18760#18760: shpool alloc failed
Jan 10 19:31:33 UNRAID-Server nginx: 2024/01/10 19:31:33 [error] 18760#18760: nchan: Out of shared memory while allocating message of size 15621. Increase nchan_max_reserved_memory.
Jan 10 19:31:33 UNRAID-Server nginx: 2024/01/10 19:31:33 [error] 18760#18760: *1269279 nchan: error publishing message (HTTP status code 500), client: unix:, server: , request: "POST /pub/disks?buffer_length=1 HTTP/1.1", host: "localhost"
Jan 10 19:31:33 UNRAID-Server nginx: 2024/01/10 19:31:33 [error] 18760#18760: MEMSTORE:00: can't create shared message for channel /disks
Jan 10 19:31:34 UNRAID-Server nginx: 2024/01/10 19:31:34 [crit] 18760#18760: ngx_slab_alloc() failed: no memory
Jan 10 19:31:34 UNRAID-Server nginx: 2024/01/10 19:31:34 [error] 18760#18760: shpool alloc failed
Jan 10 19:31:34 UNRAID-Server nginx: 2024/01/10 19:31:34 [error] 18760#18760: nchan: Out of shared memory while allocating message of size 15621. Increase nchan_max_reserved_memory.
Jan 10 19:31:34 UNRAID-Server nginx: 2024/01/10 19:31:34 [error] 18760#18760: *1269281 nchan: error publishing message (HTTP status code 500), client: unix:, server: , request: "POST /pub/disks?buffer_length=1 HTTP/1.1", host: "localhost"
Jan 10 19:31:34 UNRAID-Server nginx: 2024/01/10 19:31:34 [error] 18760#18760: MEMSTORE:00: can't create shared message for channel /disks
Jan 10 19:31:35 UNRAID-Server nginx: 2024/01/10 19:31:35 [crit] 18760#18760: ngx_slab_alloc() failed: no memory
Jan 10 19:31:35 UNRAID-Server nginx: 2024/01/10 19:31:35 [error] 18760#18760: shpool alloc failed
Jan 10 19:31:35 UNRAID-Server nginx: 2024/01/10 19:31:35 [error] 18760#18760: nchan: Out of shared memory while allocating message of size 15621. Increase nchan_max_reserved_memory.
Jan 10 19:31:35 UNRAID-Server nginx: 2024/01/10 19:31:35 [error] 18760#18760: *1269285 nchan: error publishing message (HTTP status code 500), client: unix:, server: , request: "POST /pub/disks?buffer_length=1 HTTP/1.1", host: "localhost"
Jan 10 19:31:35 UNRAID-Server nginx: 2024/01/10 19:31:35 [error] 18760#18760: MEMSTORE:00: can't create shared message for channel /disks

 

I tried 

/etc/rc.d/rc.nginx restart

in the webterminal which closes after some time and the unRAID web interface never came back.

 

I guess it was because the terminal was closed and the command terminated. I logged in via SSH and saw that NGINX is not running and started it again with 

/etc/rc.d/rc.nginx start

 

Now the error is gone for a while but this is no solution.

unraid-server-diagnostics-20240110-1930.zip

Edited by sasbro97
Link to comment
  • 2 weeks later...

I have the same problem, apparently I get that message through Windows 11 VM, even checking Windows, after a while the memory becomes saturated, occupying 100% of the memory and the unraid log fills up.

 

Jan 24 00:19:55 NAS-NEURO nginx: 2024/01/24 00:19:55 [error] 10248#10248: nchan: Out of shared memory while allocating message of size 41958. Increase nchan_max_reserved_memory.
Jan 24 00:19:55 NAS-NEURO nginx: 2024/01/24 00:19:55 [error] 10248#10248: *1961026 nchan: error publishing message (HTTP status code 500), client: unix:, server: , request: "POST /pub/notify?buffer_length=1 HTTP/1.1", host: "localhost"
Jan 24 00:19:55 NAS-NEURO nginx: 2024/01/24 00:19:55 [error] 10248#10248: MEMSTORE:00: can't create shared message for channel /notify
Jan 24 00:19:58 NAS-NEURO nginx: 2024/01/24 00:19:58 [crit] 10248#10248: ngx_slab_alloc() failed: no memory
Jan 24 00:19:58 NAS-NEURO nginx: 2024/01/24 00:19:58 [error] 10248#10248: shpool alloc failed
Jan 24 00:19:58 NAS-NEURO nginx: 2024/01/24 00:19:58 [error] 10248#10248: nchan: Out of shared memory while allocating message of size 41958. Increase nchan_max_reserved_memory.
Jan 24 00:19:58 NAS-NEURO nginx: 2024/01/24 00:19:58 [error] 10248#10248: *1961059 nchan: error publishing message (HTTP status code 500), client: unix:, server: , request: "POST /pub/notify?buffer_length=1 HTTP/1.1", host: "localhost"
Jan 24 00:19:58 NAS-NEURO nginx: 2024/01/24 00:19:58 [error] 10248#10248: MEMSTORE:00: can't create shared message for channel /notify
Jan 24 00:42:53 NAS-NEURO mcelog: Running trigger `bus-error-trigger' (reporter: bus)
Jan 24 00:42:53 NAS-NEURO kernel: mce: [Hardware Error]: Machine check events logged

 

Link to comment
  • 2 weeks later...
  • 1 month later...

unraid 6.12.8: When dashboard tab is open "long enough" this problem occurs. Log getting full and nginx crashing. For example "users" tab can be open as long as needed without problems. My diagnostics won't show more than others here - otherwise this bug should be fixed long time ago. I hope this is getting to the to-do list.

 

Unraid 6.12.3: No problems. I won't downgrade due many new features and bugfixes done between .3 and .8. 

Edited by hkduckr
typo
  • Like 1
Link to comment

Interesting.  Glad I found this thread.  I just did a server rebuild and upgraded from 6.9.2 to 6.12.8.  I thought I was running smooth, then woke up to this.  Looked at my phone and saw i left a tab open on Dashboard.  Kind of annoying, but glad it isnt anything wrong with the server/build.

Link to comment
  • 4 weeks later...

New update....it looks like this is occurring for me with ANY browser page left open. I like to leave my main up, but I am noticing sometimes I come back and see my logs full of this. I have also woken up to my server being off. Seems these logs are filling to the point it crashes the server. Hopefully this is resolved in a future version. 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.