Page 1 of 1
command not found
Posted: Mon Jul 11, 2022 2:49 am
by Mo00
Hello,
I have a problem that I can't upgrade the Nems-server
When I type any command The server is not responding and it says **command not found**
can you help me?
Thanks
Re: command not found
Posted: Mon Jul 11, 2022 10:18 am
by frodestian
What command are you trying to run ?
Frode Stian Andersen
Oslo, Norway
Re: command not found
Posted: Wed Jul 13, 2022 2:33 am
by Mo00
for example: sudo nems-upgrade or sudo nems-update
Re: command not found
Posted: Thu Jul 14, 2022 7:46 am
by frodestian
At least in 1.5 the files should be in /usr/local/bin/
try to type: locate nems-update and see if it shows there if not try to locate with sudo.
Frode Stian
Re: command not found
Posted: Mon Jul 18, 2022 6:21 am
by tomkoe122
Hi
i have the same problem.
all the files are located in /usr/local/bin
i also get an Error message when i am logging in:
Last login: Sat Jul 16 16:28:03 2022 from XXX.XXX.XXX.XXX
couldn't execute "/usr/local/bin/nems-info": no such file or directory
while executing
"exec -- /usr/local/bin/nems-info platform-name"
invoked from within
"set nemsplatform [exec -- /usr/local/bin/nems-info platform-name]"
(file "/etc/motd.tcl" line 19)
nemspi@nagios-pi:~ $ locate nems-update
/usr/local/bin/nems-update
/usr/local/share/nems/nems-scripts/nems-update
/var/log/nems/nems-update.last
Re: command not found
Posted: Tue Jul 19, 2022 6:19 am
by frozen
Hi,
I have the same problem.
Links in /usr/local/bin
Code: Select all
lrwxrwxrwx 1 root root 42 Mai 16 22:21 mrtgsetup -> /usr/local/share/nems/nems-scripts/mrtg.sh
lrwxrwxrwx 1 root root 47 Jun 26 2019 nems-benchmark -> /usr/local/share/nems/nems-scripts/benchmark.sh
lrwxrwxrwx 1 root root 46 Jun 26 2019 nems-cert -> /usr/local/share/nems/nems-scripts/gen-cert.sh
-rwxr-xr-x 1 root root 1559 Jun 26 2019 nems-fs-resize
lrwxrwxrwx 1 root root 42 Jun 26 2019 nems-info -> /usr/local/share/nems/nems-scripts/info.sh
lrwxrwxrwx 1 root root 42 Jun 26 2019 nems-init -> /usr/local/share/nems/nems-scripts/init.sh
lrwxrwxrwx 1 root root 61 Sep 8 2019 nems-install -> /usr/local/share/nems/nems-scripts/installers/install-vim3.sh
lrwxrwxrwx 1 root root 46 Jun 26 2019 nems-mailtest -> /usr/local/share/nems/nems-scripts/mailtest.sh
lrwxrwxrwx 1 root root 49 Mai 16 22:21 nems-passwd -> /usr/local/share/nems/nems-scripts/nems-passwd.sh
lrwxrwxrwx 1 root root 34 Jun 26 2019 nems-push -> /root/nems/nems-admin/nems-push.sh
lrwxrwxrwx 1 root root 46 Jun 26 2019 nems-quickfix -> /usr/local/share/nems/nems-scripts/quickfix.sh
lrwxrwxrwx 1 root root 35 Jun 26 2019 nems-restore -> /root/nems/nems-migrator/restore.sh
lrwxrwxrwx 1 root root 35 Jun 26 2019 nems-support -> /root/nems/nems-migrator/support.sh
lrwxrwxrwx 1 root root 44 Jun 26 2019 nems-update -> /usr/local/share/nems/nems-scripts/update.sh
lrwxrwxrwx 1 root root 45 Jun 26 2019 nems-upgrade -> /usr/local/share/nems/nems-scripts/upgrade.sh
lrwxrwxrwx 1 root root 49 Sep 8 2019 nems-webhooktest -> /usr/local/share/nems/nems-scripts/webhooktest.sh
Some the linked to files in /usr/local/share/nems/nems-scripts/
Code: Select all
-rwxr-xr-x 1 root root 2473 Jun 23 00:00 mrtgsetup
-rwxr-xr-x 1 root root 6288 Jun 23 00:00 nems-benchmark
-rwxr-xr-x 1 root root 1615 Jun 23 00:00 nems-cert
-rwxr-xr-x 1 root root 20562 Jun 23 00:00 nems-info
-rwxr-xr-x 1 root root 14896 Jun 23 00:00 nems-init
-rwxr-xr-x 1 root root 386 Jun 23 00:00 nems-install
-rwxr-xr-x 1 root root 231 Jun 23 00:00 nems-mailtest
-rwxr-xr-x 1 root root 2411 Jun 23 00:00 nems-passwd
-rwxr-xr-x 1 root root 2879 Jun 23 00:00 nems-quickfix
-rwxr-xr-x 1 root root 5650 Jun 23 00:00 nems-update
-rwxr-xr-x 1 root root 13518 Jun 23 00:00 nems-upgrade
-rwxr-xr-x 1 root root 508 Jun 23 00:00 nems-webhooktest
As we can see, something changed the names of files, destroying links and causing our problem.
Kind regards,
frozen
Re: command not found
Posted: Wed Jul 20, 2022 12:46 am
by tomkoe122
i got it
in my case i forgot to use this command for actualisation after the moving of the servers
cd /usr/local/share/nems/nems-scripts/ && sudo git pull
maybe someone else will help this
Tom
Re: command not found
Posted: Fri Jul 22, 2022 9:42 am
by frozen
I can confirm that this solves the problem.
Great! Thank you so much!