kiranshila / Doplarr

An *arr request bot for Discord
MIT License
410 stars 30 forks source link

Docker build doesn't appear to be working. #23

Closed crunchysoft closed 2 years ago

crunchysoft commented 2 years ago

I'm running the docker, as suggested in the readme, but when it launches, this is all that is received in the logs:

  20:52:16,269 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
  20:52:16,269 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
  20:52:16,270 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/app/target/Doplarr.jar!/logback.xml]
  20:52:16,301 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@7a606260 - URL [jar:file:/app/target/Doplarr.jar!/logback.xml] is not of type file
  20:52:16,491 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
  20:52:16,492 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
  20:52:16,503 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE]
  20:52:16,648 |-WARN in ch.qos.logback.core.ConsoleAppender[CONSOLE] - This appender no longer admits a layout as a sub-component, set an encoder instead.
  20:52:16,648 |-WARN in ch.qos.logback.core.ConsoleAppender[CONSOLE] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
  20:52:16,648 |-WARN in ch.qos.logback.core.ConsoleAppender[CONSOLE] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
  20:52:16,649 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
  20:52:16,649 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[ROOT]
  20:52:16,650 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
  20:52:16,652 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@5dbab232 - Registering current configuration as safe fallback point

This is the run command I used, with important things obfuscated:

docker run \
-e SONARR_URL='http://192.168.1.105:8989' \
-e RADARR_URL='http://192.168.1.105:7878' \
-e SONARR_API='hdhdhdhdhdhdhdhdhdhdhdhd' \
-e RADARR_API='hdhdhdhdhdhdhdhdhdhdhdhd' \
-e BOT_TOKEN='hdhdhdhdhdhdhdhdhdhdhdhd' \
-e ROLE_ID='hdhdhdhdhdhdhdhdhdhdhdhd' \
--name doplarr ghcr.io/kiranshila/doplarr:latest
kiranshila commented 2 years ago

Those are all just logging info stuff, the bot is running.

crunchysoft commented 2 years ago

Hmm, it doesn't show as online in the Discord server. Maybe I messed something up with the role.

kiranshila commented 2 years ago

Not showing online would imply it's not added to the server, the bot token is wrong, or the permissions were set up incorrectly.

crunchysoft commented 2 years ago

That was it. I was missing a character from the role_id. facepalm

kiranshila commented 2 years ago

Np. Glad you could figure it out!