bottleneck
Choose style:

Author Topic: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'  (Read 21018 times)

0 Members and 1 Guest are viewing this topic.

Offline Ehryk

  • Backer
  • *
  • Posts: 19
  • Thanks: 0
  • Registered : 06/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
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?

Offline Ehryk

  • Backer
  • *
  • Posts: 19
  • Thanks: 0
  • Registered : 06/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
« Reply #1 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+?

LGNilsson

  • Guest
Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
« Reply #2 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.

Offline Ehryk

  • Backer
  • *
  • Posts: 19
  • Thanks: 0
  • Registered : 06/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
« Reply #3 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!

LGNilsson

  • Guest
Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
« Reply #4 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.

Offline Ehryk

  • Backer
  • *
  • Posts: 19
  • Thanks: 0
  • Registered : 06/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
« Reply #5 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!

LGNilsson

  • Guest
Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
« Reply #6 on: August 06, 2014, 05:15:02 am »
Phew...  8)

Offline reedog117

  • Backer
  • *
  • Posts: 28
  • Thanks: 0
  • Registered : 22/07/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
« Reply #7 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.

Offline howling fantods

  • Backer
  • *
  • Posts: 1
  • Thanks: 0
  • Registered : 14/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
« Reply #8 on: August 16, 2014, 05:24:46 pm »
+1
hard reset worked.

Offline Haemaker

  • Backer
  • *
  • Posts: 5
  • Thanks: 0
  • Registered : 18/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
« Reply #9 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.

LGNilsson

  • Guest
Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
« Reply #10 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?

Offline revlisoft

  • Backer
  • *
  • Posts: 4
  • Thanks: 0
  • Registered : 02/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
« Reply #11 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.

Offline revlisoft

  • Backer
  • *
  • Posts: 4
  • Thanks: 0
  • Registered : 02/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
« Reply #12 on: August 19, 2014, 06:58:49 pm »
Hard reset fixed the webui although the firmware download location isn't working.

Offline mixmaven

  • Backer
  • *
  • Posts: 3
  • Thanks: 0
  • Registered : 22/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
« Reply #13 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.

Offline joltdude

  • Backer
  • *
  • Posts: 321
  • Thanks: 2
  • Registered : 02/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Web Interface inaccessible; LUA LuCI corrupt, unable to find 'main'
« Reply #14 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

 

Page created in 0.072 seconds with 17 queries.

bottleneck