linuxserver / docker-jackett

GNU General Public License v3.0
394 stars 95 forks source link

Jackett not starting on Synology, access to the path "/config/Jackett" is denied #40

Closed jornbakhuys closed 6 years ago

jornbakhuys commented 6 years ago

When using the linuxserver/jackett docker image on Synogoly, I'm getting high CPU usage, and Jackett isn't available on the port. Looking at the logs it says Access to the path \"/config/Jackett\" is denied..

Synology: DS218+

To create the docker container:

docker create \
  --name=jackett \
  -v /volume1/media/jackett/config:/config \
  -v /volume1/media/downloads:/downloads \
  -e PGID=1024 -e PUID=100 \
  -e TZ=Europe/Amsterdam \
  -p 9117:9117 \
  linuxserver/jackett

I've provided the -e PGID=1024 -e PUID=100 flags, and looking at the logs I see:

User uid:    100
User gid:    102

Could it have something to do with an incorrect gid, messing up the permissions?

Part of the logs:

-------------------------------------
          _     _ _
         | |___| (_) ___
         | / __| | |/ _ \
         | \__ \ | | (_) |
         |_|___/ |_|\___/
               |_|

Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donations/
-------------------------------------
GID/UID
-------------------------------------

User uid:    100
User gid:    102
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
12-16 16:29:00 Error Top level exception Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ServerService (ReflectionActivator), Services = [Jackett.Services.Interfaces.IServerService], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IndexerManagerService (ReflectionActivator), Services = [Jackett.Services.Interfaces.IIndexerManagerService], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IndexerConfigurationService (ReflectionActivator), Services = [Jackett.Services.Interfaces.IIndexerConfigurationService], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ConfigurationService (ReflectionActivator), Services = [Jackett.Services.Interfaces.IConfigurationService], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor(ISerializeService, IProcessService, Logger, RuntimeSettings)' on type 'ConfigurationService'. ---> Could not create settings directory. Access to the path "/config/Jackett" is denied. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IndexerManagerService (ReflectionActivator), Services = [Jackett.Services.Interfaces.IIndexerManagerService], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IndexerConfigurationService (ReflectionActivator), Services = [Jackett.Services.Interfaces.IIndexerConfigurationService], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ConfigurationService (ReflectionActivator), Services = [Jackett.Services.Interfaces.IConfigurationService], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor(ISerializeService, IProcessService, Logger, RuntimeSettings)' on type 'ConfigurationService'. ---> Could not create settings directory. Access to the path "/config/Jackett" is denied. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IndexerConfigurationService (ReflectionActivator), Services = [Jackett.Services.Interfaces.IIndexerConfigurationService], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ConfigurationService (ReflectionActivator), Services = [Jackett.Services.Interfaces.IConfigurationService], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor(ISerializeService, IProcessService, Logger, RuntimeSettings)' on type 'ConfigurationService'. ---> Could not create settings directory. Access to the path "/config/Jackett" is denied. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ConfigurationService (ReflectionActivator), Services = [Jackett.Services.Interfaces.IConfigurationService], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor(ISerializeService, IProcessService, Logger, RuntimeSettings)' on type 'ConfigurationService'. ---> Could not create settings directory. Access to the path "/config/Jackett" is denied. (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(ISerializeService, IProcessService, Logger, RuntimeSettings)' on type 'ConfigurationService'. ---> Could not create settings directory. Access to the path "/config/Jackett" is denied. (See inner exception for details.) ---> System.Exception: Could not create settings directory. Access to the path "/config/Jackett" is denied.