Schaka / janitorr

Cleans your Radarr, Sonarr, Jellyseerr and Jellyfin before you run out of space
GNU General Public License v3.0
289 stars 6 forks source link

Issue starting #73

Closed Paper319 closed 1 hour ago

Paper319 commented 2 hours ago
2024-09-25T01:49:03.001-05:00`  INFO 1 --- [           main] c.g.s.janitorr.JanitorrApplicationKt     : Starting AOT-processed JanitorrApplicationKt using Java 22.0.1 with PID 1 (/workspace/com.github.schaka.janitorr.JanitorrApplicationKt started by ? in /workspace)
2024-09-25T01:49:03.001-05:00  INFO 1 --- [           main] c.g.s.janitorr.JanitorrApplicationKt     : No active profile set, falling back to 1 default profile: "default"
2024-09-25T01:49:03.030-05:00  INFO 1 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port 8080 (http)
2024-09-25T01:49:03.030-05:00  INFO 1 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2024-09-25T01:49:03.030-05:00  INFO 1 --- [           main] o.apache.catalina.core.StandardEngine    : Starting Servlet engine: [Apache Tomcat/10.1.30]
2024-09-25T01:49:03.037-05:00  INFO 1 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2024-09-25T01:49:03.037-05:00  INFO 1 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 36 ms
2024-09-25T01:49:03.046-05:00  WARN 1 --- [           main] w.s.c.ServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mediaCleanupSchedule': Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'mediaServer': Unsatisfied dependency expressed through method 'mediaServer' parameter 2: Error creating bean with name 'application-com.github.schaka.janitorr.config.ApplicationProperties': Could not bind properties to 'ApplicationProperties' : prefix=application, ignoreInvalidFields=false, ignoreUnknownFields=true
2024-09-25T01:49:03.046-05:00  INFO 1 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
2024-09-25T01:49:03.046-05:00 ERROR 1 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'application' to com.github.schaka.janitorr.config.ApplicationProperties:

    Reason: java.lang.NullPointerException: Parameter specified as non-null is null: method com.github.schaka.janitorr.config.ApplicationProperties.<init>, parameter mediaDeletion

Action:

Update your application's configuration

** Press ANY KEY to close this window ** ``

So im trying to start Janitorr after setting up the yml and application.yml is in the application.yml folder and the folders are set for that in the unraid docker gui.

NGINX is on my box running on port 8080 not sure if its a webserver issue or what.

Not sure what is going on.

Am I missing something?

Schaka commented 2 hours ago

You didn't map your application.yml correctly.

I'm not sure what you mean by application.yml folder?

If you're using the native image, the mapping needs to be as follows, directly to the file: /mnt/user/appdata/janitorr/config/application.yml:/workspace/application.yml

For non-native images you can map it either directly the folder. It needs to be inside /config in the container though. /mnt/user/appdata/janitorr/config:/config

Paper319 commented 1 hour ago

Odd okay it worked now, there was a application.yml folder that was made confused me should have known, Now im running into the issue of it showing free space of my cache drive, which i have media and movies stored on before it moves over to my long term storage its the same folder. But unraid does that movement.

Schaka commented 1 hour ago
free-space-check-dir: "/" # This is the default directory Janitorr uses to check how much space is left on your drives. By default, it checks the entire root - you may point it at a specific folder
Paper319 commented 1 hour ago

Im blind, Thanks sometimes the simple things just don't come to you. =_=