Transmission-daemon exits when trying to connect to RPC using a unix socket in alpine.
#6 939 ouverte le 23 juin 2024
Métriques du dépôt
- Stars
- (10 996 étoiles)
- Métriques de merge PR
- (Métriques PR en attente)
Description
What is the issue?
Hello,
I'm trying to create a docker container for transmission-daemon, but on alpine, when I attempt to connect to RPC using a unix socket, the daemon crashes.
Here are the steps to reproduce.
# In Alpine
apk add --no-cache transmission-daemon transmission-remote
# In Ubuntu
apt install transmission-daemon
# copy settings.json file to ./config/settings.json
transmission-daemon -f -g config
# In a different terminal
transmission-remote --unix-socket /tmp/transmission.sock
Here is the relevant settings.json file
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"announce-ip": "",
"announce-ip-enabled": false,
"anti-brute-force-enabled": false,
"anti-brute-force-threshold": 100,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"blocklist-url": "http://www.example.com/blocklist",
"cache-size-mb": 4,
"default-trackers": "",
"dht-enabled": true,
"download-dir": "/downloads/complete",
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/downloads/incomplete",
"incomplete-dir-enabled": true,
"lpd-enabled": false,
"message-level": 6,
"peer-congestion-algorithm": "",
"peer-id-ttl-hours": 6,
"peer-limit-global": 200,
"peer-limit-per-torrent": 50,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": "le",
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"prefetch-enabled": true,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 2,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": false,
"rpc-bind-address": "unix:/tmp/transmission.sock",
"rpc-enabled": true,
"rpc-host-whitelist": "127.0.0.1",
"rpc-host-whitelist-enabled": false,
"rpc-password": "{1ddd3f1f6a71d655cde7767242a23a575b44c909n5YuRT.f",
"rpc-port": 9091,
"rpc-socket-mode": "0750",
"rpc-url": "/transmission/",
"rpc-username": "",
"rpc-whitelist": "127.0.0.1",
"rpc-whitelist-enabled": false,
"scrape-paused-torrents-enabled": true,
"script-torrent-added-enabled": false,
"script-torrent-added-filename": "",
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"script-torrent-done-seeding-enabled": false,
"script-torrent-done-seeding-filename": "",
"seed-queue-enabled": false,
"seed-queue-size": 10,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"start-added-torrents": true,
"tcp-enabled": true,
"torrent-added-verify-mode": "fast",
"trash-original-torrent-files": false,
"umask": "002",
"upload-slots-per-torrent": 14,
"utp-enabled": false,
"watch-dir": "/watch",
"watch-dir-enabled": true
}
Here are the logs I got. I removed the "0 peers to go round-robin" messages for brevity.
Alpine,
[2024-06-23 21:50:14.772] web.cc:175: Will verify tracker certs using envvar CURL_CA_BUNDLE: none
[2024-06-23 21:50:14.772] web.cc:176: NB: this only works if you built against libcurl with openssl or gnutls, NOT nss
[2024-06-23 21:50:14.772] web.cc:177: NB: Invalid certs will appear as 'Could not connect to tracker' like many other errors
[2024-06-23 21:50:14.772] platform.cc:147: Searching for web interface file '/root/.local/share/transmission/public_html/index.html'
[2024-06-23 21:50:14.772] platform.cc:147: Searching for web interface file '/usr/share/transmission/public_html/index.html'
[2024-06-23 21:50:14.772] rpc-server.cc:836: setting password-enabled to 'false'
[2024-06-23 21:50:14.772] rpc-server.cc:763: Added '127.0.0.1' to host whitelist
[2024-06-23 21:50:14.772] rpc-server.cc:763: Added '::1' to host whitelist
[2024-06-23 21:50:14.772] rpc-server.cc:822: setting our username to ''
[2024-06-23 21:50:14.773] rpc-server.cc:830: setting our salted password to '{a7a73ddb48f5bfaa765e003941117e86fc93b2a7ZDJ0HJJz'
[2024-06-23 21:50:14.773] rpc-server.cc:923: Serving RPC and Web requests from '/usr/share/transmission/public_html'
[2024-06-23 21:50:14.773] session.cc:630: tr_sessionInit: the session's top-level bandwidth object is 0x7f6744e05a00
[2024-06-23 21:50:15.848] inf session.cc:646 Transmission version 4.0.5 (a6fe2a64aa) starting (session.cc:646)
[2024-06-23 21:50:15.848] dbg cache.cc:123 Maximum cache size set to 4.00 MiB (256 blocks) (cache.cc:123)
[2024-06-23 21:50:15.848] dbg net.cc:328 Bound socket 13 to port 51413 on 0.0.0.0 (net.cc:328)
[2024-06-23 21:50:15.848] inf session.cc:405 Listening to incoming peer connections on [0.0.0.0]:51413 (session.cc:405)
[2024-06-23 21:50:15.848] dbg net.cc:328 Bound socket 14 to port 51413 on :: (net.cc:328)
[2024-06-23 21:50:15.848] inf session.cc:405 Listening to incoming peer connections on [::]:51413 (session.cc:405)
[2024-06-23 21:50:15.848] dbg port-forwarding-natpmp.cc:38 initnatpmp succeeded (0) (port-forwarding-natpmp.cc:38)
[2024-06-23 21:50:15.848] dbg port-forwarding-natpmp.cc:38 sendpublicaddressrequest succeeded (2) (port-forwarding-natpmp.cc:38)
[2024-06-23 21:50:15.848] inf port-forwarding.cc:218 State changed from 'Not forwarded' to 'Starting' (port-forwarding.cc:218)
[2024-06-23 21:50:15.848] inf tr-udp.cc:168 Bound UDP IPv4 address [0.0.0.0]:51413 (tr-udp.cc:168)
[2024-06-23 21:50:15.849] inf tr-udp.cc:202 Bound UDP IPv6 address [::]:51413 (tr-udp.cc:202)
[2024-06-23 21:50:15.849] dbg tr-dht.cc:139 Starting DHT on port 51413 (tr-dht.cc:139)
[2024-06-23 21:50:15.849] inf rpc-server.cc:763 Added '127.0.0.1' to host whitelist (rpc-server.cc:763)
[2024-06-23 21:50:15.849] dbg rpc-server.cc:836 setting password-enabled to 'false' (rpc-server.cc:836)
[2024-06-23 21:50:15.849] inf rpc-server.cc:763 Added '127.0.0.1' to host whitelist (rpc-server.cc:763)
[2024-06-23 21:50:15.849] dbg rpc-server.cc:822 setting our username to '' (rpc-server.cc:822)
[2024-06-23 21:50:15.849] dbg rpc-server.cc:830 setting our salted password to '{1ddd3f1f6a71d655cde7767242a23a575b44c909n5YuRT.f' (rpc-server.cc:830)
[2024-06-23 21:50:15.849] inf rpc-server.cc:907 Serving RPC and Web requests on unix:/tmp/transmission.sock/transmission/ (rpc-server.cc:907)
[2024-06-23 21:50:15.849] inf rpc-server.cc:713 Listening for RPC and Web requests on 'unix:/tmp/transmission.sock' (rpc-server.cc:713)
[2024-06-23 21:50:15.849] inf rpc-server.cc:923 Serving RPC and Web requests from '/usr/share/transmission/public_html' (rpc-server.cc:923)
[2024-06-23 21:50:15.849] inf daemon.cc:715 Loading settings from 'config' (daemon.cc:715)
[2024-06-23 21:50:15.849] trc utils.cc:188 Saved '/root/config/settings.json' (utils.cc:188)
[2024-06-23 21:50:15.849] trc utils.cc:188 Saved '/root/config/bandwidth-groups.json' (utils.cc:188)
[2024-06-23 21:50:15.849] inf daemon.cc:772 Watching '/watch' for new torrent files (daemon.cc:772)
[2024-06-23 21:50:15.849] ERR watchdir-inotify.cc:94 Couldn't watch '/watch': No such file or directory (2) (watchdir-inotify.cc:94)
[2024-06-23 21:50:15.849] WRN watchdir.cc:120 Couldn't read '/watch': No such file or directory (2) (watchdir.cc:120)
[2024-06-23 21:50:19.857] dbg port-forwarding-upnp.cc:290 UPNP_GetValidIGD failed: No error information (0) (port-forwarding-upnp.cc:290)
[2024-06-23 21:50:19.857] dbg port-forwarding-upnp.cc:291 If your router supports UPnP, please make sure UPnP is enabled! (port-forwarding-upnp.cc:291)
[err] getnameinfo failed: Unrecognized address family or invalid length
[Transmission-daemon exits]
Ubuntu
[2024-06-23 21:53:36.090] web.cc:174: Will verify tracker certs using envvar CURL_CA_BUNDLE: none
[2024-06-23 21:53:36.090] web.cc:176: NB: this only works if you built against libcurl with openssl or gnutls, NOT nss
[2024-06-23 21:53:36.090] web.cc:177: NB: Invalid certs will appear as 'Could not connect to tracker' like many other errors
[2024-06-23 21:53:36.091] platform.cc:147: Searching for web interface file '/root/.local/share/transmission/public_html/index.html'
[2024-06-23 21:53:36.092] platform.cc:147: Searching for web interface file '/usr/share/transmission/public_html/index.html'
[2024-06-23 21:53:36.092] rpc-server.cc:836: setting password-enabled to 'false'
[2024-06-23 21:53:36.092] rpc-server.cc:763: Added '127.0.0.1' to host whitelist
[2024-06-23 21:53:36.092] rpc-server.cc:763: Added '::1' to host whitelist
[2024-06-23 21:53:36.092] rpc-server.cc:822: setting our username to ''
[2024-06-23 21:53:36.093] rpc-server.cc:830: setting our salted password to '{52431b8556f529a4ec0205496b7bd1deb687eb02x5J2WiDv'
[2024-06-23 21:53:36.093] rpc-server.cc:923: Serving RPC and Web requests from '/usr/share/transmission/public_html'
[2024-06-23 21:53:36.093] session.cc:630: tr_sessionInit: the session's top-level bandwidth object is 0x55d4d3454d50
[2024-06-23 21:53:37.184] inf session.cc:646 Transmission version 4.0.5 (a6fe2a64aa) starting (session.cc:646)
[2024-06-23 21:53:37.184] dbg cache.cc:123 Maximum cache size set to 4.00 MiB (256 blocks) (cache.cc:123)
[2024-06-23 21:53:37.184] dbg net.cc:328 Bound socket 13 to port 51413 on 0.0.0.0 (net.cc:328)
[2024-06-23 21:53:37.184] inf session.cc:404 Listening to incoming peer connections on [0.0.0.0]:51413 (session.cc:404)
[2024-06-23 21:53:37.184] dbg net.cc:328 Bound socket 14 to port 51413 on :: (net.cc:328)
[2024-06-23 21:53:37.184] inf session.cc:404 Listening to incoming peer connections on [::]:51413 (session.cc:404)
[2024-06-23 21:53:37.184] dbg port-forwarding-natpmp.cc:38 initnatpmp succeeded (0) (port-forwarding-natpmp.cc:38)
[2024-06-23 21:53:37.184] dbg port-forwarding-natpmp.cc:38 sendpublicaddressrequest succeeded (2) (port-forwarding-natpmp.cc:38)
[2024-06-23 21:53:37.184] inf port-forwarding.cc:215 State changed from 'Not forwarded' to 'Starting' (port-forwarding.cc:215)
[2024-06-23 21:53:37.184] inf tr-udp.cc:168 Bound UDP IPv4 address [0.0.0.0]:51413 (tr-udp.cc:168)
[2024-06-23 21:53:37.184] inf tr-udp.cc:202 Bound UDP IPv6 address [::]:51413 (tr-udp.cc:202)
[2024-06-23 21:53:37.184] dbg tr-dht.cc:139 Starting DHT on port 51413 (tr-dht.cc:139)
[2024-06-23 21:53:37.184] inf rpc-server.cc:763 Added '127.0.0.1' to host whitelist (rpc-server.cc:763)
[2024-06-23 21:53:37.184] dbg rpc-server.cc:836 setting password-enabled to 'false' (rpc-server.cc:836)
[2024-06-23 21:53:37.184] inf rpc-server.cc:763 Added '127.0.0.1' to host whitelist (rpc-server.cc:763)
[2024-06-23 21:53:37.184] dbg rpc-server.cc:822 setting our username to '' (rpc-server.cc:822)
[2024-06-23 21:53:37.184] dbg rpc-server.cc:830 setting our salted password to '{1ddd3f1f6a71d655cde7767242a23a575b44c909n5YuRT.f' (rpc-server.cc:830)
[2024-06-23 21:53:37.184] inf rpc-server.cc:907 Serving RPC and Web requests on unix:/tmp/transmission.sock/transmission/ (rpc-server.cc:907)
[2024-06-23 21:53:37.184] inf rpc-server.cc:713 Listening for RPC and Web requests on 'unix:/tmp/transmission.sock' (rpc-server.cc:713)
[2024-06-23 21:53:37.184] inf rpc-server.cc:923 Serving RPC and Web requests from '/usr/share/transmission/public_html' (rpc-server.cc:923)
[2024-06-23 21:53:37.185] inf daemon.cc:715 Loading settings from 'config' (daemon.cc:715)
[2024-06-23 21:53:37.185] trc utils.cc:188 Saved '/root/config/settings.json' (utils.cc:188)
[2024-06-23 21:53:37.185] trc utils.cc:188 Saved '/root/config/bandwidth-groups.json' (utils.cc:188)
[2024-06-23 21:53:37.185] inf daemon.cc:772 Watching '/watch' for new torrent files (daemon.cc:772)
[2024-06-23 21:53:37.185] ERR watchdir-inotify.cc:90 Couldn't watch '/watch': No such file or directory (2) (watchdir-inotify.cc:90)
[2024-06-23 21:53:37.185] WRN watchdir.cc:116 Couldn't read '/watch': No such file or directory (2) (watchdir.cc:116)
[2024-06-23 21:53:40.188] dbg port-forwarding-upnp.cc:290 UPNP_GetValidIGD failed: Success (0) (port-forwarding-upnp.cc:290)
[2024-06-23 21:53:40.188] dbg port-forwarding-upnp.cc:291 If your router supports UPnP, please make sure UPnP is enabled! (port-forwarding-upnp.cc:291)
[Transmission-remote is successful and logs continue]
I have also tried to run transmission-daemon with gdb and then use thread apply all bt full after it exits, but it does not return anything in the gdb console.
Please let me know if you need anymore information and thank you for your help!
Which application of Transmission?
transmission-daemon
Which version of Transmission?
4.0.5 (a6fe2a64aa)