New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transmission-daemon: crash #17501
Comments
I've tried to reproduced the issue, but I can't. I can see similar errors, but no crash and downloading works fine image: https://downloads.openwrt.org/snapshots/targets/x86/64/openwrt-x86-64-generic-ext4-combined.img.gz (Tue Jan 4 23:20:53 2022) run in qemu on x86_64 linux host:
check:
|
I'm using transmission-web-control as gui frontend and the error posted above is just a snippet, system log is flooded with the above lines and download doesn't work. Permission error was a bit not set on the directory, it is solved, please disregard it. Should you need any more information, please let me know. nitroshift |
Can you reproduce the issue on official snapshot build (the link in my previous comment) and provide step-by-step guide how to reproduce? |
I'm using openwrt-x86-64-generic-ext4-combined-efi.img.gz built from openwrt master without any modfications, not able to flash other image, machine is in production. openwrt-versionOpenWrt SNAPSHOT, r18466-1e4469b090 Steps to reproduce the issue: open transmission-web-control gui in any browser, add torrent. System log gets flooded with errors and download doesn't start / work. Here are my installed dependencies: ldd /usr/bin/transmission-daemon
Here is the link to the errors: https://pastebin.com/r1EE3yWT nitroshift |
Does the torrent you are adding have trackers? And if so, are they maybe using HTTPS? That would explain why it doesn't happen to me when I add torrents which are without any tracker or with HTTP or UDP-based trackers. |
one more question. Is DHT enabled in torrent-file? (some torrents have "private" flag to disable DHT) |
Any torrent triggers the issue. I tried with this: https://cdimage.debian.org/debian-cd/current/amd64/bt-dvd/debian-11.2.0-amd64-DVD-1.iso.torrent DHT is enabled in /etc/config/transmission: option dht_enabled true nitroshift |
Also, I think that "Wed Jan 5 12:45:42 2022 daemon.err transmission-daemon[20935]: [2022-01-05 10:45:42.570] Couldn't save temporary file "/mnt/xxx/transmission/settings.json.tmp.XXXXXX": Permission denied (variant.c:1235)" is not normal, looks like you have permissions issues. Can you fix this? |
I did fix that as mentioned in a previous comment: #17501 (comment) |
@nitroshift please provide |
cat /proc/cpuinfo`processor : 0 processor : 1 processor : 2 processor : 3 cat /proc/meminfo
|
Looking at the logs it might be related toe WolfSSL. My general assumption is that it doesn't see much usage/testing outside of OpenWrt as OpenSSL is much more common. It also complains about libcurl...
I'd try using OpenSSL and see if the issue goes away. |
Last night i tried Openwrt 21.02.1 release (https://downloads.openwrt.org/releases/21.02.1/targets/x86/64/openwrt-21.02.1-x86-64-generic-ext4-combined-efi.img.gz) and Openwrt Snapshot (https://downloads.openwrt.org/snapshots/targets/x86/64/openwrt-x86-64-generic-ext4-combined-efi.img.gz). Issue is NOT present in the 21.02.1 release but it IS present in Snapshot. I've also built an image from Openwrt Master (OpenWrt SNAPSHOT, r18503-7881dce7d8) which is what I'm running at the moment and the issue is still present. As @diizzyy said, I suspect it's a crypto library issue (hint libwolfssl). nitroshift |
Just an update: reverting from wolfssl to openssl / polarssl solves the issue. No more spam in system logs and downloads are working again. nitroshift |
same here, confirm on snapshot
|
@luckydevil13 could you please report to upstream? https://github.com/transmission/transmission/issues |
How to build the package reverting from wolfssl to openssl? thx
|
Hi, was this issue actually fixed because i am experiencing this issue. |
Maintainer: @dangowrt
Environment: x86_64, OpenWRT master
Description:
Transmission-daemon crashes when adding a torrent with the folowwing errors:
"Wed Jan 5 12:44:25 2022 daemon.err transmission-daemon[20935]: [2022-01-05 10:44:25.169] tr_crypto_utils CyaSSL error: unknown error number (crypto-utils-cyassl.c:292)
Wed Jan 5 12:44:26 2022 daemon.err transmission-daemon[20935]: [2022-01-05 10:44:26.159] tr_crypto_utils CyaSSL error: unknown error number (crypto-utils-cyassl.c:292)
Wed Jan 5 12:45:10 2022 daemon.err transmission-daemon[20935]: [2022-01-05 10:45:10.159] tr_crypto_utils CyaSSL error: Key size error, either too small or large (crypto-utils-cyassl.c:260)
Wed Jan 5 12:45:10 2022 daemon.err transmission-daemon[20935]: [2022-01-05 10:45:10.159] tr_crypto_utils CyaSSL error: unknown error number (crypto-utils-cyassl.c:292)
Wed Jan 5 12:45:42 2022 daemon.err transmission-daemon[20935]: [2022-01-05 10:45:42.570] Couldn't save temporary file "/mnt/xxx/transmission/settings.json.tmp.XXXXXX": Permission denied (variant.c:1235)
Wed Jan 5 12:45:42 2022 daemon.err transmission-daemon[20935]: [2022-01-05 10:45:42.570] Couldn't save temporary file "/mnt/xxx/transmission/dht.dat.tmp.XXXXXX": Permission denied (variant.c:1235)"
This is after commit #16882
The text was updated successfully, but these errors were encountered: