anthonyraymond / joal

An open source command line RatioMaster with an optional WebUI.
Apache License 2.0
602 stars 65 forks source link

Torrent file not read if torrent/ directory is a symlink #182

Closed 8a8al00ey closed 1 year ago

8a8al00ey commented 1 year ago

JackOfAllTradesApplication v2.1.33 using Java 11.0.17 What I noticed is if you currently have torrents in the torrent dir, ie stop then start joal, when joal starts up again it does not read in those existing torrents. Using CLI only here.

anthonyraymond commented 1 year ago

Are you sure you have placed your torrent at the right place? Can you share your command line to start joal, your config file, and your folder structure?

8a8al00ey commented 1 year ago

java -jar ./jack-of-all-trades.jar --joal-conf=/home/seed/joal/

$ ls -lrth /home/seed/joal/
total 63M
-rw-r--r-- 1 seed seed  32M Nov 30 18:52 jack-of-all-trades-2.1.33.jar
drwxr-xr-x 1 seed seed 3.2K Nov 30 18:52 clients
lrwxrwxrwx 1 seed seed   22 Dec 22 09:38 torrents -> /home/seed/t_completed
-rw-r--r-- 1 seed seed  153 Dec 22 14:40 config.json
lrwxrwxrwx 1 seed seed   38 Dec 22 15:00 jack-of-all-trades.jar -> jack-of-all-trades-2.1.34-SNAPSHOT.jar
-rw-rw-r-- 1 seed seed  32M Dec 22 15:05 jack-of-all-trades-2.1.34-SNAPSHOT.jar
$ ls -lrth  /home/seed/t_completed
total 4.5M
-rw-rw-r-- 1 seed seed 123K Dec 22 09:47  Anthony.Bourdain.Parts.Unknown.S12.1080p.AMZN.WEB-DL.DD+2.0.H.264-AJP69.torrent
-rw-r--r-- 1 seed seed 652K Dec 22 09:47  Dragon.Ball.Z.torrent
-rw-rw-r-- 1 seed seed  12K Dec 22 09:47  Dodgeball.A.True.Underdog.Story.2004.1080p.BluRay.H264.AC3.DD5.1.Will1869.torrent
-rw-rw-r-- 1 seed seed 344K Dec 22 09:47  Doctor.Who.2005.S01-S10.1080p.BluRay.x265-HETeam.torrent
-rw-rw-r-- 1 seed seed 151K Dec 22 09:47  Brüno.2009.BluRay.1080p.DTS-HD.MA.5.1.AVC.REMUX-FraMeSToR.torrent
-rw-rw-r-- 1 seed seed 148K Dec 22 09:47  Blaze.and.the.Monster.Machines.S01-S03.720p.NICK.WEBRip.WEB-DL.AAC2.0.H.264-RTN.torrent
-rw-rw-r-- 1 seed seed  23K Dec 22 09:47  Matilda.1996.1080p.BluRay.X264-AMIABLE.torrent
-rw-rw-r-- 1 seed seed 1.4M Dec 22 09:47  Masterclass.torrent
-rw-rw-r-- 1 seed seed 121K Dec 22 09:47  Futurama.S01-S07.COMPLETE.720p.WEB-DL.BluRay.x265-HETeam.torrent
-rw-r--r-- 1 seed seed  27K Dec 22 09:47  The.Bear.S01.1080p.DSNP.WEB-DL.DDP5.1.H.264-NTb.torrent
-rw-r--r-- 1 seed seed  33K Dec 22 09:47  Star.Wars.Andor.S01.1080p.DSNP.WEB-DL.DDP5.1.H.264-NTb.torrent
-rw-r--r-- 1 seed seed 187K Dec 22 09:47 'Spider-Man.No.Way.Home.2021.HYBRID.1080p.BluRay.REMUX.AVC.TrueHD.Atmos.7.1-Flights + Bonuses.torrent'
-rw-rw-r-- 1 seed seed  45K Dec 22 09:47  Sex.and.the.City.2.2010.720p.BluRay.x264.DTS-WiKi.torrent
-rw-rw-r-- 1 seed seed  12K Dec 22 09:47  Seven.Pounds.2008.1080p.BluRay.H264.AC3.DD5.1.Will1869.torrent
-rw-rw-r-- 1 seed seed 429K Dec 22 09:47 'Season 4 ('\'''\''Future'\'''\'' Trunks Saga).torrent'
-rw-r--r-- 1 seed seed  29K Dec 22 09:47  What.If.2021.S01E03.1080p.WEB.H264-EMPATHY.torrent
-rw-r--r-- 1 seed seed  42K Dec 22 09:47  Welcome.to.Wrexham.S01.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.torrent
-rw-r--r-- 1 seed seed  53K Dec 22 09:47  Unhinged.2020.2160p.HDR.WEB-DL.DD+5.1.HEVC-EVO.torrent
-rw-r--r-- 1 seed seed  41K Dec 22 09:47 'The Woman King 2022.1080p.WEB-DL.DDP5.1.H.264-EVO.torrent'
-rw-r--r-- 1 seed seed 138K Dec 22 09:47  The.White.Lotus.S02.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.torrent
-rw-r--r-- 1 seed seed 384K Dec 22 09:47  The.Walking.Dead.S11.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.torrent
-rw-r--r-- 1 seed seed 160K Dec 22 09:47  The.Peripheral.S01.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.torrent
drwxrwxr-x 1 seed seed    0 Dec 27 07:22  start
drwxrwxr-x 1 seed seed 4.1K Jan  2 11:54  archived

To get it to start reading the torrent files again after a restart I do this mv *.torrent start/ && mv start/*.torrent . Basically move the files out of the torrent dir and then back in

anthonyraymond commented 1 year ago

Can you share the log of joal when doing the following:

I have a feeling that it may be due to the symbolic link. Can you try without the simlink to validate that this is your issue? IF so i'll apply a fix.

8a8al00ey commented 1 year ago

Yup seems like this issue is related to the symlink. https://issues.apache.org/jira/browse/IO-741 and https://issues.apache.org/jira/browse/IO-749. I tested the snapshot version and it started up fine. I have a workaround so no biggie.

anthonyraymond commented 1 year ago

Ok, i'll try to update when common-io:2.12.0 is released : https://mvnrepository.com/artifact/commons-io/commons-io

Last release was Jul 13, 2021, not sure when to expect 2.12.0...

anthonyraymond commented 1 year ago

Hello,

Version 2.1.34 has been released. It includes common-io:2.12.0 and should fix the issue.