#10733: luci fails when installed relocated on USB stick / no errror log for 
uhttp?
------------------------+-------------------------------------------
  Reporter:  wrosner@…  |      Owner:
      Type:  defect     |     Status:  closed
  Priority:  normal     |  Milestone:  Barrier Breaker 14.07
 Component:  luci       |    Version:  Trunk
Resolution:  not_a_bug  |   Keywords:  luci uhttpd log error opkg_-d
------------------------+-------------------------------------------

Comment (by anonymous):

 copy this and then works good.

 /etc/config/luci

 config core 'main'
         option resourcebase '/luci-static/resources'
         option mediaurlbase '/luci-static/bootstrap'
         option lang 'auto'

 config extern 'flash_keep'
         option uci '/etc/config/'
         option dropbear '/etc/dropbear/'
         option openvpn '/etc/openvpn/'
         option passwd '/etc/passwd'
         option opkg '/etc/opkg.conf'
         option firewall '/etc/firewall.user'
         option uploads '/lib/uci/upload/'

 config internal 'languages'
         option en 'English'

 config internal 'sauth'
         option sessionpath '/tmp/luci-sessions'
         option sessiontime '3600'

 config internal 'ccache'
         option enable '1'

 config internal 'themes'
         option Bootstrap '/luci-static/bootstrap'









 Replying to [ticket:10733 wrosner@…]:
 > Setting up openwrt on TP-Link TL-MR3220[[BR]]
 >
 > First setting up luci in flash - great look+feel :-), but too large
 :-([[BR]]
 >
 >
 > Tried to install luci on USB stick, using '''opkg -d''' option,
 following[[BR]]
 > http://wiki.openwrt.org/doc/howto/usb.storage
 >
 > works fine with simple packages like usbutils, pciutils, [[BR]]
 >
 > Howerver, I can't geht the luci CGI working[[BR]]
 >
 > Upon Installing, I get Errors:
 > {{{
 > ....
 > Configuring luci-mod-admin-core.
 > /opt//usr/lib/opkg/info/luci-mod-admin-core.postinst: line 7:
 /etc/init.d/luci_fixtime: not found
 > /opt//usr/lib/opkg/info/luci-mod-admin-core.postinst: line 7:
 /etc/init.d/luci_fixtime: not found
 > /opt//usr/lib/opkg/info/luci-mod-admin-core.postinst: line 7:
 /etc/init.d/luci_dhcp_migrate: not found
 > /opt//usr/lib/opkg/info/luci-mod-admin-core.postinst: line 7:
 /etc/init.d/luci_dhcp_migrate: not found
 > Configuring luci-theme-base.
 > Configuring luci-theme-openwrt.
 > /opt//usr/lib/opkg/info/luci-theme-openwrt.postinst: .: line 4: can't
 open '/etc/uci-defaults/luci-theme-openwrt'
 > ....
 > }}}
 >
 > I did symlink back the '''/opt/etc''' to '''/etc'''
 >
 > {{{
 > root@OpenWrt:/opt/www# la /opt/etc
 > lrwxrwxrwx    1 root     root             5 Jan  3 23:13 /opt/etc ->
 /etc/
 > }}}
 >
 > '''before installation''' to have the config found in the right
 place[[BR]]
 > The errors at install time are gone now, and files mentioned in error
 messages seem to be in the right place.
 >
 > I also relocated '''uhttpd.main.home=/opt/www''' [[BR]]
 >
 > I can now open the static pages, like
 > http://192.168.0.12/luci-static/resources/icons/encryption.png
 > but in http://192.168.0.12/cgi-bin/luci I can only find a empty
 page.[[BR]]
 >
 > http://192.168.0.12/ shows a short flashing black page, presumably
 redirection to /cgi-bin/luci
 >
 > Tried to symlink back /opt/lib... files to /lib, did not help.
 >
 > No more ideas. I had looked for some kind of a '''http server error
 log''', but could not find any clue in googlespace how to configure such a
 log. [[BR]]
 >
 >
 > I see
 > {{{
 > root@OpenWrt:/opt/www# lsof -p 589
 > ...
 > uhttpd  589 root    0u   CHR    1,3      0t0    81 /dev/null
 > uhttpd  589 root    1u   CHR    1,3      0t0    81 /dev/null
 > uhttpd  589 root    2u   CHR    1,3      0t0    81 /dev/null
 > ...
 > }}}
 > the stdio file descriptors of uhttpd demon pointing to nirvana, but
 don't know wheter and/or how to get info out from there.[[BR]]
 >
 > uhttp refuses to easily start from console
 >
 > {{{
 > root@OpenWrt:/opt/www# uhttpd
 > Error: No sockets bound, unable to continue
 > }}}
 >
 > and I could not manage to figure out the anatomy of the
 '''/etc/init.d/uhttpd''' script
 >
 > Some more details
 >
 > (bleeding edge, r29631) from [[BR]]
 >
 > http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/
 >
 > {{{
 >
 > root@OpenWrt:/opt/www# echo $PATH
 >
 /bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:/opt/usr/bin:/opt/usr/sbin
 >
 > root@OpenWrt:/opt/www# echo $LD_LIBRARY_PATH
 > /lib/:/usr/lib:/opt/lib:/opt/usr/lib
 >
 > uhttpd.main.home=/opt/www
 >
 > root@OpenWrt:/opt/www# mount
 > rootfs on / type rootfs (rw)
 > /dev/root on /rom type squashfs (ro,relatime)
 > proc on /proc type proc (rw,noatime)
 > sysfs on /sys type sysfs (rw,noatime)
 > tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=14720k)
 > tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
 > devpts on /dev/pts type devpts (rw,noatime,mode=600)
 > root on /tmp/root type tmpfs (rw,noatime,mode=755)
 > overlayfs:/tmp/root on /tmp/root type overlayfs (ro,noatime)
 > debugfs on /sys/kernel/debug type debugfs (rw,relatime)
 > none on /proc/bus/usb type usbfs (rw,relatime)
 > /dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
 > overlayfs:/overlay on / type overlayfs (rw,noatime)
 > /dev/sdb1 on /opt type ext3
 (rw,sync,relatime,user_xattr,barrier=1,nodelalloc,data=ordered)
 > /dev/sdb4 on /home type ext3
 (rw,sync,relatime,user_xattr,barrier=1,nodelalloc,data=ordered)
 > }}}
 >

--
Ticket URL: <https://dev.openwrt.org/ticket/10733#comment:12>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to