sorry to bother you again guys… looks like the error is returning.
After some time running a backup (or accessing Jotta storage) , it just fail again with
2019/02/20 19:07:55 Failed to create file system for “Jotta:/”: couldn’t get account info: failed to get endpoint url: error 401: org.springframework.security.authentication.BadCredentialsException: No username for this token. (Unauthorized)
If I refresh again the token, it start working again but after some time (couple of hours or so), it returns to show above error listing the files.
I made some tests on this regards as follows.
I kept a backup of the old conf, not updating the token and also of the rclone binary.
As follows:
[oDroid-Jottaold]
type = jottacloud
user = myuser
pass = blablabla
mountpoint = Archive
token = {"access_token":" blablabla}
[oDroid-Jottanew]
type = jottacloud
user = myuser
mountpoint = Archive
pass = blablabla
token = {"access_token":"blablabla"}
and I have also kept both rclone versions as follows:
a) this works with jottaold
# rclone.good version
rclone v1.45-069-g7ee7bc87-beta
- os/arch: linux/arm64
- go version: go1.11.4
b) this does not work with old or new setups
# rclone version
rclone v1.46.0-027-g8f4ea77c-beta
- os/arch: linux/arm64
- go version: go1.12rc1
This is the test:
With version 1.46 and the net setup… below error.
# rclone ls oDroid-Jottanew:/
2019/02/20 19:24:29 Failed to create file system for “oDroid-Jottaold:/”: couldn’t get account info: failed to get endpoint url: Get https://www.jottacloud.com/jfs/myusername: oauth2: cannot fetch token: 400 Bad Request
Response: {“error”:“invalid_grant”,“error_description”:“The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.”}
b) with version 1.45 and old conf… Everything works.
# rclone.good ls oDroid-Jottaold:/
452 Duplicacy/dataDroid/chunks/eb836bd47f4de2ea304a6e4737d60a5018ecb476f14d10d901a38eec7a868ae2
842 Duplicacy/dataDroid/config
As per above test, with the old version of both rclone and config, I can list and work with files.
I have noticed also in the old jotta config it is saved the password (encrypted) while in the new, there is no reference and always ask for it with a message like “it will not be saved”.
With new current version (v1.46.0-027-g8f4ea77c-beta) I cannot work with the Jotta Cloud for more than two hours, while with both old rclone and config, I can properly work.
Do not take me wrong, I am not complaining, just informing I can update my scripts to use the rclone.good binary meanwhile a solution is found, I will keep the old binary and conf for Jotta while I use the newest features for the rest of storage providers.
Thanks for your continues updates and good work!!