Extroot workign, cannot install plugins

Report problems and success stories with Gargoyle on various hardware platforms.

Moderator: Moderators

Post Reply
IanBlakeley
Posts: 32
Joined: Mon Nov 27, 2017 6:10 am
Location: Penang, Malaysia
Contact:

Extroot workign, cannot install plugins

Post by IanBlakeley »

After a couple of tries I have extroot working on a TP-Link TL-WDR3600 v1 with version1.10.0, having had previous space problems with plugins, however, now although it seems I should have plenty of available space
Image
the entire plugin list reports not enough space available
Image
restarted browser as per one suggestion on here. Can I install via CLI?

oliver
Posts: 48
Joined: Wed Jun 04, 2014 7:30 pm

Re: Extroot workign, cannot install plugins

Post by oliver »

can you post the output from both 'df -k' and 'mount' (from an SSH session)?

IanBlakeley
Posts: 32
Joined: Mon Nov 27, 2017 6:10 am
Location: Penang, Malaysia
Contact:

Re: Extroot workign, cannot install plugins

Post by IanBlakeley »

Sure, here you are

Code: Select all

root@Gargoyle:/# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                 2434032      4504   2286172   0% /
/dev/root                 6144      6144         0 100% /rom
tmpfs                   262144       608    261536   0% /tmp
/dev/sda1              2434032      4504   2286172   0% /overlay
overlayfs:/overlay     2434032      4504   2286172   0% /
tmpfs                      512         0       512   0% /dev

Code: Select all

root@Gargoyle:/# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=262144k)
/dev/sda1 on /overlay type ext4 (rw,relatime,data=ordered)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)



oliver
Posts: 48
Joined: Wed Jun 04, 2014 7:30 pm

Re: Extroot workign, cannot install plugins

Post by oliver »

interesting... mine looks slightly different (on a 3600 too)

Code: Select all

root@Gargoyle:~# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                     704       328       376  47% /
/dev/root                 6144      6144         0 100% /rom
tmpfs                    63040       260     62780   0% /tmp
/dev/mtdblock3             704       328       376  47% /overlay
overlayfs:/overlay         704       328       376  47% /
tmpfs                      512         0       512   0% /dev
/dev/sda1               174328     11007    150424   7% /tmp/usb_mount/0b5bfa5f-6f03-4669-8ad3-825944ebb318

Code: Select all

root@Gargoyle:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
/dev/sda1 on /tmp/usb_mount/0b5bfa5f-6f03-4669-8ad3-825944ebb318 type ext4 (rw,noatime,data=ordered)
When you go to the web portal and go to system > plugins does it show the size of the USB drive and the amount free?

I'm not sure how but it looks like something got mounted over the top of your external USB drive

IanBlakeley
Posts: 32
Joined: Mon Nov 27, 2017 6:10 am
Location: Penang, Malaysia
Contact:

Re: Extroot workign, cannot install plugins

Post by IanBlakeley »

Picture is in first post just checked, still shows 2.180GB free space on the webguil under system plugins. I've tried rebooting, tried turning off the power and then back on again after a few minutes still the same

IanBlakeley
Posts: 32
Joined: Mon Nov 27, 2017 6:10 am
Location: Penang, Malaysia
Contact:

Re: Extroot workign, cannot install plugins

Post by IanBlakeley »

Any idea anyone? Looks like I have more accessible space with extroot off albeit it tiny.

IanBlakeley
Posts: 32
Joined: Mon Nov 27, 2017 6:10 am
Location: Penang, Malaysia
Contact:

Re: Extroot workign, cannot install plugins

Post by IanBlakeley »

Finally got to the bottom of this after starting from scratch again. Note still needed 8 attempts at formatting the extroot drive until the router used it. In the end the problem is the symlink pointing at plugin_root is going to the data partition on the card mounted from the tmp folder which never seems to get mounted so does not exist.

Made a directory off the root and changed the symlink

Code: Select all

wxrwxrwx    1 root     root            20 Dec 17 11:19 plugin_root -> /plugin/plugin_root/
Now all seems to be okay, installed the adblock plugin and that's working just need to decide which others I would like

d3fz
Posts: 277
Joined: Sun Aug 28, 2016 7:34 pm

Re: Extroot workign, cannot install plugins

Post by d3fz »

So was it a bug or something else (wrong configuration)?

If it was indeed a bug, would you mind sharing the exact same steps you took to solve it? It might be helpful to others as well (myself included), and probably a definitive fix in the meantime.
TP-Link Archer C7 v2 - Gargoyle 1.12.X
TP-Link WR842ND v2 - Gargoyle 1.10.X
TP-Link RE450 AC v2 - Stock FW 1.0.4
TP-Link WA850RE v1.2 - LEDE 17.01.1

IanBlakeley
Posts: 32
Joined: Mon Nov 27, 2017 6:10 am
Location: Penang, Malaysia
Contact:

Re: Extroot working, cannot install plugins (SOLVED)

Post by IanBlakeley »

d3fz wrote:So was it a bug or something else (wrong configuration)?

If it was indeed a bug, would you mind sharing the exact same steps you took to solve it? It might be helpful to others as well (myself included), and probably a definitive fix in the meantime.
I noticed that when running without extroot the USB drive is seen as available. Formatting to get it taken into use as an extroot should leave 75% (assuming) default available as an attached USB drive, I never saw this where I had both.

Digging in via ssh there's a symlink in the root directoy for plugin_root that points to /tmp/usb mount <uuid> (sorry didn;t save the actual). Obviously if the USB is not mounting then the directory doesn't exist and hence there's no space for plugins. I created an directory /plugin/plugin_root and then since you can't edit symlinks I made a symlink in the /tmp directory and then moved it to / overwriting the existing one and effectively moving the location of plugin_root.

I was going to place in the /tmp but of course that gets recreated on a reboot wiping whatever is in there

Code: Select all

root@Gargoyle:/tmp# ln -s /plugin/plugin_root plugin_root

root@Gargoyle:/tmp# mv  plugin_root /plugin_root
So now the / directory is

Code: Select all

root@Gargoyle:/# ls -altr
dr-xr-xr-x   52 root     root             0 Jan  1  1970 proc
dr-xr-xr-x   11 root     root             0 Jan  1  1970 sys
drwxr-xr-x    6 root     root          4096 Jan  1  1970 overlay
drwxr-xr-x    2 root     root             3 Oct 26 00:36 root
drwxr-xr-x    2 root     root             3 Oct 26 00:36 mnt
lrwxrwxrwx    1 root     root             4 Oct 26 00:38 var -> /tmp
drwxr-xr-x    2 root     root           850 Oct 26 00:38 sbin
drwxr-xr-x   11 root     root           861 Oct 26 00:38 lib
drwxr-xr-x   16 root     root           223 Oct 26 00:38 rom
drwxr-xr-x    1 root     root          4096 Dec 17 10:47 usr
lrwxrwxrwx    1 root     root             8 Dec 17 10:47 nfs -> /tmp/nfs
drwxr-xr-x    1 root     root          4096 Dec 17 10:47 bin
-rw-r--r--    1 root     root             0 Dec 17 11:10 error
drwxr-xr-x    3 root     root          4096 Dec 17 11:18 plugin
lrwxrwxrwx    1 root     root            20 Dec 17 11:19 plugin_root -> /plugin/plugin_root/
drwxr-xr-x    1 root     root          4096 Dec 17 11:20 ..
drwxr-xr-x    1 root     root          4096 Dec 17 11:20 .
drwxr-xr-x    1 root     root          4096 Dec 17 13:17 www
drwxr-xr-x    5 root     root           940 Dec 17 14:21 dev
drwxr-xr-x    1 root     root          4096 Dec 17 14:21 etc
drwxrwxrwt   20 root     root           560 Dec 18 10:34 tmp

d3fz
Posts: 277
Joined: Sun Aug 28, 2016 7:34 pm

Re: Extroot workign, cannot install plugins

Post by d3fz »

Thanks for explaining in details. I might give it a try later and see how it goes (never messed with extroot).
TP-Link Archer C7 v2 - Gargoyle 1.12.X
TP-Link WR842ND v2 - Gargoyle 1.10.X
TP-Link RE450 AC v2 - Stock FW 1.0.4
TP-Link WA850RE v1.2 - LEDE 17.01.1

Post Reply