Hello There, Guest!  
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

problems running nems commands

#1
i seem to be running into an issue when going through the install process.

everything is great up until i need to do a <sudo nems-mailtest <email>> or <sudo nems-upgrade> etc.

i just get a "command not found" error.

any suggestions?

thanks in advance.
 Reply
#2
Is that what you're typing into the terminal verbatim?

The correct commands would be:

sudo nems-mailtest [email protected]

Where [email protected] is the recipient.

And to upgrade NEMS, it's:

sudo nems-upgrade

If you are typing the commands correctly, try running this command first: sudo nems-update

What version of NEMS are you running (you'll see this on the screen when you first connect to SSH)?

Good luck. Let me know if that helps.
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#3
sorry, yes that's exactly the same thing that i've typed and i get the command not found error.

i also tried <sudo nems-update> and got the same thing "command not found".

i'm running version 1.2.1
 Reply
#4
the exact error is "sudo: nems-update: command not found"
 Reply
#5
Can you kindly paste me the entire terminal output, including what you type, and the error in its entirety? I also would like to know the output of the command: hostname

Thanks,
Robbie
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#6
login as: pi
[email protected]'s password:
Linux NEMS 4.9.28-v7+ #999 SMP Tue May 16 14:03:19 BST 2017 armv7l
Last login: Thu Sep 14 23:54:01 2017 from 192.168.0.243

                                 \ |  __|   \  |   __|
                                .  |  _|   |\/ | \__ \
                               _|\_| ___| _|  _| ____/

                                 BY: ROBBIE FERGUSON
                                  BALDNERD.COM/NEMS

  NEMS Version.....: 1.2.1 (Current Version is 1.2.3)
  NEMS IP Address..: 192.168.0.216
  Last Login.......: Sat Sep 16 15:41:51 from 192.168.0.243
  Uptime...........: 0days 0hours 0minutes 38seconds
  Load.............: 1.82 (1minute) 0.51 (5minutes) 0.17 (15minutes)
  Memory MB........: 970  Used: 154  Free: 593  Free Cached: 99  Swap In Use:
  Disk Usage.......: You're using 2MB in /home/pi
  SSH Logins.......: 1 user logged in
  Processes........: 152 total running of which 6 are yours
[email protected]:~ $ sudo nems-update
sudo: nems-update: command not found
[email protected]:~ $ hostname
NEMS
 Reply
#7
Thanks.

Can you type: sudo reboot 
And then try the same commands?

Also, please confirm the NEMS server has Internet connectivity, yes? Eg., ping google.com
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#8
Code:
sudo reboot

lost pi ssh connection

logged back in via putty

login as: pi
[email protected]'s password:
Linux NEMS 4.9.28-v7+ #999 SMP Tue May 16 14:03:19 BST 2017 armv7l
Last login: Sat Sep 16 18:42:16 2017 from 192.168.0.243

                                 \ |  __|   \  |   __|
                                .  |  _|   |\/ | \__ \
                               _|\_| ___| _|  _| ____/

                                 BY: ROBBIE FERGUSON
                                  BALDNERD.COM/NEMS

  NEMS Version.....: 1.2.1 (Current Version is 1.2.3)
  NEMS IP Address..: 192.168.0.216
  Last Login.......: Sat Sep 16 18:44:00 from 192.168.0.243
  Uptime...........: 0days 0hours 1minutes 24seconds
  Load.............: 1.04 (1minute) 0.45 (5minutes) 0.17 (15minutes)
  Memory MB........: 970  Used: 178  Free: 547  Free Cached: 99  Swap In Use:
  Disk Usage.......: You're using 2MB in /home/pi
  SSH Logins.......: 1 user logged in
  Processes........: 145 total running of which 6 are yours
[email protected]:~ $ sudo nems-update
sudo: nems-update: command not found
[email protected]:~ $ ping google.com
PING google.com(lax02s23-in-x0e.1e100.net (2607:f8b0:4007:80b::200e)) 56 data bytes
64 bytes from lax02s23-in-x0e.1e100.net (2607:f8b0:4007:80b::200e): icmp_seq=1 ttl=55 time=29.5 ms
64 bytes from lax02s23-in-x0e.1e100.net (2607:f8b0:4007:80b::200e): icmp_seq=2 ttl=55 time=28.0 ms
64 bytes from lax02s23-in-x0e.1e100.net (2607:f8b0:4007:80b::200e): icmp_seq=3 ttl=55 time=29.9 ms
64 bytes from lax02s23-in-x0e.1e100.net (2607:f8b0:4007:80b::200e): icmp_seq=4 ttl=55 time=24.5 ms
64 bytes from lax02s23-in-x0e.1e100.net (2607:f8b0:4007:80b::200e): icmp_seq=5 ttl=55 time=30.3 ms
64 bytes from lax02s23-in-x0e.1e100.net (2607:f8b0:4007:80b::200e): icmp_seq=6 ttl=55 time=35.2 ms
^Z
[1]+  Stopped                 ping google.com
[email protected]:~ $ ping yahoo.com
PING yahoo.com(ir1.fp.vip.bf1.yahoo.com (2001:4998:58:c02::a9)) 56 data bytes
64 bytes from ir1.fp.vip.bf1.yahoo.com (2001:4998:58:c02::a9): icmp_seq=1 ttl=53 time=90.2 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (2001:4998:58:c02::a9): icmp_seq=2 ttl=53 time=96.8 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (2001:4998:58:c02::a9): icmp_seq=3 ttl=53 time=95.8 ms
^X64 bytes from ir1.fp.vip.bf1.yahoo.com (2001:4998:58:c02::a9): icmp_seq=4 ttl=53 time=91.9 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (2001:4998:58:c02::a9): icmp_seq=5 ttl=53 time=138 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (2001:4998:58:c02::a9): icmp_seq=6 ttl=53 time=93.0 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (2001:4998:58:c02::a9): icmp_seq=7 ttl=53 time=91.2 ms
^Z
[2]+  Stopped
 Reply
#9
How strange. I am starting to wonder if you got a bad/corrupted image ... but strange it'd react this way even if that was the case.

Try running the update script directly as follows:

Code:
sudo /home/pi/nems-scripts/update.sh


Work?

Very curious as to why your deployment is having this issue... a bad image, or something. If I can SSH in, please email me. I wouldn't mind having a look to see if I can spot why this is happening to you (definitely not normal)!

Do you still have your img download? Can you check the MD5 checksum to see if it matches what it should be?

Thanks,
Robbie
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#10
md5 checks out ok

i've wiped and reburned it a few times before contacting you and always the same results.

i'm on windows and using etcher, but i'm pretty sure that's not the issue since the md5 checks out ok.

i'll pm you with connection info
 Reply
 
 
Forum Jump:

Users browsing this thread: 1 Guest(s)