What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

Discussion Garbage Cleaner behaviour

GenericUser12

Blitz 3rd Class
PG Version
8.6.3
Mount Type
Blitz Unencrypted
Server Type
Remote - Dedicated Server
So I'm investigating some issues I'm having and I was wondering what this snippet is for in the pgblitz.sh script:

Code:
  # Removes garbage
  find "/home/downloads" -mindepth 2 -type d -cmin +$cleaner -empty -exec rm -rf {} \;
  find "/home/downloads" -mindepth 2 -type f -cmin +$cleaner -size +1M -exec rm -rf {} \;
Why would the downloads folder need a garbage cleaner script? I've been having files I was seeding removed before I hit my requirements. Was just wondering what the purpose of this behaviour is.

Also, I was wondering how PGBlitz knows when to switch service accounts? My uploads have been stuck all day so far, and a look at the log suggests that the service account it's using to upload has hit the rate limit.

Code:
2019/05/12 18:56:14 ERROR : Attempt 1/3 failed with 47 errors and: googleapi: Error 403: User rate limit exceeded., userRateLimitExceeded
Cheers
 
Last edited:

GenericUser12

Blitz 3rd Class
More than likely. I've investigated the scripts more so I've a better understanding of how it all works now than when I made the original post and I think sometimes you'll just be unlucky and it'll try to use a service account that's hit the limit. It doesn't do anything particularly clever to keep track/decide which account to use, it literally just loops through them all and runs an rclone move command.

The more service accounts you have, the less likely you'll be to run into the problem I'd imagine.
 
M

MrDoob

Guest
the new pgblitz.sh and pgmove have some fixes -->

 

fr0sty

Blitz Sergeant
Staff
Donor
Adjust the garbage settings 4 > 1 > c > 7 For torrents adjust to 9999999 which is 6944 days ish.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Thread starter Similar threads Forum Replies Date
Zriel PG Clone & RClone 5

Similar threads


Development Donations

 

Top NZB NewsGroups!

Members - Up To a 58% Discount!

Trending

Top