linuxserver / docker-nzbhydra2

GNU General Public License v3.0
67 stars 15 forks source link

Java errors in latest version v4.3.1-ls52 #20

Closed flatlinebb closed 2 years ago

flatlinebb commented 2 years ago

linuxserver.io


Expected Behavior

the application should allow connection via the web browser

Current Behavior

Unable to load the hydra2 app in the web browser. The log indicates java error:

2022-05-03 23:42:25,940 ERROR - Unable to determine java version; make sure Java is installed and callable

Steps to Reproduce

  1. The docker container was automatically updated today to latest build version v2.19.6-ls69 Build-date:- 2020-04-24T07:30:31-04:00
  2. The web interface will not start.
  3. Logs indicate a problem with java inside the docker container.

Environment

OS: Debian GNU/Linux 9.13 (stretch) CPU architecture: x86_64 How docker service was installed: Docker container was installed from the official docker release: lscr.io/linuxserver/nzbhydra2:latest

Command used to create docker container (run/create/compose/screenshot)

docker run -d --name=hydra2 \
  --restart always \
  -v /home/****/docker/hydra2:/config \
  -v /media/store1tb/downloads:/downloads \
  -e PGID=1000 \
  -e PUID=1000 \
  -e TZ=US/Pacific \
  -p 5076:5076 \
linuxserver/hydra2

Docker logs

hydra2_logs.txt

github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

flatlinebb commented 2 years ago

Reverting back to linuxserver/nzbhydra2:v4.3.0-ls47 produces an issue as well, as it tries to update the database and fails, and the web interface does not start:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] 01-envfile: executing... ,
[cont-init.d] 01-envfile: exited 0.,
[cont-init.d] 01-migrations: executing... ,
[migrations] started,
[migrations] no migrations found,
[cont-init.d] 01-migrations: exited 0.,
[cont-init.d] 02-tamper-check: executing... ,
[cont-init.d] 02-tamper-check: exited 0.,
[cont-init.d] 10-adduser: executing... ,
,
-------------------------------------,
          _         (),
         | |  ___   _    __,
         | | / __| | |  /  \ ,
         | | \__ \ | | | () |,
         |_| |___/ |_|  \__/,
,
,
Brought to you by linuxserver.io,
-------------------------------------,
,
To support the app dev(s) visit:,
NZBHydra 2: https://github.com/theotherp/nzbhydra2#donate,
,
To support LSIO projects visit:,
https://www.linuxserver.io/donate/,
-------------------------------------,
GID/UID,
-------------------------------------,
,
User uid:    1000,
User gid:    1000,
-------------------------------------,
,
[cont-init.d] 10-adduser: exited 0.,
[cont-init.d] 30-config: executing... ,
[cont-init.d] 30-config: exited 0.,
[cont-init.d] 90-custom-folders: executing... ,
[cont-init.d] 90-custom-folders: exited 0.,
[cont-init.d] 99-custom-scripts: executing... ,
[custom-init] no custom files found exiting...,
[cont-init.d] 99-custom-scripts: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
Logging wrapper output to /config/logs/wrapper.log,
2022-05-03 23:56:39,457  INFO - Determined java version as '11' from version string 'openjdk version "11.0.14.1" 2022-02-08',
2022-05-03 23:56:39,458  INFO - Starting NZBHydra main process with command line: java -Xmx256M -DfromWrapper -XX:TieredStopAtLevel=1 -noverify -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/config/logs -Dspring.output.ansi.enabled=ALWAYS -jar /app/nzbhydra2/bin/lib/core-4.3.0-exec.jar --nobrowser --datafolder /config in folder /app/nzbhydra2/bin,
23:56:40.902 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep005to006.class],
23:56:40.903 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep012to013.class],
23:56:40.904 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep003to004.class],
23:56:40.904 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep006to007.class],
23:56:40.905 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep010to011.class],
23:56:40.905 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep015to016.class],
23:56:40.906 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep016to017.class],
23:56:40.906 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep017to018.class],
23:56:41.162 [main] DEBUG org.nzbhydra.config.ConfigReaderWriter - Writing to file /config/nzbhydra.yml,
23:56:41.189 [main] DEBUG org.nzbhydra.NzbHydra - Setting property browser.disabled to value true,
23:56:41.205 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.port to 5076,
23:56:41.205 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.ssl to false,
23:56:41.205 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.databaseRetentionTime to 1000,
23:56:41.205 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.logging.consolelevel to INFO,
23:56:41.206 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.logging.logMaxHistory to 30,
23:56:41.587 [main] INFO org.nzbhydra.database.DatabaseRecreation - Database recreation needed because DatabaseRecreation.ExecutedScript(script=V5__NOTIFICATION_ALLOW_NULL_URLS.sql, checksum=485762902) was not yet executed or its checksum has changed,
23:56:41.612 [main] INFO org.nzbhydra.database.DatabaseRecreation - Creating database script /config/databaseScript.sql from database,
23:56:41.928 [main] INFO org.nzbhydra.database.DatabaseRecreation - Successfully recreated database,
|  \ |  | |       /  |   _  \ |  |  |  | \   \  /   / |       \ |   _  \        /   \        |__ \
,
|  . `  |    /  /    |   _  < |   __   |   \_    _/   |  |  |  ||      /      /  /_\  \        / /
,
|__| \__|  /________||______/ |__|  |__|     |__|     |_______/ | _| `._____/__/     \__\    |____|
,
2022-05-03 23:56:42.847  INFO --- [              main] org.nzbhydra.NzbHydra                    : Starting NzbHydra using Java 11.0.14.1 on f21b8db13746 with PID 345 (/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar started by abc in /app/nzbhydra2/bin),
2022-05-03 23:56:46.059  INFO --- [              main] org.nzbhydra.config.BaseConfig           : Using data folder /config,
2022-05-03 23:56:46.926  INFO --- [              main] o.n.a.HydraAnonymousAuthenticationFilter : Granting stats rights to anonymous users,
2022-05-03 23:56:47.107  INFO --- [              main] o.f.c.internal.license.VersionPrinter    : Flyway Community Edition 6.2.0 by Redgate,
2022-05-03 23:56:47.176  INFO --- [              main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.,
2022-05-03 23:56:47.303  WARN --- [              main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Error while migrating database,
2022-05-03 23:56:47.323  INFO --- [              main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.,
,
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542),
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234),
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208),
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208),
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908),
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145),
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412),
    at org.nzbhydra.database.FlywayMigration$1.migrate(FlywayMigration.java:73),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620),
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335),
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333),
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322),
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154),
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583),
Migration checksum mismatch for migration version 1.0,
-> Resolved locally    : 1776042577,
-> Applied to database : -1213254782,
Migration checksum mismatch for migration version 1.5,
-> Resolved locally    : 1860441610,
-> Applied to database : -1192459787,
Migration checksum mismatch for migration version 1.9,
-> Resolved locally    : 1107581864,
-> Applied to database : 2009826409,
Migration checksum mismatch for migration version 1.18,
-> Resolved locally    : 343478394,
-> Applied to database : -1592927496,
Migration checksum mismatch for migration version 1.22,
-> Resolved locally    : 1005916325,
-> Applied to database : -1862055225,
Migration checksum mismatch for migration version 1.24,
-> Resolved locally    : -807633120,
-> Applied to database : -1658030448,
Migration checksum mismatch for migration version 4,
-> Resolved locally    : -991409808,
-> Applied to database : -100561660,
,
    at org.flywaydb.core.Flyway.access$100(Flyway.java:73),
    at org.flywaydb.core.Flyway$1.execute(Flyway.java:153),
    at org.flywaydb.core.Flyway.migrate(Flyway.java:153),
    at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:62),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542),
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234),
,
,
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542),
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234),
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208),
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208),
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908),
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145),
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412),
    at org.nzbhydra.database.FlywayMigration$1.migrate(FlywayMigration.java:73),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620),
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335),
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333),
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322),
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154),
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583),
Migration checksum mismatch for migration version 1.0,
-> Resolved locally    : 1776042577,
-> Applied to database : -1213254782,
Migration checksum mismatch for migration version 1.5,
-> Resolved locally    : 1860441610,
-> Applied to database : -1192459787,
Migration checksum mismatch for migration version 1.9,
-> Resolved locally    : 1107581864,
-> Applied to database : 2009826409,
Migration checksum mismatch for migration version 1.18,
-> Resolved locally    : 343478394,
-> Applied to database : -1592927496,
Migration checksum mismatch for migration version 1.22,
-> Resolved locally    : 1005916325,
-> Applied to database : -1862055225,
Migration checksum mismatch for migration version 1.24,
-> Resolved locally    : -807633120,
-> Applied to database : -1658030448,
Migration checksum mismatch for migration version 4,
-> Resolved locally    : -991409808,
-> Applied to database : -100561660,
,
    at org.flywaydb.core.Flyway.access$100(Flyway.java:73),
    at org.flywaydb.core.Flyway$1.execute(Flyway.java:153),
    at org.flywaydb.core.Flyway.migrate(Flyway.java:153),
    at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:62),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542),
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234),
,
2022-05-04 00:00:49,094  INFO - Terminated by signal 15,
2022-05-04 00:00:49,095  INFO - NZBHydra2 wrapper shutdown request. Terminating main process gracefully,
[cont-finish.d] executing container finish scripts...,
[cont-finish.d] done.,
[s6-finish] waiting for services.,
[s6-finish] sending all processes the TERM signal.,
[s6-finish] sending all processes the KILL signal and exiting.,
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] 01-envfile: executing... ,
[cont-init.d] 01-envfile: exited 0.,
[cont-init.d] 01-migrations: executing... ,
[migrations] started,
[migrations] no migrations found,
[cont-init.d] 01-migrations: exited 0.,
[cont-init.d] 02-tamper-check: executing... ,
[cont-init.d] 02-tamper-check: exited 0.,
[cont-init.d] 10-adduser: executing... ,
usermod: no changes,
,
-------------------------------------,
          _         (),
         | |  ___   _    __,
         | | / __| | |  /  \ ,
         | | \__ \ | | | () |,
         |_| |___/ |_|  \__/,
,
,
Brought to you by linuxserver.io,
-------------------------------------,
,
To support the app dev(s) visit:,
NZBHydra 2: https://github.com/theotherp/nzbhydra2#donate,
,
To support LSIO projects visit:,
https://www.linuxserver.io/donate/,
-------------------------------------,
GID/UID,
-------------------------------------,
,
User uid:    1000,
User gid:    1000,
-------------------------------------,
,
[cont-init.d] 10-adduser: exited 0.,
[cont-init.d] 30-config: executing... ,
[cont-init.d] 30-config: exited 0.,
[cont-init.d] 90-custom-folders: executing... ,
[cont-init.d] 90-custom-folders: exited 0.,
[cont-init.d] 99-custom-scripts: executing... ,
[custom-init] no custom files found exiting...,
[cont-init.d] 99-custom-scripts: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
Logging wrapper output to /config/logs/wrapper.log,
2022-05-04 00:00:54,084  INFO - Determined java version as '11' from version string 'openjdk version "11.0.14.1" 2022-02-08',
2022-05-04 00:00:54,084  INFO - Starting NZBHydra main process with command line: java -Xmx256M -DfromWrapper -XX:TieredStopAtLevel=1 -noverify -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/config/logs -Dspring.output.ansi.enabled=ALWAYS -jar /app/nzbhydra2/bin/lib/core-4.3.0-exec.jar --nobrowser --datafolder /config in folder /app/nzbhydra2/bin,
00:00:55.566 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep005to006.class],
00:00:55.567 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep012to013.class],
00:00:55.568 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep003to004.class],
00:00:55.569 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep006to007.class],
00:00:55.569 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep010to011.class],
00:00:55.570 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep015to016.class],
00:00:55.571 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep016to017.class],
00:00:55.571 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep017to018.class],
00:00:55.824 [main] DEBUG org.nzbhydra.config.ConfigReaderWriter - Writing to file /config/nzbhydra.yml,
00:00:55.850 [main] DEBUG org.nzbhydra.NzbHydra - Setting property browser.disabled to value true,
00:00:55.866 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.port to 5076,
00:00:55.866 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.ssl to false,
00:00:55.867 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.databaseRetentionTime to 1000,
00:00:55.867 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.logging.consolelevel to INFO,
00:00:55.867 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.logging.logMaxHistory to 30,
00:00:56.259 [main] INFO org.nzbhydra.database.DatabaseRecreation - Database recreation needed because DatabaseRecreation.ExecutedScript(script=V5__NOTIFICATION_ALLOW_NULL_URLS.sql, checksum=485762902) was not yet executed or its checksum has changed,
00:00:56.286 [main] INFO org.nzbhydra.database.DatabaseRecreation - Creating database script /config/databaseScript.sql from database,
00:00:56.608 [main] INFO org.nzbhydra.database.DatabaseRecreation - Successfully recreated database,
|  \ |  | |       /  |   _  \ |  |  |  | \   \  /   / |       \ |   _  \        /   \        |__ \
,
|  . `  |    /  /    |   _  < |   __   |   \_    _/   |  |  |  ||      /      /  /_\  \        / /
,
|__| \__|  /________||______/ |__|  |__|     |__|     |_______/ | _| `._____/__/     \__\    |____|
,
2022-05-04 00:00:57.602  INFO --- [              main] org.nzbhydra.NzbHydra                    : Starting NzbHydra using Java 11.0.14.1 on f21b8db13746 with PID 343 (/app/nzbhydra2/bin/lib/core-4.3.0-exec.jar started by abc in /app/nzbhydra2/bin),
2022-05-04 00:01:00.733  INFO --- [              main] org.nzbhydra.config.BaseConfig           : Using data folder /config,
2022-05-04 00:01:01.599  INFO --- [              main] o.n.a.HydraAnonymousAuthenticationFilter : Granting stats rights to anonymous users,
2022-05-04 00:01:01.785  INFO --- [              main] o.f.c.internal.license.VersionPrinter    : Flyway Community Edition 6.2.0 by Redgate,
2022-05-04 00:01:01.854  INFO --- [              main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.,
2022-05-04 00:01:01.981  WARN --- [              main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Error while migrating database,
2022-05-04 00:01:01.994  INFO --- [              main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.,
,
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542),
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234),
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208),
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208),
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908),
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145),
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412),
    at org.nzbhydra.database.FlywayMigration$1.migrate(FlywayMigration.java:73),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620),
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335),
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333),
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322),
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154),
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583),
Migration checksum mismatch for migration version 1.0,
-> Resolved locally    : 1776042577,
-> Applied to database : -1213254782,
Migration checksum mismatch for migration version 1.5,
-> Resolved locally    : 1860441610,
-> Applied to database : -1192459787,
Migration checksum mismatch for migration version 1.9,
-> Resolved locally    : 1107581864,
-> Applied to database : 2009826409,
Migration checksum mismatch for migration version 1.18,
-> Resolved locally    : 343478394,
-> Applied to database : -1592927496,
Migration checksum mismatch for migration version 1.22,
-> Resolved locally    : 1005916325,
-> Applied to database : -1862055225,
Migration checksum mismatch for migration version 1.24,
-> Resolved locally    : -807633120,
-> Applied to database : -1658030448,
Migration checksum mismatch for migration version 4,
-> Resolved locally    : -991409808,
-> Applied to database : -100561660,
,
    at org.flywaydb.core.Flyway.access$100(Flyway.java:73),
    at org.flywaydb.core.Flyway$1.execute(Flyway.java:153),
    at org.flywaydb.core.Flyway.migrate(Flyway.java:153),
    at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:62),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542),
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234),
,
,
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542),
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234),
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208),
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208),
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908),
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145),
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412),
    at org.nzbhydra.database.FlywayMigration$1.migrate(FlywayMigration.java:73),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620),
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335),
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333),
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322),
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154),
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583),
Migration checksum mismatch for migration version 1.0,
-> Resolved locally    : 1776042577,
-> Applied to database : -1213254782,
Migration checksum mismatch for migration version 1.5,
-> Resolved locally    : 1860441610,
-> Applied to database : -1192459787,
Migration checksum mismatch for migration version 1.9,
-> Resolved locally    : 1107581864,
-> Applied to database : 2009826409,
Migration checksum mismatch for migration version 1.18,
-> Resolved locally    : 343478394,
-> Applied to database : -1592927496,
Migration checksum mismatch for migration version 1.22,
-> Resolved locally    : 1005916325,
-> Applied to database : -1862055225,
Migration checksum mismatch for migration version 1.24,
-> Resolved locally    : -807633120,
-> Applied to database : -1658030448,
Migration checksum mismatch for migration version 4,
-> Resolved locally    : -991409808,
-> Applied to database : -100561660,
,
    at org.flywaydb.core.Flyway.access$100(Flyway.java:73),
    at org.flywaydb.core.Flyway$1.execute(Flyway.java:153),
    at org.flywaydb.core.Flyway.migrate(Flyway.java:153),
    at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:62),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800),
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542),
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234),
flatlinebb commented 2 years ago

Reverting to release v4.3.1-ls51 AND renaming the database file (which results in a new db being created) works and I can now access the web interface and perform searches. However, all my history and stats are gone. And, I am experiencing an issue similar to #18 where the indexers return an error and it takes a few tries to get a result.

jjross commented 2 years ago

I’m also having this issue. Reverted to v4.3.0-ls48 and everything appears fixed

reisholmes commented 2 years ago

Same java issue here on latest. I've stuck the image to v4.3.0-ls47 and it's working as expected.

thespad commented 2 years ago

linuxserver.io

Expected Behavior

the application should allow connection via the web browser

Current Behavior

Unable to load the hydra2 app in the web browser. The log indicates java error:

2022-05-03 23:42:25,940 ERROR - Unable to determine java version; make sure Java is installed and callable

Steps to Reproduce

1. The docker container was automatically updated today to latest build version v2.19.6-ls69 Build-date:- 2020-04-24T07:30:31-04:00

2. The web interface will not start.

3. Logs indicate a problem with java inside the docker container.

Environment

OS: Debian GNU/Linux 9.13 (stretch) CPU architecture: x86_64 How docker service was installed: Docker container was installed from the official docker release: lscr.io/linuxserver/nzbhydra2:latest

Command used to create docker container (run/create/compose/screenshot)

docker run -d --name=hydra2 \
  --restart always \
  -v /home/****/docker/hydra2:/config \
  -v /media/store1tb/downloads:/downloads \
  -e PGID=1000 \
  -e PUID=1000 \
  -e TZ=US/Pacific \
  -p 5076:5076 \
linuxserver/hydra2

Docker logs

hydra2_logs.txt

You're using an image that hasn't been updated for 2 years, I'm not surprised it doesn't work.

linuxserver/hydra2

The docker container was automatically updated today to latest build version v2.19.6-ls69 Build-date:- 2020-04-24T07:30:31-04:00

glassbase commented 2 years ago

Also getting this. Following for updates.

flatlinebb commented 2 years ago

You're using an image that hasn't been updated for 2 years, I'm not surprised it doesn't work.

I made a mistake and pasted the wrong info from an old install.. The image I'm using is actually "linuxserver/nzbhydra2:latest"

But considering that I'm not the only one having this issue, this is not actually the problem here. But thank you for your input, @thespad

flatlinebb commented 2 years ago

I've stuck the image to v4.3.0-ls47 and it's working as expected.

I'm stable with v4.3.1-ls51. Any other older version that I roll back to creates a database issue for me.

thespad commented 2 years ago

You're using an image that hasn't been updated for 2 years, I'm not surprised it doesn't work.

I made a mistake and pasted the wrong info from an old install.. The image I'm using is actually "linuxserver/nzbhydra2:latest"

But considering that I'm not the only one having this issue, this is not actually the problem here. But thank you for your input, @thespad

Nobody else who has "me too"'d has bothered to provide any diagnostic information at all that would in any way help to identify the source of the problem (it's not a general issue with the image because none of our tests can replicate the error). I'm not surprised that rolling back to an earlier version of the application causes DB issues as the schema won't match.

What is the actual version of the image that you're having issues with?

reisholmes commented 2 years ago

You're using an image that hasn't been updated for 2 years, I'm not surprised it doesn't work.

I made a mistake and pasted the wrong info from an old install.. The image I'm using is actually "linuxserver/nzbhydra2:latest" But considering that I'm not the only one having this issue, this is not actually the problem here. But thank you for your input, @thespad

Nobody else who has "me too"'d has bothered to provide any diagnostic information at all that would in any way help to identify the source of the problem (it's not a general issue with the image because none of our tests can replicate the error). I'm not surprised that rolling back to an earlier version of the application causes DB issues as the schema won't match.

What is the actual version of the image that you're having issues with?

Sure, I'll try to help out as well. I'm running "latest" tag in dockerswarm with the service defined as this:

hydra2:
    image: linuxserver/nzbhydra2:latest
    networks: 
      - traefik_overlay
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=${MYTIMEZONE}
    volumes:
      - ~/dockerdata/nzbhydra2config:/config
      - ~/downloads:/downloads
    deploy:
      labels:
         <various labels for networking>

So nothing complex. When I bring up the service I'm greeted by this error:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 01-migrations: executing...
[migrations] started
[migrations] no migrations found
[cont-init.d] 01-migrations: exited 0.
[cont-init.d] 02-tamper-check: executing...
[cont-init.d] 02-tamper-check: exited 0.
[cont-init.d] 10-adduser: executing...

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

Brought to you by linuxserver.io
-------------------------------------

To support the app dev(s) visit:
NZBHydra 2: https://github.com/theotherp/nzbhydra2#donate

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Logging wrapper output to /config/logs/wrapper.log
2022-05-04 19:12:34,778  ERROR - Unable to determine java version; make sure Java is installed and callable. Error message: Unable to determine java version from string [0.003s][warning][os,thread] Failed to start thread - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.

The error message then proceeds to repeat until I kill the service and pin the version to v4.3.0-ls47 or (just tested) v4.3.1-ls51 at which point nzbhydra2 service starts successfully without issues.

flatlinebb commented 2 years ago

The issue is with the latest version v4.3.1-ls52.

I have one question that may seem dumb: do I need to have java installed on the host machine, where docker is running? My understanding of the docker containers is that they will contain all the software they need to run the application, so java is not needed on the actual host.

Additionally, this issue from the nzbhydra2 creator might be related? https://github.com/theotherp/nzbhydra2/issues/768#issuecomment-1108052325 It mentions the wrong executable trying to launch.

reisholmes commented 2 years ago

Just to add to my previous comment.

Running 'java -version' inside of the container with 'latest' tag results in this error:

java -version
[0.006s][warning][os,thread] Failed to start thread - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create worker GC thread. Out of system resources.
# An error report file with more information is saved as:
# //hs_err_pid428.log

The log file referenced shows the error as well:

cat /hs_err_pid428.log
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create worker GC thread. Out of system resources.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap

It then provides further possible generic solutions for fixing it.

Running on version v4.3.1-ls51 results in this:

java -version 
openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10-alpine-r0)
OpenJDK 64-Bit Server VM (build 11.0.15+10-alpine-r0, mixed mode)
thespad commented 2 years ago

We think we've narrowed it down to an issue with the version of Docker. The machines we've been able to replicate it on were all fixed by upgrading to 20.10.14.

flatlinebb commented 2 years ago

The machines we've been able to replicate it on were all fixed by upgrading to 20.10.14.

Is that a stable release of docker? The newest release available to me on Debian stretch is 19.03.15.

thespad commented 2 years ago

The machines we've been able to replicate it on were all fixed by upgrading to 20.10.14.

Is that a stable release of docker? The newest release available to me on Debian stretch is 19.03.15.

19.03.15 is over a year old, we recommend you install from the official Docker repos rather than the distro ones: https://docs.docker.com/engine/install/debian/

reisholmes commented 2 years ago

We think we've narrowed it down to an issue with the version of Docker. The machines we've been able to replicate it on were all fixed by upgrading to 20.10.14.

Can confirm, upgrading docker version has fixed this for me. Thanks for the tip, I wouldn't have thought to check that.

ieaves commented 2 years ago

Similar issue for me running on Kubernetes v1.22 - containerd runtime not docker.

2022-05-04 21:16:10,842  INFO - Determined java version as '11' from version string 'openjdk version "11.0.15" 2022-04-19'
2022-05-04 21:16:10,843  INFO - Starting NZBHydra main process with command line: java -Xmx256M -DfromWrapper -XX:TieredStopAtLevel=1 -noverify -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/config/logs -Dspring.output.ansi.enabled=ALWAYS -jar /app/nzbhydra2/bin/lib/core-4.3.1-exec.jar --nobrowser --datafolder /config in folder /app/nzbhydra2/bin
21:16:12.152 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep008to009.class]
21:16:12.153 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep003to004.class]
21:16:12.154 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep006to007.class]
21:16:12.155 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep007to008.class]
21:16:12.155 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep010to011.class]
21:16:12.156 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep014to015.class]
21:16:12.157 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep015to016.class]
21:16:12.157 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep018to019.class]
21:16:12.398 [main] DEBUG org.nzbhydra.config.ConfigReaderWriter - Writing to file /config/nzbhydra.yml
21:16:12.428 [main] DEBUG org.nzbhydra.NzbHydra - Setting property browser.disabled to value true
21:16:12.445 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.port to 5076
21:16:12.445 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.ssl to false
21:16:12.445 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.databaseRetentionTime to 1000
21:16:12.445 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.logging.consolelevel to INFO
21:16:12.445 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.logging.logMaxHistory to 30
21:17:41.156 [main] ERROR org.nzbhydra.NzbHydra - An unexpected error occurred during startup
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:622)
    at org.h2.message.DbException.get(DbException.java:194)
    at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:182)
    at org.h2.engine.Database.getPageStore(Database.java:2659)
    at org.h2.engine.Database.openDatabase(Database.java:307)
    at org.h2.engine.Engine.openSession(Engine.java:74)
    at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171)
    at org.h2.engine.Engine.createSession(Engine.java:29)
    at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:173)
    at org.h2.Driver.connect(Driver.java:69)
    at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
    at org.nzbhydra.database.DatabaseRecreation.runDatabaseScript(DatabaseRecreation.java:75)
    at org.nzbhydra.NzbHydra.main(NzbHydra.java:119)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
    at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
    at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950)
    at org.h2.mvstore.MVStore.readBufferForPage(MVStore.java:1214)
    at org.h2.mvstore.MVMap.readPage(MVMap.java:672)
    at org.h2.mvstore.CursorPos.traverseDown(CursorPos.java:58)
    at org.h2.mvstore.Cursor.<init>(Cursor.java:31)
    at org.h2.mvstore.MVMap.keyIterator(MVMap.java:699)
    at org.h2.mvstore.MVStore.<init>(MVStore.java:410)
    at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170)
Exception in thread "main" java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
    at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:622)
    at org.h2.message.DbException.get(DbException.java:194)
    at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:182)
    at org.h2.engine.Database.getPageStore(Database.java:2659)
    at org.h2.engine.Database.openDatabase(Database.java:307)
    at org.h2.engine.Engine.openSession(Engine.java:74)
    at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171)
    at org.h2.engine.Engine.createSession(Engine.java:29)
    at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:173)
    at org.h2.Driver.connect(Driver.java:69)
    at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
    at org.nzbhydra.database.DatabaseRecreation.runDatabaseScript(DatabaseRecreation.java:75)
    at org.nzbhydra.NzbHydra.main(NzbHydra.java:119)
Caused by: java.lang.IllegalStateException: File corrupted in chunk 1423438, expected page length 4..512, got 1364647173 [1.4.200/6]
    at org.h2.mvstore.Chunk.readBufferForPage(Chunk.java:368)
    at org.h2.mvstore.MVStore.readPage(MVStore.java:2209)
    at org.h2.mvstore.Page$NonLeaf.getChildPage(Page.java:1043)
    at org.h2.mvstore.Cursor.traverseDown(Cursor.java:157)
    at org.h2.mvstore.Cursor.<init>(Cursor.java:27)
    at org.h2.mvstore.MVStore.scrubMetaMap(MVStore.java:427)
    at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579)
    ... 28 more
2022-05-04 21:17:41,185  ERROR - Main process shut down unexpectedly. If the wrapper was started in daemon mode you might not see the error output. Start Hydra manually with the same parameters in the same environment to see it
flatlinebb commented 2 years ago

19.03.15 is over a year old, we recommend you install from the official Docker repos rather than the distro ones:

I have installed from the docker repos and 19.03.15 is the most recent one available. It is possible that is the latest version presented for Debian stretch, which is in LTS until next month at least. It seems that upgrading to the latest docker release would require updating my Debian system as well, which, while I'm sure is recommended, seems totally overkill for fixing an issue with a single docker container. I am not expecting old versions of software to be supported forever. But I wish to understand better what broke in the latest release of the nzbhydra2 so badly that is can only be fixed in the latest version of docker. I run many docker containers, across multiple hosts and I have not seen a similar issue with any of them, some much more complex than nzbhydra2.

flatlinebb commented 2 years ago

I have confirmed on another system, running Debian Sid, with docker version 20.10.14, that the latest build of nzbhydra2 version v4.3.1-ls52 works, and java seems to be properly detected. This is great news and when I'm ready to upgrade my main Debian system to a latest stable release, I can then run the latest release of nzbhydra2.

If at all possible that the fix could be made to work with an older version of docker, that would be great news as well. I do not know how complex it is to do that and I completely understand why no one would want to spend time doing that. I can stick with the release that works for me for now, v4.3.0-ls47. Thank you all for your time and efforts in trying to resolve this issue.

thespad commented 2 years ago

As yet we don't know what specific change with Docker has fixed the issue. The newest version we had the issue reported on was 20.10.2, and the oldest host we were able to get it working on was running 20.10.3, but there's nothing in the patch notes to suggest what might have changed there that could be related.

From what we can see the issue doesn't occur with Bionic or Focal base images, or our Alpine 3.15 base image, so it's something specific to Jammy and those older versions of Docker. If the root of the issue is a fundamental interaction between the docker engine and the Jammy base image, there may not be anything we can do to "fix" it for older docker versions other than not use the Jammy base image (which is an option, but we're trying not to leave images on old LTS bases because we tend to run into other compatibility issues over time).

You may also have more luck with the dev tag, which is on our Alpine 3.15 base still - we only moved the latest tag back to Jammy because a subset of users reported DNS issues on Alpine.

regulus0 commented 2 years ago

Had original issue with Java, updated docker to 20.10.14 as stated in this thread, Hydra container now crash loops on startup:


10:52:08.487 [main] DEBUG org.nzbhydra.config.ConfigReaderWriter - Writing to file /config/nzbhydra.yml,
2022-05-05 10:52:25,828  ERROR - Main process shut down unexpectedly. If the wrapper was started in daemon mode you might not see the error output. Start Hydra manually with the same parameters in the same environment to see it,
2022-05-05 10:52:23,467  ERROR - Main process shut down unexpectedly. If the wrapper was started in daemon mode you might not see the error output. Start Hydra manually with the same parameters in the same environment to see it,Exception in thread "main" java.lang.reflect.InvocationTargetException,
10:52:25.802 [main] ERROR org.nzbhydra.NzbHydra - An unexpected error occurred during startup,
2022-05-05 10:52:25,947  INFO - Determined java version as '11' from version string 'openjdk version "11.0.15" 2022-04-19',
2022-05-05 10:52:25,947  INFO - Starting NZBHydra main process with command line: java -Xmx256M -DfromWrapper -XX:TieredStopAtLevel=1 -noverify -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/config/logs -Dspring.output.ansi.enabled=ALWAYS -jar /app/nzbhydra2/bin/lib/core-4.3.1-exec.jar --nobrowser --datafolder /config in folder /app/nzbhydra2/bin,
10:52:26.698 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep008to009.class],
10:52:26.698 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep003to004.class],
10:52:26.699 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep007to008.class],
10:52:26.700 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep018to019.class],
10:52:26.823 [main] DEBUG org.nzbhydra.config.ConfigReaderWriter - Writing to file /config/nzbhydra.yml,
10:52:26.945 [main] DEBUG org.nzbhydra.NzbHydra - Setting property browser.disabled to value true,
10:52:26.992 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.port to 5076,
10:52:26.992 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.ssl to false,
10:52:26.993 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.logging.logMaxHistory to 30,
11:05:33.923 [main] ERROR org.nzbhydra.NzbHydra - An unexpected error occurred during startup,
2022-05-05 11:05:34,056  INFO - Determined java version as '11' from version string 'openjdk version "11.0.15" 2022-04-19',
11:05:32.762 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep014to015.class],
Logging wrapper output to /config/logs/wrapper.log,
11:05:32.761 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep010to011.class],
11:05:32.760 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep006to007.class],
2022-05-05 11:05:31,946  INFO - Determined java version as '11' from version string 'openjdk version "11.0.15" 2022-04-19',
11:05:32.759 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep008to009.class],
2022-05-05 11:05:31,946  INFO - Starting NZBHydra main process with command line: java -Xmx256M -DfromWrapper -XX:TieredStopAtLevel=1 -noverify -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/config/logs -Dspring.output.ansi.enabled=ALWAYS -jar /app/nzbhydra2/bin/lib/core-4.3.1-exec.jar --nobrowser --datafolder /config in folder /app/nzbhydra2/bin,
11:05:32.759 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep003to004.class],
11:05:32.761 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep007to008.class],
11:05:32.763 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep015to016.class],
11:05:32.763 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep018to019.class],
11:05:33.496 [main] DEBUG org.nzbhydra.NzbHydra - Setting property browser.disabled to value true,
11:05:32.933 [main] DEBUG org.nzbhydra.config.ConfigReaderWriter - Writing to file /config/nzbhydra.yml,
11:05:33.516 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.port to 5076,
11:05:33.517 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.databaseRetentionTime to 1000,
11:05:33.516 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.ssl to false,
11:05:33.517 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.logging.logMaxHistory to 30,
11:05:33.517 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.logging.consolelevel to INFO,
    at org.h2.message.DbException.get(DbException.java:194),
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:505),
    at org.h2.jdbc.JdbcConnection.close(JdbcConnection.java:461),
    at org.h2.message.DbException.toSQLException(DbException.java:319),
    at org.nzbhydra.database.DatabaseRecreation.runDatabaseScript(DatabaseRecreation.java:75),
    at org.nzbhydra.NzbHydra.main(NzbHydra.java:119),
    at java.base/java.lang.reflect.Method.invoke(Method.java:566),
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62),
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:108),
    at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88),
    at org.h2.mvstore.Page.getKey(Page.java:270),
    at org.h2.mvstore.MVMap.rewrite(MVMap.java:734),
    at org.h2.mvstore.MVStore.compact(MVStore.java:2007),
    at org.h2.mvstore.MVStore.compactRewrite(MVStore.java:2137),
    at org.h2.engine.Database.closeImpl(Database.java:1454),
    at org.h2.mvstore.MVStore.closeStore(MVStore.java:1170),
    at org.h2.mvstore.db.MVTableEngine$Store.close(MVTableEngine.java:404),
    at org.h2.engine.Database.removeSession(Database.java:1307),
    at org.h2.jdbc.JdbcConnection.close(JdbcConnection.java:453),
Exception in thread "main" java.lang.reflect.InvocationTargetException,
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0,
    at org.h2.mvstore.MVMap.rewritePage(MVMap.java:773),
    at org.h2.mvstore.MVMap.rewrite(MVMap.java:710),
    at org.h2.mvstore.MVStore.rewriteChunks(MVStore.java:2026),
    at org.h2.mvstore.MVStore.compactFile(MVStore.java:1968),
    at org.h2.mvstore.MVStore.close(MVStore.java:1133),
    at org.h2.engine.Database.closeOpenFilesAndUnlock(Database.java:1545),
    at org.h2.engine.Database.close(Database.java:1373),
    at org.h2.engine.Session.close(Session.java:963),
    ... 12 more,
2022-05-05 11:05:33,952  ERROR - Main process shut down unexpectedly. If the wrapper was started in daemon mode you might not see the error output. Start Hydra manually with the same parameters in the same environment to see it,
2022-05-05 11:05:34,056  INFO - Starting NZBHydra main process with command line: java -Xmx256M -DfromWrapper -XX:TieredStopAtLevel=1 -noverify -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/config/logs -Dspring.output.ansi.enabled=ALWAYS -jar /app/nzbhydra2/bin/lib/core-4.3.1-exec.jar --nobrowser --datafolder /config in folder /app/nzbhydra2/bin````
alexmarsaudon commented 2 years ago

" Me too"

linuxserver.io

Exact same issue as OP. Worked fine until updating to v4.3.1-ls52 . Haven't tried reverting to v4.3.1-ls51 or prior yet, but I will do so after this.

NOTE: My LSIO Ombi container started failing in a vaguely similar manner earlier this week - https://github.com/linuxserver/docker-ombi/issues/92#issuecomment-1115166919 . Wasn't sure if this could be related.

Expected Behavior

Container should start gracefully. It did so up until

Current Behavior

Steps to Reproduce

1.For me, I believe the following would be required to recreate my config:

  1. Ubuntu 20.04.4 LTS x64. Docker installed per https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
  2. Run NGINX container docker run -d -p 80:80 -p 443:443 --name nginx-proxy -e DEFAULT_HOST=subdomain.domain.com -v /data/nginx/certs:/etc/nginx/certs:ro -v /data/nginx/vhost.d:/etc/nginx/vhost.d -v /data/nginx/html:/usr/share/nginx/html -v /var/run/docker.sock:/tmp/docker.sock:ro --restart=unless-stopped jwilder/nginx-proxy:latest
  3. Run acme-companion container - docker run -d --name letsencrypt --volumes-from nginx-proxy --volume /var/run/docker.sock:/var/run/docker.sock:ro -v /data/nginx/certs:/etc/nginx/certs:rw --volume acme:/etc/acme.sh --env "DEFAULT_EMAIL=alex@domain.com" --restart=unless-stopped nginxproxy/acme-companion
  4. Run the nzbhydra2 container - docker run -d --name=hydra2 -e PUID=1000 -e PGID=1000 -e TZ=America/Los_Angeles -p 5076:5076 --env "VIRTUAL_HOST=hydra2.domain.com" --env "VIRTUAL_PORT=5076" --env "LETSENCRYPT_HOST=hydra2domain.com" --env "LETSENCRYPT_EMAIL=alex@domain.com" -v /data/hydra2/config:/config -v /data/hydra2/downloads:/downloads --restart unless-stopped lscr.io/linuxserver/nzbhydra2

Environment

OS: Ubuntu 20.04 LTS x64 CPU architecture: x86_64 How docker service was installed: https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository

Command used to create docker container (run/create/compose/screenshot)

See above - steps to reproduce

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 01-migrations: executing... 
[migrations] started
[migrations] no migrations found
[cont-init.d] 01-migrations: exited 0.
[cont-init.d] 02-tamper-check: executing... 
[cont-init.d] 02-tamper-check: exited 0.
[cont-init.d] 10-adduser: executing... 
usermod: no changes

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

Brought to you by linuxserver.io
-------------------------------------

To support the app dev(s) visit:
NZBHydra 2: https://github.com/theotherp/nzbhydra2#donate

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
[cont-init.d] 30-config: exited 0.
[cont-init.d] 90-custom-folders: executing... 
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Logging wrapper output to /config/logs/wrapper.log
2022-05-05 08:30:10,588  ERROR - Unable to determine java version; make sure Java is installed and callable. Error message: Unable to determine java version from string [0.007s][warning][os,thread] Failed to start thread - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.

Logging wrapper output to /config/logs/wrapper.log
2022-05-05 08:30:11,702  ERROR - Unable to determine java version; make sure Java is installed and callable. Error message: Unable to determine java version from string [0.009s][warning][os,thread] Failed to start thread - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.

Logging wrapper output to /config/logs/wrapper.log
2022-05-05 08:30:12,586  ERROR - Unable to determine java version; make sure Java is installed and callable. Error message: Unable to determine java version from string [0.004s][warning][os,thread] Failed to start thread - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.

EDIT

Reverting to v4.3.1-ls51 seemed to do the trick. Still throws a java-related error on launch, but seems to launch and function as expected.

[amarsaudon@pms:~]$ docker stop hydra2 && docker rm -f hydra2
hydra2
hydra2
[amarsaudon@pms:~]$ docker run -d --name=hydra2 -e PUID=1000 -e PGID=1000 -e TZ=America/Los_Angeles -p 5076:5076 --env "VIRTUAL_HOST=hydra2.domain.com" --env "VIRTUAL_PORT=5076" --env "LETSENCRYPT_HOST=hydra2.domain.com" --env "LETSENCRYPT_EMAIL=alex@domain.com"  -v /data/hydra2/config:/config -v /data/hydra2/downloads:/downloads --restart unless-stopped lscr.io/linuxserver/nzbhydra2:v4.3.1-ls51
b11b77281abc4cf88ca44e0d4849678d700b7429ca6599d5ceadb308ba617a5e
[amarsaudon@pms:~]$ docker logs -f --tail=100 hydra2       
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 01-migrations: executing... 
[migrations] started
[migrations] no migrations found
[cont-init.d] 01-migrations: exited 0.
[cont-init.d] 02-tamper-check: executing... 
[cont-init.d] 02-tamper-check: exited 0.
[cont-init.d] 10-adduser: executing... 

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

Brought to you by linuxserver.io
-------------------------------------

To support the app dev(s) visit:
NZBHydra 2: https://github.com/theotherp/nzbhydra2#donate

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
[cont-init.d] 30-config: exited 0.
[cont-init.d] 90-custom-folders: executing... 
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-files: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Logging wrapper output to /config/logs/wrapper.log
2022-05-05 08:35:25,161  INFO - Determined java version as '11' from version string 'openjdk version "11.0.15" 2022-04-19'
2022-05-05 08:35:25,162  INFO - Starting NZBHydra main process with command line: java -Xmx256M -DfromWrapper -XX:TieredStopAtLevel=1 -noverify -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/config/logs -Dspring.output.ansi.enabled=ALWAYS -jar /app/nzbhydra2/bin/lib/core-4.3.1-exec.jar --nobrowser --datafolder /config in folder /app/nzbhydra2/bin
08:35:30.143 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep008to009.class]
08:35:30.192 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep003to004.class]
08:35:30.194 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep006to007.class]
08:35:30.196 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep007to008.class]
08:35:30.197 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep010to011.class]
08:35:30.199 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep014to015.class]
08:35:30.200 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep015to016.class]
08:35:30.201 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: URL [jar:file:/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar!/BOOT-INF/classes!/org/nzbhydra/config/migration/ConfigMigrationStep018to019.class]
08:35:30.975 [main] DEBUG org.nzbhydra.config.ConfigReaderWriter - Writing to file /config/nzbhydra.yml
08:35:31.061 [main] DEBUG org.nzbhydra.NzbHydra - Setting property browser.disabled to value true
08:35:31.107 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.port to 5076
08:35:31.108 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.ssl to false
08:35:31.108 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.databaseRetentionTime to 1000
08:35:31.108 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.logging.consolelevel to INFO
08:35:31.109 [main] DEBUG org.nzbhydra.NzbHydra - Setting main.logging.logMaxHistory to 30
08:35:41.946 [main] DEBUG org.nzbhydra.database.DatabaseRecreation - No migration scripts found to run. Skipping database recreation
|  \ |  | |       /  |   _  \ |  |  |  | \   \  /   / |       \ |   _  \        /   \        |__ \
|  . `  |    /  /    |   _  < |   __   |   \_    _/   |  |  |  ||      /      /  /_\  \        / /
|__| \__|  /________||______/ |__|  |__|     |__|     |_______/ | _| `._____/__/     \__\    |____|
2022-05-05 08:35:45.133  INFO --- [              main] org.nzbhydra.NzbHydra                    : Starting NzbHydra using Java 11.0.15 on b11b77281abc with PID 341 (/app/nzbhydra2/bin/lib/core-4.3.1-exec.jar started by abc in /app/nzbhydra2/bin)
2022-05-05 08:35:52.910  INFO --- [              main] org.nzbhydra.config.BaseConfig           : Using data folder /config
2022-05-05 08:35:55.438  INFO --- [              main] o.f.c.internal.license.VersionPrinter    : Flyway Community Edition 6.2.0 by Redgate
2022-05-05 08:35:55.611  INFO --- [              main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2022-05-05 08:35:55.834  INFO --- [              main] o.f.core.internal.command.DbValidate     : Successfully validated 28 migrations (execution time 00:00.103s)
2022-05-05 08:35:55.878  INFO --- [              main] o.f.core.internal.command.DbMigrate      : Schema "PUBLIC" is up to date. No migration necessary.
2022-05-05 08:36:09.094  INFO --- [              main] o.n.d.downloaders.DownloaderProvider     : Loading downloaders
2022-05-05 08:36:09.172  INFO --- [              main] o.n.d.downloaders.DownloaderProvider     : Finished initializing active downloaders
2022-05-05 08:36:11.844  INFO --- [              main] o.n.searching.SearchModuleProvider       : Initializing indexer Binsearch
2022-05-05 08:36:11.977  INFO --- [              main] o.n.searching.SearchModuleProvider       : Initializing indexer NZB Finder
2022-05-05 08:36:11.996  INFO --- [              main] o.n.searching.SearchModuleProvider       : Initializing indexer NZBIndex
2022-05-05 08:36:12.012  INFO --- [              main] o.n.searching.SearchModuleProvider       : Initializing indexer omgwtfnzbs
2022-05-05 08:36:13.251  INFO --- [              main] org.nzbhydra.web.WebConfiguration        : Found folder /static. Will load UI resources from there
2022-05-05 08:36:15.130  INFO --- [              main] org.nzbhydra.tasks.HydraTaskScheduler    : Scheduling task "Problem detector" to be run every 1 hour
2022-05-05 08:36:15.132  INFO --- [              main] org.nzbhydra.tasks.HydraTaskScheduler    : Scheduling task "Delete old history entries" to be run every 1 hour
2022-05-05 08:36:15.134  INFO --- [              main] org.nzbhydra.tasks.HydraTaskScheduler    : Scheduling task "Backup" to be run every 1 hour
2022-05-05 08:36:15.136  INFO --- [              main] org.nzbhydra.tasks.HydraTaskScheduler    : Scheduling task "Download history check" to be run every 10 minutes
2022-05-05 08:36:15.359  INFO --- [              main] org.nzbhydra.NzbHydra                    : Started NzbHydra in 33.411 seconds (JVM running for 50.166)
2022-05-05 08:36:18.107  INFO --- [http-nio-0.0.0.0-5] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
j0nnymoe commented 2 years ago

https://info.linuxserver.io/issues/2022-05-05-nzbhydra2/

flatlinebb commented 2 years ago

Thank you @alexmarsaudon It appears my Ombi took a dive as well with the same error. I'm reverting to linuxserver/ombi:amd64-4.16.11 build, which seems to have brought it back to life. One thing I am doing now is disabling Watchtower as an auto-update method and stick with builds that work instead of the latest releases.

alexmarsaudon commented 2 years ago

Worth mention - you can also use labels to preventing watchtower from hitting individual containers, eg docker run -d --name=hydra2 --label=com.centurylinklabs.watchtower.enable=false -e PUID=1000 -e PGID=1000 -e TZ=America/Los_Angeles -p 5076:5076 --env "VIRTUAL_HOST=hydra2.domain.com" --env "VIRTUAL_PORT=5076" --env "LETSENCRYPT_HOST=hydra2.domain.com" --env "LETSENCRYPT_EMAIL=alex@domain.com" -v /data/hydra2/config:/config -v /data/hydra2/downloads:/downloads --restart unless-stopped lscr.io/linuxserver/nzbhydra2:v4.3.1-ls51 . This also inspired me to get more of my services rolled into my https://uptimerobot.com/ monitoring haha

flatlinebb commented 2 years ago

That's a great tip, thank you Alex! And I am an avid user of UptimeRobot service for my work. However, most of my docker containers are not accessible from outside my local LAN so it won't help here, but it may inspire others to use the monitoring service.

j0nnymoe commented 2 years ago

https://docs.linuxserver.io/faq#jammy

This link will explain the issue being experienced here and tell you how to fix.

flatlinebb commented 2 years ago

This link will explain the issue being experienced here and tell you how to fix.

Thank you @j0nnymoe for the link. We have all come to the same conclusion in our discussion. For me, the issue of trying to upgrade to a more recent version of docker is hampered by the version of Debian I'm running, stretch. At this time I am not prepared to upgrade my whole OS, which is still in LTS, for a single container. But it is good to know what is causing the issue nonetheless.

alexmarsaudon commented 2 years ago

Worked for me, thanks a ton @j0nnymoe . Thought I had already confirmed I was running a current docker version, woops.

thespad commented 2 years ago

FYI @flatlinebb the commit that fixed the issue for Docker is this one https://github.com/moby/moby/pull/42836 and from that I've been able to confirm that for Docker CLI, running your container with:

--security-opt seccomp=unconfined

Or for Docker Compose:

    security_opt:
      - seccomp=unconfined

Will workaround the issue on older Docker versions (at least within the 20.10 branch, I haven't been able to test on 19.x).

glassbase commented 2 years ago

--security-opt seccomp=unconfined working for me on Unraid that controls the docker version (19.03.14), so I cannot just go and update Docker.

ieaves commented 2 years ago

Everything worked for me upon wiping the nzbhydra configuration directory keeping just nzbhydra.yml file and recreating the container. No other changes to my deployment, infrastructure, or package versions.

I don't know how any of the currently leading explanations would explain that to be totally honest but I'm up and running again for now.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.