MMarco94 / linux-guides

A collection of guides to make the Linux experience easier
MIT License
5 stars 1 forks source link

Paths issue #2

Closed crawfordlong closed 1 year ago

crawfordlong commented 1 year ago

I've gotten Syncthing up and running using your very helpful guide. I'm having an issue when it comes to where files go.

Let's say I map ~/Shared to /SharedData in the config. Using your default permissions (running as root in the container for now).

If I share FROM another machine TO the Silverblue machine, it appears to sync, but I cannot find any files in the ~/Shared and it eventually throws an error that the path isn't found.

For example, if I have a new machine, I want to grab the syncthing share of my ~/Documents folder. So I connect to one of my nodes and, from any of them, share the Documents folder to the new Silverblue machine. I receive the notice that a share is inbound, but even if I try to set the destination to /SharedData/Documents with the goal of symlinking to ~/Documents later, it doesn't work.

Thank you so much for documenting this process. I'm sure it's user error on my part.

crawfordlong commented 1 year ago

Hm, ok, I found the files. They're showing up in

/var/home/$USER/.local/share/containers/storage/overlay/$ID/diff/$PATH (where $PATH = "SharedData" above)

I feel like I have the volume definition the wrong way around. I'm going to look at which order to define volumes in podman (i.e., container path vs. host path).

MMarco94 commented 1 year ago

Can you share your Podman container definition (e.g. the command you used for creating the container, or the content of the systemd unit file)?

MMarco94 commented 1 year ago

It's been a while. Closing this.

If you have other issues, please feel free to open a new one