Clarification on error
I'm getting the following error constantly now when executing getfiles. Is this possibly something on my end that I'm doing wrong, bitcasa's end, or ? I'm getting this error with virtually everything, and I saw the "%s" in there and wasn't sure the script was executing properly, as I'd expect a filesize instead of %s.
Please advise if you'd like additional details--and I will try and self-troubleshoot as well. TY!
11/02/2014 01:34:35 [22][ERROR]: The Goon v2 03 (2002).cbz File size mismatch. Will retry 2 more times Traceback (most recent call last): File "C:\Python27\Scripts\threads.py", line 86, in run raise SizeMismatchError("Download size mismatch downloaded %s expected %s" % (sizecopied, self.size_bytes))
Can you post the sizes as well? It should be the next line. There are a couple small changes that could perhaps be causing this. Is this with ALL files? If it is only 1 or 2 problem files it can be safely ignored. If the file is downloaded 3 times with the same file size then the file will be saved. For me, this has worked.
Here are a few example ones:
11/02/2014 01:21:12 [10][ERROR]: Hellblazer_263__2010___Steam-DCP_.cbr File size mismatch. Will retry 2 more times Traceback (most recent call last): File "C:\Python27\Scripts\threads.py", line 86, in run raise SizeMismatchError("Download size mismatch downloaded %s expected %s" % (sizecopied, self.size_bytes)) SizeMismatchError: Download size mismatch downloaded 796 expected 18180203
11/02/2014 02:04:54 [34][ERROR]: 18-19_NS.png File size mismatch. Will retry 0 more times Traceback (most recent call last): File "C:\Python27\Scripts\threads.py", line 86, in run raise SizeMismatchError("Download size mismatch downloaded %s expected %s" % (sizecopied, self.size_bytes)) SizeMismatchError: Download size mismatch downloaded 164 expected 544654
11/02/2014 02:04:56 [8][ERROR]: fairy-043-06.png File size mismatch. Will retry 2 more times Traceback (most recent call last): File "C:\Python27\Scripts\threads.py", line 86, in run raise SizeMismatchError("Download size mismatch downloaded %s expected %s" % (sizecopied, self.size_bytes)) SizeMismatchError: Download size mismatch downloaded 164 expected 211310
Sorry, I forgot to follow up with the other question, it looks like MOST files, but not all.
And under the success log I've found a few and validated that they did download successfully. However this is the exception rather than the norm.
Please try the dev branch and let me know if this helps.
Trying the python scripts from dev now (and for about the past 1/2 hour or so maybe more), it's still running. I'm seeing the same errors but not sure if they are correcting as the logging lines fly by in the cmd windows (can't get things running in powershell, but cmd.exe does have admin).
I have seen a bunch of "finished download" messages too. Will update when it completes, or if it takes too much longer I will abort and find a smaller directory (just didn't want to change too many variables at once while we were troubleshooting).
Do you have cygwin installed?
Also I once found that, for whatever reason, sometimes to install pip modules you have to run the following command:
python -m pip install <module>
If you'd like, feel free to start a new issue around your powershell issues.
re: Powershell (will do, but I'll let us figure this one out first since we have a workaround)
re: cygwin (doing a search turns up cygwin1.dll but I'm not consciously using it)
re: -m option for pip (ran it that was just to be sure, and used --upgrade also, it says its up dto date)
Going to try running on a smaller directory and see what happens, I'll report back asap.
re: cygwin, if you were using it you would know so don't worry about it. re: -m, that sounds like a good sign. Powershell should hopefully work now.
Just as a heads up and as an experiment, I've set the number of threads to 1, and I haven't seen the error yet. I'm uncertain if this is because the operations are taking longer of it there is an issue running multiple threads on my end. I am running a 50megabit business class cable connection and my router is decent at handling multiple connections (small netbuilder rated it extremely high for that), but maybe it's still just on my end. Will update shortly.
Running a second cmd.exe window and executing downloads to a seperate directorys (both from bitcasa and to my local) saw the errors pop up. I'm not 100% sure they're related but it seems possible, especially with the timing of errors. I've canceled the second window and am allowing the original one to run alone for a bit now to see if any further errors appear.
Running to dinner, post back when I return.
Isn't this bitcasa's fault? They lose connection so often. When I tried to download via web (using filelister on my account and firefox DTA plug in), sometimes it took 2~10+ times to get right one. If it's bitcasa's fault we can't do nothing about that,so it would be better to have an option - not to count retry when difference is 4kb+ or else .. n bytes?
@traumender I was thinking about something like this but I downloaded > 500GB without having this issue (with the exception of 1 file). I would say the best course of action is to use your own client id and secret.
I do however want to check whether or not the issue is a particular piece of code that I have been changing back and forth.
@rxsegrxup I was using my own cliend id and secret. Files in an account are seperated in many nodes - so result can be worse/better. I knew I could have this problem so I just set retriesleft = 20..
In my case, it happened less than 4% of the files. It seems @rivermonster having this problem more often.
Maybe I can add in something to "track" problem files whereas if there is a sizemismatch 3 times (or whatever I set the value to) it will retry them at the end.
Back, and yes it happened even with only one thread.
I like that idea traumender about retriesleft = 20+ I will give that a shot.
That sounds like a great idea rxsegrxup (the retry at the end), or even an option to parse the error file as a download que (which I think I saw was on the development plan).
Let me know if there is any way I can provide more information to track down the issue. I'm out of ideas atm, and still having the problem. But as was mentioned, it's likely bitcasa's fault (or even my own, since results are varrying by user).
@traumender where do you set the argument in the command line for retriesleft=20 ? Thanks in advance.
Have you tried downloading any of the trouble files via my.bitcasa.com? You can change the retry amount here
@rxsegrxup I'm actually trying that now, and the directory I was using as a test seems to be downloading fine from my.bitcasa.com.
It did download complete and fine. Of course the next directory I tried with my.bitcasa.com crapped out at the end with a corrupted download. #facepalm. There seems to be no winning in this game. LOL
Anyway, if there's additional info, logs, or testing I can provide, I'd love to help truly nail down the cause here and will happily do my best to provide at request.
Try this last thing: Go to the hosted file lister and navigate down to one of the problem files then click it to download it from there. Does this work?