Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

  • 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

 

  • 2 weeks later...

So for anyone else who stumbles upon this... the script on page 6 of this thread:

 is a work around...

 

Anyone have any idea what's causing this?

  • 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

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.

  • 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. 

  • 3 months later...

Is this still happening with 6.12.11? I believe I'm seeing this to but not to the degree others have posted.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.