nymea / berrylan

Raspberry Pi WiFi setup
http://berrylan.org
GNU General Public License v3.0
338 stars 56 forks source link

Problem #50

Closed WerVa closed 3 years ago

WerVa commented 3 years ago

When i start nymea-networkmenager no boot

XXX@XXX:~$ systemctl status nymea-networkmanager ● nymea-networkmanager.service - Daemon for nymea to configure wifi network using a Bluetooth LE connection Loaded: loaded (/lib/systemd/system/nymea-networkmanager.service; enabled; vendor preset: enabled) Active: inactive (dead) Docs: https://github.com/nymea/nymea-networkmanager

sudo journalctl -u nymea-networkmanager -- Logs begin at Thu 2019-02-14 10:11:59 GMT, end at Sun 2021-01-31 23:19:47 GMT. -- -- No entries

when i run sudo systemctl start nymea-networkmanager then working :( but on startup is problem

t-mon commented 3 years ago

Hello @WerVa according to the systemctl status, the daemon seems to be enabled and should autostart during boot.

Maybe the logs tell us what's going wrong.

If the daemon is not starting at all, there are no logs and something is wrong with the systemd service. If there are logs, they hopefully give us a hint why the daemon is not able to start during boot.

WerVa commented 3 years ago

journalctl -b -u nymea-networkmanager -- Logs begin at Thu 2019-02-14 10:11:59 GMT, end at Mon 2021-02-01 09:12:15 GMT. -- -- No entries --

apt policy nymea-networkmanager nymea-networkmanager: Installed: 0.5.5+202011171741~buster+rpi1 Candidate: 0.5.5+202011171741~buster+rpi1 Version table: *** 0.5.5+202011171741~buster+rpi1 500 500 http://ci-repo.nymea.io/experimental-silo buster/rpi armhf Packages 100 /var/lib/dpkg/status

WerVa commented 3 years ago

I can run manualy only:

BlackMirror@MyBlackMirror:~$ systemctl start nymea-networkmanager ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units === Authentication is required to start 'nymea-networkmanager.service'. Authenticating as: ,,, (BlackMirror) Password: ==== AUTHENTICATION COMPLETE === BlackMirror@MyBlackMirror:~$ systemctl status nymea-networkmanager ● nymea-networkmanager.service - Daemon for nymea to configure wifi network using a Bluetooth LE connection Loaded: loaded (/lib/systemd/system/nymea-networkmanager.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2021-02-01 09:45:45 GMT; 5s ago Main PID: 1394 (nymea-networkma) Tasks: 2 (limit: 1330) CGroup: /system.slice/nymea-networkmanager.service └─1394 /usr/bin/nymea-networkmanager -d

WerVa commented 3 years ago

I added this to supervisor:

[program:nymea-networkmenager] command=/usr/bin/nymea-networkmanager -d autostart=true autorestart=true

and working... you can close problem

t-mon commented 3 years ago

So the problem was concurring process manager? You use supervisor and systemd? Can you describe the environment, just in case somebody else runs into this issue?

WerVa commented 3 years ago

this is the environment for my project, it’s extremely limited, so I dont think anybody should have this problem