Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#1048 - uhttpd-mod-ubus: error in postinst script #5990

Closed
openwrt-bot opened this issue Oct 8, 2017 · 0 comments
Closed

FS#1048 - uhttpd-mod-ubus: error in postinst script #5990

openwrt-bot opened this issue Oct 8, 2017 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

mdbuerkle:

Device:
TP-Link TL-WDR3600-v1

Software:
LEDE daily as of 2017-10-08 16:30:32
root@LEDE:# cat /etc/openwrt_release
DISTRIB_ID='LEDE'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r5025-d2fdece'
DISTRIB_CODENAME='reboot'
DISTRIB_TARGET='ar71xx/generic'
DISTRIB_ARCH='mips_24kc'
DISTRIB_DESCRIPTION='LEDE Reboot SNAPSHOT r5025-d2fdece'
DISTRIB_TAINTS=''
root@LEDE:
#

Packages of the same day, namely uhttpd-mod-ubus:
root@LEDE:~# opkg info uhttpd-mod-ubus
Package: uhttpd-mod-ubus
Version: 2017-08-19-3fd58e9b-1
Depends: libc, uhttpd, libubus, libblobmsg-json
Status: install ok installed
Section: net
Architecture: mips_24kc
Size: 6279
Filename: uhttpd-mod-ubus_2017-08-19-3fd58e9b-1_mips_24kc.ipk
Description: The ubus plugin adds a HTTP/JSON RPC proxy for ubus and publishes the
session.* namespace and procedures.
Installed-Time: 1507492317

root@LEDE:~#

Steps to reproduce:

  • flash firmware factory.bin (no keep settings used)
  • passwd
  • opkg update
  • opkg install luci-ssl strace lsof rsyslog diffutils vim less

root@LEDE:# history
0 passwd
1 alias
2 ll
3 ll /etc/dropbear/
4 ll /var/
5 ll /var/dropbear/
6 ll /
7 ll /usr/
8 ll /usr/lib/
9 opkg update
10 df -h
11 opkg install luci-ssl strace lsof rsyslog diffutils vim less
12 cat /etc/openwrt_version
13 cat /etc/openwrt_release
14 opkg info uhttpd-mod-ubus
15 history
root@LEDE:
#

Error message during install:
...
Configuring uhttpd-mod-ubus.
//usr/lib/opkg/info/uhttpd-mod-ubus.postinst: .: line 130: 00_uhttpd_ubus: not found
Configuring luci-lib-nixio.
...

Hint:

  • /usr/lib/opkg/info/uhttpd-mod-ubus.list:
    /etc/uci-defaults/00_uhttpd_ubus
    /usr/lib/uhttpd_ubus.so
  • /usr/lib/opkg/info/uhttpd-mod-ubus.postinst:
    #!/bin/sh
    [ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0
    [ -x ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0
    . ${IPKG_INSTROOT}/lib/functions.sh
    default_postinst $0 $@

Please adapt/change the postinst file.

I manually ran
root@LEDE:# uci -q get uhttpd.main.ubus_prefix
root@LEDE:
# uci set uhttpd.main.ubus_prefix=/ubus
root@LEDE:# uci commit uhttpd
root@LEDE:
# uci -q get uhttpd.main.ubus_prefix
/ubus
root@LEDE:~#

Kind regards,
Dominik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant