rogerfar / rdt-client

Real-Debrid Client Proxy
MIT License
835 stars 108 forks source link

Symlink Downloader is not creating symlinks #449

Closed ashipaek0 closed 4 months ago

ashipaek0 commented 5 months ago

**What version are you using?

latest docker version

**Wat OS are you running?

Ubuntu 20.04

**Are you using Docker or as a service?

Docker

**Which debrid provider are you using?

Real-Debrid

**Which downloader are you using?

*Symlink Downloader*

*Please attach a log file here with the log setting set to debug


2024-04-03 13:50:04.566 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Starting download for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:04.566 +00:00 [DBG] RdtClient.Service.Services.Downloaders.SymlinkDownloader: Starting symlink resolving of https://23.download.real-debrid.com/d/CQBIGTEQJE6O6/Suze.2023.1080p.WEBRip.x264.AAC-%5BYTS.MX%5D.mp4, writing to path: /media/gdrive/symlinks/radarr/Suze (2023) [1080p] [WEBRip] [YTS.MX]/Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4
2024-04-03 13:50:04.566 +00:00 [DBG] RdtClient.Service.Services.Downloaders.SymlinkDownloader: Searching /mnt/zurg/__all__ for Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4
2024-04-03 13:50:04.566 +00:00 [DBG] RdtClient.Service.Services.Downloaders.SymlinkDownloader: Cancelling download https://23.download.real-debrid.com/d/CQBIGTEQJE6O6/Suze.2023.1080p.WEBRip.x264.AAC-%5BYTS.MX%5D.mp4
2024-04-03 13:50:04.566 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: No ID received for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:04.566 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Processing for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:04.566 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Waiting for downloads to complete. 0/1 complete (0%) for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:05.565 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Processing 1 torrents
2024-04-03 13:50:05.565 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Currently 1 queued downloads and 0 total active downloads for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:05.565 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Processing to download for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:05.565 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Unrestricting links for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:05.566 +00:00 [DBG] RdtClient.Service.Services.Torrents: Unrestricting link for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:05.687 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Setting download path to /media/gdrive/symlinks/radarr for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:05.687 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Starting download for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:05.688 +00:00 [DBG] RdtClient.Service.Services.Downloaders.SymlinkDownloader: Starting symlink resolving of https://23.download.real-debrid.com/d/CQBIGTEQJE6O6/Suze.2023.1080p.WEBRip.x264.AAC-%5BYTS.MX%5D.mp4, writing to path: /media/gdrive/symlinks/radarr/Suze (2023) [1080p] [WEBRip] [YTS.MX]/Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4
2024-04-03 13:50:05.688 +00:00 [DBG] RdtClient.Service.Services.Downloaders.SymlinkDownloader: Searching /mnt/zurg/__all__ for Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4
2024-04-03 13:50:05.688 +00:00 [DBG] RdtClient.Service.Services.Downloaders.SymlinkDownloader: Cancelling download https://23.download.real-debrid.com/d/CQBIGTEQJE6O6/Suze.2023.1080p.WEBRip.x264.AAC-%5BYTS.MX%5D.mp4
2024-04-03 13:50:05.688 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: No ID received for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:05.688 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Processing for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:05.688 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Waiting for downloads to complete. 0/1 complete (0%) for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:06.067 +00:00 [DBG] RdtClient.Service.BackgroundServices.TaskRunner: Updating torrent info from debrid provider
2024-04-03 13:50:06.688 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Processing 1 torrents
2024-04-03 13:50:06.689 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Currently 1 queued downloads and 0 total active downloads for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:06.689 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Processing to download for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:06.689 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Unrestricting links for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:06.690 +00:00 [DBG] RdtClient.Service.Services.Torrents: Unrestricting link for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:06.816 +00:00 [DBG] RdtClient.Service.BackgroundServices.TaskRunner: Finished updating torrent info from debrid provider, next update in 10 seconds
2024-04-03 13:50:06.919 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Setting download path to /media/gdrive/symlinks/radarr for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:06.919 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Starting download for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:06.920 +00:00 [DBG] RdtClient.Service.Services.Downloaders.SymlinkDownloader: Starting symlink resolving of https://23.download.real-debrid.com/d/CQBIGTEQJE6O6/Suze.2023.1080p.WEBRip.x264.AAC-%5BYTS.MX%5D.mp4, writing to path: /media/gdrive/symlinks/radarr/Suze (2023) [1080p] [WEBRip] [YTS.MX]/Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4
2024-04-03 13:50:06.920 +00:00 [DBG] RdtClient.Service.Services.Downloaders.SymlinkDownloader: Searching /mnt/zurg/__all__ for Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4
2024-04-03 13:50:06.920 +00:00 [DBG] RdtClient.Service.Services.Downloaders.SymlinkDownloader: Cancelling download https://23.download.real-debrid.com/d/CQBIGTEQJE6O6/Suze.2023.1080p.WEBRip.x264.AAC-%5BYTS.MX%5D.mp4
2024-04-03 13:50:06.920 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: No ID received for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:06.920 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Processing for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:06.920 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Waiting for downloads to complete. 0/1 complete (0%) for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:07.920 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Processing 1 torrents
2024-04-03 13:50:07.920 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Currently 1 queued downloads and 0 total active downloads for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:07.920 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Processing to download for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:07.921 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Unrestricting links for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:07.921 +00:00 [DBG] RdtClient.Service.Services.Torrents: Unrestricting link for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:08.026 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Setting download path to /media/gdrive/symlinks/radarr for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:08.026 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Starting download for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:08.026 +00:00 [DBG] RdtClient.Service.Services.Downloaders.SymlinkDownloader: Starting symlink resolving of https://23.download.real-debrid.com/d/CQBIGTEQJE6O6/Suze.2023.1080p.WEBRip.x264.AAC-%5BYTS.MX%5D.mp4, writing to path: /media/gdrive/symlinks/radarr/Suze (2023) [1080p] [WEBRip] [YTS.MX]/Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4
2024-04-03 13:50:08.027 +00:00 [DBG] RdtClient.Service.Services.Downloaders.SymlinkDownloader: Searching /mnt/zurg/__all__ for Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4
2024-04-03 13:50:08.027 +00:00 [DBG] RdtClient.Service.Services.Downloaders.SymlinkDownloader: Cancelling download https://23.download.real-debrid.com/d/CQBIGTEQJE6O6/Suze.2023.1080p.WEBRip.x264.AAC-%5BYTS.MX%5D.mp4
2024-04-03 13:50:08.027 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: No ID received for download Suze.2023.1080p.WEBRip.x264.AAC-[YTS.MX].mp4. Completed: 0%, avg speed: 0bytes/s (9a6eda9e-61d1-45e4-877e-9a4fef3af888) remoteID:  for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:08.027 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Processing for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
2024-04-03 13:50:08.027 +00:00 [DBG] RdtClient.Service.Services.TorrentRunner: Waiting for downloads to complete. 0/1 complete (0%) for torrent Suze (2023) [1080p] [WEBRip] [YTS.MX] (6WPPH55XPXVYA - downloaded 100%) (78db7776-b815-4fcd-bfe8-37b918232051)
```*
rogerfar commented 5 months ago

@PrevotYann can you post logs in debug mode.

PrevotYann commented 5 months ago

@PrevotYann can you post logs in debug mode.

Sure :

rdtclient_006.log rdtclient_007.log rdtclient_008.log

Oh, this is maybe because of rclone_rd that puts torrents in /shows or /movies or /default ?

So it doesn't find the file at the root of the rclone mount ?

rogerfar commented 5 months ago

RDTclient searches the path that you give in the settings under rclone mount. If it doesn't exist there, it will fail yeah.

PrevotYann commented 5 months ago

I'd be great to put more than one maybe ? As rclone_rd creates 3 sub folders

Le lun. 15 avr. 2024, 02:34, Roger Far @.***> a écrit :

RDTclient searches the path that you give in the settings under rclone mount. If it doesn't exist there, it will fail yeah.

— Reply to this email directly, view it on GitHub https://github.com/rogerfar/rdt-client/issues/449#issuecomment-2054244147, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQBKSYYA7C4T3PIRP7JKELY5MOCZAVCNFSM6AAAAABFVL5246VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJUGI2DIMJUG4 . You are receiving this because you were mentioned.Message ID: @.***>

rogerfar commented 5 months ago

@PrevotYann can you show an example path of where the file is and what your mount path setting is?

PrevotYann commented 5 months ago

It looks like : MontedRclonePath/shows MontedRclonePath/movies MontedRclonePath/default

This is how it is mapped with rclone_rd !

Note that I fixed my issue by mounting with classic rclone as webdav, then pointing my rclone Path to the webdavmount/torrents

rogerfar commented 5 months ago

I see, I'm not too familiar with how rclone_rd works, but how does it decide where to put a file?

PrevotYann commented 5 months ago

It use a go script with regexp to détermine if this is a show or movie, if it doesn't find for each other it will put it in default.

(So for example : mount/movies/pathtomovie/movie.mkv)

Le lun. 15 avr. 2024, 15:44, Roger Far @.***> a écrit :

I see, I'm not too familiar with how rclone_rd works, but how does it decide where to put a file?

— Reply to this email directly, view it on GitHub https://github.com/rogerfar/rdt-client/issues/449#issuecomment-2056897171, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQBKS4T727G5ZF44PT7IILY5PKSFAVCNFSM6AAAAABFVL5246VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJWHA4TOMJXGE . You are receiving this because you were mentioned.Message ID: @.***>

Raik0 commented 4 months ago

I seem to be having permission issues with the internal /app folder. Whenever a symlink is created to my downloads folder, instead of linking to the file, it creates a folder with the same name as the file. This is causing problems for Plex and the arrs, as they are unable to detect the file. Any assistance with this issue would be greatly appreciated.

ashipaek0 commented 4 months ago

seems i came across a version of this

suddenly my entire TV Shows library symlinks stopped working

Dunno how to make RDT fix them

rogerfar commented 4 months ago

@ashipaek0 you reported this issue yourself 2 weeks ago, are you saying it's still not working? Please post new logs with the latest version.

@PrevotYann I can add an option to specify the mount path like this: /mtn/rdt/* where * would be a wildcard directory it could traverse.

ashipaek0 commented 4 months ago

@ashipaek0 you reported this issue yourself 2 weeks ago, are you saying it's still not working? Please post new logs with the latest version.

The symlinks now work.

I just had a strange situation where all the symlinks in TV folder stopped working, but the Movies folder kept working fine.

I just deleted the symlinks folder as it didn't seem to be worth while chasing how to repair over 10k symlinks

didn't see anything in the logs when i checked.

rogerfar commented 4 months ago

@PrevotYann I pushed an update that allows searching for subfolders.

If you change the setting of your mount path from MontedRclonePath to MontedRclonePath/*, it should iterate over the first subdirectory in MontedRclonePath.