Securifi Community Forum

Securifi Products => Almond+ => Topic started by: Ehryk on August 06, 2014, 04:28:49 am

Title: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: Ehryk on August 06, 2014, 04:28:49 am
I just got my A+ router, plugged it in, and set it up through the touch screen. Pretty happy so far, but need to set up port forwards and the like. I don't see this ability in the touchscreen GUI.

Now I try to access through the web interface, and get:

/usr/lib/lua/luci/dispatcher.lua:211: /etc/config/luci seems to be corrupt, unable to find section 'main'
stack traceback:
   [C]: in function 'assert'
   /usr/lib/lua/luci/dispatcher.lua:211: in function 'dispatch'
   /usr/lib/lua/luci/dispatcher.lua:195: in function </usr/lib/lua/luci/dispatcher.lua:194>

Any ideas?
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: Ehryk on August 06, 2014, 04:37:58 am
From SSH into the A+, /etc/config/luci is a 0 byte file:

root@AlmondPlus:/etc/config# ls -la | grep "luci"
-rw-r--r--    1 root     root             0 Sep  8  2011 luci

Is there anywhere I could get the would-be contents of this file? Or reflash the A+?
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: LGNilsson on August 06, 2014, 04:44:13 am
Quick question, can you access the NutsOS web UI by going to the IP address of the router?

Also, have you tried to do a hard reset? http://wiki.securifi.com/index.php?title=Hardware_reset_button_-_Almond%2B_2014

The firmware is stored in flash, but loaded into RAM, so a hard reset would load a fresh image from flash which might address the problem.

I really don't know what's going on here and a screenshot or two would be helpful.
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: Ehryk on August 06, 2014, 04:50:15 am
In a browser, 10.10.10.254 bounces me to 10.10.10.254/cgi-bin/luci which then returns a text-based 'web page' with the following:

/usr/lib/lua/luci/dispatcher.lua:211: /etc/config/luci seems to be corrupt, unable to find section 'main'
stack traceback:
   [C]: in function 'assert'
   /usr/lib/lua/luci/dispatcher.lua:211: in function 'dispatch'
   /usr/lib/lua/luci/dispatcher.lua:195: in function </usr/lib/lua/luci/dispatcher.lua:194>

Indeed the message is accurate, since /etc/config/luci is a 0 byte empty file.

I see 'luci-full' listed in `opkg list`, but I can't update it or update opkg at all, even with internet access:

root@AlmondPlus:/etc/config# opkg update
Downloading http://downloads.openwrt.org/snapshots/trunk/g2/packages/Packages.gz.
wget: server returned error: HTTP/1.1 404 Not Found
Collected errors:
 * opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/g2/packages/Packages.gz, wget returned 1.

I'm hard resetting it now. Thanks for the quick response!
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: LGNilsson on August 06, 2014, 04:56:28 am
All the available OPKG's are installed on the Almond+ and at the moment there's no repository due to this. We'll get that set up at some point.

However, the issue you're having is not something we've come across and I'm not sure how that file could've gotten corrupted.

Please let us know if the hard reset doesn't fix the issue.
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: Ehryk on August 06, 2014, 05:12:39 am
Hard reset worked!

root@AlmondPlus:/etc/config# ls -la | grep luci
-rw-r--r--    1 root     root          2388 Sep  8  2011 luci

Web Interface is now operational. Thank you!
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: LGNilsson on August 06, 2014, 05:15:02 am
Phew...  8)
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: reedog117 on August 16, 2014, 01:38:11 am
I had this exact same problem with the router straight out of the box until I did a hard reset also.
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: howling fantods on August 16, 2014, 05:24:46 pm
+1
hard reset worked.
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: Haemaker on August 18, 2014, 07:09:42 pm
I just received the Almond+ with R064 firmware and had the same problem (LuCI corrupt).  Hard reset fixed it, but did not unregister my Almond+.  Still associated with my account.
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: LGNilsson on August 19, 2014, 01:56:39 am
Yes, that's correct, the hard reset doesn't disconnect from the cloud service, nor does it remove associated sensors as this data is stored elsewhere.
Did the reset fix the LuCI issue?
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: revlisoft on August 19, 2014, 06:24:09 pm
I have the exact same issue. I will try the hard reset later today and report back.
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: revlisoft on August 19, 2014, 06:58:49 pm
Hard reset fixed the webui although the firmware download location isn't working.
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: mixmaven on August 22, 2014, 11:13:37 pm
Same here, new out of the box.  Hard reset fixed it.
For those wondering: A reset button is located on the top side of your Almond, just above the power connector. Simply use the stylus that comes with the Almond to press the reset button for about five seconds.  You do not loose your sensors or cloud settings.
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: joltdude on August 30, 2014, 05:39:33 pm
Just had to add +1 that I had the same issue with the Almond + ootb but using the hard reset button worked
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: mcnerns on September 01, 2014, 06:38:22 pm
Same issue. Hard reset worked.
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: ddyvt on September 03, 2014, 11:13:19 pm
Similar to others, 10.10.10.254 redirects me to 10.10.10.254/cgi-bin/luci
After logging in using the defaults in the instructions, I go to a blank page.  Tried in recent versions of Chrome and IE.

I did hard reset twice now, no luck  Each time my wireless settings get wiped out and reset to the defaults, it does hang on to my associated email address / account though.

Any ideas?

On the plus side, the hard resets seemed to now allow my iPhone 5S to see / connect to the 5GHz network, previously I could only connect to the 2.4GHz network on iPhones.
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: LGNilsson on September 03, 2014, 11:15:29 pm
Can you try something? Go to Status, Web Admin and change the password and see if this help. It has worked for some backers.
Title: Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
Post by: ddyvt on September 03, 2014, 11:20:26 pm
Can you try something? Go to Status, Web Admin and change the password and see if this help. It has worked for some backers.

Hi I JUST found another thread suggesting a root password change on the router... it worked, the web interface now loads.

Thanks!