Giter Site home page Giter Site logo

Error while uploading file about vslinuxdebug HOT 6 CLOSED

HakanL avatar HakanL commented on June 15, 2024
Error while uploading file

from vslinuxdebug.

Comments (6)

HakanL avatar HakanL commented on June 15, 2024 1

However it would be good to properly catch and report the error, instead of null-ref :)

from vslinuxdebug.

HakanL avatar HakanL commented on June 15, 2024

Sometimes if I retry it works, with nothing changed.

from vslinuxdebug.

DamianSuess avatar DamianSuess commented on June 15, 2024

@HakanL, seeing that I'm not familiar with BalenaOS, there are a variety of remote-side causes that could be triggering this. None the less, let's work through this and see what we can do.

  • Which version of the extension are you using? (assuming the latest published)
  • Are you able to test/validate connectivity using SFTP via a 3rd-party tool?
  • Are you connected to a physical device or virtualized one?

Your issue appears to be happening right at this point (SshToo.cs - Lines 487-493). This is where I'm calling Renci.SshNet's SFTP to perform the upload.

Since this is happening "sometimes" triggers the question, is the remote OS dropping the SFTP connection?

            Logger.Output("Uploading...");
            await Task.Run(() =>
            {
              tarGzStream.Seek(0, SeekOrigin.Begin);

              sftp.UploadFile(tarGzStream, pathBuildTarGz);
            });

            Logger.Output($"Uploaded '{_tarGzFileName}' [{tarGzSize,13:n0} bytes].");

from vslinuxdebug.

HakanL avatar HakanL commented on June 15, 2024

Which version of the extension are you using? (assuming the latest published)
Yes, latest published

Are you able to test/validate connectivity using SFTP via a 3rd-party tool?
I haven't tested this, but I'm SSH:d to the device (using putty)

Are you connected to a physical device or virtualized one?
It's a physical Raspberry Pi CM4, but it's running docker so I'm attempting to deploy to a guest instance in docker (and that's where I'm also SSH:d into). But it works intermittently.

How would I see if the remote OS drops the SFTP connection?

from vslinuxdebug.

HakanL avatar HakanL commented on June 15, 2024

It may have been an issue with my Raspberry Pi, it's been working fine now for a while, so I'll close this issue.

from vslinuxdebug.

DamianSuess avatar DamianSuess commented on June 15, 2024

None the less, we can get in that checking mechanism. Definitely don't like seeing unexpected errors

from vslinuxdebug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.