[FS#1049] uhttpd-mod-ubus: error in postinst script

LEDE Bugs lede-bugs at lists.infradead.org
Sun Oct 8 13:24:07 PDT 2017


A new Flyspray task has been opened.  Details are below. 

User who did this - mdbuerkle (mdbuerkle) 

Attached to Project - LEDE Project
Summary - uhttpd-mod-ubus: error in postinst script
Task Type - Bug Report
Category - Packages
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details -  Device:
TP-Link TL-WDR3600-v1

Software:
LEDE daily as of 2017-10-08 16:30:32
root at 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 at LEDE:~#

Packages of the same day, namely uhttpd-mod-ubus:
root at 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 at 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 at 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 at 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 at LEDE:~# uci -q get uhttpd.main.ubus_prefix
root at LEDE:~# uci set uhttpd.main.ubus_prefix=/ubus
root at LEDE:~# uci commit uhttpd
root at LEDE:~# uci -q get uhttpd.main.ubus_prefix
/ubus
root at LEDE:~#

Kind regards,
Dominik

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=1049



More information about the lede-bugs mailing list