TurboGit/hubicfuse

ls: reading directory /mnt/hubic/: Link has been severed

Closed this issue · 2 comments

Nihim commented

Debian 8

Have already used it on several vps successfully, used the same procedure on a dedicated with the same distro.
Installed fuse and rebooted for it to activate. Modprobe fuse gives no result / error.

Mounting as a non-root user works fine but moment I try to ls inside the hubic dir or use df -hT it freezes and after a while throws that error.

I would appreciate any tips.

Nihim commented

Debug log: first is ls, 2nd is df

hubicfuse -d /mnt/hubic -o noauto_cache,sync_read,allow_other
debug_level = 0
get_extended_metadata = 0
curl_progress_state = 0
enable_chmod = 0
enable_chown = 0
==DBG 0 [2016-03-06 13:39:03.]:6521==Authenticating... (client_id = 'client_id')
==DBG 0 [2016-03-06 13:34:40.]:6521==HUBIC Access token: access token

==DBG 0 [2016-03-06 13:34:40.]:6521==HUBIC Token type  : Bearer

==DBG 0 [2016-03-06 13:34:40.]:6521==HUBIC Expire in   : 21600

==DBG 0 [2016-03-06 13:34:41.]:6521==CRED_URL result: '{"token":"token","endpoint":"https://lb1040.hubic.ovh.net/v1/AUTH_aaa","expires":"2016-03-07T13:34:40+01:00"}'

FUSE library version: 2.9.3
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.23
flags=0x0003f7fb
max_readahead=0x00020000
   INIT: 7.19
   flags=0x00000010
   max_readahead=0x00020000
   max_write=0x00020000
   max_background=0
   congestion_threshold=0
   unique: 1, success, outsize: 40
unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 6533
getattr /
==DBG 0 [2016-03-06 13:34:50.]:6524==cfs_getattr(/)
==DBG 0 [2016-03-06 13:34:50.]:6524==exit 0: cfs_getattr(/)
   unique: 2, success, outsize: 120
unique: 3, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 6535
   unique: 3, success, outsize: 32
unique: 4, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 6535
readdir[0] from 0
==DBG 0 [2016-03-06 13:34:51.]:6524==cfs_readdir(/)
==DBG 0 [2016-03-06 13:34:51.]:6524==send_request_size: error message, size=0, [HTTP 0] (GET)(?format=xml)
==DBG 0 [2016-03-06 13:34:51.]:6524==send_request_size: error message=[]
==DBG 0 [2016-03-06 13:34:51.]:6524==send_request_size: httpcode=0 (GET)(?format=xml), retrying [HTTP ERR]
==DBG 0 [2016-03-06 13:34:59.]:6524==send_request_size: error message, size=0, [HTTP 0] (GET)(?format=xml)
==DBG 0 [2016-03-06 13:34:59.]:6524==send_request_size: error message=[ ]
==DBG 0 [2016-03-06 13:34:59.]:6524==send_request_size: httpcode=0 (GET)(?format=xml), retrying [HTTP ERR]
==DBG 0 [2016-03-06 13:35:15.]:6524==send_request_size: error message, size=0, [HTTP 0] (GET)(?format=xml)
==DBG 0 [2016-03-06 13:35:15.]:6524==send_request_size: error message=[ ]
==DBG 0 [2016-03-06 13:35:15.]:6524==send_request_size: httpcode=0 (GET)(?format=xml), retrying [HTTP ERR]
==DBG 0 [2016-03-06 13:35:47.]:6524==exit 2: send_request_size(?format=xml)(GET) response=0
==DBG 0 [2016-03-06 13:35:47.]:6524==exit 0: cfs_readdir(/)
   unique: 4, error: -67 (Link has been severed), outsize: 16
unique: 5, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 5, success, outsize: 16
unique: 6, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 6589
getattr /
==DBG 0 [2016-03-06 13:36:47.]:6524==cfs_getattr(/)
==DBG 0 [2016-03-06 13:36:47.]:6524==exit 0: cfs_getattr(/)
   unique: 6, success, outsize: 120
unique: 7, opcode: STATFS (17), nodeid: 1, insize: 40, pid: 6589
statfs /
==DBG 0 [2016-03-06 13:36:47.]:6523==cfs_statfs(/)
==DBG 0 [2016-03-06 13:36:47.]:6523==send_request_size: error message, size=0, [HTTP 0] (HEAD)()
==DBG 0 [2016-03-06 13:36:47.]:6523==send_request_size: error message=[ ]
==DBG 0 [2016-03-06 13:36:47.]:6523==send_request_size: httpcode=0 (HEAD)(), retrying [HTTP ERR]
==DBG 0 [2016-03-06 13:36:55.]:6523==send_request_size: error message, size=0, [HTTP 0] (HEAD)()
==DBG 0 [2016-03-06 13:36:55.]:6523==send_request_size: error message=[0,]
==DBG 0 [2016-03-06 13:36:55.]:6523==send_request_size: httpcode=0 (HEAD)(), retrying [HTTP ERR]
==DBG 0 [2016-03-06 13:37:11.]:6523==send_request_size: error message, size=0, [HTTP 0] (HEAD)()
==DBG 0 [2016-03-06 13:37:11.]:6523==send_request_size: error message=[  ]
==DBG 0 [2016-03-06 13:37:11.]:6523==send_request_size: httpcode=0 (HEAD)(), retrying [HTTP ERR]
==DBG 0 [2016-03-06 13:37:43.]:6523==exit 2: send_request_size()(HEAD) response=0
==DBG 0 [2016-03-06 13:37:43.]:6523==exit 1: cfs_statfs(/) not-found
   unique: 7, error: -5 (Input/output error), outsize: 16
unique: 8, opcode: FORGET (2), nodeid: 1, insize: 48, pid: 0
FORGET 1/1
Nihim commented

This was caused by copying over the settings from OVH's rescue resolve which apparently is misconfigured. Using ovh's implementation for hubic I saw it was unable to resolve the address, so that's what was causing the above timeout.