Replication don´t work anymore

Janko

Dabbler
Joined
Nov 27, 2018
Messages
31
I received the following Error on my Testlab with TrueNAS 13.
Code:
[2022/05/13 03:22:19] INFO     [Thread-23850] [zettarepl.paramiko.replication_task__task_1] Connected (version 2.0, client OpenSSH_8.8-hpn14v15)
[2022/05/13 03:22:19] INFO     [Thread-23850] [zettarepl.paramiko.replication_task__task_1] Authentication (publickey) failed.
[2022/05/13 03:22:19] ERROR    [replication_task__task_1] [zettarepl.replication.run] For task 'task_1' non-recoverable replication error ReplicationError('Authentication failed.')


If i switch back to 12.8, all Replication Tasks works fine.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Read the Release Notes for 13!

By default, TrueNAS 12 cannot initiate a replication to or from TrueNAS 13 due to an outdated SSH client library. Allowing replication to or from TrueNAS 13 to TrueNAS 12 requires allowing ssh.rsa algorithms. See OpenSSH 8.2 Release for security considerations. Log into the TrueNAS 13 system and go to Services->SSH. Add the SSH Auxiliary Parameter: PubkeyAcceptedAlgorithms +ssh-rsa.
 

JCL

Dabbler
Joined
Nov 18, 2015
Messages
14
Read the Release Notes for 13!

By default, TrueNAS 12 cannot initiate a replication to or from TrueNAS 13 due to an outdated SSH client library. Allowing replication to or from TrueNAS 13 to TrueNAS 12 requires allowing ssh.rsa algorithms. See OpenSSH 8.2 Release for security considerations. Log into the TrueNAS 13 system and go to Services->SSH. Add the SSH Auxiliary Parameter: PubkeyAcceptedAlgorithms +ssh-rsa.
Thanks Samuel for the tips,
it actually works from a truenas12 server, but I have a legacy Freenas-11.2-U8 server which can't still replicate to a Truenas13 server.

My truenas13 has IP : 172.20.135.11

from Freenas-11.2-U8 I can ssh -i /data/ssh/replication root@172.20.135.11 with no problems and without giving password, but when I add a replication task, there is an error on web-UI and I get this message from /var/log/debug.log (on freenas-11.2-UI server) :
Code:
Aug 10 15:14:09 srvstk30c /autorepl.py: [tools.autorepl:291] Checking dataset md72/diskless
Aug 10 15:14:09 srvstk30c /autorepl.py: [tools.autorepl:320] Unable to list properties for remote dataset md72/BACKUP/30c: root@172.20.135.11: Permission denied (publickey,password).
Aug 10 15:14:09 srvstk30c /autorepl.py: [tools.autorepl:350] ds = BACKUP, remotefs = md72/BACKUP/30c
Aug 10 15:14:09 srvstk30c /autorepl.py: [tools.autorepl:358] Unable to create remote dataset md72/BACKUP/30c: root@172.20.135.11: Permission denied (publickey,password).
Aug 10 15:14:09 srvstk30c /autorepl.py: [tools.autorepl:350] ds = BACKUP/30c, remotefs = md72/BACKUP/30c
Aug 10 15:14:09 srvstk30c /autorepl.py: [tools.autorepl:358] Unable to create remote dataset md72/BACKUP/30c: root@172.20.135.11: Permission denied (publickey,password).
Aug 10 15:14:09 srvstk30c /autorepl.py: [tools.autorepl:350] ds = BACKUP/30c/diskless, remotefs = md72/BACKUP/30c
Aug 10 15:14:09 srvstk30c /autorepl.py: [tools.autorepl:358] Unable to create remote dataset md72/BACKUP/30c: root@172.20.135.11: Permission denied (publickey,password).
Aug 10 15:14:09 srvstk30c /autorepl.py: [tools.autorepl:639] Autosnap replication finished


Any idea ?
Thanks in advance for your help
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
First, please don't necro old threads. Second, your error indicates a problem with the SSH connection corresponding to this replication task. Make sure to use a non-ssh-rsa host key.
 

JCL

Dabbler
Joined
Nov 18, 2015
Messages
14
ok, my mistake was not having copied my freenas public replication key to truenas13 server (it was working from the console bc I was ssh connected to my freenas using ForwardAgent).
Then now replication task works from 11.2 to 13.1 server. (Note that I am still using an ssh-rsa host key bc I have applied your previous tips "ssh auxliary parameters" on the truenas13 server).
Many thanks !
 
Top