I’ve configure key pair and SSH connection to my XigmaNAS box I want copy data from. Replication is recommended method for fast transfer of a dataset.
However, TrueNAS shows me red access error on attempt to select source directory on the remote machine and I can’t find log to diagnose what’s wrong. Key pair is stored in some magical unknown place, so I can’t test it from the command line.
Any advice how to diagnose the problem? Nice experience with TrueNAS seems to crack in UX details.
Are you trying to PUSH data to TrueNAS or are you trying to PULL data to TrueNAS?
PULL as I mentioned using “copy from” in my problem description.
What user are you using to perform the replication?
The remote user (on XigmaNAS box) is root. The public key is added for user root there and root access is enabled for SSH.
The replication task addition form doesn’t have field for selecting user.
Public key should be copied into your replication users profile.
what would that be? There’s no documentation related to that. Threads from 2-3 years ago mention that key pairs are buried in the guts of the UI middleware and not accessible from command line (what for me with 30 years of UNIX experience is kind of limiting and stultifying).
Error I’m seeing on attempt to select the source dataset (in red):
Access denied to replication.list_datasets
Why there are not logs I can check to see what’s wrong?
Just to confirm you have created an ssh key pair on TrueNAS and copied the public key into your root users profile on XigmaNAS?
Have you also created an ssh connection from TrueNAS to XigmaNAS?
This happens when creating the above mentioned ssh connection.
Finally let’s be honest the TrueNAS GUI is designed for replication to be configured between two TrueNAS systems which this is not. Im not saying it’s not possible but you are in uncharted waters.
If this becomes too troublesome you may be better off with rsync or something similar if you are just trying to copy the data across as a one-off.
Looks like I have to do this manually in the CLI, at least error would poke me in the eye giving some clue what’s wrong; setting up rsyns looks even more complicated than replication.
Really odd, because you are using the root account. I faced this error using an admin account and there was a traverse permission missing on his home folder causing this.
Also, just for confirm: you havent setup the SSH connection on TN using the automatic mode right? Because afaik in your use case, you must use the manuale mode
Certainly do. The setup screen shall connect to the remote machine to identify datasets that can be replicated, but there’s no log what’s going wrong. I checked the key and it works when traditionally put in home directory.