I’m sorry if i shouldn’t ask another question not related to this topic.
Right after i saw a message about pinning (the message just flash & gone), i can no longer access my file directory (see attached screenshot). i’ve a habit to pin all my files stored on my local node, it this necessary?
My IPFS Desktop is installed on my Windows 10 machine on c:\ (which is a SSD card), and my data is stored on d:\
Few days ago i moved my .ipfs directory from c:\ to d:, a HDD, then everything went down.
Now i’m trying to rebuild everything from scratch on my d:\ and things are not so smooth as before.
Error: serveHTTPApi: manet.Listen(/ip4/127.0.0.1/tcp/5001) failed: listen tcp4 127.0.0.1:5001: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
it might be helpful to you to solve the problem. Below is the error message that appeared prior to the problem.
Unable to set pinning. Try again, or see the browser console for more info
If you still have the old IPFS Desktop repo intact, you can try to revive it by manually pointing IPFS Desktop at the new .ipfs location by editing config.json of the Desktop app and updating value in ipfsConfig→ path field to point at the new location.
On Windows it should be located at C:/Windows/Users/$user/AppData/Roaming/IPFS Desktop/config.json
Alternative symlink fix
A different approach to moving repo: create a symlink in the original location pointing at the new one. This way no configuration has to be changed – tools and apps like IPFS Desktop should think nothing changed.
I know Windows 10+ supports symlinks, and those should work across drives, but you’d have to learn the details yourself (not a Windows user myself).
Brave
Brave stores data in your browser profile.
I don’t believe moving repo location is offically supported by Brave, but you could try the symlink trick.
( remove low level pin at the end because MFS aka “Files” will already protect data from GC, and you most likely don’t want the data removed from “Files” to be stuck in your cache)
Streaming CAR without touching the disk
Alternatively, if you have two nodes running you could use ipfs --api to point at specific ones, and even pipe the data so there is no .car written to the disk.
For example, to migrate everything from Brave to IPFS Desktop (assuming default RPC API ports:
ipfs files stat / produces the following result
D:.ipfs-desktop 3.7Gb>ipfs files stat /
QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn
Size: 0
CumulativeSize: 4
ChildBlocks: 0
Type: directory
ipfs dag export
D:.ipfs-desktop 3.7Gb>ipfs dag export QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn
0s 0 B / ? [-------------------------------------------------------------------------------------------------------=]8�eroots��*X# Y��9:spades:_)a��:arrow_up_down:�˹2�R�m�Ŗke�◄:arrow_up_down:9����gversion:relaxed:& Y��9:spades:_)a��:arrow_up_down:�˹2�R�m�Ŗke�◄:arrow_up_down:9����
0s 96 B / ? [---------------------------------------------------------------------------------=------] 2.60 KiB/s 0s
Tried import another CID from IPFS Desktop and produced the following:
D:.ipfs-desktop 3.7Gb>ipfs dag export QmZkBTNQvHuoGwyjvgkK5arPXugPDxPNioRxMhr9vtL7ro
0s 0 B / ? [-------------------------------------------------------------------------------------------------------=]8�eroots��*X# �w�����6#����d ���١�&�g↨��]�:slight_smile:��gversion:relaxed:Error: merkledag: not found (currently offline, perhaps retry after attaching to the network)