GithubHelp home page GithubHelp logo

Comments (15)

crschnick avatar crschnick commented on June 7, 2024

Hmm, the only thing xpipe does to verify whether docker is available is to run docker --help and check the exit code. Maybe something when wrong there? You can try go to Settings -> Troubleshoot -> Launch in debug mode and see exactly what is getting executed and returned.

from xpipe.

hanskokx avatar hanskokx commented on June 7, 2024

Maybe it's not getting a proper shell first? I'm not sure. Details below.

17:06:48:080 - trace: [proc] Starting command execution ... {
    baseCommand=docker --help
    shellType=sh
    elevated=false
    workingDirectory=null
}
17:06:48:083 - trace: [proc] Writing line {
    line=echo 'a03b53cf-e4c1-44a2-b39b-0ad2f37d9727';echo '7a0f426d-088b-4d8e-9b7c-c2a3b75af24a' 1>&2;docker --help;echo '85431907-e403-4048-a01f-21744706e609'${?}END;echo '0dfd651f-6b20-42a6-93d3-a87802b89765' 1>&2
}
17:06:48:105 - trace: [proc] Stdout finished. Reading exit code ...
17:06:48:105 - trace: [proc] Read: 127END
17:06:48:105 - debug: [proc] Command finished {
    command=docker --help
    finishReason=NORMAL_FINISH
    exitCode=127
}
17:06:48:106 - trace: [proc] Read stdout {
    output=
}
17:06:48:107 - trace: [proc] Stderr finished {
    finishReason=NORMAL_FINISH
}
17:06:48:108 - trace: [proc] Command state switched to finished
17:06:48:109 - trace: [proc] Read stderr {
    output=-sh: line 19: docker: command not found
}

from xpipe.

crschnick avatar crschnick commented on June 7, 2024

What is the login shell of your system? Ideally you should connect to that shell type to get all the shell profiles executed

from xpipe.

hanskokx avatar hanskokx commented on June 7, 2024

/bin/sh, but /usr/bin/zsh is also available.

from xpipe.

crschnick avatar crschnick commented on June 7, 2024

Are all the profile files sourced properly when you manually startup a login shell with sh -l?

from xpipe.

crschnick avatar crschnick commented on June 7, 2024

For better reproduction, you can try manually connecting with ssh -T user@host because that is what xpipe does internally. The exact command used to connect should also be found somewhere in the debug output

from xpipe.

hanskokx avatar hanskokx commented on June 7, 2024

It looks like ssh -T gets me to busybox, not a proper shell.

from xpipe.

crschnick avatar crschnick commented on June 7, 2024

hmm, any idea why? I don't have QNAP setup to test that. Essentially, xpipe she's the same thing as when you manually open with ssh -T. If you somehow managed to make it start a proper shell, it should work.

from xpipe.

hanskokx avatar hanskokx commented on June 7, 2024

That's the funny thing. It detects zsh properly and tapping on it will drop me into a zsh shell (but SHELL=/bin/sh still).

from xpipe.

hanskokx avatar hanskokx commented on June 7, 2024

Aha - if I manually set the PATH variable in the init script for one of the shells, it finds docker.

from xpipe.

crschnick avatar crschnick commented on June 7, 2024

Interesting. Honestly these busybox setups are usually not designed for having extensive profile scripts that cover all situations, so I can see why there are some problems like that. If you somehow get it running without explicitly specifying the path, feel free to share.

from xpipe.

hanskokx avatar hanskokx commented on June 7, 2024

Setting the PATH is a decent enough solution for me 🤷🏻‍♂️

from xpipe.

crschnick avatar crschnick commented on June 7, 2024

So I played around a bit with better PATH initialization (hopefully). You can try whether the latest version of https://github.com/xpipe-io/xpipe-ptb work for you without explicitly setting the path

from xpipe.

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.