Rclone jotta - do token expire?

What is the problem you are having with rclone?

Ref tread

Where i got a lot of help from you, thanks

Read this old tread to learn how to use rclone on windows.

====================

In general i manage to mount and use my remote jottacloud

What I experience is that i need to update my token from day to day.

My hope is to mount my drivePoints each time I boot. I have 5 mountpoints

Since token seems to expire i must log in to jottacloud get a new token, rerun rclone and update token 5 times, that is cumbersome.

So, do token expire?
If yes, can a update be automated?

Commend I use
rclone mount Jotta: J: --fuse-flag --VolumePrefix=\jotta\Modesty

What is your rclone version (output from rclone version)

rclone_Version v1.53.3

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Win 10 64

Which cloud storage system are you using? (eg Google Drive)

jotta

RClone tokens refresh automatically.

Can you please include a debug log with the issue you are having?

1 Like

@Animosity022, Thanks for answer!

I post -vv next time i get the problem, today I have updated the tokens.

Another issueI wonder about, when I work directly on a jotta mount and try to make a new file like "rclode.txt" it seems to be write protected. Do my command make a read only state?

rclone mount JottaModesty: J: --fuse-flag --VolumePrefix=\jotta\Modesty

Here is the log from a working and updated token


C:\Users\Torstein\Desktop\rClone>rclone mount JottaModesty: J: --fuse-flag --VolumePrefix=\jotta\Modesty -vv
2021/02/13 18:11:06 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "mount" "JottaModesty:" "J:" "--fuse-flag" "--VolumePrefix=\jotta\Modesty" "-vv"]
2021/02/13 18:11:06 DEBUG : Creating backend with remote "JottaModesty:"
2021/02/13 18:11:06 DEBUG : Using config file from "C:\Users\TTTTTTTTTT\.config\rclone\rclone.conf"
2021/02/13 18:11:07 INFO : jottacloud root '': poll-interval is not supported by this remote
2021/02/13 18:11:07 NOTICE: jottacloud root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
2021/02/13 18:11:07 DEBUG : jottacloud root '': Mounting on "J:"
2021/02/13 18:11:07 DEBUG : jottacloud root '': Mounting with options: ["-o" "fsname=JottaModesty:" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "attr_timeout=1" "-o" "atomic_o_trunc" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=JottaModesty" "--VolumePrefix=\jotta\Modesty"]
2021/02/13 18:11:07 DEBUG : jottacloud root '': Init:
2021/02/13 18:11:07 DEBUG : jottacloud root '': >Init:
2021/02/13 18:11:07 DEBUG : /: Statfs:
2021/02/13 18:11:07 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:278601257626 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/02/13 18:11:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:07 DEBUG : /: Readlink:
2021/02/13 18:11:07 DEBUG : /: >Readlink: linkPath="", errc=-40
The service rclone has been started.
2021/02/13 18:11:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:07 DEBUG : /: Opendir:
2021/02/13 18:11:07 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/02/13 18:11:07 DEBUG : /: >OpenFile: fd=/ (r), err=
2021/02/13 18:11:07 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/02/13 18:11:07 DEBUG : /: Releasedir: fh=0x0
2021/02/13 18:11:07 DEBUG : /: >Releasedir: errc=0
2021/02/13 18:11:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:07 DEBUG : /: Opendir:
2021/02/13 18:11:07 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/02/13 18:11:07 DEBUG : /: >OpenFile: fd=/ (r), err=
2021/02/13 18:11:07 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/02/13 18:11:07 DEBUG : /: Releasedir: fh=0x0
2021/02/13 18:11:07 DEBUG : /: >Releasedir: errc=0
2021/02/13 18:11:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:07 DEBUG : /: Opendir:
2021/02/13 18:11:07 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/02/13 18:11:07 DEBUG : /: >OpenFile: fd=/ (r), err=
2021/02/13 18:11:07 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/02/13 18:11:07 DEBUG : /: Releasedir: fh=0x0
2021/02/13 18:11:07 DEBUG : /: >Releasedir: errc=0
2021/02/13 18:11:07 DEBUG : /Desktop.ini: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /Desktop.ini: >Getattr: errc=-2
2021/02/13 18:11:07 DEBUG : /Desktop.ini: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /Desktop.ini: >Getattr: errc=-2
2021/02/13 18:11:07 DEBUG : /AutoRun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /AutoRun.inf: >Getattr: errc=-2
2021/02/13 18:11:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:07 DEBUG : /: Opendir:
2021/02/13 18:11:07 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/02/13 18:11:07 DEBUG : /: >OpenFile: fd=/ (r), err=
2021/02/13 18:11:07 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/02/13 18:11:07 DEBUG : /: Statfs:
2021/02/13 18:11:07 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:278601257626 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/02/13 18:11:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:07 DEBUG : /: Opendir:
2021/02/13 18:11:07 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/02/13 18:11:07 DEBUG : /: >OpenFile: fd=/ (r), err=
2021/02/13 18:11:07 DEBUG : /: >Opendir: errc=0, fh=0x1
2021/02/13 18:11:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:07 DEBUG : /: Releasedir: fh=0x1
2021/02/13 18:11:07 DEBUG : /: >Releasedir: errc=0
2021/02/13 18:11:07 DEBUG : /: Releasedir: fh=0x0
2021/02/13 18:11:07 DEBUG : /: >Releasedir: errc=0
2021/02/13 18:11:07 DEBUG : /Desktop.ini: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /Desktop.ini: >Getattr: errc=-2
2021/02/13 18:11:07 DEBUG : /Desktop.ini: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /Desktop.ini: >Getattr: errc=-2
2021/02/13 18:11:07 DEBUG : /AutoRun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:07 DEBUG : /AutoRun.inf: >Getattr: errc=-2
2021/02/13 18:11:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:08 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:08 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:08 DEBUG : /: Opendir:
2021/02/13 18:11:08 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/02/13 18:11:08 DEBUG : /: >OpenFile: fd=/ (r), err=
2021/02/13 18:11:08 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/02/13 18:11:08 DEBUG : /: Releasedir: fh=0x0
2021/02/13 18:11:08 DEBUG : /: >Releasedir: errc=0
2021/02/13 18:11:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:08 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:08 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:08 DEBUG : /: Opendir:
2021/02/13 18:11:08 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/02/13 18:11:08 DEBUG : /: >OpenFile: fd=/ (r), err=
2021/02/13 18:11:08 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/02/13 18:11:08 DEBUG : /: Releasedir: fh=0x0
2021/02/13 18:11:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:08 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:08 DEBUG : /: >Releasedir: errc=0
2021/02/13 18:11:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:08 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:08 DEBUG : /: Opendir:
2021/02/13 18:11:08 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/02/13 18:11:08 DEBUG : /: >OpenFile: fd=/ (r), err=
2021/02/13 18:11:08 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/02/13 18:11:08 DEBUG : /: Releasedir: fh=0x0
2021/02/13 18:11:08 DEBUG : /: >Releasedir: errc=0
2021/02/13 18:11:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:08 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:08 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:08 DEBUG : /: Opendir:
2021/02/13 18:11:08 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/02/13 18:11:08 DEBUG : /: >OpenFile: fd=/ (r), err=
2021/02/13 18:11:08 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/02/13 18:11:08 DEBUG : /: Releasedir: fh=0x0
2021/02/13 18:11:08 DEBUG : /: >Releasedir: errc=0
2021/02/13 18:11:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:08 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/02/13 18:11:08 DEBUG : /: >Getattr: errc=0
2021/02/13 18:11:08 DEBUG : /: Opendir:
2021/02/13 18:11:08 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/02/13 18:11:08 DEBUG : /: >OpenFile: fd=/ (r), err=
2021/02/13 18:11:08 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/02/13 18:11:08 DEBUG : /: Releasedir: fh=0x0
2021/02/13 18:11:08 DEBUG : /: >Releasedir: errc=0

Not that I'm aware of although I'm not a Windows guy so not sure exactly what would stop it on Windows.

--read-only would be the rclone flag, but you are not using it.

1 Like

hi,
i am a windows user, if you need some help, let me know...

1 Like

Hi @Animosity022 and @asdffdsa, thanks for helping me again.

I mounted this yesterday and it worked
rclone mount JottaTV: G: --fuse-flag --VolumePrefix=\jotta\TV

Today i cheeked my G drive and it did not work
Command window content is pasted under.

I also did run this yesterday:
rclone mount JottaModesty: J: --fuse-flag --VolumePrefix=\jotta\Modesty -vv

This one is working today...

Log from G drive cmd window: NB Not the -vv flag

> rclone mount JottaTV: G: --fuse-flag --VolumePrefix=\jotta\TV

2021/02/13 08:34:17 NOTICE: jottacloud root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream

The service rclone has been started.

2021/02/13 12:04:06 ERROR : /: Dir.Stat error: couldn't list files: Get "https://jfs.jottacloud.com/jfs/modesty/VAIO/TV": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect JottaTV:": oauth2: cannot fetch token: 400 Bad Request

Response: {"error":"invalid_grant","error_description":"Stale token"}

================================

This command lets me update the token, but that is what I hope to not do:

rclone config reconnect JottaTV:

As you understand I'm confused, is there a logical explanation?

as documented here, jottacloud cannot stream, https://rclone.org/overview/#optional-features
the workaround is to add --vfs-cache-mode writes or --vfs-cache-mode full

as for that error, i do not use jottacloud, not sure why it is happening.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.