canonical / multipass

Multipass orchestrates virtual Ubuntu instances
https://multipass.run
GNU General Public License v3.0
7.51k stars 632 forks source link

Multipass transfer stopped working #3552

Open k-bx opened 6 days ago

k-bx commented 6 days ago

My build server used to work fine, and I just installed Git LFS inside of the container, suddenly multipass transfer is not working.

hammer@hammer:~$ multipass transfer /home/hammer/Downloads/builder_build_front.sh builder-2204:/tmp/builder_build_front.sh
[2024-06-28T13:15:49.530] [error] [sftp] cannot write to remote file /tmp/builder_build_front.sh: SFTP server: Failure

Systemd logs contain this:

Jun 28 13:16:00 hammer systemd[1919]: Started snap.multipass.multipass-27e2cec3-20a4-4a8e-b949-3ad344fd2986.scope.
Jun 28 13:16:00 hammer systemd[1919]: snap.multipass.multipass-27e2cec3-20a4-4a8e-b949-3ad344fd2986.scope: Succeeded.

How do I debug this further?

Host system: Ubuntu 20.04 Guest system: Ubuntu 22.04

andrei-toterman commented 2 days ago

Hey, @k-bx! Could you perhaps give us some instructions about how to try to reproduce this issue?

k-bx commented 2 days ago

@andrei-toterman hi, no, it just stopped working at some point, worked before, so I don't have clear reproduction steps.

What are the ways to get extended logs to understand the root cause of the problem?

andrei-toterman commented 1 day ago

Well, without a way to reproduce it, it is very hard to diagnose. I tried installing Git LFS as you said you did, but that did not cause any problem for me. Unfortunately, there is no way to get more extensive logs as of now. Multipass has its own logs, but for this issue, we'd need to investigate the logs emitted by libssh itself, which we don't capture. Perhaps we could introduce a way to capture these logs as well, which could be very useful. But again, for this issue, if it's not reproducible, we can't do much about it. Sorry!

k-bx commented 1 day ago

Is there a ticket for libssh log capture to track the work?

andrei-toterman commented 1 day ago

There is now :)