Stormrider959 0 Posted January 3, 2018 Share Posted January 3, 2018 Hi Since a while the sync progress of my music library is stuck (at around 60%). Every scheduled sync I can see the notifications for the missing files, but they won't download. Here's a part of the log which shows a NullPointerException for one of the files. In the music folder there are currently 32 "Various_Artists (some number)" folders. Wed Jan 03 17:23:42 GMT+01:00 2018 Saving media to Emby_Home/Music/Various_Artists/Sucker_Punch__Original_Motion_Picture_Soundtrack/Disc_1_-_1_-_Sweet_Dreams__Are_Made_of_This_.flac Wed Jan 03 17:23:42 GMT+01:00 2018 Save file directory: /Emby_Home/Music/Various_Artists/Sucker_Punch__Original_Motion_Picture_Soundtrack Wed Jan 03 17:23:42 GMT+01:00 2018 Save file name: Disc_1_-_1_-_Sweet_Dreams__Are_Made_of_This_.flac Wed Jan 03 17:23:42 GMT+01:00 2018 Save file mimeType: audio/flac Wed Jan 03 17:23:42 GMT+01:00 2018 ensureDirectory treeUri: content://com.android.externalstorage.documents/tree/primary%3AEmbySync Wed Jan 03 17:23:42 GMT+01:00 2018 ensureDirectory: /Emby_Home Wed Jan 03 17:23:42 GMT+01:00 2018 ensureDirectory new treeUri: content://com.android.externalstorage.documents/tree/primary%3AEmbySync/document/primary%3AEmbySync%2FEmby_Home Wed Jan 03 17:23:42 GMT+01:00 2018 ensureDirectory: /Emby_Home/Music Wed Jan 03 17:23:43 GMT+01:00 2018 ensureDirectory new treeUri: content://com.android.externalstorage.documents/tree/primary%3AEmbySync/document/primary%3AEmbySync%2FEmby_Home%2FMusic Wed Jan 03 17:23:43 GMT+01:00 2018 ensureDirectory: /Emby_Home/Music/Various_Artists Wed Jan 03 17:23:44 GMT+01:00 2018 ensureDirectory createDocument tree:content://com.android.externalstorage.documents/tree/primary%3AEmbySync/document/primary%3AEmbySync%2FEmby_Home%2FMusic name:Various_Artists Wed Jan 03 17:23:44 GMT+01:00 2018 Error sending request java.lang.NullPointerException com.mb.android.sync.data.AndroidFileRepository.ensureDirectory(AndroidFileRepository.java:238) com.mb.android.sync.data.AndroidFileRepository.saveFile(AndroidFileRepository.java:148) com.mb.android.sync.data.LocalAssetManager.saveMedia(LocalAssetManager.java:77) com.mb.android.sync.server.mediasync.MediaSync$3.onResponse(MediaSync.java:259) com.mb.android.sync.server.mediasync.MediaSync$3.onResponse(MediaSync.java:245) com.mb.android.apiinteraction.RequestHelper.getResponseStreamInternal(RequestHelper.java:139) com.mb.android.apiinteraction.RequestHelper$2.run(RequestHelper.java:61) java.lang.Thread.run(Thread.java:764) Wed Jan 03 17:23:44 GMT+01:00 2018 Error downloading item java.lang.NullPointerException com.mb.android.sync.data.AndroidFileRepository.ensureDirectory(AndroidFileRepository.java:238) com.mb.android.sync.data.AndroidFileRepository.saveFile(AndroidFileRepository.java:148) com.mb.android.sync.data.LocalAssetManager.saveMedia(LocalAssetManager.java:77) com.mb.android.sync.server.mediasync.MediaSync$3.onResponse(MediaSync.java:259) com.mb.android.sync.server.mediasync.MediaSync$3.onResponse(MediaSync.java:245) com.mb.android.apiinteraction.RequestHelper.getResponseStreamInternal(RequestHelper.java:139) com.mb.android.apiinteraction.RequestHelper$2.run(RequestHelper.java:61) java.lang.Thread.run(Thread.java:764) I've tried to create another file with the name stated in the log and I've copied the file from the share to the same location with TotalCommander, both were successfulll. My phone currently is on Android 8.0 but the issue was already there earlier. The corresponding server log doesn't seem suspicious: 2018-01-03 17:23:27.845 Info HttpServer: HTTP Response 200 to 192.168.2.217. Time: 1ms. http://192.168.2.11:80/mediabrowser/users/58cb54c946614d26a0ba47130662c54a?format=json 2018-01-03 17:23:27.883 Info HttpServer: HTTP POST http://192.168.2.11:80/emby/Sync/Data?format=json. UserAgent: Dalvik/2.1.0 (Linux; U; Android 8.0.0; ONEPLUS A3003 Build/OPR6.170623.013) 2018-01-03 17:23:27.946 Info HttpServer: HTTP Response 200 to 192.168.2.217. Time: 62ms. http://192.168.2.11:80/emby/Sync/Data?format=json 2018-01-03 17:23:27.952 Info HttpServer: HTTP GET http://192.168.2.11:80/emby/Sync/Items/Ready?TargetId=6482367051939149&format=json. UserAgent: Dalvik/2.1.0 (Linux; U; Android 8.0.0; ONEPLUS A3003 Build/OPR6.170623.013) 2018-01-03 17:23:28.555 Info HttpServer: HTTP Response 200 to 192.168.2.217. Time: 602ms. http://192.168.2.11:80/emby/Sync/Items/Ready?TargetId=6482367051939149&format=json 2018-01-03 17:23:28.683 Info HttpServer: HTTP GET http://192.168.2.11:80/emby/Sync/JobItems/9bd0374494024d8d8b2d1d26300e4f66/File. UserAgent: Dalvik/2.1.0 (Linux; U; Android 8.0.0; ONEPLUS A3003 Build/OPR6.170623.013) 2018-01-03 17:23:28.862 Info HttpResultFactory: Transmit file \\synologymedien.home\musik\Musik\Various Artists\Sucker Punch - Original Motion Picture Soundtrack\Disc 1 - 1 - Sweet Dreams (Are Made of This).flac 2018-01-03 17:23:30.266 Info HttpServer: HTTP GET http://192.168.2.11:80/emby/Users/58cb54c946614d26a0ba47130662c54a/Views. UserAgent: Mozilla/5.0 (Linux; Android 8.0.0; ONEPLUS A3003 Build/OPR6.170623.013; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.111 Mobile Safari/537.36 All affected files seem to have Various Artists as album artist. The app (verson 2.9.76) and the server (version 3.2.60.0) are on the current stable release, but the issue was already present in earlier versions. Do you have an idea how to fix this? Thanks a lot 2fc2084b-2b32-4c2e-a6d4-e7905418cdc1.log server-63650534400.txt Link to comment Share on other sites More sharing options...
Stormrider959 0 Posted January 4, 2018 Author Share Posted January 4, 2018 I forgot to mention that new files in the library sync fine. Link to comment Share on other sites More sharing options...
Luke 37065 Posted February 18, 2018 Share Posted February 18, 2018 @@Stormrider959 can you please let me know if this is still an issue on the latest version of the app? Thanks ! Link to comment Share on other sites More sharing options...
Luke 37065 Posted February 18, 2018 Share Posted February 18, 2018 If it is still happening, can you try deleting all those various_artists_x folders and see if that makes any difference? Link to comment Share on other sites More sharing options...
Stormrider959 0 Posted February 22, 2018 Author Share Posted February 22, 2018 Hi Luke Thank you for investigating this issue. I recently reinstalled the emby server (the issue wasn't emby related) and resynced the music library, the issue is still there. I'm using the stable release. Now i have the following folders on the phone: Various_artists(1) ... Various_artists(32) In the first folder is one complete album. in the folders 1 - 32 is an album-subfolder with one song. Two albums are completely synced, scattered in multiple folders, the rest of the albums has one or two synced songs When i delete all the various_artists-folders, the rest syncs completely without additional folders. Should i try the beta? Link to comment Share on other sites More sharing options...
Luke 37065 Posted February 22, 2018 Share Posted February 22, 2018 No, I don't think the beta server will have any impact. It's being on the latest version of the app which is more important, which you should be by now. In that case we're still looking into it then. Link to comment Share on other sites More sharing options...
Solution Stormrider959 0 Posted February 23, 2018 Author Solution Share Posted February 23, 2018 Hi Luke I found the issue. I played around a bit with the library and the tags of the files when i realised that a few of the album artists were "Various artists" and the rest was "Various Artists". After i fixed this, i could do a complete sync. Thank you for investigating this issue. Best regards Stormrider959 Link to comment Share on other sites More sharing options...
Luke 37065 Posted February 23, 2018 Share Posted February 23, 2018 You mean just the casing was the difference? Link to comment Share on other sites More sharing options...
Stormrider959 0 Posted February 24, 2018 Author Share Posted February 24, 2018 Yes, just the casing. As soon as i change one album back to "Various artists" and resync, the numbered folders reappear. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now