Cannot set up an rsync task

Hello guys,

I’ve just installed TrueNas on my Home Server. Now I want to pull my data from my OMV via rsync, but it fails.

Error: Password: @ERROR: auth failed on module ******
rsync error: error starting client-server protocol (code 5) at main.c(1863) [Receiver=3.2.7]

I’m using the same user on TrueNAS and OMV, with the same password. Other than on the OMV, I can not enter a password for the rsync user in TrueNAS. I hoped it pulls the user password from the system, but it looks like it doesn’t. How can fix this?

Thanks
Tim

Version of TrueNAS?

Are you setting up an Rsync Task on TrueNAS that pulls from OMV, or a task on OVM that sends to TrueNAS?

How did you configure Rsync?

The “module authentication” has nothing to do with the system’s Unix users. A module’s authenticating user/password is arbitrarily made, and usually stored in a “secret” read-only file.

It is a task on TrueNAS pulling/pushing from OMV. It works between two OMV’s already, now moving to TrueNAS.

I have set up the rsync task in the TrueNAS GUI

On OMV I have set a user and password for the module. When creating a task on the second OMV, I can enter the user and password. On TrueNAS it is only the user to pick, but no field for password.

Because such an option is not exposed in the TrueNAS GUI.

You have to use the Auxiliary Parameters to specify the module authentication username/password or the location for a read-only “secret file” that contains the username/password.

Can you post how to enter them ?

The parameter is this:

--password-file="/path/to/.secrets"

The .secrets file format looks like this:

password

Match the password as defined by the module on the OMV server with the “auth” user.


You can use any name for the file. It must not be readable by “other”.

You can issue chmod 640 against the file if you want proper permissions.

chmod 640 /path/to/.secrets

EDIT: It depends how you configured the module on the OMV side, so the above might not work.

So I need to create a textfile with the password in it and name it .secrets (or .something)
place it on truenas somewhere i.e. /conf/.secrets
and place the parameter --password-file="/conf/.secrets
right?

Yes.

The file name can be whatever you want. Preferably it starts with a . to make it hidden.

It must also be readable only by the owner of the file, which can be set with the chmod command.

You might want to place the file under your TrueNAS user’s home folder.

Is there any possibility to use a file manager? I won’t make it in the console

Why not SSH with the nano text editor?

I’m not used to it, will loose the weekend to make it

I’ve tried. The user home directory is /var/empty can not write in it and so on and so fort. I will just get from one trouble in the other

It doesn’t have to be in the user home folder. That was just a recommendation.

Thanks! I made it somehow. The task is running, the folders are already there but it looks like it is not transferring the files. After 5 Min still 0,00%

Additional informatin:
TrueNAS is running on a VM on proxmox with 3 CPU cores and 16GB RAM.
The source is in the same network

Did you pass through the HBA or controller for the drives? It may need to be blacklisted from Proxmox also. Proxmox can mount ZFS and cause problems like loss of data for the TrueNAS VM.

VIRTUAL

I think that is showing Proxmox with disk passthrough. Hoping someone familiar with Proxmox with TrueNAS VM will comment.

Thank you all for the support!
I’ve followed this tutorial (series).

I’m, looking for something stable and TrueNAS seams not to be what I’m looking for. I wanted proxmox because it is better for virtualization in general (what I’ve been told at least). So I can install different VM’s, including TrueNAS. Probably I will try with OMV on Proxmox, now it is running on a PI with two HDD, one syncing to the other. The same setup on a different location, with one HDD also syncing to Site A, as a additional source/backup.

Since I’m at the beginning, I can give TrueNAS a try directly on the Home Server (no proxmox) on Site A, and use it for virtualization too, but only if you guys are telling me, it is stable like OMV and it works with VM’s good.