[Solved] Error installing luci-app-mjpg-streamer in 18.06.0-rc1

I've just done a sysupgrade through LuCI to 18.06.0-rc1, and while re-installing luci-app-mjpg-streamer (git-18.180.55209-4ba85e3-1), I ran into this error. Is this a bug, or have I missed something?

root@myrouter:~# opkg install luci-app-mjpg-streamer
Installing luci-app-mjpg-streamer (git-18.180.55209-4ba85e3-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.0-rc1/packages/mips_24kc/luci/luci-app-mjpg-streamer_git-18.180.55209-4ba85e3-1_all.ipk
Configuring luci-app-mjpg-streamer.
uci: Parse error (invalid command) at line 2, byte 0

I don't have any MIPS devices, but seems to work fine on mvebu:

WRT3200 in ~ # opkg install luci-app-mjpg-streamer 
Installing luci-app-mjpg-streamer (git-18.180.55209-4ba85e3-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.0-rc1/packages/arm_cortex-a9_vfpv3/luci/luci-app-mjpg-streamer_git-18.180.55209-4ba85e3-1_all.ipk
Installing libjpeg (9a-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.0-rc1/packages/arm_cortex-a9_vfpv3/packages/libjpeg_9a-1_arm_cortex-a9_vfpv3.ipk
Installing mjpg-streamer (r182-10) to root...
Downloading http://downloads.openwrt.org/releases/18.06.0-rc1/packages/arm_cortex-a9_vfpv3/packages/mjpg-streamer_r182-10_arm_cortex-a9_vfpv3.ipk
Configuring libjpeg.
Configuring mjpg-streamer.
Configuring luci-app-mjpg-streamer.
WRT3200 in ~ # 

Tested with MIPS device

# opkg install luci-app-mjpg-streamer
Installing luci-app-mjpg-streamer (git-18.180.55209-4ba85e3-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.0-rc1/packages/mips_24kc/luci/luci-app-mjpg-streamer_git-18.180.55209-4ba85e3-1_all.ipk
Installing libjpeg (9a-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.0-rc1/packages/mips_24kc/packages/libjpeg_9a-1_mips_24kc.ipk
Installing mjpg-streamer (r182-10) to root...
Downloading http://downloads.openwrt.org/releases/18.06.0-rc1/packages/mips_24kc/packages/mjpg-streamer_r182-10_mips_24kc.ipk
Configuring libjpeg.
Configuring mjpg-streamer.
Configuring luci-app-mjpg-streamer.

Surprisingly, the LuCI configuration tab for mjpg-streamer appeared and seems to be working now, as far as i can tell.

1 Like

If your problem is solved, please consider marking this topic as [Solved]. (Click the pencil behind the topic...)

It could very well be that one of the other files in /etc/config is invalid.

I still see the error message if I remove and install the package, so I wouldn't say this is [solved].

Is there any way to figure out which file has a problem at line 2 byte 0?

wget http://downloads.openwrt.org/releases/18.06.0-rc1/packages/mips_24kc/luci/luci-app-mjpg-streamer_git-18.180.55209-4ba85e3-1_all.ipk
tar -zxvf luci-app-mjpg-streamer_git-18.180.55209-4ba85e3-1_all.ipk
tar -xzvf control.tar.g
$ cat 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 $@
$ cat postinst-pkg
[ -n "${IPKG_INSTROOT}" ] || {
	(. /etc/uci-defaults/40_luci-mjpg-streamer) && rm -f /etc/uci-defaults/40_luci-mjpg-streamer
	exit 0
}
$ cat prerm 
#!/bin/sh
[ -x ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0
. ${IPKG_INSTROOT}/lib/functions.sh
default_prerm $0 $@

That's another indication that:

Solved! Earlier, I'd run uvcdynctrl and saved its controls state to /etc/config/uvcdynctrl, as suggested in the OpenWRT Wiki webcam page. Removing /etc/config/uvcdynctrl eliminated the error message when removing and installing the luci-app-mjpg-streamer package.

Can you link the page?

https://openwrt.org/docs/guide-user/hardware/video/webcam is the page.

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.