Closed cptully closed 3 years ago
@cptully
Just installed via apt install onedrive
This is the cause of your problem. This is not supported as Ubuntu Universe contains old invalid versions.
You are running v2.3.13 which is over 13 months old now. Please uninstall that package, + all dependencies that were installed and please follow the correct installation process as per https://github.com/abraunegg/onedrive/blob/master/docs/INSTALL.md
Specifically for Ubuntu, refer to this: https://github.com/abraunegg/onedrive/blob/master/docs/INSTALL.md#important-information-for-all-ubuntu-and-ubuntu-based-distribution-users
If you want to change this situation, so that you can just install via 'apt install onedrive' consider becoming the package maintainer for Ubuntu.
I will contend that your README.md file needs to be updated. If you really do not want people using the PPA, then don't list in the matrix at the top of the page. Listing there implies that it is working solution.
I read that table saw the instructions for using the PPA and did not read the rest of the file. I know, RTFM, but I did, I just did not read the whole file so I did not see the note below explaining that the PPA is so badly out of date.
@cptully
I will contend that your README.md file needs to be updated. If you really do not want people using the PPA, then don't list in the matrix at the top of the page. Listing there implies that it is working solution.
FYI - nothing in the readme.md details Ubuntu package support, that is all in the install.md document, and the table at the top clearly denotes to use the PPA.
I read that table saw the instructions for using the PPA and did not read the rest of the file. I know, RTFM, but I did, I just did not read the whole file so I did not see the note below explaining that the PPA is so badly out of date.
The PPA is up to date (it has the latest version v2.4.10 available), it is the Ubuntu Universe is out-of-date by a major margin. Please re-read the documents again as this is very clearly stated.
If you feel that changes are needed in the documentation, PR's are welcome.
Bug Report Details
onedrive --version onedrive v2.3.13-1build2
Just installed via apt install onedrive
I have tried multiple times to follow the configuration steps and always get stopped at the point of authorizing this client to access my work account. The first time I got a popup window with an allow button so I clicked that and got back a blank page. Inspecting shows no html and no code. I have never seen a response URL. I tried again by openeing a new tab in my browser and inspecting that page. then pasting in the "Authorize this app by visiting:" string. Doing this allowed me to look at the reprocess?ctx... packet on te netwrok tab where I find a response header that looks like the expected value so I pasted that into the command as the response URL and I get back this error message:
Application and Operating System Details:
ubuntu 20.04 and the output of:
uname -a
Are you using a headless system (no gui) or with a gui installed? GUI
OneDrive Account Type corporate
Did you build from source or install from a package? no
If you installed from source, what is your DMD or LDC compiler version:
dmd --version
orldmd2 --version
OneDrive Application Version: Output of
onedrive --version
onedrive v2.3.13-1build2OneDrive Application Configuration: Output of
onedrive --display-config
Provide the version of curl you are using: Output of
curl --version
Is your configured 'sync_dir' a local directory or a network mount point? my sync_dir had not been created, so I created it as a local directory and tried again, still no joy.
If not local, provide all the mountpoints in your system: Output of:
mount
What partition format type does your configured 'sync_dir' reside on? Output of:
lsblk -f
[DEBUG] homePath: HOME environment variable set [DEBUG] homePath: /home/chris [DEBUG] configDirBase: WARNING - no XDG_CONFIG_HOME environment variable set [DEBUG] configDirBase: /home/chris/.config [DEBUG] configDirName: Configuring application to use default config path Using Config Dir: /home/chris/.config/onedrive No config file found, using application defaults [DEBUG] sync_dir: Getting syncDir from config value sync_dir [DEBUG] sync_dir: A '~' was found in configured sync_dir, automatically expanding as SHELL and USER environment variable is set [DEBUG] syncDir: /home/chris/OneDrive Initializing the OneDrive API ... [DEBUG] Downgrading all HTTP operations to HTTP/1.1 by default Authorize this app visiting:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=22c49a0d-d21c-4792-aed1-8f163c982546&scope=Files.ReadWrite%20Files.ReadWrite.all%20Sites.ReadWrite.All%20offline_access&response_type=code&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient
Enter the response uri: