ipfs / ipfs-desktop

An unobtrusive and user-friendly desktop application for IPFS on Windows, Mac and Linux.
https://docs.ipfs.tech/install/ipfs-desktop/
MIT License
6.02k stars 864 forks source link

[gui error report] moving repository location to NAS #2528

Closed WXTux closed 5 months ago

WXTux commented 1 year ago

👉️ Please describe what you were doing when this error happened. I tried to move the repository location to a NAS. A number of files were moved and then I got the error: "cannot move repository location."

Specifications

Error

Error: EBUSY: resource busy or locked, unlink 'D:\IPFS Repository\.ipfs\repo.lock'
welcome[bot] commented 1 year ago

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

Finally, remember to use https://discuss.ipfs.io if you just need general support.

whizzzkid commented 1 year ago

Thanks for submitting this issue @WXTux, did you use the Move Repository Location button from the tray?

Can you please post detailed logs that can be found here

Usually we get a variety of repo.lock errors. The error seems to suggest that your repo is locked by the process, which is still working on it or has crashed without releasing the resource. A simple fix could be deleting the lock file and restarting the ipfs-desktop. However, this can result in a corrupted repo since you were already migrating it.

Since we don't know the cause of failure (it could be network related) it might be hard to recover this. One solution I can think of is, manually merging the ~/.ipfs folder from your machine to your NAS, deleting the lock file and then manually pointing you ipfs config to use that location. The other could be deleting the lock file and see if IPFS-desktop starts and shows your content, then try the move again.

@SgtPooki any other suggestions you'd like to share?

SgtPooki commented 1 year ago

I can't think of anything beyond the regular file transfer errors that could have caused this. Maybe some permission issues with kubo/electron process?

Hopefully the logs show something, and hopefully we're using kubo directly under the hood. I need to validate that.

lidel commented 5 months ago

Closing as duplicate of https://github.com/ipfs/ipfs-desktop/issues/2826#issuecomment-2163268374