drotek / SMARTNAV-RTK

Drotek SMARTNAV RTK - Hardware and Software - Open Source centimeter level positioning
38 stars 25 forks source link

No NPM install, Could be broke install ... #13

Open kikislater opened 8 years ago

kikislater commented 8 years ago

I have a card with no npm installed on it.

Output from smartnav-update is that :

rm '/etc/systemd/system/multi-user.target.wants/drotek-rtklib-rover.service' rm '/etc/systemd/system/multi-user.target.wants/drotek-gulp.service' rm '/etc/systemd/system/multi-user.target.wants/drotek-webconsole.service' rm '/etc/systemd/system/default.target.wants/drotek-time-sync.service' ./install_update.sh: line 60: npm: command not found ./install_update.sh: line 62: npm: command not found ln -s '/lib/systemd/system/drotek-gulp.service' '/etc/systemd/system/multi-user.target.wants/drotek-gulp.service' ln -s '/lib/systemd/system/drotek-webconsole.service' '/etc/systemd/system/multi-user.target.wants/drotek-webconsole.service' ln -s '/lib/systemd/system/drotek-time-sync.service' '/etc/systemd/system/default.target.wants/drotek-time-sync.service' ln -s '/lib/systemd/system/drotek-rtklib-rover.service' '/etc/systemd/system/multi-user.target.wants/drotek-rtklib-rover.service' Update done

Which package should I have to install with opkg ?

klopezal commented 8 years ago

In last version all packages are included inside Yocto recipe (opkg is not used) and npm is installed by default. Can you please tell me the output of smartnav-status ?

kikislater commented 8 years ago

Few minutes after issue, I installed nodejs-npm with opkg and everything goes right. It was on the original device, not the re-flashed one.

Base (where I installed nodejs-npm) :

# smartnav-status
######################################## ROVER STATUS ############################################################
● drotek-rtklib-rover.service - RTKLIB Service
   Loaded: loaded (/lib/systemd/system/drotek-rtklib-rover.service; disabled)
   Active: inactive (dead)

######################################## BASE STATUS #############################################################
● drotek-rtklib-base.service - RTKLIB Service
   Loaded: loaded (/lib/systemd/system/drotek-rtklib-base.service; enabled)
   Active: active (running) since Fri 2016-09-16 16:53:49 UTC; 8min ago
 Main PID: 2353 (run-base)
   CGroup: /system.slice/drotek-rtklib-base.service
           ├─2353 /bin/bash /usr/drotek/rtklib/run-base
           └─2354 /usr/drotek/rtklib/str2str -c /usr/drotek/config/base.cmd -in serial://ttyACM0 -out serial://ttyUSB0:57600:8:n:1:off

Sep 16 17:01:15 smartnav-rtk-ea14 run-base[2353]: 2016/09/16 17:01:32 [EE---]     333640 B    5824 bps
Sep 16 17:01:20 smartnav-rtk-ea14 run-base[2353]: 2016/09/16 17:01:37 [EE---]     337295 B    5845 bps
Sep 16 17:01:25 smartnav-rtk-ea14 run-base[2353]: 2016/09/16 17:01:42 [EE---]     340950 B    5845 bps
Sep 16 17:01:30 smartnav-rtk-ea14 run-base[2353]: 2016/09/16 17:01:47 [EE---]     344605 B    5827 bps
Sep 16 17:01:35 smartnav-rtk-ea14 run-base[2353]: 2016/09/16 17:01:52 [EE---]     348260 B    5839 bps
Sep 16 17:01:40 smartnav-rtk-ea14 run-base[2353]: 2016/09/16 17:01:57 [EE---]     351907 B    5814 bps
Sep 16 17:01:45 smartnav-rtk-ea14 run-base[2353]: 2016/09/16 17:02:02 [EE---]     355536 B    5791 bps
Sep 16 17:01:50 smartnav-rtk-ea14 run-base[2353]: 2016/09/16 17:02:07 [EE---]     359159 B    5781 bps
Sep 16 17:01:55 smartnav-rtk-ea14 run-base[2353]: 2016/09/16 17:02:12 [EE---]     362790 B    5800 bps
Sep 16 17:02:00 smartnav-rtk-ea14 run-base[2353]: 2016/09/16 17:02:17 [EE---]     366433 B    5818 bps

######################################## WEBSERVER STATUS #########################################################
● drotek-gulp.service - Gulp Service
   Loaded: loaded (/lib/systemd/system/drotek-gulp.service; enabled)
   Active: active (running) since Tue 2016-09-06 13:16:30 UTC; 1 weeks 3 days ago
 Main PID: 257 (gulp)
   CGroup: /system.slice/drotek-gulp.service
           └─257 gulp

Sep 06 13:16:30 smartnav-rtk-ea14 systemd[1]: Started Gulp Service.
Sep 16 16:42:43 smartnav-rtk-ea14 gulp[257]: [16:42:43] Working directory changed to /usr/drotek/webconsole/web
Sep 16 16:42:48 smartnav-rtk-ea14 gulp[257]: [16:42:48] Using gulpfile /usr/drotek/webconsole/web/gulpfile.js
Sep 16 16:42:48 smartnav-rtk-ea14 gulp[257]: [16:42:48] Starting 'connect'...
Sep 16 16:42:48 smartnav-rtk-ea14 gulp[257]: [16:42:48] Finished 'connect' after 345 ms
Sep 16 16:42:48 smartnav-rtk-ea14 gulp[257]: [16:42:48] Starting 'default'...
Sep 16 16:42:48 smartnav-rtk-ea14 gulp[257]: [16:42:48] Finished 'default' after 107 μs
Sep 16 16:42:48 smartnav-rtk-ea14 gulp[257]: [16:42:48] Server started http://0.0.0.0:8080

######################################## WEB CONSOLE STATUS ######################################################
● drotek-webconsole.service - Web Console Service
   Loaded: loaded (/lib/systemd/system/drotek-webconsole.service; enabled)
   Active: active (running) since Tue 2016-09-06 13:16:30 UTC; 1 weeks 3 days ago
 Main PID: 243 (node)
   CGroup: /system.slice/drotek-webconsole.service
           └─243 /usr/bin/node /usr/drotek/webconsole/app/app.js

Sep 16 16:53:40 smartnav-rtk-ea14 node[243]: /bin/systemctl start drotek-rtklib-base.service
Sep 16 16:53:41 smartnav-rtk-ea14 node[243]: /bin/systemctl status drotek-rtklib-base.service
Sep 16 16:53:47 smartnav-rtk-ea14 node[243]: /bin/systemctl status drotek-rtklib-rover.service
Sep 16 16:53:47 smartnav-rtk-ea14 node[243]: /bin/systemctl status drotek-rtklib-base.service
Sep 16 16:53:48 smartnav-rtk-ea14 node[243]: run-base saved
Sep 16 16:53:48 smartnav-rtk-ea14 node[243]: /bin/systemctl start drotek-rtklib-base.service
Sep 16 16:53:50 smartnav-rtk-ea14 node[243]: /bin/systemctl status drotek-rtklib-rover.service
Sep 16 16:53:50 smartnav-rtk-ea14 node[243]: /bin/systemctl status drotek-rtklib-base.service
Sep 16 16:53:52 smartnav-rtk-ea14 node[243]: /bin/systemctl status drotek-rtklib-rover.service
Sep 16 16:53:52 smartnav-rtk-ea14 node[243]: /bin/systemctl status drotek-rtklib-base.service
root@smartnav-rtk-ea14:~# 

Rover :

root@smartnav-rtk-aaaa:~# smartnav-status 
######################################## ROVER STATUS ############################################################
● drotek-rtklib-rover.service - RTKLIB Service
   Loaded: loaded (/lib/systemd/system/drotek-rtklib-rover.service; enabled)
   Active: active (running) since Fri 2016-09-16 17:00:26 UTC; 39s ago
 Main PID: 364 (run-rover)
   CGroup: /system.slice/drotek-rtklib-rover.service
           ├─364 /bin/bash /usr/drotek/rtklib/run-rover
           └─370 /usr/drotek/rtklib/rtkrcv -o /usr/drotek/config/active_config -t 2 -r 2 -d /dev/tty21 -s

Sep 16 17:00:26 smartnav-rtk-aaaa systemd[1]: Started RTKLIB Service.
Sep 16 17:00:26 smartnav-rtk-aaaa libmraa[370]: libmraa version v0.7.2 initialised by user 'root' with EUID 0
Sep 16 17:00:26 smartnav-rtk-aaaa libmraa[370]: gpio: Failed to write 214 to export

######################################## BASE STATUS #############################################################
● drotek-rtklib-base.service - RTKLIB Service
   Loaded: loaded (/lib/systemd/system/drotek-rtklib-base.service; disabled)
   Active: inactive (dead)

######################################## WEBSERVER STATUS #########################################################
● drotek-gulp.service - Gulp Service
   Loaded: loaded (/lib/systemd/system/drotek-gulp.service; enabled)
   Active: active (running) since Tue 2016-09-06 12:27:07 UTC; 1 weeks 3 days ago
 Main PID: 275 (gulp)
   CGroup: /system.slice/drotek-gulp.service
           └─275 gulp

Sep 06 12:27:07 smartnav-rtk-aaaa systemd[1]: Started Gulp Service.
Sep 16 17:00:29 smartnav-rtk-aaaa gulp[275]: [17:00:29] Working directory changed to /usr/drotek/webconsole/web
Sep 16 17:00:34 smartnav-rtk-aaaa gulp[275]: [17:00:34] Using gulpfile /usr/drotek/webconsole/web/gulpfile.js
Sep 16 17:00:34 smartnav-rtk-aaaa gulp[275]: [17:00:34] Starting 'connect'...
Sep 16 17:00:34 smartnav-rtk-aaaa gulp[275]: [17:00:34] Finished 'connect' after 250 ms
Sep 16 17:00:34 smartnav-rtk-aaaa gulp[275]: [17:00:34] Starting 'default'...
Sep 16 17:00:34 smartnav-rtk-aaaa gulp[275]: [17:00:34] Finished 'default' after 76 μs
Sep 16 17:00:34 smartnav-rtk-aaaa gulp[275]: [17:00:34] Server started http://0.0.0.0:8080

######################################## WEB CONSOLE STATUS ######################################################
● drotek-webconsole.service - Web Console Service
   Loaded: loaded (/lib/systemd/system/drotek-webconsole.service; enabled)
   Active: active (running) since Tue 2016-09-06 12:27:07 UTC; 1 weeks 3 days ago
 Main PID: 258 (node)
   CGroup: /system.slice/drotek-webconsole.service
           └─258 /usr/bin/node /usr/drotek/webconsole/app/app.js

Sep 06 12:27:07 smartnav-rtk-aaaa systemd[1]: Started Web Console Service.
Sep 16 17:00:29 smartnav-rtk-aaaa node[258]: Listening on port 3000...