OpenWrt/LEDE Project

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by mdbuerkle - 08.10.2017
Last edited by Mathias Kresin - 09.10.2017

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

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

Closed by  Mathias Kresin
09.10.2017 12:36
Reason for closing:  Duplicate
Additional comments about closing:  

 FS#1021 

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing