Jump to content

Permissions issues Docker


Recommended Posts

Posted

Hello, I wanted to give Emby another try. I wanted to fire up a server via Docker container, but running into an issue :(

I try be descriptive as possible:

Errors:

Quote



020-12-04 23:15:24.598 Error ProviderManager: Error in metadata saver
	*** Error Report ***
	Version: 4.5.3.0
	Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Linux version 5.8.0-1008-raspi (buildd@bos02-arm64-062) (gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0, GNU ld (GNU Binutils for Ubuntu) 2.35.1) #11-Ubuntu SMP
	Framework: .NET Core 3.1.7
	OS/Process: arm64/arm64
	Runtime: system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /config
	Application path: /system
	System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/adata/movies/Aladdin (2019) 1080p AAC.nfo' is denied.
	 ---> System.IO.IOException: Permission denied
	   --- End of inner exception stack trace ---
	   at System.IO.FileStream.WriteNative(ReadOnlySpan`1 source)
	   at System.IO.FileStream.WriteSpan(ReadOnlySpan`1 source)
	   at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
	   at System.IO.MemoryStream.CopyTo(Stream destination, Int32 bufferSize)
	   at System.IO.Stream.CopyTo(Stream destination)
	   at NfoMetadata.Savers.BaseNfoSaver.SaveToFile(Stream stream, String path)
	   at NfoMetadata.Savers.BaseNfoSaver.Save(BaseItem item, CancellationToken cancellationToken)
	   at MediaBrowser.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, LibraryOptions libraryOptions, ItemUpdateType updateType, IMetadataSaver[] savers, CancellationToken cancellationToken)
	Source: System.Private.CoreLib
	TargetSite: Void WriteNative(System.ReadOnlySpan`1[System.Byte])
	InnerException: System.IO.IOException: Permission denied
	Source: 
	TargetSite: 
 
 
 

Full Log2020-12-04 23:10:21.896 Info Main: Application path: /system/EmbyServer.dll202 - Pastebin.com

I read many forum posts about that, but nothing helps me resolve the issue, I believe is something different.

Deployment command: docker run -d --name=emby --volume /etc/departy/emby:/config --volume /media/video/movies:/adata/movies --device /dev/dri:/dev/dri --publish 61060:8096 --publish 8920:8920 --env UID=1001 --env GID=1002 emby/embyserver_arm64v8

Permissions:

Imgur: The magic of the Internet

I am sure its not about the permissions because the NFO files on the screenshots are created by EMBY and they are 0b. Just empty NFO files and cannot populate them for some reason.

Does anyone have an idea how to fix it ?

@Happy2Play please move my posting to a new topic. Thanks !

Happy2Play
Posted

@departyplease follow this topic for updates.

Posted (edited)

Thank you. Does anyone have any suggestions? I am continuing today and with no lead or idea. 
 

also from the docker container I am able to run touch command. 
 

which user does Emby uses to write nfo and other content to the shared partition ? 

Edited by departy
Posted

It's a system user called emby.

  • 1 year later...
Posted

Is this still the case? If I exec into my docker container and use "cat /etc/passwd", there is no user called emby... ?

Posted
10 minutes ago, Xinv9 said:

Is this still the case? If I exec into my docker container and use "cat /etc/passwd", there is no user called emby... ?

Hi, what are you trying to accomplish?

Posted (edited)

Tnx, I was trying to find the emby user with which files are being written apparently, because writing didn't work for me. But my problem  is already solved by upgrading to the beta: 

 

Edited by Xinv9

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...