jumpsmm7 / Asuswrt-Merlin-AdGuardHome-Installer

The Official Installer of AdGuardHome for Asuswrt-Merlin
GNU General Public License v3.0
143 stars 15 forks source link

fatal error: runtime: cannot allocate memory when starting installer script #216

Closed nerdinary closed 6 months ago

nerdinary commented 7 months ago

I already have AdGuard installed and running. I wanted to run the script to see if there are any updates. Here is what I get:

> curl -L -s -k -O https://raw.githubusercontent.com/jumpsmm7/Asuswrt-Merlin-AdGuardHome-Installer/master/insta
ller
> sh installer

 Info:  Detected RT-AX88U router.
 Info:  Detected Linux platform.
 Info:  Detected ARMv8 architecture.
 Info:  JFFS custom scripts and configs are already enabled.
 Info:  DNS Environment is Ready.
 Info:  New AI_VERSION=v1.7.4 Available!
 Info:  Run Option 1 of the Installer to upgrade Asuswrt-Merlin-AdGuardHome-Installer.
fatal error: runtime: cannot allocate memory

<snip>
...

I've attached the stacktrace that follows

stacktrace_merlin_adguard.txt

jumpsmm7 commented 7 months ago

I already have AdGuard installed and running. I wanted to run the script to see if there are any updates. Here is what I get:

> curl -L -s -k -O https://raw.githubusercontent.com/jumpsmm7/Asuswrt-Merlin-AdGuardHome-Installer/master/insta
ller
> sh installer

 Info:  Detected RT-AX88U router.
 Info:  Detected Linux platform.
 Info:  Detected ARMv8 architecture.
 Info:  JFFS custom scripts and configs are already enabled.
 Info:  DNS Environment is Ready.
 Info:  New AI_VERSION=v1.7.4 Available!
 Info:  Run Option 1 of the Installer to upgrade Asuswrt-Merlin-AdGuardHome-Installer.
fatal error: runtime: cannot allocate memory

<snip>
...

I've attached the stacktrace that follows

stacktrace_merlin_adguard.txt

This is an indication that your router is out of memory at this juncture in time when you are trying to run the installer script. I wish there was more I can do to help with this matter, but there isn't. Especially if you are doing everything you already can which includes, "tried rebooting the router", "using only the default adguardhome blocklists", "have a reasonable size swap installed", and "do not have too many scripts/processes causing additional background load on the router memory".

I have ran into this situation before and all it required was rebooting the router. Sometimes it has to be done because the router is not freeing up enough memory to perform the necessary task at hand.