alfred
alfred copied to clipboard
Fails to Run and connect to Mongo Fully
I already have Mongo with Manga_Tagger Docker setup (image: mongo:4.2.19) and I passed the info to login via the URI but I get a bunch of errors and Alfred doesn't start.
- SPRING_PROFILES_ACTIVE=prod
- SPRING_DATA_MONGODB_URI=mongodb://manga_tagger:[email protected]/alfred
:: Spring Boot :: (v2.3.1.RELEASE)
2022-10-05 23:48:34.333 INFO 1 --- [ main] de.wasenweg.alfred.AlfredApplication : Starting AlfredApplication on 2f8e53105511 with PID 1 (/app started by root in /)
2022-10-05 23:48:34.336 DEBUG 1 --- [ main] de.wasenweg.alfred.AlfredApplication : Running with Spring Boot v2.3.1.RELEASE, Spring v5.2.7.RELEASE
2022-10-05 23:48:34.337 INFO 1 --- [ main] de.wasenweg.alfred.AlfredApplication : The following profiles are active: prod
2022-10-05 23:48:35.789 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode.
2022-10-05 23:48:35.986 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 192ms. Found 5 MongoDB repository interfaces.
2022-10-05 23:48:36.980 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2022-10-05 23:48:36.993 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-10-05 23:48:36.993 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.36]
2022-10-05 23:48:37.141 INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-10-05 23:48:37.141 INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2734 ms
2022-10-05 23:48:37.660 INFO 1 --- [ main] org.mongodb.driver.cluster : Cluster created with settings {hosts=[10.1.1.10:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms'}
2022-10-05 23:48:37.772 INFO 1 --- [10.1.1.10:27017] org.mongodb.driver.connection : Opened connection [connectionId{localValue:1, serverValue:72}] to 10.1.1.10:27017
2022-10-05 23:48:37.779 INFO 1 --- [10.1.1.10:27017] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address=10.1.1.10:27017, type=STANDALONE, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=8, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=4376435}
2022-10-05 23:48:38.316 INFO 1 --- [ main] org.mongodb.driver.connection : Closed connection [connectionId{localValue:2}] to 10.1.1.10:27017 because there was a socket exception raised by this connection.
2022-10-05 23:48:38.319 WARN 1 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'comicController' defined in file [/app/de/wasenweg/alfred/comics/ComicController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'comicService' defined in file [/app/de/wasenweg/alfred/comics/ComicService.class]: Unsatisfied dependency expressed through constructor parameter 4; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'scannerService' defined in file [/app/de/wasenweg/alfred/scanner/ScannerService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiMetaDataService' defined in file [/app/de/wasenweg/alfred/scanner/ApiMetaDataService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'comicVineService' defined in file [/app/de/wasenweg/alfred/scanner/ComicVineService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settingsService': Invocation of init method failed; nested exception is org.springframework.data.mongodb.UncategorizedMongoDbException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='manga_tagger', source='alfred', password=<hidden>, mechanismProperties=<hidden>}; nested exception is com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='manga_tagger', source='alfred', password=<hidden>, mechanismProperties=<hidden>}
2022-10-05 23:48:38.324 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2022-10-05 23:48:38.344 INFO 1 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-10-05 23:48:38.348 ERROR 1 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'comicController' defined in file [/app/de/wasenweg/alfred/comics/ComicController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'comicService' defined in file [/app/de/wasenweg/alfred/comics/ComicService.class]: Unsatisfied dependency expressed through constructor parameter 4; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'scannerService' defined in file [/app/de/wasenweg/alfred/scanner/ScannerService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiMetaDataService' defined in file [/app/de/wasenweg/alfred/scanner/ApiMetaDataService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'comicVineService' defined in file [/app/de/wasenweg/alfred/scanner/ComicVineService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settingsService': Invocation of init method failed; nested exception is org.springframework.data.mongodb.UncategorizedMongoDbException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='manga_tagger', source='alfred', password=<hidden>, mechanismProperties=<hidden>}; nested exception is com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='manga_tagger', source='alfred', password=<hidden>, mechanismProperties=<hidden>}