Network error when linking another device

I am trying to link another device to my account. I press the button and enter my password, and after a while I get a «Error connecting to the network. Please try later.» message. I know I’ve got Internet connection, both IPv4 (behind NAT) and IPv6 (behind firewall). Version is 20230206.0~ds2-1.1, Debian stable.

On the terminal I see the message «Export on ring ended for account: “XXXXX” status: 2 PIN: “”», and here is the log:

[1687615602.182|11730|archive_account_manager.cpp:728 ] [Auth] exporting account
[1687615602.182|11730|archive_account_manager.cpp:621 ] [Auth] reading account archive
[1687615602.182|11730|fileutils.cpp:557 ] Reading archive from /home/parodper/.local/share/jami/XXXX/archive.gz
[1687615603.614|11730|archive_account_manager.cpp:647 ] [Auth] building account archive
[1687615603.615|11730|archive_account_manager.cpp:748 ] [Auth] exporting account with PIN: YYY at ZZZZZZZ (size 15264)
[1687615620.570|11745|jamiaccount.cpp:1889] [Account a8ed489d4b187c35] Dht status: IPv4 connected; IPv6 connecting
[1687615622.517|11745|jamiaccount.cpp:1889] [Account a8ed489d4b187c35] Dht status: IPv4 connected; IPv6 connected
[1687615628.390|11745|jamiaccount.cpp:1889] [Account a8ed489d4b187c35] Dht status: IPv4 connecting; IPv6 connected
[1687615629.338|11745|jamiaccount.cpp:1889] [Account a8ed489d4b187c35] Dht status: IPv4 connected; IPv6 connected
[1687615665.283|11745|archive_account_manager.cpp:753 ] [Auth] account archive published: failure
[1687615665.283|11745|jamiaccount.cpp:1889] [Account a8ed489d4b187c35] Dht status: IPv4 connected; IPv6 connecting
[1687615665.425|11745|jamiaccount.cpp:1889] [Account a8ed489d4b187c35] Dht status: IPv4 connected; IPv6 connected