OpenVPN Install Errors on WDR3600 V1.5

Report problems and success stories with Gargoyle on various hardware platforms.

Moderator: Moderators

Post Reply
pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

OpenVPN Install Errors on WDR3600 V1.5

Post by pbix »

I recently reloaded this router with Gargoyle v1.12.0 downloaded from the site. I then attempted to install OpenVPN. Flash on this router is tight but it said it would fit and afterwards apparently successful install claimed I had 64kB of flash remaining.

However I see the following in my logread that looks ominous including out of memory errors and segmentation faults. It appears to me that the space accounting is wrong and OPENVPN take more space that it thinks.
Tue Nov 5 09:38:11 2019 daemon.warn dnsmasq[7130]: ignoring nameserver 192.168.1.1 - local interface
Tue Nov 5 09:38:11 2019 daemon.info dnsmasq[7130]: using 13 more nameservers
Tue Nov 5 09:38:36 2019 user.notice firewall: Reloading firewall due to ifup of wan6 (eth0.2)
Tue Nov 5 09:38:37 2019 user.notice firewall: Reloading firewall due to ifup of wan (br-wan)
Tue Nov 5 09:38:43 2019 kern.warn kernel: [ 1598.718668] ipt_bandwidth: timezone shift of 300 minutes detected, adjusting
Tue Nov 5 09:38:43 2019 kern.warn kernel: [ 1598.725865] old minutes west=0, new minutes west=300
Tue Nov 5 09:40:43 2019 daemon.err uhttpd[2980]: ln: /etc/rc.d/S90openvpn: No space left on device
Tue Nov 5 09:40:43 2019 daemon.err uhttpd[2980]: ln: /etc/rc.d/K10openvpn: No space left on device
Tue Nov 5 09:40:43 2019 daemon.err uhttpd[2980]: /etc/rc.common: .: line 1: can't open '/usr/share/openvpn/openvpn.options': No such file or directory
Tue Nov 5 09:40:43 2019 kern.info kernel: [ 1718.708851] do_page_fault(): sending SIGSEGV to gpkg for invalid read access from 0000004c
Tue Nov 5 09:40:43 2019 kern.info kernel: [ 1718.717302] epc = 773f431c in libc.so[77388000+92000]
Tue Nov 5 09:40:43 2019 kern.info kernel: [ 1718.722456] ra = 773f4310 in libc.so[77388000+92000]
Tue Nov 5 09:40:43 2019 daemon.err uhttpd[2980]: Segmentation fault
Sat Mar 28 15:18:27 2020 cron.err crond[7964]: time disparity of 207637 minutes detected
root@Gargoyle:~#
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: OpenVPN Install Errors on WDR3600 V1.5

Post by RomanHK »

Flash may have succeeded, but what about saving configurations? There may be a problem.

:idea: If you have little in Flash, try extroot to USB, it should help.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

Lantis
Moderator
Posts: 6751
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: OpenVPN Install Errors on WDR3600 V1.5

Post by Lantis »

Yea looks a lot like out of flash errors.
One of the things about the filesystem is you write data 1 block at a time. So even using 1byte over the threshold will use the entire 48 (or whatever size) block. I'd say for this reason the space calculation is flawed.

If someone came up with a better calculation is be very interested, but I confess I don't know enough myself.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: OpenVPN Install Errors on WDR3600 V1.5

Post by RomanHK »

Lantis wrote:
Sat Mar 28, 2020 6:44 pm
Yea looks a lot like out of flash errors.
One of the things about the filesystem is you write data 1 block at a time. So even using 1byte over the threshold will use the entire 48 (or whatever size) block. I'd say for this reason the space calculation is flawed.

If someone came up with a better calculation is be very interested, but I confess I don't know enough myself.
Yes, our Czech manufacturer is facing a problem - it uses btrfs file system and backup, but it also leads to many rewrites.

Each Flash has a certain lifetime and a number of rewrites, and if @pbix has made many rewrites, Flash may be over. But I hope it's not the problem.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

Lantis
Moderator
Posts: 6751
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: OpenVPN Install Errors on WDR3600 V1.5

Post by Lantis »

It's is likely only out of space, not dead flash.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: OpenVPN Install Errors on WDR3600 V1.5

Post by pbix »

For the record I was not trying to preserve settings. This was a clean flash.

But I will say that the reason I was flashing is that this router just out of the blue started having reliability issues. I wish there was a way to check if the flash and RAM where all OK.

So mysteries abound.

Anyway I thought I would report my experience to whoever is maintaining the plugin system.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

Post Reply