Re: #drawsmanager #draws-manager #drawsmanager #draws-manager


Basil Gunn
 

Hi John,
Some things to try:

# Update your local n7nix repo
# The following will also make sure your sensors config file is current
# which is required by DRAWS manager

cd
cd n7nix/config
./bin_refresh.sh

# Make sure you have the latest version of DRAWS manager

cd ../manager
sudo su
./install.sh

# Stop pulseaudio
# Assuming you are still sudo su

systemctl --system stop pulseaudio
systemctl --system disable pulseaudio
systemctl --user disable pulseaudio
systemctl --user stop pulseaudio

# Become normal user

exit

# Stop DRAWS manager

mgr-ctrl.sh stop

# Verify that your RPi is not having heat problems
# throttled=0x0

pi_throt.sh

# Verify that you are not using a buggy kernel

buginfo.sh

# Reboot your RPi and start Draws manager
# Note that we are not starting Draws manager from boot

mgr-ctrl.sh start

# Verify status of Draws manager

mgr-ctrl.sh status

# Verify RPi temperature

pi_throt.sh


John Spoonhower <jpspoonhower@gmail.com> writes:

Basil or John,
I am seeing some new strangeness when trying to startup the draws manager.When I startup with the commandkline it like OK:
mgr-ctrl.sh start
Starting: draws-manager
pi@draws:~ $ mgr-ctrl.sh status
● draws-manager.service - DRAWS™ Manager - A web application to manage the DRAW™ HAT configuration.
Loaded: loaded (/etc/systemd/system/draws-manager.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2021-03-25 19:17:17 EDT; 3s ago
Docs: https://github.com/nwdigitalradio/draws-manager
Main PID: 2130 (node)
Tasks: 7 (limit: 2063)
CGroup: /system.slice/draws-manager.service
└─2130 node /usr/bin/npm start

Mar 25 19:17:17 draws systemd[1]: Started DRAWS™ Manager - A web applicati…ion..
Hint: Some lines were ellipsized, use -l to show in full.

Status for draws-manager: RUNNING and ENABLED

However after a short time (~10 seconds) a repeat of the status command shows it has failed:

pi@draws:~ $ mgr-ctrl.sh status -l
● draws-manager.service - DRAWS™ Manager - A web application to manage the DRAW™ HAT configuration.
Loaded: loaded (/etc/systemd/system/draws-manager.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2021-03-25 19:18:29 EDT; 1s ago
Docs: https://github.com/nwdigitalradio/draws-manager
Process: 2195 ExecStart=/usr/bin/npm start (code=exited, status=1/FAILURE)
Main PID: 2195 (code=exited, status=1/FAILURE)

Mar 25 19:18:29 draws npm[2195]: npm ERR! errno 1
Mar 25 19:18:29 draws npm[2195]: npm ERR! webapp@0.0.1 start: `node ./bin/www`
Mar 25 19:18:29 draws npm[2195]: npm ERR! Exit status 1
Mar 25 19:18:29 draws npm[2195]: npm ERR!
Mar 25 19:18:29 draws npm[2195]: npm ERR! Failed at the webapp@0.0.1 start script.
Mar 25 19:18:29 draws npm[2195]: npm ERR! This is probably not a problem with npm. There is likely addit…t above.
Mar 25 19:18:29 draws npm[2195]: npm ERR! A complete log of this run can be found in:
Mar 25 19:18:29 draws npm[2195]: npm ERR! /root/.npm/_logs/2021-03-25T23_18_29_341Z-debug.log
Mar 25 19:18:29 draws systemd[1]: draws-manager.service: Main process exited, code=exited, status=1/FAILURE
Mar 25 19:18:29 draws systemd[1]: draws-manager.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.

Status for draws-manager: NOT RUNNING and ENABLED

Then there is no connecting via the web interface at localhost:8080.

Any guidance?
73, John, NX2I

Join udrc@nw-digital-radio.groups.io to automatically receive all group messages.