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

read directory failing with 401 error #39

Open
mmbcorley opened this issue Jan 14, 2022 · 3 comments
Open

read directory failing with 401 error #39

mmbcorley opened this issue Jan 14, 2022 · 3 comments

Comments

@mmbcorley
Copy link

Hi, this is replicable whether I use llfuse or fuse3. I have also tried renewing credentials. I'm afraid I'm out of ideas. Would be fantastic if this worked again, I rely on it quite heavily.

% rmfuse --version
0.2.3
% rmfuse -vv ~/lib/remarkable
DEBUG:pyfuse3:Initializing pyfuse3
DEBUG:pyfuse3:Calling fuse_session_new
FUSE library version: 3.10.5
DEBUG:pyfuse3:Calling fuse_session_mount
INFO:rmfuse.fuse:Mounting on /home/martinc/lib/remarkable
DEBUG:pyfuse3:pyfuse-02: No tasks waiting, starting another worker (now 2 total).
unique: 2, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.35
flags=0x33fffffb
max_readahead=0x00020000
   INIT: 7.31
   flags=0x0040b039
   max_readahead=0x00020000
   max_write=0x00100000
   max_background=0
   congestion_threshold=0
   time_gran=1
   unique: 2, success, outsize: 80
unique: 4, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 55332
DEBUG:rmcl.api:Got 401 code; trying to renew token
DEBUG:rmcl.api:Renewing user token
ERROR:rmcl.api:Failed to decode JSON from bytearray(b'')
ERROR:rmcl.api:Response code: 401
DEBUG:pyfuse3:Calling fuse_session_unmount
DEBUG:pyfuse3:Calling fuse_session_destroy
@Nevga
Copy link

Nevga commented Jan 30, 2022

Nearly the same here (same version of rmfuse; I just replaced the name of my home directory by "~/" in this comment):

% rmfuse -vv ~/remarkable
DEBUG:pyfuse3:Initializing pyfuse3
DEBUG:pyfuse3:Calling fuse_session_new
FUSE library version: 3.9.0
DEBUG:pyfuse3:Calling fuse_session_mount
INFO:rmfuse.fuse:Mounting on ~/remarkable
DEBUG:pyfuse3:pyfuse-02: No tasks waiting, starting another worker (now 2 total).
unique: 2, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.31
flags=0x03fffffb
max_readahead=0x00020000
   INIT: 7.31
   flags=0x0040b039
   max_readahead=0x00020000
   max_write=0x00100000
   max_background=0
   congestion_threshold=0
   time_gran=1
   unique: 2, success, outsize: 80
unique: 4, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 4844
DEBUG:pyfuse3:pyfuse-03: No tasks waiting, starting another worker (now 3 total).
unique: 6, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 4441
DEBUG:pyfuse3:pyfuse-04: No tasks waiting, starting another worker (now 4 total).
unique: 8, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 9067
DEBUG:pyfuse3:pyfuse-05: No tasks waiting, starting another worker (now 5 total).
unique: 10, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 9068
DEBUG:rmcl.api:Got 401 code; trying to renew token
DEBUG:rmcl.api:Renewing user token
ERROR:rmcl.api:Failed to decode JSON from bytearray(b'')
ERROR:rmcl.api:Response code: 401
DEBUG:pyfuse3:Calling fuse_session_unmount
DEBUG:pyfuse3:Calling fuse_session_destroy

@sergei-mironov
Copy link

sergei-mironov commented Feb 15, 2022

A pearl from me to the collection :(

$ ./result/bin/rmfuse -vv _remarkable
DEBUG:llfuse:Initializing llfuse
DEBUG:llfuse:Calling fuse_mount
DEBUG:llfuse:Calling fuse_lowlevel_new
FUSE library version: 2.9.9
DEBUG:llfuse:Calling fuse_session_add_chan
INFO:rmfuse.fuse:Mounting on _remarkable
DEBUG:llfuse:Calling fuse_session_loop
unique: 2, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.32
flags=0x03fffffb
max_readahead=0x00020000
   INIT: 7.19
   flags=0x00000021
   max_readahead=0x00020000
   max_write=0x00020000
   max_background=0
   congestion_threshold=0
   unique: 2, success, outsize: 40
unique: 4, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 2016
DEBUG:rmcl.api:Got 401 code; trying to renew token
DEBUG:rmcl.api:Renewing user token
ERROR:rmcl.api:Failed to decode JSON from bytearray(b'')
ERROR:rmcl.api:Response code: 401
INFO:llfuse:handler raised <class 'rmcl.exceptions.ApiError'> exception (Failed to decode JSON data), terminating main loop.
   unique: 4, error: -5 (Input/output error), outsize: 16
DEBUG:llfuse:Terminated main loop because request handler raised exception, re-raising..
DEBUG:llfuse:Calling fuse_session_remove_chan
DEBUG:llfuse:Calling fuse_session_destroy
DEBUG:llfuse:Calling fuse_unmount

@axkibe
Copy link

axkibe commented Mar 7, 2022

Same I guess the API has been broken and this project isn't actively maintained :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants