Discussion:
Error transferring container data:
(too old to reply)
Pierre Couderc
2018-08-18 10:02:02 UTC
Permalink
I have this error. All is here :

***@couderc:~$ lxc version
Client version: 3.3
Server version: 3.3
***@couderc:~$ lxc version 192.168.163.1:
Client version: 3.3
Server version: 2.21
***@couderc:~$ lxc list 192.168.163.1:
+-----------+---------+-----------------------+----------------------------------------------+------------+-----------+
|   NAME    |  STATE  |         IPV4          |                     IPV6                     |    TYPE    | SNAPSHOTS |
+-----------+---------+-----------------------+----------------------------------------------+------------+-----------+
| bbbb      | RUNNING | 192.168.163.30 (eth0) | 2a01:e34:eeaf:c5f0:216:3eff:fe92:44 (eth0)   | PERSISTENT | 0         |
+-----------+---------+-----------------------+----------------------------------------------+------------+-----------+
| debian    | STOPPED |                       |                                              | PERSISTENT | 0         |
+-----------+---------+-----------------------+----------------------------------------------+------------+-----------+
| gggg      | STOPPED |                       |                                              | PERSISTENT | 0         |
+-----------+---------+-----------------------+----------------------------------------------+------------+-----------+
***@couderc:~$ lxc list
+------+-------+------+------+------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+-------+------+------+------+-----------+
***@couderc:~$ lxc copy  192.168.163.1:debian debian
Error: Failed container creation:
 - https://192.168.163.1:8443: Error transferring container data: exit status 12
 - https://[2a01:a34:eaaf:c5f0:ca60:ff:fa5a:fd23]:8443: Error transferring container data: websocket: bad handshake
***@couderc:~$

Thanks for any help
PC
Stéphane Graber
2018-08-18 14:16:52 UTC
Permalink
Post by Pierre Couderc
Client version: 3.3
Server version: 3.3
Client version: 3.3
Server version: 2.21
+-----------+---------+-----------------------+----------------------------------------------+------------+-----------+
|   NAME    |  STATE  |         IPV4          |                     IPV6                     |    TYPE    | SNAPSHOTS |
+-----------+---------+-----------------------+----------------------------------------------+------------+-----------+
| bbbb      | RUNNING | 192.168.163.30 (eth0) | 2a01:e34:eeaf:c5f0:216:3eff:fe92:44 (eth0)   | PERSISTENT | 0         |
+-----------+---------+-----------------------+----------------------------------------------+------------+-----------+
| debian    | STOPPED |                       |                                              | PERSISTENT | 0         |
+-----------+---------+-----------------------+----------------------------------------------+------------+-----------+
| gggg      | STOPPED |                       |                                              | PERSISTENT | 0         |
+-----------+---------+-----------------------+----------------------------------------------+------------+-----------+
+------+-------+------+------+------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+-------+------+------+------+-----------+
 - https://192.168.163.1:8443: Error transferring container data: exit status 12
 - https://[2a01:a34:eaaf:c5f0:ca60:ff:fa5a:fd23]:8443: Error transferring container data: websocket: bad handshake
Thanks for any help
PC
exit status 12 usually indicates rsync having been a bit unhappy, it's
"Error in rsync protocol data stream".

Try running:
- lxc monitor
- lxc monitor 192.168.163.1:

In two terminals while running the copy again, this may catch a longer
version of that rsync error.
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
Pierre Couderc
2018-08-18 15:48:56 UTC
Permalink
Post by Stéphane Graber
Post by Pierre Couderc
 - https://192.168.163.1:8443: Error transferring container data: exit status 12
 - https://[2a01:a34:eaaf:c5f0:ca60:ff:fa5a:fd23]:8443: Error transferring container data: websocket: bad handshake
Thanks for any help
PC
exit status 12 usually indicates rsync having been a bit unhappy, it's
"Error in rsync protocol data stream".
- lxc monitor
Thak you : I "catch" :
metadata:
  context: {}
  level: eror
  message: |
    Rsync send failed: /var/lib/lxd/containers/debian/: exit status 12:
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: error in rsync protocol data stream (code 12) at
io.c(235) [sender=3.1.2]
timestamp: 2018-08-18T17:38:30.805500383+02:00
type: logging


I have tried :
***@couderc:~$rsync -avz
***@192.168.163.1:/var/lib/lxd/containers/debian/    .

and rsync works without problem.
Pierre Couderc
2018-08-21 08:46:02 UTC
Permalink
Post by Pierre Couderc
exit status 12
  - https://[2a01:a34:eaaf:c5f0:ca60:ff:fa5a:fd23]:8443: Error
transferring container data: websocket: bad handshake
and too :
***@server:~# rsync -avz /var/lib/lxd/containers/debian/
***@192.168.163.253:ttt

work without problem

(in this "LXD only server", only root is used : no non LXD application,
no other user).

Continue reading on narkive:
Loading...