I am not able to start Peertube on a IPv6 only network.
[peertube.XXXXXX.XX:443] 2024-08-06 09:54:46.065 error: Error in job worker activitypub-cleaner. {
« err »: {
« stack »: « Error: getaddrinfo ENOTFOUND peertube-redis\n at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) »,
« message »: « getaddrinfo ENOTFOUND peertube-redis »,
« errno »: -3007,
« code »: « ENOTFOUND »,
« syscall »: « getaddrinfo »,
« hostname »: « peertube-redis »
}
Seems Peertube can’t connect to your redis server.
What’s the server you have configured in production.yaml
. If you have set 127.0.0.1
, try ::1
instead. And same for your postgresql database.
1 Like
Thanks.
tried ::, ::1 and [::] in …/config/production.yaml:
listen:
hostname: ‹ [::] ›
port: 9000
database:
hostname: ‹ peertube-db › → works…
port: 5432
redis:
hostname: ‹ peertube-redis › → error
port: 6379
Same error with Mastodon (IPv6 node.js · Issue #31199 · mastodon/mastodon · GitHub)
For the redis.hostname
config key?
Is your redis server running? (systemctl status redis
)
Can you connect to it using redis-cli
? (just run redis-cli
in a terminal)
Does 127.0.0.1
resolve on the server? (try for example ping 127.0.0.1
). I guess it should work, even if you have no ipv4 network.
Maybe there are some configuration to do for the redis server to listen on ipv6 adress.