madiele / vod2pod-rss

Vod2Pod-RSS converts a YouTube or Twitch channel into a podcast with ease. It creates a podcast RSS that can be listened to directly inside any podcast client. VODs are transcoded to MP3 on the fly and no server storage is needed!
MIT License
202 stars 4 forks source link

vod2pod cannot connect to redis on podman #179

Open lukaslcf opened 1 month ago

lukaslcf commented 1 month ago

app version: 1.2.1


issue description:

The vod2pod cannot connect to the Redis server started using the same docker compose script. The only thing I changed in the docker-compose.yml is the host port to 9001.

I use podman-compose up to start the containers.

Log:

podman start -a vod2pod-rss_redis_1                                                                                   │
1:C 08 Jun 2024 20:03:47.462 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo                                          │
1:C 08 Jun 2024 20:03:47.462 # Redis version=6.2.14, bits=64, commit=00000000, modified=0, pid=1, just started        │
1:C 08 Jun 2024 20:03:47.462 # Configuration loaded                                                                   │
1:M 08 Jun 2024 20:03:47.462 # Server initialized                                                                     │
1:M 08 Jun 2024 20:03:47.462 # WARNING Memory overcommit must be enabled! Without it, a background save or replication│
 may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see│
 https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.con│
f and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.                         │
podman start -a vod2pod-rss_vod2pod_1                                                                                 │
2024-06-08T20:03:48.491Z INFO  [app] app version 1.2.1                                                                │
thread 'main' panicked at src/main.rs:22:9:                                                                           │
Error interacting with Redis (redis is required): failed to lookup address information: No address associated with hos│
tname                                                                                                                 │
                                                                                                                      │
Location:                                                                                                             │
    /tmp/vod2pod/src/lib.rs:13:15                                                                                     │
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace                                         │
exit code: 101       
madiele commented 1 month ago

The problem seems to be that podman does not populate the internal dns with "redis", did you change the name of the redis container inside the compose?

madiele commented 1 month ago

You could also play around with the hostname field to see if it helps

madiele commented 1 month ago

Based on this stackoverflow answers you might also be missing the dns plugin for podman

https://stackoverflow.com/questions/66895304/unable-to-resolve-hostname-with-docker-compose-and-podman

Give it a check

lukaslcf commented 1 month ago

Thanks a lot for coming back to this issue. I will take a look later today to see if the missing plug-in is the problem.

The compose config is not changed from the one provided in the repo.

lukaslcf commented 1 month ago

I checked my setup, indeed the dnsname plugin was missing for cni. I would also need to enable the plugin for the existing network configs.

However, it was suggested to move to netavark for future podman networking, so I will try that instead (plus the aardvark-dns plugin)

madiele commented 1 month ago

Ok feel free to close the issue when you tested that it works ✌️