[ModBase1] Common libraries and tools for use by other modules

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
User avatar
outkastm
Gold Member
Posts: 1457
Joined: 29 Dec 2020, 23:52

Re: [ModBase1] Common libraries and tools for use by other modules

Post by outkastm »

install the latest version of ModBase1 and ffmpeg51
User avatar
Mordac85
Posts: 32
Joined: 26 Sep 2021, 10:58

Re: [ModBase1] Common libraries and tools for use by other modules

Post by Mordac85 »

I've had to reinstall TOS and now ModBase1 doesn't seem to install completely, version 1.00.17 x86_x64. I uninstalled it, updated to 5.1.67, and tried to reinstall but it gives the same symptoms. Is there a way to do this manually?
F5-221
TOS 5.1.67
4 x 4TB RAID5 EXT4
1 x 8TB EXT4
User avatar
Mordac85
Posts: 32
Joined: 26 Sep 2021, 10:58

Re: [ModBase1] Common libraries and tools for use by other modules

Post by Mordac85 »

Nevermind. I had other issues and reinstalled TOS which corrected the issue.
F5-221
TOS 5.1.67
4 x 4TB RAID5 EXT4
1 x 8TB EXT4
User avatar
DBa
Posts: 11
Joined: 08 Nov 2023, 03:53
Germany

Re: [ModBase1] Common libraries and tools for use by other modules

Post by DBa »

After installing TOS6, byobu does not work anymore, see attached screenshot
User avatar
DBa
Posts: 11
Joined: 08 Nov 2023, 03:53
Germany

Re: [ModBase1] Common libraries and tools for use by other modules

Post by DBa »

I was able to track it to the byobu-janitor script, line 46, which fails at the "install" command:
janitor.png
User avatar
outkastm
Gold Member
Posts: 1457
Joined: 29 Dec 2020, 23:52

Re: [ModBase1] Common libraries and tools for use by other modules

Post by outkastm »

In TOS6, TM has replaced the GNU coreutils installbinary with their own install binary used for apps installation, which has different function as the GNU coreutils version.
For this reason, the byobu-janitor failed to run.

You can install the updated ModBase1 app, where now the byobu-janitor will use the GNU coreutils install binary available in ModBase1 and not the one form the TOS.
User avatar
soyeb
Posts: 1
Joined: 28 Aug 2024, 08:27
Great Britain

Re: [ModBase1] Common libraries and tools for use by other modules

Post by soyeb »

Hi, are you planning to update the arm8.2 version? I need screen and tmux for my F4-212. Thanks.
User avatar
terribletakes
Posts: 1
Joined: 06 Nov 2024, 03:08
United States of America

Re: [ModBase1] Common libraries and tools for use by other modules

Post by terribletakes »

I'm having problems getting modbase installed - I have TOS6 and I have downloaded and tried to reinstall the modbase 1 app several times and it fails to install correctly.

Image
User avatar
nyllet83
Posts: 2
Joined: 25 May 2025, 04:34
Sweden

Re: [ModBase1] Common libraries and tools for use by other modules

Post by nyllet83 »

terribletakes wrote: 06 Nov 2024, 03:11 I'm having problems getting modbase installed - I have TOS6 and I have downloaded and tried to reinstall the modbase 1 app several times and it fails to install correctly.

Image
I have the same problem.
User avatar
nemirco
Posts: 1
Joined: 16 Nov 2025, 17:38
Bulgaria

Re: [ModBase1] Common libraries and tools for use by other modules

Post by nemirco »

Hey, I'm using F2-210 and installed this package (version is 1.00.03). Everything seems normal, but adding the ModBase1 to PATH. I've tried a a couple of times but without succeed. Then I logged to SSH switch to root and enter:

Code: Select all

root@TNAS:/etc/init.d# ./ModBase1 start 
stat: unrecognized option '--printf=%s'
.
.
./ModBase1: line 22: [: -lt: unary operator expected
Then open the Modbase1 file and search for line 22:

Code: Select all

elif [ $(stat --printf="%s" /mnt/appdata/MOD_CONFIG/SSL_cert/cacert.pem) -lt 30720 ]; then
It seems something is wrong with "stat" command so after reading the manual of the command I 've change the option

Code: Select all

-printf="%s"
to

Code: Select all

-c "%s"
Then test again, and this time there is no errors, but again the problem with PATH still persist.
After looking again in ModBase1 file i saw the function for adding path:

Code: Select all

addpath(){

[ ! -f /etc/profile.d/$MOD_NAME.sh ] && cp -af /usr/local/$MOD_NAME/bin/$MOD_NAME.sh /etc/profile.d
So I've tried:

Code: Select all

root@TNAS:/etc/init.d# ./ModBase1 addpath
cp: can't stat '/usr/local/ModBase1/bin/ModBase1.sh': No such file or directory
It seems the file ModBase1.sh which is responsible for adding PATH is missing.
I've searched the whole system for this file, but the file is missing:

Code: Select all

root@TNAS:/etc/init.d# find / -name ModBase1
/mnt/md0/application/version/ModBase1
/mnt/md0/application/ModBase1
/mnt/md0/application/ModBase1/sys/share/gdb/auto-load/usr/local/ModBase1
/mnt/md0/application/pkgs/ModBase1
/mnt/md0/application/pkgs/ModBase1/usr/local/ModBase1
/mnt/md0/application/pkgs/ModBase1/usr/local/ModBase1/sys/share/gdb/auto-load/usr/local/ModBase1
/mnt/md0/application/pkgs/ModBase1/usr/www/modules/ModBase1
/mnt/md0/application/pkgs/ModBase1/etc/init.d/ModBase1
/mnt/md0/application/uninstall/ModBase1
/usr/www/modules/ModBase1
/etc/store/installed/ModBase1
/etc/sc.d/ModBase1
/etc/init.d/ModBase1
find: /proc/18087: No such file or directory
Could you fix that?
Post Reply

Return to “Developer Discussion Room”