hyperledger/indy-shared-rs

Creation of a temporary tails file via the tempfile library fails on an azure file share.

tbloomfi opened this issue · 0 comments

As per Andrew Whitehead from a discord chat:

It looks like the hard link is a side effect of the tempfile library that indy-credx is currently using, which also seems to have significant dependencies. Probably a better plan to switch to 'temp-file' and rename or copy the result. We don't use the database here mainly because the tails file can be quite large, and saving it could exceed the transfer buffer with the database. Especially since we don't set a hard limit on the number of credentials

Code is here: https://github.com/hyperledger/indy-shared-rs/blob/main/indy-credx/src/services/tails.rs#L152

Trace is here - ACA-Py hangs:

600141 lseek(31</home/indy/.indy_client/tails/.hopper/.tmplQSjIq>, 0, SEEK_CUR) = 2690 3600141 link("/home/indy/.indy_client/tails/.hopper/.tmplQSjIq", "/home/indy/.in dy_client/tails/.hopper/B5a1pjY6VxPS1wdnNM9RHVUKzeTJq9yjofoDqGRqUBrw" <unfinishe d ...> 3587464 <... epoll_wait resumed> [], 4, 47) = 0 3587464 epoll_wait(4<anon_inode:[eventpoll]>, [], 4, 0) = 0 3587464 getpid() = 3587464 3587464 epoll_wait(4<anon_inode:[eventpoll]>, <unfinished ...> 3600141 <... link resumed> ) = -1 EOPNOTSUPP (Operation not supported