2010-01-07, 05:32
A while ago I manually ran a full sync and noticed a problem if we use it all the the time. Both of my machines are suspended when not in use which makes it likely that HTPC2 could be asleep when HTPC1 tries to run the script. When I initiated the script, HTPC2 was indeed asleep. It "processed frontend" HTPC1 and then tried HTPC2 which quickly errored. It then goes back to HTPC1 and scans all the videos.
The problem is that it seems to now come back and try to find each and every one of those videos on HTPC2 (at least I think that's what it's doing). Of course every one errors out (URLError = [Errno 113] No route to host), but it just keeps doing it. It must not return the error until something times out because it's about 2-3 seconds between each new message. If I'm right and it's checking for each file it found on HTPC1 then this is going to go on for about 130 minutes.
I don't know squat about scripting, but would it be possible to add some error handling where when it sees an error as it "Processes frontend", then it doesn't bother searching for the files on that HTPC? That would work great because it only takes a second or two for it to error out when "processing frontend" if the HTPC isn't there.
Just an idea
The problem is that it seems to now come back and try to find each and every one of those videos on HTPC2 (at least I think that's what it's doing). Of course every one errors out (URLError = [Errno 113] No route to host), but it just keeps doing it. It must not return the error until something times out because it's about 2-3 seconds between each new message. If I'm right and it's checking for each file it found on HTPC1 then this is going to go on for about 130 minutes.
I don't know squat about scripting, but would it be possible to add some error handling where when it sees an error as it "Processes frontend", then it doesn't bother searching for the files on that HTPC? That would work great because it only takes a second or two for it to error out when "processing frontend" if the HTPC isn't there.
Just an idea