Support for mips_4kec instructionset (for example GS1900-8HP)
Opened this issue · 5 comments
Hi everyone,
I tried to install the Meshagent (installflag 28) on the device above but received following error: fs.openSync(): Error opening '/usr/local/mesh_services/meshagent/meshagent'
I tried the other Options as well but nothing was compatible (40, 41).
Is there a special build for this available or possible to add?
Additional info:
"meshVersion": "v1.1.19",
"nodeVersion": "v21.6.1",
Device: ZyXEL GS1900-8HP v2 Switch
Firmware: OpenWrt 23.05.0 r23497-6637af95aa / LuCI openwrt-23.05 branch git-23.236.53405-fc638c8
Thanks in advance!
fs.opensync to me screams you have readonly permission on your filesystem
where is the meshagent
installed to?
does it exist at /usr/local/mesh_services/meshagent/meshagent
?
fs.opensync to me screams you have readonly permission on your filesystem where is the
meshagent
installed to? does it exist at/usr/local/mesh_services/meshagent/meshagent
?
Thanks for the fast response! It exists and I remember having to adjust the initial chmod + x ./meshagent command to chmod 777 ./meshagent before to be able to start the installation first. There was something shown on the first installation like error on chmod() but was promptly wiped before I could copy it :(
I now tried setting it manually to chmod 777 at /usr/local/mesh_services/meshagent/meshagent
but it reports chmod: ./meshagent: No space left on device
Feedback is much obliged, In the meantime I will check if it is really full and possible steps to clean some tmp files
Kind regards!
So I did some more digging at this and made the following observations:
Checking the mem usage via the command "free" returns following output:
root@OpenWrt:/usr/local/mesh_services/meshagent# free
total used free shared buff/cache available
Mem: 121912 28808 73984 4288 19120 56824
Swap: 0 0 0
which should be fine If my understanding is correct.
The interesting part are the results of the df
command:
root@OpenWrt:/usr/local/mesh_services/meshagent# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2816 2816 0 100% /rom
tmpfs 60956 4224 56732 7% /tmp
tmpfs 60956 64 60892 0% /tmp/root
tmpfs 512 0 512 0% /dev
/dev/mtdblock8 960 936 24 98% /overlay
overlayfs:/overlay 960 936 24 98% /
Which implies that there really is no sufficient space for Meshagent on /usr/local/mesh_services/meshagent/meshagent
For testing I tried creating a directory /tmp/custommeshagent
with chmod 777 applied to it and run following command with these results:
root@OpenWrt:/tmp# ./meshagent -install --installPath="/tmp/custommeshagent"
sh:
getent: not found
...Checking for previous installation of "meshagent" [NONE]
...Installing service [ERROR] FS CreateWriteStream Error
So no further progress from my side and no Idea what to try next.
Kind regards!
@sk20224 sadly without a device of some form to test, I cannot look into it I'm sorry
https://www.si458.co.uk/2024/01/05/donation/ you can donate money or send me an email and I'll send u my address to post hardware u don't mind donating