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

My log usage is now suddenly at 100%. After some investigation, I believe this is the log spamming thats causing this:

 

Mar  4 05:37:20 rima-server nginx: 2022/03/04 05:37:20 [error] 11170#11170: shpool alloc failed
Mar  4 05:37:20 rima-server nginx: 2022/03/04 05:37:20 [error] 11170#11170: nchan: Out of shared memory while allocating message of size 5614. Increase nchan_max_reserved_memory.
Mar  4 05:37:20 rima-server nginx: 2022/03/04 05:37:20 [error] 11170#11170: *14051935 nchan: error publishing message (HTTP status code 500), client: unix:, server: , request: "POST /pub/shares?buffer_length=1 HTTP/1.1", host: "localhost"
Mar  4 05:37:20 rima-server nginx: 2022/03/04 05:37:20 [error] 11170#11170: MEMSTORE:00: can't create shared message for channel /shares
Mar  4 05:37:21 rima-server nginx: 2022/03/04 05:37:21 [crit] 11170#11170: ngx_slab_alloc() failed: no memory
Mar  4 05:37:21 rima-server nginx: 2022/03/04 05:37:21 [error] 11170#11170: shpool alloc failed
Mar  4 05:37:21 rima-server nginx: 2022/03/04 05:37:21 [error] 11170#11170: nchan: Out of shared memory while allocating message of size 5861. Increase nchan_max_reserved_memory.
Mar  4 05:37:21 rima-server nginx: 2022/03/04 05:37:21 [error] 11170#11170: *14051937 nchan: error publishing message (HTTP status code 500), client: unix:, server: , request: "POST /pub/disks?buffer_length=1 HTTP/1.1", host: "localhost"
Mar  4 05:37:21 rima-server nginx: 2022/03/04 05:37:21 [error] 11170#11170: MEMSTORE:00: can't create shared message for channel /disks
Mar  4 05:37:22 rima-server nginx: 2022/03/04 05:37:22 [crit] 11170#11170: ngx_slab_alloc() failed: no memory
Mar  4 05:37:22 rima-server nginx: 2022/03/04 05:37:22 [error] 11170#11170: shpool alloc failed
Mar  4 05:37:22 rima-server nginx: 2022/03/04 05:37:22 [error] 11170#11170: nchan: Out of shared memory while allocating message of size 5861. Increase nchan_max_reserved_memory.

 

(This keeps being spammed).

 

I attached the logs, what is the best way to free up log space and prevent this from happening again?

 

 

rima-server-diagnostics-20220306-2000.zip

  • Community Expert

Simplest and best way to clear logs is rebooting. Not sure what caused it.

 

Feb 12 04:40:05 rima-server root: Fix Common Problems: Warning: vfio.pci.plg Not Compatible with unRaid version 6.9.2

 

  • 5 weeks later...
  • Community Expert

Generally no, but there is always a chance that I have a browser window open on something.

 

I don't think so though. not currently

 

  • 4 months later...

Yeah, been seeing this problem too recently filling up the log space.

11 minutes ago, trurl said:

If you want help post diagnostics

I would be happy to do so, but I am unable to access the dashboard and the diagnostics script doesn't look like it is cli friendly.  The dashboard is the only impacted feature, for me at least.  If there's anything I can provide please let me know, but the next step for me is an orderly shutdown and restart.  I've already restarted the applicable services.  The nginx log had built up 30GB of the above and has done so before.  Unfortunately, I truncated the log last night so my reply wasn't expecting much in the way of help -- just that I've seen the problem before as well

2022/08/27 04:33:55 [info] 659#659: Using 131072KiB of shared memory for nchan in /etc/nginx/nginx.conf:160
2022/08/27 04:44:01 [info] 16302#16302: Using 131072KiB of shared memory for nchan in /etc/nginx/nginx.conf:160
 

  • Community Expert
1 hour ago, borland502 said:

diagnostics script doesn't look like it is cli friendly

Don't know what you mean by that. The word diagnostics, in this post and every other post where it appears, is a link to instructions for getting the diagnostics. Those instructions explain how to get them, including how to get them from the command line

On 8/27/2022 at 11:05 AM, trurl said:

Don't know what you mean by that. The word diagnostics, in this post and every other post where it appears, is a link to instructions for getting the diagnostics. Those instructions explain how to get them, including how to get them from the command line

😊

 

And so it does.  I apologize.  I missed the line.  The script had been hanging on me and I thought it depended on the ui part (/usr/bin/php -q /usr/local/sbin/diagnostics).  If it completes in the next few hours I'll post it here, but otherwise I'll assume my problem to be php related as everything else about the system is humming along fine.  

Php processes are running, including the script, so maybe I'm just underestimating the time.  It'd not be the first time impatience has made me act foolish.

Edit: I pulled the plug after 6 hours

Edited by borland502

  • Community Expert

Diagnostics should complete in only a few minutes at most.

 

What do you get from the command line with this?

df -h

 

3 hours ago, trurl said:

Diagnostics should complete in only a few minutes at most.

 

What do you get from the command line with this?

df -h

 

Filesystem      Size  Used Avail Use% Mounted on
rootfs           16G  2.5G   14G  16% /
tmpfs            32M  1.8M   31M   6% /run
/dev/sdh1        15G  1.3G   14G   9% /boot
overlay          16G  2.5G   14G  16% /lib/firmware
overlay          16G  2.5G   14G  16% /lib/modules
devtmpfs        8.0M     0  8.0M   0% /dev
tmpfs            16G  8.0K   16G   1% /dev/shm
cgroup_root     8.0M     0  8.0M   0% /sys/fs/cgroup
tmpfs           128M   24M  105M  19% /var/log
tmpfs           1.0M     0  1.0M   0% /mnt/disks
tmpfs           1.0M  1.0M     0 100% /mnt/remotes
tmpfs           1.0M     0  1.0M   0% /mnt/rootshare
/dev/md1        233G   31G  203G  14% /mnt/disk1
/dev/md2        3.7T  1.6T  2.1T  44% /mnt/disk2
/dev/md3        3.7T  2.0T  1.7T  55% /mnt/disk3
/dev/md4        5.5T  2.0T  3.6T  36% /mnt/disk4
/dev/md5        4.6T   33G  4.6T   1% /mnt/disk5
/dev/sdi1       932G   88G  843G  10% /mnt/home
/dev/sdk1       932G  231G  701G  25% /mnt/media
/dev/nvme0n1p1  477G  324G  153G  69% /mnt/nvme_win_cache
/dev/sdl1       466G  6.8G  458G   2% /mnt/var
shfs             18T  5.6T   12T  32% /mnt/user0
shfs             18T  5.6T   12T  32% /mnt/user
/dev/loop2      500G   16G  482G   4% /var/lib/docker
/dev/loop3      1.0G  4.5M  904M   1% /etc/libvirt
tmpfs           3.2G     0  3.2G   0% /run/user/0

 

  • Community Expert
5 hours ago, borland502 said:

I pulled the plug after 6 hours

So those results don't tell us anything.

 

Can you get diagnostics now?

23 hours ago, trurl said:

So those results don't tell us anything.

 

Can you get diagnostics now?

The dh command was done before a reboot, but still no joy on the diagnostics run -- it still freezes.  These diags may be of little help, but were taken 9 days ago when I was looking through the /boot/logs dir

merel-diagnostics-20220820-1443.zip

Figured it out.  User error naturally, but the problem was I'd created a bad SSL certificate ... or rather untrusted.  But since the UI didn't die until days after with no reboot I didn't make the obvious connection.  Anyway, thank you for your patience and questions.

  • 9 months later...
On 8/29/2022 at 7:03 PM, borland502 said:

Figured it out.  User error naturally, but the problem was I'd created a bad SSL certificate ... or rather untrusted.  But since the UI didn't die until days after with no reboot I didn't make the obvious connection.  Anyway, thank you for your patience and questions.

I'm seeing the same issue and I think this might be my problem. What cert did you remove or how did you resolve?

 

I have self signed .pem in /boot/config/ssl/certs
(Self-signed or user-provided certificate)

  • 2 months later...
  • 2 weeks later...

Are there any stale browser tabs on any device still open?  Close them all down

On 10/6/2023 at 8:09 AM, Squid said:

Are there any stale browser tabs on any device still open?  Close them all down

I do keep a browser open, but will close it. Didn't think this would be the issue. Is there a docker to check on the server without having the browser open all the time? I was thinking homarr. I also have some notifications going to my discord.

58 minutes ago, Squid said:

Netdata

Thanks

  • 2 months later...

I have this problem cropping up on a regular basis.  It seems like it may occur when there are stale browsers open, but is that the expected behvaiour?

 

In other words, is this a bug or a feature?  And if it is a bug, which it appears to be, is it being addressed?

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.