Butterfly Bones
Very Senior Member
Hi @Adamm
This is the output of a banmalware update on my AC68U with last beta firmare 384.9_beta1
Code:Downloading filter.list | [0s] Refreshing Whitelists | /opt/bin/firewall: line 4816: can't fork /opt/bin/firewall: line 4816: can't fork /opt/bin/firewall: line 4816: can't fork [12s] Consolidating Blacklist | [24s] Filtering IPv4 Addresses | [9s] Filtering IPv4 Ranges | [0s] Applying New Blacklist | [13s] Refreshing AiProtect Bans | [0s] Saving Changes | [8s]
what could be the cause of the message "/opt/bin/firewall: line 4816: can't fork"?
thanks
Jan 23 02:25:25 Skynet: [#] 3751 IPs (-145146) -- 27719 Ranges Banned (-1669) || 16231 Inbound -- 446 Outbound Connections Blocked! [banmalware] [25s]
Yes, I get it as well. After my AC86U (512 swap file) running non-stop for more than two weeks I will get the same. I check the banmalware update line later in the morning and see something like this:I had the same thing happen today, it was the same 'Refreshing Whitelists' part of the script.
It is running out of memory to allow the process to fork.
I stopped running other sessions to free up some memory to allow the refresh to complete.
(I actually stopped running the 'Log Filter' in AB-Solution which I normally run in one session in 'Xshell 6' and a 'htop' running in another session in 'Xshell 6'. )
I have a swap file setup and this has previously been enough to allow 'banmalware update' to run.
I suspect that as Skynet is developing more and more features etc the memory required to perform some actions is increasing.
Code:
Jan 23 02:25:25 Skynet: [#] 3751 IPs (-145146) -- 27719 Ranges Banned (-1669) || 16231 Inbound -- 446 Outbound Connections Blocked! [banmalware] [52s]
Code:
[$] /jffs/scripts/firewall banmalware
==================================
[i] Downloading filter.list | [0s]
[i] Refreshing Whitelists | /jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
/jffs/scripts/firewall: line 4518: can't fork
[1s]
[i] Consolidating Blacklist | [11s]
[i] Filtering IPv4 Addresses | [2s]
[i] Filtering IPv4 Ranges | [0s]
[i] Applying New Blacklist | [3s]
[i] Refreshing AiProtect Bans | [0s]
[i] Saving Changes | [3s]
I have seen comments from posters about memory leaks, and they are not confirmed, but I know the AC86U has some quirks, like this for instance. I just setup a cron to run a scheduled reboot once a week (noting reports of the GUI Scheduled reboot not doing a proper umount of the USB disks). I'll see if this solved the "can't fork" leprechaun.