Hello to everyone,
first i want to thank all of you for yunohost!!! I’m lovin’ it
My YunoHost server
Hardware: VPS bought online
YunoHost version: 4.1.7.1
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: I have moved the standard ssh port to another port number
Description of my issue
I have decided today to upgrade my yunohost server and almost everything went well but the migration of iptables to nftable failed with an error.
This is the log i get:
ended_at: 2021-02-05 17:29:45.096062
error: "Migration 0018_xtable_to_nftable did not complete, aborting. Error: Failed\
\ to migrate legacy iptables rules to nftables: Failed to run command 'iptables-legacy-save\
\ | iptables-restore'.\nreturncode: 4\nstdout:\n\nstderr:\niptables-restore v1.8.2\
\ (nf_tables): \nline 3: CHAIN_UPDATE failed (No such file or directory): chain\
\ INPUT\nline 4: CHAIN_UPDATE failed (No such file or directory): chain FORWARD\n\
line 5: CHAIN_UPDATE failed (No such file or directory): chain OUTPUT\n\n"
interface: cli
operation: tools_migrations_migrate_forward
parent: null
started_at: 2021-02-05 17:29:44.807294
success: false
yunohost_version: 4.1.7.1
============
2021-02-05 18:29:44,826: INFO - Running migration 0018_xtable_to_nftable...
2021-02-05 18:29:44,972: DEBUG - Running command: iptables-legacy-save | iptables-restore
2021-02-05 18:29:45,050: DEBUG - Running command: iptables-legacy-restore < /home/yunohost.backup/premigration/xtable_to_nftable/legacy_rules_ipv4
2021-02-05 18:29:45,073: DEBUG - Running command: iptables-legacy-restore < /home/yunohost.backup/premigration/xtable_to_nftable/legacy_rules_ipv6
2021-02-05 18:29:45,094: ERROR - Migration 0018_xtable_to_nftable did not complete, aborting. Error: Failed to migrate legacy iptables rules to nftables: Failed to run command 'iptables-legacy-save | iptables-restore'.
returncode: 4
stdout:
stderr:
iptables-restore v1.8.2 (nf_tables):
line 3: CHAIN_UPDATE failed (No such file or directory): chain INPUT
line 4: CHAIN_UPDATE failed (No such file or directory): chain FORWARD
line 5: CHAIN_UPDATE failed (No such file or directory): chain OUTPUT
Traceback (most recent call last):
File "/usr/lib/moulinette/yunohost/tools.py", line 897, in tools_migrations_migrate
migration.run()
File "/usr/lib/moulinette/yunohost/data_migrations/0018_xtable_to_nftable.py", line 55, in run
raise YunohostError("migration_0018_failed_to_migrate_iptables_rules", error=e)
YunohostError: Failed to migrate legacy iptables rules to nftables: Failed to run command 'iptables-legacy-save | iptables-restore'.
returncode: 4
stdout:
stderr:
iptables-restore v1.8.2 (nf_tables):
line 3: CHAIN_UPDATE failed (No such file or directory): chain INPUT
line 4: CHAIN_UPDATE failed (No such file or directory): chain FORWARD
line 5: CHAIN_UPDATE failed (No such file or directory): chain OUTPUT
Maybe someone could help me out with this error?
Thank you in advance