[lxc-users] lxc file push garbling existing file

Serge Hallyn serge.hallyn at ubuntu.com
Wed Apr 6 15:05:48 UTC 2016


Quoting Craig Tataryn (craiger at tataryn.net):
> I've setup an automated deploy script that does the following:
> 
> * Uploads (via scp) a file to a host
> * Executes (via ssh) the `lxc file push` command to a container on that host
> 
> Every once in a while the file that is pushed to the container winds up
> being garbled somehow.  I've experienced this for both text and binary
> files.  When I crack open the text file typically it appears that the last
> line of the file duplicates some partial remnants of the previous file that
> was overwritten.
> 
> My current work around is to issue an `lxc exec -- rm -f <existing file>`
> before doing the push.
> 
> Before I go through a lot of trial-and-error I was wondering if anyone
> knows if this is a known issue, or have otherwise experienced this for
> themselves?
> 
> Versions:
> LXC: 0.19
> LXD: 0.19
> LXCFS: 0.10

These are very old, and indeed such a bug did exist long ago.  Can you
update to the 2.0 rcs?

> 
> Thanks,
> 
> Craig.

> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users



More information about the lxc-users mailing list