Skip to content
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

Unable to sync folder called 'App_Code' or 'App_Data' #200

Closed
brindleoak opened this issue Oct 15, 2018 · 9 comments
Closed

Unable to sync folder called 'App_Code' or 'App_Data' #200

brindleoak opened this issue Oct 15, 2018 · 9 comments
Labels
Fixed OneDrive API Blocker An API issue prevents further work at this point in time OneDrive Business OneDrive Personal

Comments

@brindleoak
Copy link

Synchronize has stopped working. I updated to latest version - same result

Processing 08-We Are The Dead.aif
The file has not changed
Processing .directory
The file has not changed
uploading new items of .
std.json.JSONException@std/json.d(1470): Unexpected character '<'. (Line 1:1)

<title>404 - File or directory not found.</title> <style type="text/css">
@abraunegg abraunegg added the Local Environment Issue Cannot locally reproduce issue label Oct 15, 2018
@abraunegg
Copy link
Owner

abraunegg commented Oct 15, 2018

This is indicative of some sort of local file that has a weird ASCII / non-printable character in it.

To investigate:

  1. Do not use monitor mode
  2. Run: onedrive --synchronize --verbose --debug-https
  3. Provide the log file from step 2 above

@abraunegg
Copy link
Owner

The log file does not show any crash at the end

@abraunegg
Copy link
Owner

OK - you have an issue with this file / path:

.%2FCode%2FVisual%20Studio%202008%2FWebSites%2FWCFService1%2FApp_Code%2FIService.cs

Which translates to:

./Code/Visual Studio 2008/WebSites/WCFService1/App_Code/IService.cs

Which does not indicate any weird character.

Will have to diagnose / look at this later - it is potentially a MS Graph issue

@abraunegg abraunegg added OneDrive Personal OneDrive API Blocker An API issue prevents further work at this point in time Investigating and removed Local Environment Issue Cannot locally reproduce issue Waiting on Response labels Oct 15, 2018
@brindleoak
Copy link
Author

You must be right - I added 'Code' to the skip entry in config, and it all seems to be working now.
Thanks so much for your help...

@abraunegg
Copy link
Owner

abraunegg commented Oct 16, 2018

@brindleoak
The client is failing because of the 'App_Code', which is the same as the issue I raised around 'App_Data' queries failing:

OneDrive/onedrive-api-docs#914

This is the same issue as:

#179

@abraunegg abraunegg changed the title synchronize stopped working Unable to sync folder called 'App_Code' Oct 16, 2018
@abraunegg abraunegg changed the title Unable to sync folder called 'App_Code' Unable to sync folder called 'App_Code' or 'App_Data' Oct 24, 2018
@abraunegg
Copy link
Owner

@brindleoak, @arbasel
A fix is currently being rolled out by Microsoft to resolve this issue. Once confirmed that the fix is available, this can be re-tested and if all OK, closed off.

@abraunegg
Copy link
Owner

@brindleoak, @arbasel
The fix for Microsoft Graph has been done which was the blocker here. I have tested with OneDrive Personal and OneDrive Business accounts:

OneDrive Personal

Loading config ...
Using Config Dir: /home/alex/.config/onedrive
No config file found, using defaults
Initializing the OneDrive API ...
Opening the item database ...
All operations will be performed in: /home/alex/OneDrive
Initializing the Synchronization Engine ...
Account Type: personal
Default Drive ID: <redacted>
Default Root ID: <redacted>
Remaining Free Space: 5368709111
Fetching details for OneDrive Root
OneDrive Root exists in the database
Syncing changes from OneDrive ...
Applying changes of Path ID: <redacted>
Uploading differences of .
Processing root
The directory has not changed
Processing App_Data
The directory has not changed
Processing 1.txt
The file has not changed
Uploading new items of .
OneDrive Client requested to create remote path: ./App_Code
The requested directory to create was not found on OneDrive - creating remote directory: ./App_Code
Successfully created the remote directory ./App_Code on OneDrive
Uploading file ./App_Code/2.txt ... done.
Remaining free space: 5368709102
OneDrive Client requested to create remote path: ./App_Code/1
The requested directory to create was not found on OneDrive - creating remote directory: ./App_Code/1
Successfully created the remote directory ./App_Code/1 on OneDrive
Uploading file ./App_Code/1/qasdf.asdf ... done.
Remaining free space: 5368709093
Applying changes of Path ID: <redacted>

OneDrive Business

Loading config ...
Using Config Dir: /home/alex/.config/onedrive
No config file found, using defaults
Initializing the OneDrive API ...
Opening the item database ...
All operations will be performed in: /home/alex/OneDrive
Initializing the Synchronization Engine ...
Account Type: business
Default Drive ID: <redacted>
Default Root ID: <redacted>
Remaining Free Space: 1099511150131
Fetching details for OneDrive Root
OneDrive Root does not exist in the database. We need to add it.
Added OneDrive Root to the local database
Syncing changes from OneDrive ...
Applying changes of Path ID: <redacted>
Downloading file Document.docx ... done.
Downloading file text.txt ... done.
Uploading differences of .
Processing root
The directory has not changed
Processing text.txt
The file has not changed
Processing Document.docx
The file has not changed
Uploading new items of .
OneDrive Client requested to create remote path: ./App_Data
The requested directory to create was not found on OneDrive - creating remote directory: ./App_Data
Successfully created the remote directory ./App_Data on OneDrive
Uploading file ./App_Data/1.txt ...
Uploading 100% |oooooooooooooooooooooooooooooooooooooooo|   ETA   --:--:--:                                                                                                             
 done.
Remaining free space: 1099511150122
OneDrive Client requested to create remote path: ./App_Code
The requested directory to create was not found on OneDrive - creating remote directory: ./App_Code
Successfully created the remote directory ./App_Code on OneDrive
Uploading file ./App_Code/2.txt ...
Uploading 100% |oooooooooooooooooooooooooooooooooooooooo|   ETA   --:--:--:                                                                                                             
 done.
Remaining free space: 1099511150113
OneDrive Client requested to create remote path: ./App_Code/1
The requested directory to create was not found on OneDrive - creating remote directory: ./App_Code/1
Successfully created the remote directory ./App_Code/1 on OneDrive
Uploading file ./App_Code/1/qasdf.asdf ...
Uploading 100% |oooooooooooooooooooooooooooooooooooooooo|   ETA   --:--:--:                                                                                                             
 done.
Remaining free space: 1099511150104
Applying changes of Path ID: <redacted>

@abraunegg
Copy link
Owner

Closing due to MS Graph implementing fix

@lock
Copy link

lock bot commented Jan 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Jan 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Fixed OneDrive API Blocker An API issue prevents further work at this point in time OneDrive Business OneDrive Personal
Projects
None yet
Development

No branches or pull requests

2 participants