-
-
Notifications
You must be signed in to change notification settings - Fork 870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Uploading file resulted in an error 503 which was almost silently ignored #2457
Comments
Sorry, by "From Distribution Package" I meant that it was installed from OpenSUSE repository, according to the instructions in the wiki. |
@undefiened This being said, I do agree with you that when running in If you were using Closing this as this is not a bug, partial feature enhancement. |
Thank you very much for considering it! I understand that my "workflow" is not the most obvious one, but it is very convenient when onedrive is only used to archive stuff I don't want to keep on my PC. So, I want to send files one way and delete them afterward locally. In case you will not be able to improve this behavior by the next release (or at all), may I suggest adding to the docs something along the lines of "Important: it is highly recommended to scroll through the terminal output to check that all files were uploaded correctly, or run the same command a second time to make sure all files were uploaded.". If it would be more convenient, I can make a PR. Thank you for such a great client! |
I do understand your workflow quite well .. however, potentially here you may need to automate script your workflow & enable application logging - then validate your application log output to ensure that there are no errors. If an error is found in the log, then your script can re-run the command for you in such a way that the failed uploads are taken care of.
I have found that having all the notes in the world in the documentation are great - however many folk just do not read the docs. The same note could also be said for those that use This being said I can confirm for you that the following has been added into v2.5.0:
I am yet to determine if then (post showing what failed), that those failure arrays will be cycled through until there are zero elements - as - if the OneDrive API is creating internal 500 errors 100% of the time, the application could get into a loop until either another 'retry' point is reached and/or whatever error was being presented is resolved. In v2.5.0, look for these lines in log output:
If you see this - then, you know something failed. Your next question will be - when will v2.5.0 be released? Please refer to: #2415 |
Yes, you are completely right, thank you very much for the suggestion and your concern! My main concern was that it said "Sync with OneDrive is complete" in the end, which is technically correct but creates a false sense of security. By default, I just didn't have the knowledge that I should scroll up and check the whole output for errors that there were no failures during upload (which may not always be possible since terminals often scrollable only for so many lines of the output). I decided to be extra cautious and manually check files in the web version of OneDrive before deleting them locally, so now I understand how the program works, so I will be cautious. My suggestions are directed toward other users who may not be aware of this behavior.
I agree with you. It was a suggestion just in case implementing a fix would be difficult or would never happen — such a line would be better than nothing. There is still a chance that people would see such notice because one needs to find these commands (like --download-only or --upload-only) somewhere, and to achieve that they either need to go into man or to the docs. But your solution is much better (as long as it is printed at the very end of the command output)! Thank you very much for considering it and thank you again for developing such a great client!
I am not sure how retrying should work in this case (the same way as in normal syncing mode?), but would it make sense to add some hint after |
@undefiened
|
@undefiened
|
Wow, that looks great! Thank you very much again for considering my comments! |
Thanks for your input and feedback. When alpha-0 drops - please can you help test and put the rewrite through its paces to flush out problems / usability or other issues. |
Sure, I will take a look and do my best to be helpful! I subscribed to #2415 so I should receive a notification. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
I am using onedrive to backup some data (without synchronizing anything else), so I am running
onedrive --synchronize --upload-only --no-remote-delete
to simply upload all data to the cloud. However, uploading one of the files resulted inWhile unfortunate, this error is not a big deal (I can't reproduce it anyway). The problem is that the sync process silently continued uploading files, and in the end resulted in:
If I haven't scrolled up the terminal and checked everything, I would have missed that the file failed to upload. Running the same command a second time uploads the file normally, but it means that the user has to run the sync command twice to check that all files actually uploaded. I believe a better solution would be to either retry uploading files until success or at least inform the user in the end that there were failures.
Operating System Details
Linux my_username 5.15.0-76-generic #83-Ubuntu SMP Thu Jun 15 19:16:32 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Client Installation Method
From Distribution Package
OneDrive Account Type
Business | Office365
What is your OneDrive Application Version
onedrive v2.4.25-1+np1
What is your OneDrive Application Configuration
What is your 'curl' version
Where is your 'sync_dir' located
Local
What are all your system 'mount points'
What are all your local file system partition types
How do you use 'onedrive'
No configuration was changed, I only use onedrive to upload files one way to "archive" them. I use
onedrive --synchronize --upload-only --no-remote-delete
command.Steps to reproduce the behaviour
onedrive --synchronize --upload-only --no-remote-delete
Complete Verbose Log Output
Screenshots
No response
Other Log Information or Details
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: