#drawsmanager #draws-manager #drawsmanager #draws-manager


John Spoonhower
 

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


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


John Spoonhower
 

Basil, thanks once again. All is well now. Seems stable.  I have included some output, a few comments, and a very few questions (for the purpose of my education)  inserted below.
73, John, NX2I



On Fri, Mar 26, 2021 at 11:22 AM Basil Gunn <basil@...> wrote:

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
this was probably the issue as there were a lot of new files downloaded. I noticed when the older version errored out when  there was a warning about npm being an old version.

# 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
here is the output of 3 sequential commands spaced a few minutes apart:
pi@draws:~ $ pi_throt.sh
temp=65.5'C
throttled=0x0
pi@draws:~ $ pi_throt.sh
temp=65.5'C
throttled=0x0
pi@draws:~ $ pi_throt.sh
temp=66.1'C
throttled=0x0
I don't see this as a problem. DRAWS seems to run OK for me on a Pi 3B+ with the small aluminum heatsinks installed.
I have a Pi 4 devoted to other non-radio tasks that runs hot so I invested in an all metal heatsink "case" . Your opinion may differ...

pi_throt.sh

# Verify that you are not using a buggy kernel

buginfo.sh
this looked all Ok to me with this exception underlined:

 buginfo.sh
== Kernel version:
Linux draws 5.4.79-v7+ #1373 SMP Mon Nov 23 13:22:33 GMT 2020 armv7l GNU/Linux

== Firmware version:
Nov 18 2020 19:59:22
Copyright (c) 2012 Broadcom
version 8e01026adc5a87d80f8748fc6a4fecb9012393cc (clean) (release) (start)

== Codec driver check:
[    6.789112] asoc-simple-card soc:sound: tlv320aic32x4-hifi <-> 3f203000.i2s mapping ok

== DRAWS driver check:
udrc card number line: card 3: udrc [udrc], device 0: bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0 [bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0]
udrc is sound card #3

== Boot 'fail' check:
[    6.378859] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt failed with error -2

== GPS check:
Serial devices OK
gpsd OK

== Pi Version
 Pi 3 Model B, Rev 1.2, Mfg by Sony UK with WiFi

== /boot/config
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=85
[pi4]
dtoverlay=vc4-fkms-v3d
[all]
dtoverlay=
dtoverlay=draws,alsaname=udrc
force_turbo=1
dtparam=audio=on



# 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

again pretty much as noted above.

 
John Spoonhower <jpspoonhower@...> 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






Basil Gunn
 

See responses embedded.

John Spoonhower <jpspoonhower@gmail.com> writes:

Basil, *thanks once again. All is well now.* Seems stable.
Great news John, thanks for letting me know.

I have included some output, a few comments, and a very few questions
(for the purpose of my education) inserted below. 73, John, NX2I


# Make sure you have the latest version of DRAWS manager

cd ../manager
sudo su
./install.sh
*this was probably the issue as there were a lot of new files downloaded. I
noticed when the older *version errored out when there was a warning about
npm being an old version.
This installer is not very smart and it just re-installs everything.

npm ALWAYS throws a lot of errors about compatibility with the installed
nodejs. They happen so often I tend to ignore them because nodejs still
runs ok. The take away for me is "don't use npm to start a nodejs app"
which is the case for "tracker" & "paclink-unix web app" which I
maintain.


# Verify that your RPi is not having heat problems
# throttled=0x0
here is the output of 3 sequential commands spaced a few minutes apart:
pi@draws:~ $ pi_throt.sh
temp=65.5'C
throttled=0x0
pi@draws:~ $ pi_throt.sh
temp=65.5'C
throttled=0x0
pi@draws:~ $ pi_throt.sh
temp=66.1'C
throttled=0x0
These temps seem fine. RPi will not start throttling until 80 C.

I don't see this as a problem. DRAWS seems to run OK for me on a Pi 3B+
with the small aluminum heatsinks installed.
I have a Pi 4 devoted to other non-radio tasks that runs hot so I invested
in an all metal heatsink "case" . Your opinion may differ...
I have switched to using the following passive heat sink for my RPi 4's,
which may be what you are using. It works very well.

https://www.amazon.com/gp/product/B07VD568FB/ref=ppx_yo_dt_b_asin_title_o08_s00

pi_throt.sh

# Verify that you are not using a buggy kernel

buginfo.sh
this looked all Ok to me with this exception underlined:

buginfo.sh
== Kernel version:
Linux draws 5.4.79-v7+ #1373 SMP Mon Nov 23 13:22:33 GMT 2020 armv7l
GNU/Linux

== Codec driver check:
[ 6.789112] asoc-simple-card soc:sound: tlv320aic32x4-hifi <->
3f203000.i2s mapping ok

== DRAWS driver check:
udrc card number line: card 3: udrc [udrc], device 0:
bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0
[bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0]
udrc is sound card #3
Above are expected good responses.

*== Boot 'fail' check:*
*[ 6.378859] brcmfmac mmc1:0001:1: Direct firmware load for
brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt failed with error -2*
I am not sure what this is about so just keeping an eye on it for the
moment.