Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PiZero Bluetooth not starting #34

Closed
ChasinSpin opened this issue Feb 22, 2020 · 2 comments
Closed

PiZero Bluetooth not starting #34

ChasinSpin opened this issue Feb 22, 2020 · 2 comments

Comments

@ChasinSpin
Copy link

ChasinSpin commented Feb 22, 2020

There appears to be a race condition On Pi Zero W and Buster.

If:
There is a wifi network configured, but the device is moved to somewhere that the network is not available OR no network is configured (i.e. all the networks are deleted with nmcli), then
the nymea-networkmanager doesn't recognize there's no network on startup. (everything with default configuration)

In this state, restarting the service after the service starts up during boot fixes it.

However it doesn't happen if the network is available but has the wrong password, in this situation it does work.

End result is after configuring BerryLan, wiping the network and testing it works fine, and then when deployed to the new location, BerryLan never advertises.

To solve this, I needed to delay the nymea-networkmanager.service startup with:
ExecStartPre=/bin/sleep 60

Great product BTW

@mzanetti
Copy link
Member

Thanks for the report. I believe this is the race condition we found and fixed recently:

nymea/libnymea-networkmanager#5

The fix is not released to stable yet. You can test if this fixes your issue by upgrading to the experimental silo. For that, add this line

deb http://ci-repo.nymea.io/experimental-silo buster rpi

to /etc/apt/sources.list.d/nymea.list and apt-get update and upgrade.

@mzanetti
Copy link
Member

mzanetti commented Mar 5, 2020

Is this still an issue with the latest release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants