rancher / convoy

A Docker volume plugin, managing persistent container volumes.
Apache License 2.0
1.31k stars 135 forks source link

Timeout issue #210

Closed jhmnieuwenhuis closed 7 years ago

jhmnieuwenhuis commented 7 years ago

Hi, when using nfs volumes and restoring a backup I get a timeout error. I use the --cmd-timeout=10m But after about 1 minuut the create commands exits

convoy create d4d-hans-volume --backup vfs:///mnt/nfs1/backup?backup=backup-53065b720c5f4c72\u0026volume=d4d-dbs-volume ERRO[0072] Error response from server, Timeout executing: tar [xf /mnt/nfs1/d4d-hans-volume/backup-53065b720c5f4c72.bak -C /mnt/nfs1/d4d-hans-volume.tmp], output , error

{ "Error": "Error response from server, Timeout executing: tar [xf /mnt/nfs1/d4d-hans-volume/backup-53065b720c5f4c72.bak -C /mnt/nfs1/d4d-hans-volume.tmp], output , error \u003cnil\u003e\n" }

convoy --version

convoy version v0.5.0

yasker commented 7 years ago

Hi @jhmnieuwenhuis

It's a bug in backup area, the timeout should be much longer for tar command.

We will fix that.

jhmnieuwenhuis commented 7 years ago

Ok, Thanks for the quick response !

Any idea when this can be expected. I may need to look for another solution to back/restore in the mean time...

Regards,

Hans

yasker commented 7 years ago

Probably a week or two, current we're busy on another project.

yasker commented 7 years ago

hi @jhmnieuwenhuis

Can you check what's the CmdTimeout in your /var/lib/rancher/convoy? I think the timeout wasn't updated in this case.

jhmnieuwenhuis commented 7 years ago

You are right !

I added the CmdTimeout to my servicefile, but it was not updated in the /var/lib/rancher/convoy/convoy.cfg

After adding it to the convoy.cfg file it worked as expected.

I am on Centos 7

Regards,

Hans Nieuwenhuis

yasker commented 7 years ago

Glad it work!