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

send file to phone results in "Unable to find service record" error #2540

Open
1 task done
bouncinglime opened this issue Nov 27, 2024 · 7 comments
Open
1 task done

Comments

@bouncinglime
Copy link

bouncinglime commented Nov 27, 2024

blueman: 2.2.4
BlueZ: 5.64
Distribution: Pop!_OS 22.04 LTS
GNOME version: 42.9
Windowing system: X11
phone: iPhone SE (1st gen) iOS 15.8.3

Output of blueman-applet --loglevel debug here : https://cryptpad.fr/code/#/2/code/view/xt09TObwCLFTqu0qARcfFkn3PaSgPfo9xC4iW-AEp7M/

Contents of /var/log/syslog filtered for only today (after adding -d to the ExecStart line in /lib/systemd/system/bluetooth.service; username scrubbed, too) : https://cryptpad.fr/code/#/2/code/view/N54LErr332N2JBnZlSAxeQ2WAsfVFyR9UHS-0efsxHo/

When I attempt to send a file to my phone, I get an "Unable to find service record" error. All of the issues about it that I can find here were closed without a resolution. Screenshot below.

2024-11-26_bluetooth-file-error

Steps to reproduce:

  1. Turn on bluetooth on the computer.
  2. Turn on bluetooth on the phone.
  3. Using the bluetooth appindicator in the top menu bar, connect to the phone.
  4. Confirm that phone is shown as successfully connected on both devices.
  5. Using the bluetooth appindicator in the top menu bar, open the "Devices..." menu.
  6. Right-click the phone in the list of devices, and select "Trust".
  7. Using the bluetooth appindicator in the top menu bar, select "Send Files to Device..."
  8. In the resulting pop-up window, select a small image file from the Downloads folder.
  9. In the resulting pop-up window, select the phone from the list of available bluetooth devices. (NB: This list shows all detected bluetooth devices, not only the currently connected ones.)
  10. A window appears to begin the transfer.
  11. After about a second, the error message in the screenshot above is shown and the file transfer is aborted.

Any insight on how to get this working would be greatly appreciated.

Thanks.

@infirit
Copy link
Contributor

infirit commented Dec 3, 2024

The blueman-applet log posted isn't very useful, probably because it was still running. Can you post it again but following these steps.

  • Close the running blueman-applet with killall blueman-applet
  • Open a terminal and run blueman-applet with blueman-applet --loglevel debug
  • Attempt to send a file to the phone
  • Post the terminal output here.

The error usually means that the phone isn't exposing/allows file transfers. But hopefully the blueman-applet log can give some clues what is going on.

@bouncinglime
Copy link
Author

hi @infirit - here's an updated output : https://cryptpad.fr/code/#/2/code/view/rqJWTR1zwaFnyUBUSjNinH2Is3gcY2rmxD4oHY8tGGE/

I attempted the file transfer twice in this log - the first time following your directions, the second time with telling my phone to connect to the computer then trying the transfer.

Both failed the same way again with the "Unable to find service record" error, and a pop-up message saying that the phone had been disconnected from bluetooth.

Thanks for looking into this.

@infirit
Copy link
Contributor

infirit commented Dec 10, 2024

According to BlueZ the phone doesn't advertise OBEX push file transfer. What is the brand and model (I never heard of a bouncinglimePhone) of phone you are using?

@cschramm should we filter out phones that don't advertise OBEX Push?

Here is the list of services it advertised by your phone.

00000000-deca-fade-deca-deafdecacafe Proprietary
00001000-0000-1000-8000-00805f9b34fb ServiceDiscoveryServerServiceClassID
0000110a-0000-1000-8000-00805f9b34fb Audio Source
0000110c-0000-1000-8000-00805f9b34fb Remote Control Target
0000110d-0000-1000-8000-00805f9b34fb Advanced Audio
0000110e-0000-1000-8000-00805f9b34fb Remote Control
00001116-0000-1000-8000-00805f9b34fb Network Access Point
0000111f-0000-1000-8000-00805f9b34fb Handsfree Audio Gateway
0000112f-0000-1000-8000-00805f9b34fb Phonebook Access (PBAP) - PSE
00001132-0000-1000-8000-00805f9b34fb Message Access Server
00001200-0000-1000-8000-00805f9b34fb PnP Information
00001800-0000-1000-8000-00805f9b34fb Generic Access
00001801-0000-1000-8000-00805f9b34fb Generic Attribute
00001805-0000-1000-8000-00805f9b34fb Current Time Service
0000180a-0000-1000-8000-00805f9b34fb Device Information
0000180f-0000-1000-8000-00805f9b34fb Battery Service
02030302-1d19-415f-86f2-22a2106a0a77 Proprietary
7905f431-b5ce-4e99-a40f-4b1e122d00d0 Proprietary
89d3502b-0f36-433a-8ef4-c502ad55f8dc Proprietary
9fa480e0-4967-4542-9390-d343dc5d04ae Proprietary
d0611e78-bbb4-4591-a5f8-487910ae4366 Proprietary

Compared to my phone

00001105-0000-1000-8000-00805f9b34fb OBEX Object Push <---- this is missing for your phone.
0000110a-0000-1000-8000-00805f9b34fb Audio Source
0000110c-0000-1000-8000-00805f9b34fb Remote Control Target
0000110e-0000-1000-8000-00805f9b34fb Remote Control
00001112-0000-1000-8000-00805f9b34fb Headset Audio Gateway
00001115-0000-1000-8000-00805f9b34fb PANU
00001116-0000-1000-8000-00805f9b34fb Network Access Point
0000111f-0000-1000-8000-00805f9b34fb Handsfree Audio Gateway
0000112d-0000-1000-8000-00805f9b34fb SIM Access (SAP)
0000112f-0000-1000-8000-00805f9b34fb Phonebook Access (PBAP) - PSE
00001132-0000-1000-8000-00805f9b34fb Message Access Server
00001200-0000-1000-8000-00805f9b34fb PnP Information
00001800-0000-1000-8000-00805f9b34fb Generic Access
00001801-0000-1000-8000-00805f9b34fb Generic Attribute

@github-actions github-actions bot removed the needinfo label Dec 11, 2024
@bouncinglime
Copy link
Author

bouncinglime commented Dec 11, 2024

oh that's just the name of my phone... it's an iPhone SE first-generation https://www.gsmarena.com/apple_iphone_se-7969.php

Model number MP8P2LL/A
iOS 15.8.3

@infirit
Copy link
Contributor

infirit commented Dec 11, 2024

Apparently Apple doesn't allow you to transfer files over bluetooth. There are many hits when you ask search engines.

I'm thinking to hide any device in the list that doesn't expose OBEX push in blueman-sendto...

@cschramm
Copy link
Member

I fear there is a reason for that, but the applet should not offer file transfer if that service is not advertised, yes. blueman-manager actually does that (toolbar and device menu). Regarding blueman-sendto, we could filter the device list, yes, but if a device gets passed in, you'll run into the error anyway.

@bouncinglime
Copy link
Author

ohhh well that's cute. I hadn't thought to look for specific issues with Apple devices, just searched for the error.

It would be great if this could generate a more helpful error message! Even if it just says something like "sorry, Apple doesn't support bluetooth file transfers" that would be much more useful.

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

3 participants