Opkg fails with Out of memory on a TP-Link RE450
Username: Markus Eckhardt
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1144
Hi!
I a problem on my TPLINK RE450 on upgrading of packages. I’m restarting the system and the upgrade is still not possible, console output:
BusyBox v1.25.1 () built-in shell (ash)
_________
/ /\ _ ___ ___ ___
/ LE / \ | | | | | | / DE / \ | |__| _|| |) | _| /_/ LE \ |____|___|/|___| lede-project.org \ \ DE / \ LE \ / ----------------------------------------------------------- \ DE \ / Reboot (17.01.4, r3560-79f57e42) ________/ -----------------------------------------------------------
root@LEDE:# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2560 2560 0 100% /rom
tmpfs 30332 80 30252 0% /tmp
/dev/mtdblock3 2176 236 1940 11% /overlay
overlayfs:/overlay 2176 236 1940 11% /
tmpfs 512 0 512 0% /dev
root@LEDE:# free
total used free shared buffers cached
Mem: 60664 43600 17064 80 2320 6048
-/+ buffers/cache: 35232 25432
Swap: 0 0 0
root@LEDE:# opkg update
Downloading http://downloads.lede-project.org/releases/17.01.4/targets/ar71xx/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/reboot_core
Downloading http://downloads.lede-project.org/releases/17.01.4/targets/ar71xx/generic/packages/Packages.sig
Signature check passed.
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/reboot_base
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/reboot_luci
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/reboot_packages
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/reboot_routing
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/reboot_telephony
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/telephony/Packages.sig
Signature check passed.
root@LEDE:# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2560 2560 0 100% /rom
tmpfs 30332 568 29764 2% /tmp
/dev/mtdblock3 2176 236 1940 11% /overlay
overlayfs:/overlay 2176 236 1940 11% /
tmpfs 512 0 512 0% /dev
root@LEDE:# free
total used free shared buffers cached
Mem: 60664 44804 15860 568 2320 6756
-/+ buffers/cache: 35728 24936
Swap: 0 0 0
root@LEDE:# opkg list upgradable
root@LEDE:# opkg list-upgradable
luci-lib-ip - git-17.290.79498-d3f0685-1 - git-17.298.45605-07e7ff0-1
luci-theme-bootstrap - git-17.290.79498-d3f0685-1 - git-17.298.45605-07e7ff0-1
dnsmasq - 2.78-1 - 2.78-2
luci-app-firewall - git-17.290.79498-d3f0685-1 - git-17.298.45605-07e7ff0-1
luci-proto-ppp - git-17.290.79498-d3f0685-1 - git-17.298.45605-07e7ff0-1
luci-mod-admin-full - git-17.290.79498-d3f0685-1 - git-17.298.45605-07e7ff0-1
luci-base - git-17.290.79498-d3f0685-1 - git-17.298.45605-07e7ff0-1
luci-proto-ipv6 - git-17.290.79498-d3f0685-1 - git-17.298.45605-07e7ff0-1
luci-lib-nixio - git-17.290.79498-d3f0685-1 - git-17.298.45605-07e7ff0-1
luci-lib-jsonc - git-17.290.79498-d3f0685-1 - git-17.298.45605-07e7ff0-1
luci - git-17.290.79498-d3f0685-1 - git-17.298.45605-07e7ff0-1
root@LEDE:# opkg upgrade luci-base
Upgrading luci-base on root from git-17.290.79498-d3f0685-1 to git-17.298.45605-07e7ff0-1...
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/luci/luci-base_git-17.298.45605-07e7ff0-1_mips_24kc.ipk
Collected errors:
- xsystem: wget: vfork: Out of memory.
- opkg_download: Failed to download http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/luci/luci-base_git-17.298.45605-07e7ff0-1_mips_24kc.ipk, wget returned -1.
- opkg_install_pkg: Failed to download luci-base. Perhaps you need to run 'opkg update'? root@LEDE:~#
It looks like there is enough memory availible, where is the problem? Can someone explain it? With a sysctl -w vm.min_free_kbytes=0 the upgrade is possible.