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

Clean bluetooth cache command causes bluetooth errors on reboot #70

Open
ianchanning opened this issue Apr 21, 2024 · 0 comments
Open

Comments

@ianchanning
Copy link
Contributor

ianchanning commented Apr 21, 2024

I'm on Ubuntu 22.04.

Running this command (from the Useful commands list)...

rm -r /var/lib/bluetooth/*

... prevents bluetooth from restarting after a reboot. All attempts to get the bluetooth service to start fail.

For example all suggestions in this question fail: https://askubuntu.com/questions/1403817/i-cant-turn-on-bluetooth-in-ubuntu-22-04-lts

The service status has a 226/NAMESPACE error message:

$ sudo systemctl status bluetooth.service
× bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2024-04-21 19:08:23 CEST; 2min 11s ago
       Docs: man:bluetoothd(8)
   Main PID: 9746 (code=exited, status=226/NAMESPACE)
        CPU: 12ms

Apr 21 19:08:23 bo-didley systemd[1]: bluetooth.service: Scheduled restart job, restart counter is at 5.
Apr 21 19:08:23 bo-didley systemd[1]: Stopped Bluetooth service.
Apr 21 19:08:23 bo-didley systemd[1]: bluetooth.service: Start request repeated too quickly.
Apr 21 19:08:23 bo-didley systemd[1]: bluetooth.service: Failed with result 'exit-code'.
Apr 21 19:08:23 bo-didley systemd[1]: Failed to start Bluetooth service.

Hunting for that error brings up this rather strange answer which suggests running:

sudo install -dm700 /var/lib/bluetooth

This fixes the problem (after a further reboot). If that is the correct command to re-instate the cache, could I suggest adding it to the readme?

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

1 participant