corcordp
Posts: 2
Joined: Sun May 19, 2019 8:54 pm

New Pi Zero W image bluetooth errors

Sun May 19, 2019 9:05 pm

Hi guys,
I installed a new headless image to my zero w and am attempting to get an SSH connection running over bluetooth. I essentially followed the directions at this link https://hacks.mozilla.org/2017/02/headl ... bluetooth/ , but when my Pi boots up I get the message

raspberrypi login: [ 31.384744] rc.local[364]: Failed to restart rfcomm.service: Unit bluetooth.service is masked.

(The pi is attatched to a monitor, this isn't through SSH)

I currently have a working SSH connection running over USB to my laptop. SSH works with putty in this case. I followed the directions at this link https://desertbot.io/blog/headless-pi-z ... sb-windows

On my computer, the Pi does not appear as an available bluetooth device.

On the pi, when I enter

Code: Select all

sudo service bluetooth status


I get

Code: Select all

bluetooth.service
   Loaded: masked (/lib/systemd/system/bluetooth.service; masked; vendor preset: enabled)
   Active: inactive (dead)

Apr 08 11:25:50 raspberrypi systemd[1]: bluetooth.service: Cannot add dependency job, ignorin


If I try

Code: Select all

sudo service bluetooth start
I get

Code: Select all

Failed to start bluetooth.service: Unit bluetooth.service is masked.
Following some advice from a similar post https://www.raspberrypi.org/forums/view ... p?t=128126 I have tried

Code: Select all

sudo systemctl enable bluetooth

results in

Code: Select all

Synchronizing state of bluetooth.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable bluetooth
Failed to enable unit: Unit file /lib/systemd/system/bluetooth.service is masked.
Anyone have any ideas? I'm new to linux and out of ideas

thank you all for the help

Daniel



EDIT: I did more stuff that didn't fix the issue.
trying to do a dist upgrade...

Code: Select all

sudo apt-get update
sudo apt-get  dist-upgrade

Code: Select all

 sudo busctl tree org.bluez 

returns

Code: Select all

Failed to introspect object / of service org.bluez: Unit bluetooth.service is masked.
No objects discovered.
I also tried sudo systemctl unmask bluetooth.service, that didn't return anything

Ernst
Posts: 1335
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: New Pi Zero W image bluetooth errors

Mon May 20, 2019 6:06 am

I can not help you with this problem. For other readers who might be able to help:
- The linked article is from February 2017
- The linked article refers to the "latest Raspian Jessie image".
The road to insanity is paved with static ip addresses

User avatar
Douglas6
Posts: 4874
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: New Pi Zero W image bluetooth errors

Mon May 20, 2019 11:58 am

The problem is that the bluetooth.service is masked. You can try to unmask it:

Code: Select all

sudo systemctl unmask bluetooth 

corcordp
Posts: 2
Joined: Sun May 19, 2019 8:54 pm

Re: New Pi Zero W image bluetooth errors

Tue May 21, 2019 2:03 am

Douglas6 wrote:
Mon May 20, 2019 11:58 am
The problem is that the bluetooth.service is masked. You can try to unmask it:

Code: Select all

sudo systemctl unmask bluetooth 
I tried this and rebooted the pi, but it didn't unmask the service. I was able to fix the issue temporarily by reflashing the image, but the issue occurred again when I accidentally cut off power.

User avatar
RandyOrtan1
Posts: 1
Joined: Tue May 21, 2019 6:31 am
Location: Sydney, Australia
Contact: Website

image bluetooth errors

Tue May 21, 2019 7:02 am

Hello,

I'm just got a new Raspberry Pi 3 Model B and I cannot make BT work.

1.Clean installation (over BerryBoot). Bluetooth Activated within OpenELEC addon but Bluetooth section always display "no Bluetooth
adapter found".
2.I also installed Raspbian to check (on the same SD through BerryBoot). Bluetooth works just fine (Raspberry and Device works just fine).
3.No messages after running bluetoothcl. Running 'list' command does not return anything. Running 'show' returns "No default controller
available". Also running 'lsusb' command in terminal does not show any Bluetooth device.
4.Not an update.
5.Not sure how to remove Bluetooth.

I have information about some tools that we can use for free

Free and Secure https://codebeautify.org/png-to-jpg-converter. Easy to Use online tool to contert PNG to JPG Images. Use This Free Tool Now!

Code: Select all

codebeautify.org/text-reverser

Code: Select all

codebeautify.org/jpg-to-png-converter

Code: Select all

codebeautify.org/url-encode-string

Return to “Troubleshooting”