SuessLabs / VsLinuxDebug

VS Extension to remotely deploy and debug your .NET (Core) C# solutions directly to your Linux or Raspberry Pi devices! .NET Core 3.1, .NET 5, 6, 7, 8, 9
https://marketplace.visualstudio.com/items?itemName=SuessLabs.VSLinuxDebugger
MIT License
36 stars 8 forks source link

[Issue] Unable to upload files #60

Closed dedounet closed 1 year ago

dedounet commented 1 year ago

Description

I'm unable to upload my artefacts to the remote device. No problem to connect BUT there is no commands results, no folder created and nothing to push.

Severity (1-5)

4=Low (annoyance), 5=High (crashes visual studio)

Steps To Reproduce

Steps to reproduce the behavior:

  1. Click on Build and Deply
  2. Error message :
    12:08:44.468: Build was successful
    12:08:45.039: Connected to tiflex@192.168.0.101:22 via SSH and SFTP
    12:08:45.058: BASH> uname -m
    12:08:45.081: BASH> which curl ; echo $?
    12:08:45.102: BASH> [ -d /.vs-debugger/vs2022 ] || curl -ksSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l /.vs-debugger/vs2022
    12:08:45.177: Returned: 
    12:08:45.177: BASH> mkdir -p 
    12:08:45.196: BASH> sudo chown -R tiflex:tiflex 
    12:08:45.250: BASH> rm -rf Ockham125/{*,.*}
    12:08:45.268: BASH> mkdir -p Ockham125
    12:08:45.289: Destination Tar.GZ: 'Ockham125/vsldBuildContents.tar.gz'
    12:08:45.289: Getting bin files for transfer...
    12:08:45.301: Compressing files for transfer...
    12:08:53.588: Update file count: 181; File Size: [137163064 bytes] of Total Files: 181 [137163064 bytes] need to be updated
    12:08:53.588: Uploading...
    12:08:53.593: Error while uploading file. No such file
    à Renci.SshNet.Sftp.SftpSession.RequestOpen(String path, Flags flags, Boolean nullOnError)
    à Renci.SshNet.SftpClient.InternalUploadFile(Stream input, String path, Flags flags, SftpUploadAsyncResult asyncResult, Action`1 uploadCallback)
    à VsLinuxDebugger.Core.SshTool.<>c__DisplayClass22_0.<PayloadCompressAndUploadAsync>b__1()
    à System.Threading.Tasks.Task.Execute()
    --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
    à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    à VsLinuxDebugger.Core.SshTool.<PayloadCompressAndUploadAsync>d__22.MoveNext()
    12:08:53.593: BASH> set -e;cd "Ockham125";tar -zxf "vsldBuildContents.tar.gz"
    12:08:53.610: Payload Decompress results: '' (blank=OK)
    12:08:53.610: Upload completed with failure.

Dev environment:

Win 10.0.19044 VS2022:latest LinuxDebugger: latest

Linux Distribution:

dedounet commented 1 year ago

Ok my bad the system memory was full ... ;) Thanks for your work it's damn great !

DamianSuess commented 1 year ago

@dedounet no worries, thank you for the heads up. I'll keep error handling around this in mind for a future release

Appreciate your support using this. Please feel free to give the project a thumbs up on the Visual Studio Extension store

Nobody84 commented 3 months ago

I'm facing the same problem and I have no idea what's happening. @dedounet What did you mean with the system memory was full. Did you run out of disk space or RAM and does this apply to the remote machine or your local machine.