Dear All,
I am running OpenWRT with Coova-Chilli using external radius servers and login page very successfully for some years now on WRT54GL hardware.
I am now trying to port it over to a Nanostation2 using 8.09.1 release of OpenWRT. Whileit all seems to work well at first, after half an hour or so coova-chilli runs into trouble, when users have connected to the router either the login process gets stuck on Please wait... or a splash page does not come up at all.
On looking through the logs I discovered the following issue:
...
Sep 6 07:28:37 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: chilli.c: 1010: Unknown downlink protocol
Sep 6 07:28:37 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:28:38 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:28:40 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:29:07 60-234-221-116.bitstream.orcon.net.nz last message repeated 9 times
Sep 6 07:29:32 60-234-221-116.bitstream.orcon.net.nz last message repeated 8 times
Sep 6 07:29:36 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: options.c: 809: Rereading configuration file and doing DNS lookup
Sep 6 07:29:37 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:29:37 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: chilli.c: 1010: Unknown downlink protocol
Sep 6 07:29:42 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:29:57 60-234-221-116.bitstream.orcon.net.nz last message repeated 6 times
Sep 6 07:30:02 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:30:22 60-234-221-116.bitstream.orcon.net.nz last message repeated 7 times
Sep 6 07:30:27 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:30:35 60-234-221-116.bitstream.orcon.net.nz last message repeated 3 times
Sep 6 07:30:36 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: options.c: 809: Rereading configuration file and doing DNS lookup
Sep 6 07:30:37 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:30:37 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:30:37 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: chilli.c: 1010: Unknown downlink protocol
Sep 6 07:30:42 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:31:13 60-234-221-116.bitstream.orcon.net.nz last message repeated 13 times
Sep 6 07:31:33 60-234-221-116.bitstream.orcon.net.nz last message repeated 8 times
Sep 6 07:31:36 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: options.c: 809: Rereading configuration file and doing DNS lookup
Sep 6 07:31:37 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: chilli.c: 1010: Unknown downlink protocol
Sep 6 07:31:38 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:31:43 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:31:58 60-234-221-116.bitstream.orcon.net.nz last message repeated 4 times
Sep 6 07:32:03 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:32:34 60-234-221-116.bitstream.orcon.net.nz last message repeated 6 times
Sep 6 07:32:36 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: options.c: 809: Rereading configuration file and doing DNS lookup
Sep 6 07:32:38 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: chilli.c: 1010: Unknown downlink protocol
Sep 6 07:32:40 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:32:46 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:33:21 60-234-221-116.bitstream.orcon.net.nz last message repeated 7 times
Sep 6 07:33:26 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:33:31 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:33:36 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: options.c: 809: Rereading configuration file and doing DNS lookup
Sep 6 07:33:36 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:33:38 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: chilli.c: 1010: Unknown downlink protocol
Sep 6 07:33:42 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:34:17 60-234-221-116.bitstream.orcon.net.nz last message repeated 13 times
Sep 6 07:34:33 60-234-221-116.bitstream.orcon.net.nz last message repeated 6 times
Sep 6 07:34:36 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: options.c: 809: Rereading configuration file and doing DNS lookup
Sep 6 07:34:37 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
Sep 6 07:34:38 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: chilli.c: 1010: Unknown downlink protocol
Sep 6 07:34:42 60-234-221-116.bitstream.orcon.net.nz coova-chilli[2328]: redir.c: 1836: 12 (Cannot allocate memory) fork() returned -1!
...
So it goes on for pages.
Memory seems to be available:
root@Chillifire0015610:/proc# cat meminfo
MemTotal: 13504 kB
MemFree: 840 kB
Buffers: 564 kB
Cached: 1772 kB
SwapCached: 0 kB
Active: 3096 kB
Inactive: 4532 kB
Active(anon): 2404 kB
Inactive(anon): 2976 kB
Active(file): 692 kB
Inactive(file): 1556 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 5296 kB
Mapped: 1068 kB
Slab: 3420 kB
SReclaimable: 352 kB
SUnreclaim: 3068 kB
PageTables: 212 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 6752 kB
Committed_AS: 9220 kB
VmallocTotal: 1048404 kB
VmallocUsed: 2604 kB
VmallocChunk: 1032608 kB
Can the developer(s) - David? - shed some light on what the issue might be and why the fork() routine may throw that error in redir.c?
Please advise
nanostation memory issues - resolved
It turns out the nanostation was 'too full' with too mamny packages installed. Removing packages from the image and reducing it in size to 3MB resolved the problem.
Hi, This woke my interest. Do
Hi,
This woke my interest.
Do you feel like sharing your image? I'd like to test this for myself.
Kind regards
B