command not found

Having issues? Post them here, and help other users.
Post Reply
Mo00
Junior Member
Posts: 5
Joined: Thu Apr 07, 2022 2:27 pm

command not found

Post 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 :( :(
frodestian
Junior Member
Posts: 3
Joined: Wed Jul 06, 2022 3:34 am

Re: command not found

Post by frodestian »

What command are you trying to run ?


Frode Stian Andersen
Oslo, Norway
Mo00
Junior Member
Posts: 5
Joined: Thu Apr 07, 2022 2:27 pm

Re: command not found

Post by Mo00 »

for example: sudo nems-upgrade or sudo nems-update
frodestian
Junior Member
Posts: 3
Joined: Wed Jul 06, 2022 3:34 am

Re: command not found

Post 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
tomkoe122
Junior Member
Posts: 2
Joined: Sat Jul 16, 2022 9:36 am

Re: command not found

Post 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
frozen
Junior Member
Posts: 2
Joined: Tue Jul 19, 2022 2:22 am

Re: command not found

Post 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
tomkoe122
Junior Member
Posts: 2
Joined: Sat Jul 16, 2022 9:36 am

Re: command not found

Post 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
frozen
Junior Member
Posts: 2
Joined: Tue Jul 19, 2022 2:22 am

Re: command not found

Post by frozen »

I can confirm that this solves the problem.

Great! Thank you so much!
Post Reply