InfluxDB restore error : updating metadata on influxd service failed

I am having a restore problem with InfluxDB (v 1.7.9). I did a backup on an ubuntu 18.04 machine to be able to export it to another machine with another instance of InfluxDB.

The backup process is OK using the command:

influxd backup -portable -database db_to_backup /mnt/backup

After that, I tried to import the database again with the command:

influxd restore -portable -db db_to_backup -newdb db_test_import /mnt/backup

I launched this on the same machine and also on the other machine which both have ubuntu 18.04. I get this error:

restore: updating metadata on influxd service failed: err = read tcp 127.0.0.1:33328->127.0.0.1:8088: read: connection reset by peer, n = 16

I also launched this restore command on an Ubuntu 16.04 machine and the restore is good.

The “ufw” is disabled and I have exactly the same Influx configuration files on all machines.

UPDATE 1:
It is possible to make a backup from the Ubuntu 18 and to import in Ubuntu 16. It is also possible to make a backup from the Ubuntu 16 and to import to an Ubuntu 18 but when I make a backup from the Ubuntu 18 to an Ubuntu 18 version this is where the error occurs.

Hello,

I have the same problem here.
Ubuntu 18.04 updated.
I created a backup of a database et tried to restore it ON THE SAME SERVER, and all i got is “connection reset by peer”

xxxxx@runpoc301:~$ influxd backup -portable -db XXX /home/xxxxx/backup/

2020/03/03 11:07:41 backing up metastore to /home/xxxxx/backup/meta.00
2020/03/03 11:07:41 backing up db=XXX
[…]
2020/03/03 11:07:48 backup complete:
2020/03/03 11:07:48 /home/xxxxx/backup/20200303T100741Z.meta
[…]
xxxxxx@runpoc301:~$ influxd restore -portable -db XXX -newdb TEMP_XXX /home/xxxxx/backup/
2020/03/03 11:08:11 error updating meta: updating metadata on influxd service failed: err=read tcp 127.0.0.1:50880->127.0.0.1:8088: read: connection reset by peer, n=16
restore: updating metadata on influxd service failed: err=read tcp 127.0.0.1:50880->127.0.0.1:8088: read: connection reset by peer, n=16

I have this issue for months now, i really need to get this working…
Anyone can provide any help on this case ???

1 Like

I have same issue with 18.0.3 based on docker. Any feedback?

Thanks

Same using influx 1.8.7 with no docker, with Ubuntu 20
In the host the message is:
“failed to decode meta: proto: meta.ShardInfo: illegal tag 0 (wire type 0)”

Any help?