JackDallas / Premiumizearr

Bridge your *Arr clients (Sonarr, Radarr) to your premiumize.me (upload/download manager)
GNU General Public License v3.0
44 stars 9 forks source link

Blackhole folder only scanned on startup #46

Closed Lloytron closed 2 years ago

Lloytron commented 2 years ago

I've notcied that I can't get anything to successfully queue from my blackhole folder without restarting the container.

I had a few items from my *Arr programs add to the blackhole folder overnight. Premiumizearr was running and I monitored throughout the morning and it never picked them up. What is the update interval supposed to be?

I left it for 4 hours before restarting, at which point they qere picked up and queued sucessfully immediately.

As a note setting the update interval could be something also for the config page?

JackDallas commented 2 years ago

We don't poll the blackhole directory we set it to be "watched" and the os tells us when a file changes, I must have screwed that up when I changed the config stuff, I can see this happening on my server too I'll see about getting this fixed asap, thanks for reporting :+1:

JackDallas commented 2 years ago

@Lloytron Can you confirm this is still an issue, I don't actually see this happening, idk why I did before, but I'm not running docker so not sure, gonna test out the docker build tomorrow though to see if that's related

Lloytron commented 2 years ago

Hi, yes, this is still an issue for me, it never picks up anything in the blackhole folder unless I manually restart the container

JackDallas commented 2 years ago

Okay my bad I didn't have the dockerfile creating the blackhole directory 🤦 I reckon that could screw with the filesystem, could you test this pre-release for me @Lloytron https://github.com/JackDallas/Premiumizearr/releases/tag/v1.2.1-rc1 on the dev tag on docker :+1:

Lloytron commented 2 years ago

I updated to the dev tagged version and it doesn't seem to have made any difference i'm afraid.

Should I be mapping the folders individually? or just map one shared folder and use subdirectories?

JackDallas commented 2 years ago

Try not mounting the blackhole, having it mounted makes resuming easier after a restart if you have a long queue but try it, that could explain the issue

Can you run with trace logging on and grab me a log over like 10 mins, add -e PREMIUMIZEARR_LOG_LEVEL=trace

Lloytron commented 2 years ago

_premiumizearr_logs (1).txt Here are logs after running for a few minutes (I've run it for a few hours since and it just keeps repeating.

I started with nothing in the blackhole folder and then dropped a file in as it was running and left it a few minutes whilst taking these logs

JackDallas commented 2 years ago

@Lloytron the magnet files are all tiny so if you can move your blackhole directory to your local filesystem and not the nas it'll probably work, but I'll add manual polling to the roadmap as well

JackDallas commented 2 years ago

@Lloytron initial rc of polling https://github.com/JackDallas/Premiumizearr/releases/tag/v1.2.2-rc1 gonna test now on my non-docker setup

JackDallas commented 2 years ago

fyi I haven't added it to the ui yet, you'll need to turn it on in the config, working on the ui now

Lloytron commented 2 years ago

Ah lol I was wondering if I'd pulled the right version. I've enabled it in config and bingo, when I dropped something in the blackhole it found it after a while and put it into my 'Arr' folder. I saw it enter the queue OK. but now its not shown up in the downloads queue! Even after restarting?

JackDallas commented 2 years ago

Is it in the arrsDownloads folder on premiumize.me ? Because we just download whatever is in there

Lloytron commented 2 years ago

yes it appeared in that folder too almost immediately!

JackDallas commented 2 years ago

I know what's happening lol I changed something to add polling and didn't realise I blocked the transfer manager starting, I'll fix that and release another rc in a minute

JackDallas commented 2 years ago

Okay 1.2.2-rc2 is building and will release in a min, ui isn't working yet, I'll fix that when I can and release it when it's fixed