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.

Out Of Memory errors detected

Featured Replies

Solved by Kansur

  • Community Expert

If it's a one time thing you can ignore, if it keeps happening try limiting more the RAM for VMs and/or docker containers, the problem is usually not just about not enough RAM but about fragmented RAM, alternatively a small swap file on disk might help, you can use the swapfile plugin:

 

https://forums.unraid.net/topic/109342-plugin-swapfile-for-691/

  • Author

It keeps happening, so it is not a one time thing unfortunately.  Th error message is coming minutes after startup, I would not think ram would be getting unduly fragmented so soon after boot.  Not sure what you mean by limiting more ram.  I am not currently running any VMs, just dockers.  The dashboard shows I am only using 10% of 32 gigs of ram.  I am about to install the swapfile plugin and will see how that does.

Screen Shot 2023-03-09 at 11.52.21 AM.png

  • Community Expert

It's very strange if it's happening immediately after boot, and with so much free RAM, but see if swap helps.

  • Author

Tried swap, it got filled up as well.  Looking at the different diagnostics syslogs I have taken each time, avahi-daemon is what is triggering the out of memory error each time and is then killed.  It appears to be for Apple Bonjour services, I use macs, but I do not know if this is needed, or what could be done to fix.

Untitled 2.png

Untitled.png

  • Community Expert

Everything should work without that, try adding these to your go file, after the emhttp line:


 

/etc/rc.d/rc.avahidaemon stop
/etc/rc.d/rc.avahidnsconfd stop


Then reboot.

  • Author

Unfortunately it did not fix it, still happens every time I boot up.  Just now it uses the swapfile before crapping out.  I have included my latest diagnostions for shits and giggles

tower-diagnostics-20230309-1603.zip

  • Author

My go file looks like this

 

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp &
/etc/rc.d/rc.avahidaemon stop
/etc/rc.d/rc.avahidnsconfd stop
modprobe i915
chmod -R 777 /dev/dri

  • Community Expert

So this time the oom-killer was invoke by php, suggesting avahi wasn't the problem, try booting in safe mode to see if you still have the runaway RAM issue.

  • Author

Had to go out of town, so sorry for the delay. I booted into safe mode and it did not kick up the error.  Of course the former parity drive i had just folded into the array decided to go tits up as soon as I left, so I get to deal with that as well

tower-diagnostics-20230313-2128.zip

  • Community Expert
7 hours ago, Kansur said:

Had to go out of town, so sorry for the delay. I booted into safe mode and it did not kick up the error. 

That suggests one of the installed plugin is the problem, remove one by one, or remove all and re-install one by one.

  • Author

Sorry for the delay again, I had to wait for a parity rebuild and then a large file transfer befor i could start rebooting the server willy-nilly.  Anyway, through the removal and adding of plugins and the culprit appears to be the unassigned devices plugin. 

 

You can see in the attached log files that right before avahi crashes out with an oom, unassigned devices throws some warnings while trying to do something with a local synology drive, not sure how or if that is related, I just know that I can boot fine and not get an out of memory error with every plugin installed, but as soon as I install the unassigned devices plugin it craps out.  And it will do it with or without the 2 unassigned devices addons.

 

Mar 17 15:17:10 Tower unassigned.devices: Warning: shell_exec(/sbin/arp -a 'ALFRED.local' 2>&1) took longer than 10s!
### [PREVIOUS LINE REPEATED 1 TIMES] ###
Mar 17 15:17:26 Tower unassigned.devices: Warning: shell_exec(/sbin/arp -a 'ALFRED' 2>&1) took longer than 10s!
Mar 17 15:17:36 Tower unassigned.devices: Warning: shell_exec(/sbin/arp -a 'ALFRED.local' 2>&1) took longer than 10s!
Mar 17 15:18:25 Tower kernel: avahi-daemon invoked oom-killer: gfp_mask=0x100dca(GFP_HIGHUSER_MOVABLE|__GFP_ZERO), order=0, oom_score_adj=0

tower-diagnostics-20230317-1518.zip

  • Author

Should I try upgrading to 6.11.5 and see if that helps?

  • Author

Reinstalled unassigned devices to shut up nginx, did not reboot.  Now it is spamming the log with:

 

Mar 17 16:08:11 Tower root: error: /plugins/unassigned.devices/UnassignedDevices.php: wrong csrf_token

tower-diagnostics-20230317-1608.zip

I'm not seeing anything that I can attribute to UD.  Although, this log entry is not necessarily a problem, I think I may have a resolution for the log entry:

Mar 17 15:17:00 Tower unassigned.devices: Warning: shell_exec(/sbin/arp -a 'ALFRED' 2>&1) took longer than 10s!

 

  • Author
  • Solution

After updating to the 2023.03.19 unassigned devices release I am no longer getting the out of memory error after reboots 

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.