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

🐛 Android client intiates sync - then nothing happens #101

Open
Viceman256 opened this issue Nov 1, 2024 · 8 comments
Open

🐛 Android client intiates sync - then nothing happens #101

Viceman256 opened this issue Nov 1, 2024 · 8 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Viceman256
Copy link

Description

Everytime I try to sync an item, it starts to sync, then is in an orange status and never syncs anything. If I hit the cloud icon, it spins for 30 seconds then stops. Perhaps a permission issue? The app didn't request file storage access and there's no option to give it.

Reproduction steps

  1. Click Sync
  2. Says sync initiated
  3. Never syncs

Screenshots

DESCRIPTION

Logs

No response

Platform

Android

App Version

0.3.1 Build72

@Viceman256 Viceman256 added the bug Something isn't working label Nov 1, 2024
@PartyDonut
Copy link
Collaborator

Hi

The application uses the internal apps storage so it shouldn't need any storage permission.

One thing missing is the notifications permission, the downloader also shows a android notification. Could you try enabling that and check whether it creates a download task.
Leaving the notifications disabled should not stop it from downloading but it does give me some more info on what is happening.

If you could also provide information on the media you're trying to sync that would be great.

@Viceman256
Copy link
Author

Viceman256 commented Nov 2, 2024

I don't think my email sent.

Hi, thanks for your quick response!

I did enable notifications but unfortunately nothing changed. I just reinstalled it and wanted to reconfigure it with notifications enabled first, but it performed the same.

I've attached a video to this email response. A screen recording. Did it attach correctly? Basically if you can see, it changes to partial status immediately and stays there. The series don't say partial but they are in the same status.

https://imgur.com/a/acVNAqq

Eta: I was on mobile data to record the video to show you the behavior, but it's the same on my wifi at home with 300 Mbps+. I did try leaving the app open for a few hours, but even small episodes didn't download.

If there are any logs I can send, I would be happy to. I'm struggling to find any though, sorry.

@PartyDonut
Copy link
Collaborator

I added a toggle in #110 it probably wont make a difference given that it normally at least enqueues the download but it's worth a shot.

@PartyDonut
Copy link
Collaborator

Strange, not sure it seems like it's not even attempting to start the download task itself.

You do seem to be using a vpn connection it seems? The downloads at the moment are locked to requiring wi-fi that could be the reason it's not downloading anything.
Can you try downloading it using a Wi-fi connection without vpn and also make sure android doesn't think of it as a metered connection.

No logging at the moment unfortunately.
Another thing you could try if possible, download the application for desktop and try downloading over there. If that works we can atleast pinpoint the issue to mobile.

@Viceman256
Copy link
Author

It does perform the same on wifi without VPN, but I just tried on the desktop app per your suggestion and experienced the same behavior!

I went into Jellyfin logs and found this everytime I initiate a sync:

[2024-11-04 00:06:16.185 -05:00] [INF] [6] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "Sibyl". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2024-11-04 00:06:16.609 -05:00] [INF] [3] Jellyfin.Api.Auth.CustomAuthenticationHandler: "CustomAuthentication" was not authenticated. Failure message: "Invalid token."

I've tried googling around, but the other people getting this error seem to be having separate issues than what we're seeing here. If it helps to isolate the problem, I can download from the official Jellyfin app.

@PartyDonut PartyDonut added the help wanted Extra attention is needed label Nov 19, 2024
@PartyDonut
Copy link
Collaborator

Not sure what's causing this.
Do you by any chance use LDAP, or any other form of authentication?

@Viceman256
Copy link
Author

No LDAP or alternate authentication enabled. If there's any info I can provide, I'd be happy to. It appears to just be Fladder, the other 3 clients I have work. Perhaps something with the way the API is reaching the Jellyfin server?

@PartyDonut
Copy link
Collaborator

Normally I would expect the network calls to fail. So any network logging could help.

However in the case of the downloader it should at least start the sync task unless its failing somewhere in between, the downloader should also shows multiple states enqueud, retrying and in your case failed.
Not sure why not even that is showing up.

The best options for now are either wait for me to implement local logging or start the application yourself in debug mode and check what is going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Status: No status
Development

No branches or pull requests

2 participants