Jump to content

Recommended Posts

fatbstrd
Posted (edited)

Hello

When attempting to sync either from my phone or down from server, sync job appears but is stuck in 50%

When triggering the dl, following error occurs. Toggled "sync only via WIFI" ON/OFF, tried default folder, SD-card /data/com.mb.mediabrowser., no cigar. Tried to include phone app log, but was unable to locate it on suggested location.

 

Phone details

- rooted SGS4, write_to_external_storage enabled

 

Server is using self-signed StartSSL certificate which otherwise seems to work ok.

emby.txt

Edited by fatbstrd
Posted

Thanks, looking into it.

  • 2 weeks later...
tobedeleted
Posted

Is there any progress on this?

 

I never ever get the Emby app to sync properly to my Android devices. On some devices the app partially syncs, but fills up /data/data/com.mb.android (two Android devices with Lollipop firmwares, stock and CM).

On my new device (Marshmallow, stock firmware) it never even syncs at all but simply stops like in the OP. Log is attached.

 

I tried all kinds of location - internal SD, external SD, root drawer, /Android/data/com.mb.android/files drawer, nothing works. The permissions to the SD card have been granted.

 

What do I have to do to be able to sync reliably to Android devices??

06:40:20.654 [Thread-826] DEBUG App - Getting new item from sync 20160228_135929
06:40:20.656 [Thread-828] DEBUG App - Getting response stream from http://192.168.178.29:8096/emby/Sync/JobItems/394b7012adc04bc6aae65488ec193a3b/File
06:40:20.707 [Thread-827] DEBUG App - Got item file response stream
06:40:20.708 [Thread-827] DEBUG App - Saving media to file:/sdcard/Android/data/com.mb.android/files/Server/Photos/02_Misc/20160229_175045.JPG
06:40:20.761 [Thread-828] DEBUG App - Got item file response stream
06:40:20.761 [Thread-828] DEBUG App - Saving media to file:/sdcard/Android/data/com.mb.android/files/Server/Photos/02_Misc/20160228_135929.JPG
06:40:20.809 [Thread-827] ERROR App - Error getting synced item java.io.IOException com.google.common.io.Files.createParentDirs(Files.java:478)
Posted

Hi I am having this problem too. It has been happening ever since my phone Samsung Galaxy s6 upgraded to Android 6.0 Marshmallow. I have tried all the same things that fatbstrd tried. Thanks

Nutellaeis
Posted

I have a syncing error with Android as well. I think it is the same problem Larx did describe. No matter where I try to write it always gets stuck at "Ready for transfer".

I will attach the relevant part of the log here. Of course I can also get full logs if needed. 

16:53:49.556 [Thread-68137] DEBUG App - Getting response stream from http://192.168.178.35:8096/emby/Sync/JobItems/5eac94f0ddb24bb7a9fd89bfb067f258/File
16:53:49.591 [Thread-68137] DEBUG App - Got item file response stream
16:53:49.592 [Thread-68137] DEBUG App - Saving media to file:/storage/emulated/0/Android/data/com.mb.android/sync/AwesomeServer/TV/Ace_Attorney/Season_01/Phoenix_Wright__Ace_Attorney_-_s01e06.mkv
16:53:49.696 [Thread-68137] ERROR App - Error getting synced item java.io.IOException com.google.common.io.Files.createParentDirs(Files.java:478) mediabrowser.apiinteraction.sync.data.FileRepository.saveFile(FileRepository.java:29) mediabrowser.apiinteraction.sync.data.LocalAssetManager.saveMedia(LocalAssetManager.java:114) mediabrowser.apiinteraction.sync.server.mediasync.MediaSync$3.onResponse(MediaSync.java:204) mediabrowser.apiinteraction.sync.server.mediasync.MediaSync$3.onResponse(MediaSync.java:195) mediabrowser.apiinteraction.ApiClient.getResponseStreamInternal(ApiClient.java:213) mediabrowser.apiinteraction.android.AndroidApiClient.access$000(AndroidApiClient.java:23) mediabrowser.apiinteraction.android.AndroidApiClient$1.run(AndroidApiClient.java:67) java.lang.Thread.run(Thread.java:818)

Running Android 6.0.1.  

Posted

Thanks, we're looking into it.

tobedeleted
Posted

Thanks! Need that urgently, not being able to use Emby to sync to my Android devices is *extremely* annoying.

Nutellaeis
Posted

I will just follow up here. If there is a better place to post this just tell me :-)

 

Got an app update, but it is still not working. I will attach some logs. Something interesting: 

When I try to sync to some random folder on the external sd I still get a 

java.io.IOException com.google.common.io.Files.createParentDirs(Files.java:478)

but if I try to save to the internal sd OR /externalSD/Android/data/com.mb.android I get a

java.io.FileNotFoundException libcore.io.IoBridge.open(IoBridge.java:452)

I suspect the app actually has the right permissions and something else is going wrong. I am no android programmer though.

 

Also leaving the sync location empty and using the default one does work. Maybe it really is just a issue with the path format?

external com.mb.android.log

external random folder.log

internal.log

Posted

I will just follow up here. If there is a better place to post this just tell me :-)

 

Got an app update, but it is still not working. I will attach some logs. Something interesting: 

When I try to sync to some random folder on the external sd I still get a 

java.io.IOException com.google.common.io.Files.createParentDirs(Files.java:478)

but if I try to save to the internal sd OR /externalSD/Android/data/com.mb.android I get a

java.io.FileNotFoundException libcore.io.IoBridge.open(IoBridge.java:452)

I suspect the app actually has the right permissions and something else is going wrong. I am no android programmer though.

 

Also leaving the sync location empty and using the default one does work. Maybe it really is just a issue with the path format?

 

Hi, that's only 2.6.97.

Nutellaeis
Posted (edited)

Hi, that's only 2.6.97.

  The app manager is telling me it is 2.6.99  ;)

 

EDIT: Ok the log says its 2.6.97 for the random one but 2.6.99 for the external/com.mb.android. Ill have another look.

 

EDIT2: No it is definitly 2.6.99. Adding current log here to avoid confusion. Still a 

java.io.FileNotFoundException
libcore.io.IoBridge.open(IoBridge.java:452)

9ac364f3-ec8b-46b7-ad4b-a1c4c1bca006.log

Edited by Nutellaeis
Posted

Thanks. I may have finally tracked it down. 2.7.01 is headed up to the open beta. Please try that and report back. Fyi, you'll need to reconfigure your custom sync path. @@shorty1483 fyi. Thanks.

  • Like 1
Nutellaeis
Posted (edited)

Wow. You sure do work fast. First of all: IT WORKS  :)

 

But it is still super unstable. I am not sure what exactly breaks it but something definitly does. I think loosing the wireless connection for even a second does kill syncing until the next scheduled resync. Also sending the app to the background seems to be a bad idea. 

I also can only write to the /externalSD/Android.com.mb.android/... directories, but that is fine for now. 

Finally there is an interesting error. Seems the App does try to create folders twice, failing the second time. When saving Season 1 Episode 2 it attempts to create the "Season 01" Folder again. It still does work though, so it is no pressing issue. Just adding the log for this. I have no evidence of the other problems yet.

 

I will have a look at what exactly does break it again tomorrow. Just need some sleep now.

3f7c6223-114a-46d0-b3c7-a67ef768b69e.log

Edited by Nutellaeis
Posted

being in the background won't matter. it registers an hourly sync process with the android OS. the OS will wake the app to run it.

Nutellaeis
Posted

I had it sync a show for me over night and woke up to all episodes being perfectly synced  :)

So it is a little slow but gets its job done. So much better from only being able to save internally. 

Posted

Hi all, I don't really understand how it works offline. Reading your posts, does it mean I need to be connected to the emby server to access to offline files ?

The sync job seems to work fine, and a sync logo appears on upper right corner of the logo file, but I can not access them being really "offline".

Is offline fully  implemented ? 

Nutellaeis
Posted

Offline vewing in the app does not work. (From my understanding they plan to implement it, but it is not yet there) Just use a external video player (I use VLC) to play your videos.

  • Like 1
tobedeleted
Posted

So, where am I supposed to sync to? I tried the new beta and the only place I was able to sync successfully was internal storage, com.mb.android folder. No external SD, no other folder on internal or external SD (S7, MM). But at least syncing is possible again.

 

Has anybody any hint how I can use my external SD?

 

And, two suggestions for the developpers:

If there is a preferred (safe, recommended) place for synced media, please document this and default the app to it!

And: Please, please - give an error message instead of silently failing when the sync goes wrong! That is simply frustrating.

tobedeleted
Posted

Grrrr! The sync worked, however once again also /data/data/com.mb.android/files was filled up with media data, so syncing is still not really possible...

Nutellaeis
Posted

For my Phone (Using Android 6.0.1 and App Version 2.7.01) it works if you save to /storage/exfat_uuid/Android/data/com.mb.android/files . This is the external sd. Did you try to clean all App files? Maybe some settings are still preserved from earlier versions.

 

I agree it is currently not ideal to get no error messages. But at least it does sync now.

tobedeleted
Posted

For my, Emby sync keeps being unusable: If I happen find a folder the app is willing to sync to, it ends up filling the /data partition until Android complains. And I'm just trying to sync photos, no transcoding etc. Two devices with different firmwares all have the same problem.

 

I'm pretty disappointed as I paid quite some money for Emby to have a home media server,and it turns out that the Android client is unusable.

Posted

Filling it with what? It is only doing what you've requested, which is syncing. Certainly it could be smarter about space and it will in the future but it's not as if there isn't a solution for that right now.

tobedeleted
Posted (edited)

Well, you could argue if filling up /data until Android decides to shut down system resources counts as "not smart with space" or "bug" ;-) .

 

Basically, when syncing pictures, /data/data/com.mb.android/files/images fills up with folders with long letter/number-names, each containing one file, again with a long letter/number name. These files are the pics supposed to be synced, but they somehow end up not only in the folder they are intended to be, but also in the /data partition. They are never deleted.

 

I had this problem on the following devices:

Sony Z3c with rooted stock LL-fw and CM 12.1

Samsung S4mini with CM 12.1 and 13.0

Samsung S7 with rooted stock MM-fw

 

I have to admit I only tried picture sync, as I didn't want to mess up the devices with even bigger videos and so on if even simply JPEGs fail. So it might also be a picture sync related problem. Got to try that out.

Edited by Larx
Posted

Here is my feedback from last test. It works. I can sync, I need to have access to the server to launch the movie, but it then, it works completely offline. No need to be connected, until I don't need to navigate on app. 

I can read completely Offline.

Posted

Well done. Thanks for reporting.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...