Missing Plugins After External Root USB

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
ejlviking
Posts: 13
Joined: Mon Jun 20, 2016 4:59 pm

Missing Plugins After External Root USB

Post by ejlviking »

Hello,

I recently added a USB drive, formatted it, and configured it as external root.
I now have tons of space in /overlay for plugins, but when I go to the web page, the available plugins are gone, only the installed ones.
I can see the plugins are in /tmp/usb_mount/6da5edcb-01/plugin_root/usr/lib/opkg/info.

Is there a way to get those to show back up?

System is working otherwise.
Gargoyle version 1.12.0
OpenWrt 18.06 branch
TP-Link TL-WDR3600 v1

Here is the list:

Code: Select all

root@Gargoyle:/etc# ls /tmp/usb_mount/6da5edcb-01/plugin_root/usr/lib/opkg/info
plugin-gargoyle-adblock.control                         plugin-gargoyle-logread.list
plugin-gargoyle-adblock.linked                          plugin-gargoyle-logread.postinst
plugin-gargoyle-adblock.list                            plugin-gargoyle-logread.postinst-pkg
plugin-gargoyle-adblock.postinst                        plugin-gargoyle-logread.postrm
plugin-gargoyle-adblock.postinst-pkg                    plugin-gargoyle-logread.prerm
plugin-gargoyle-adblock.postrm                          plugin-gargoyle-spectrum-analyser.postinst-pkg
plugin-gargoyle-adblock.prerm                           plugin-gargoyle-stamgr.postinst-pkg
plugin-gargoyle-adblock.prerm-pkg                       plugin-gargoyle-theme-dark-one.postinst-pkg
plugin-gargoyle-email-notifications-nossl.postinst-pkg  plugin-gargoyle-theme-demantoid.postinst-pkg
plugin-gargoyle-email-notifications-nossl.prerm-pkg     plugin-gargoyle-theme-green.postinst-pkg
plugin-gargoyle-email-notifications.postinst-pkg        plugin-gargoyle-theme-horchata.postinst-pkg
plugin-gargoyle-logread.control                         plugin-gargoyle-theme-xeye.postinst-pkg
plugin-gargoyle-logread.linked                          plugin-gargoyle-wol.postinst-pkg
Here is the log file after it rebooted:

Code: Select all

Fri Oct 29 19:46:40 2021 daemon.err uhttpd[2322]: /bin/sh: opkg: not found
Fri Oct 29 19:47:13 2021 daemon.err uhttpd[2322]: /tmp/tmp.sh: line 1: opkg: not found
Fri Oct 29 19:47:29 2021 daemon.err uhttpd[2322]: mv: can't overwrite directory with non-directory
Fri Oct 29 19:47:29 2021 daemon.err uhttpd[2322]: mv: can't overwrite directory with non-directory
Fri Oct 29 19:47:29 2021 daemon.err uhttpd[2322]: mv: can't overwrite directory with non-directory
Fri Oct 29 19:47:29 2021 daemon.err uhttpd[2322]: rm: '/plugin_root' is a directory
Fri Oct 29 19:47:39 2021 daemon.err uhttpd[2322]: /tmp/tmp.sh: line 1: opkg: not found
Fri Oct 29 19:47:51 2021 daemon.err uhttpd[2322]: rm: '/plugin_root' is a directory
Fri Oct 29 19:47:57 2021 daemon.err uhttpd[2322]: /tmp/tmp.sh: line 1: opkg: not found
Fri Oct 29 19:49:18 2021 daemon.info hostapd: wlan0: STA ca:86:31:fc:5f:21 IEEE 802.11: authenticated
Fri Oct 29 19:49:18 2021 daemon.info hostapd: wlan0: STA ca:86:31:fc:5f:21 IEEE 802.11: associated (aid 13)
Fri Oct 29 19:49:18 2021 daemon.notice hostapd: wlan0: AP-STA-CONNECTED ca:86:31:fc:5f:21
Fri Oct 29 19:49:18 2021 daemon.info hostapd: wlan0: STA ca:86:31:fc:5f:21 RADIUS: starting accounting session 61CD03B0189B18B9
Fri Oct 29 19:49:18 2021 daemon.info hostapd: wlan0: STA ca:86:31:fc:5f:21 WPA: pairwise key handshake completed (RSN)
Fri Oct 29 19:49:20 2021 daemon.info dnsmasq-dhcp[2721]: DHCPREQUEST(br-lan) 192.168.1.187 ca:86:31:fc:5f:21
Fri Oct 29 19:49:20 2021 daemon.info dnsmasq-dhcp[2721]: DHCPACK(br-lan) 192.168.1.187 ca:86:31:fc:5f:21
Fri Oct 29 19:50:05 2021 daemon.err uhttpd[2322]: /bin/sh: opkg: not found
Fri Oct 29 19:50:37 2021 daemon.err uhttpd[2322]: /tmp/tmp.sh: line 1: opkg: not found
Fri Oct 29 19:55:23 2021 daemon.err uhttpd[2322]: /tmp/tmp.sh: line 1: opkg: not found
Fri Oct 29 19:59:02 2021 daemon.err uhttpd[2322]: /tmp/tmp.sh: line 1: opkg: not found
Fri Oct 29 19:59:35 2021 daemon.err uhttpd[2322]: /tmp/tmp.sh: line 1: opkg: not found
Fri Oct 29 20:00:12 2021 daemon.err uhttpd[2322]: /tmp/tmp.sh: line 1: opkg: not found
Fri Oct 29 20:00:40 2021 daemon.err uhttpd[2322]: /tmp/tmp.sh: line 1: opkg: not found
Fri Oct 29 20:04:11 2021 daemon.err uhttpd[2322]: /tmp/tmp.sh: line 1: opkg: not found
Fri Oct 29 20:15:12 2021 daemon.err uhttpd[2322]: /tmp/tmp.sh: line 1: opkg: not found
And the utilization on the mounts:

Code: Select all

Filesystem                Size      Used Available Use% Mounted on
/dev/root                 5.5M      5.5M         0 100% /rom
tmpfs                    61.1M    244.0K     60.8M   0% /tmp
/dev/sdb1                21.8G     45.3M     20.7G   0% /overlay
overlayfs:/overlay       21.8G     45.3M     20.7G   0% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1                11.0G     40.8M     10.3G   0% /tmp/usb_mount/6da5edcb-01

ejlviking
Posts: 13
Joined: Mon Jun 20, 2016 4:59 pm

Re: Missing Plugins After External Root USB

Post by ejlviking »

I ran a "gpkg update" to restore all the data.
I see all the plugins now.

I am still unsure about this log entry:
Fri Oct 29 21:30:57 2021 daemon.err uhttpd[2322]: /tmp/tmp.sh: line 1: opkg: not found
Fri Oct 29 21:36:08 2021 daemon.err uhttpd[2322]: /bin/sh: opkg: not found

Is it worth just installing 1.12 again with the USB drives attached and start with a fresh load?

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Missing Plugins After External Root USB

Post by Lantis »

Opkg missing is interesting... Opkg should be symlinked to gpkg. Can you confirm that on the command line "opkg" doesn't work?
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ejlviking
Posts: 13
Joined: Mon Jun 20, 2016 4:59 pm

Re: Missing Plugins After External Root USB

Post by ejlviking »

Indeed it does not work.
I can add it back in, but wonder what else it removed.

Code: Select all

root@Gargoyle:/# find . -name *opkg*
./etc/opkg
./etc/opkg.conf
./overlay/upper/plugin_root/usr/lib/opkg
./overlay/upper/usr/lib/opkg
./overlay/upper/etc/opkg.gpkg.tmp
./overlay/upper/etc/opkg
./overlay/upper/etc/opkg.conf
./rom/etc/opkg
./rom/etc/opkg.gpkg.tmp
./rom/usr/lib/opkg
./tmp/opkg-lists
./usr/lib/opkg
./plugin_root/usr/lib/opkg

ejlviking
Posts: 13
Joined: Mon Jun 20, 2016 4:59 pm

Re: Missing Plugins After External Root USB

Post by ejlviking »

I wound up reinstalling 1.12.0.

I ran into further issues running the USB drive as extroot, so opted out of that. Everything seemed to work but I could not see the data on some of the screens like dhcp lease list, and the basic configuration screen was blank. If you run those pages manually from the command line, the data shows up, so not sure why the pages wouldn't populate.

I also found that my second USB drive that plugin_root was using failed, so that could have been then problem.

I am basically back to square one running on the core system with the good USB drive as plugin_root. I have ad blocker, logread, SSL email, and ping watchdog all installed and only at 48% usage on /overlay, so I am happy with that.

Post Reply