Replies: 2 comments 3 replies
-
If your 'refresh_token' is not being saved between uses - then you have a deployment and configuration. Please look at your deployment and your entire configuration as you will have most likely messed up the config path and where the client is storing configuration data including the 'refresh_token'
100% as this is how everyone does this!
Yes .. so your Docker / Podman deployment is not correct. All documented steps have been 100% validated time and time again. Please read the documentation! |
Beta Was this translation helpful? Give feedback.
-
Please also stop doing this. Every time you are starting the container, you are blowing away what the client thinks what is insync, thus, has no idea what to do with files that have changed, so, by default the client makes a backup copy of your file so you do not experience data loss. Please stop this resync by default practice. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have developed my software using this software as one of its components. From time to time, when I need to reauthorize my application, I waste a lot of time because I do not understand how the app manages the info in the
refresh_tokenfile.Most of the time I launch onedrive with
docker runto refresh the token so that in the next execution I can start the app as is, without the interruption to do the authorization. I need to dodocker run ...instead of the usualdocker compose up onedrivebecause I need to interact with the stdin of the process to introduce the response URL, withdocker compose upI can't do that. My surprise comes when even if I just reauthorized, when I launch onedrive withdocker compose up, onedrive ignores the token, says that is too old or says that the request is malformed, so I'm starting to think that it is expecting a token in another location or I have a misconfiguration betweendocker runanddocker compose up, which makes sense because they do different things.So, basically, my problem is that there is no separation of concerns between the authorization and the onedrive app itself. I was thinking if there could be a way to obtain a valid authentication in my developer machine, and supply that as a secret to docker compose up. In this way, I wouldn't need to do strange things executing onedrive twice, one for auth and another as the real execution.
I also noticed that sometimes when I switch between docker compose up and docker run, it starts downloading files from my personal onedrive instead of the Sharepoint file system that I configured.
I know that my question is very "basic" but I have lost many hours due to this and at this point I'm starting to be super frustrated because it used to work but I do not know why it does not anymore...
This is the relevant of my
compose:my config:
So, what I do is the following:
docker compose run onedrive -v $(pwd)/service/onedrive_conf:/onedrive/confIt asks for authentication, I copy URL to my browser, I login and I copy the answered URL into the process and the process finishes, saying that authentication succeeded but the app was not instructed to do anything else.
After that, I call
docker compose up onedriveand I would expect to start syncing, since config is created and auth is too, but instead it complains with "AADSTS9002313: Invalid request. Request is malformed or invalid. Trace ID: 7fe4a980-bb3d-4f40-9817-4122102b5e00 Correlation ID: ee37dede-cc22-41bc-9f21-7ead0fa9154a Timestamp: 2025-08-28 18:27:39Z". Some times it says that the token is actually old and has been revoked.I am in latest version of the container.
I would like to obtain the two commands (docker run... and docker compose up...) that together authenticate my app and then start them with authentication already on. I would like to understand limitations (if any) sorrounding the authentication. For example:
I would actually be super happy if I could obtain the authentication token in some way before the deployment (separate the authentication process from the deploy process), and when I want to start my app simply do
docker compose upwith everything ready to start. I am willing to apply any recommendations or good practices to my configuration.Finally I want to say thank you for this application as i have been using it for long since it is the only viable option for using OneDrive in Linux. I have been donating from time to time so please have patience with me! 👯
Beta Was this translation helpful? Give feedback.
All reactions