GregMo 21 Posted March 19, 2023 Share Posted March 19, 2023 Running into a strange issue and hoping someone can point me in the right direction. I'm setting up some music videos on my Android server and when I scrape for the metadata, it creates a zero byte file for both the NFO file and the COVER.JPG. If I create these files on my windows server first and then copy them over, all is well. Just perplexed as to why it's not working on Android. Just as an aside, I've not tried this with other media types but given it's happening with both of these files I would guess the media type is irrelevant? Link to comment Share on other sites More sharing options...
Luke 37156 Posted March 21, 2023 Share Posted March 21, 2023 Hi there, please attach the emby server log from when this happened: How to Report a Problem Thanks. Link to comment Share on other sites More sharing options...
GregMo 21 Posted March 23, 2023 Author Share Posted March 23, 2023 I'm guessing it's having an issue with the networked drive. 2023-03-22 23:37:11.602 Error ProviderManager: Error in metadata saver *** Error Report *** Version: 4.7.11.0 Command line: /data/app/~~SXxUpUNQVFPatRd71fuf-w==/com.emby.embyserver-DNyWhHQleDHCJb8T7pnpGA==/base.apk Operating system: Android 11 (REL) SDK:30 BuildId:RZKS31.Q3-45-16-8-9 motorola/kiev_retailu/kiev:11/RZK31.Q3-45-16/195135:user/release-keys Incremental:34b6b Patch-Level: 2022-11-01 Framework: Mono 6.12.0 (2020-02/c633fe92383) 4.0.50524.0 OS/Process: Arm64/Arm64 Runtime: mscorlib.dll Processor count: 8 Data path: /storage/emulated/0/Android/data/com.emby.embyserver/files Application path: /data/user/0/com.emby.embyserver Fingerprint: motorola/kiev_retailu/kiev:11/RZKS31.Q3-45-16-8-9/34b6b:user/release-keys Model: motorola one 5G ace - motorola/motorola Hardware: kiev/kiev_retailu/qcom/kiev SupportedAbis: arm64-v8a, armeabi-v7a, armeabi System.NotSupportedException: System.NotSupportedException: Stream does not support writing. at System.IO.StreamHelpers.ValidateCopyToArgs (System.IO.Stream source, System.IO.Stream destination, System.Int32 bufferSize) [0x00077] in <1b39a03c32ec46258a7821e202e0269f>:0 at System.IO.MemoryStream.CopyToAsync (System.IO.Stream destination, System.Int32 bufferSize, System.Threading.CancellationToken cancellationToken) [0x00000] in <1b39a03c32ec46258a7821e202e0269f>:0 at NfoMetadata.Savers.BaseNfoSaver.SaveToFile (System.IO.Stream stream, System.String path, MediaBrowser.Model.Configuration.LibraryOptions libraryOptions, System.Threading.CancellationToken cancellationToken) [0x00123] in <08dd4ae2e29f40da8b3b3904f8ead5ad>:0 at NfoMetadata.Savers.BaseNfoSaver.Save (MediaBrowser.Controller.Entities.BaseItem item, MediaBrowser.Model.Configuration.LibraryOptions libraryOptions, System.Threading.CancellationToken cancellationToken) [0x00149] in <08dd4ae2e29f40da8b3b3904f8ead5ad>:0 at Emby.Providers.Manager.ProviderManager.SaveMetadata (MediaBrowser.Controller.Entities.BaseItem item, MediaBrowser.Model.Configuration.LibraryOptions libraryOptions, MediaBrowser.Controller.Library.ItemUpdateType updateType, MediaBrowser.Controller.Library.IMetadataSaver[] savers, System.Threading.CancellationToken cancellationToken) [0x000ca] in <3fd7da7c4a054c4d88389c7c9cf4972d>:0 Source: mscorlib TargetSite: Void Throw() 2023-03-22 23:37:55.136 Info HttpClient: GET https://image.tmdb.org/t/p/original/825ohvC4wZ3gCuncCaqkWeQnK8h.jpg 2023-03-22 23:37:55.145 Info HttpClient: GET https://image.tmdb.org/t/p/original/bUeiwBQdupBLQthMCHKV7zv56uv.jpg 2023-03-22 23:37:56.734 Error ProviderManager: Error saving to smb://mrdata/g_drive/[ Media ]/Movies/2000s/Remember.The.Titans.2000.1080p.BluRay.H264.AAC-RARBG/Remember.The.Titans.2000.1080p.BluRay.H264.AAC-RARBG-poster.jpg. Stream does not support writing.. 2023-03-22 23:37:56.783 Error ProviderManager: Error saving to smb://mrdata/g_drive/[ Media ]/Movies/2000s/Training Day (2001)/Training Day 2001 BrRip 720p x264 YIFY-poster.jpg. Stream does not support writing.. Link to comment Share on other sites More sharing options...
Luke 37156 Posted March 23, 2023 Share Posted March 23, 2023 Yea it looks like you'll need to look at the permissions on the media folder that it's trying to write to. Have you done that? Link to comment Share on other sites More sharing options...
GregMo 21 Posted March 30, 2023 Author Share Posted March 30, 2023 Yeah. It was set so that anyone could read and write to it. The fact that it created the file proves the permissions were good. Just not exactly sure why it's zero bytes long. Link to comment Share on other sites More sharing options...
Luke 37156 Posted March 30, 2023 Share Posted March 30, 2023 Are you on the shield? Link to comment Share on other sites More sharing options...
GregMo 21 Posted April 1, 2023 Author Share Posted April 1, 2023 No. This is on a Motorola One 5G Ace. I'm in the process of setting up a different phone and will try it on that one soon. 1 Link to comment Share on other sites More sharing options...
GregMo 21 Posted April 2, 2023 Author Share Posted April 2, 2023 On 3/30/2023 at 12:31 PM, Luke said: Are you on the shield? So, I have tried this again, any everything is different. Different phone, different network server, even different drive connected to that network server. Tried it on a movie library this time and still getting the same error, "Stream does not support writing". I just did a cursory search and this seems to be an error from trying to write to a stream that was opened as read-only. Not sure if this is an Emby issue, or an Android one, but given the results I'm seeing in this search, it would appear it is a coding fault. Link to comment Share on other sites More sharing options...
Luke 37156 Posted April 2, 2023 Share Posted April 2, 2023 11 minutes ago, GregMo said: So, I have tried this again, any everything is different. Different phone, different network server, even different drive connected to that network server. Tried it on a movie library this time and still getting the same error, "Stream does not support writing". I just did a cursory search and this seems to be an error from trying to write to a stream that was opened as read-only. Not sure if this is an Emby issue, or an Android one, but given the results I'm seeing in this search, it would appear it is a coding fault. We're definitely opening it as writeable. What's most likely happening is that the entire share is readonly, or at least, readonly to the server. Link to comment Share on other sites More sharing options...
GregMo 21 Posted April 2, 2023 Author Share Posted April 2, 2023 Other machines read and write to the share with no problem. And the share isn't read only or else it wouldn't be able to even create the zero-byte file. Link to comment Share on other sites More sharing options...
Luke 37156 Posted May 13, 2023 Share Posted May 13, 2023 @GregMowhat version of windows is the network share on? 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