Code Monkey home page Code Monkey logo

Comments (12)

billchurch avatar billchurch commented on August 16, 2024 2

@tip2tail, sorry I've been out for a bit. looking at this and will fix it this week. thanks for doing the digging.

from webssh2.

billchurch avatar billchurch commented on August 16, 2024 1

@tip2tail

Okay, so I think I see what's happening. In 0.4.7 I'm changing that schema a bit, so the example that's in main now is dev/0.4.7.

If you change the tag of this repository to 0.4.6, the example is correct for that version and should work properly.

https://github.com/billchurch/webssh2/blob/0.4.6/app/config.json.sample

webssh2 % git status
HEAD detached at 0.4.6
nothing to commit, working tree clean
webssh2 % docker run -it --rm -p 2222:2222 -v $PWD/app/config.json.sample:/usr/src/config.json billchurch/webssh2
WebSSH2 service reading config from: /usr/src/config.json
WebSSH2 service listening on 0.0.0.0:2222

from webssh2.

tip2tail avatar tip2tail commented on August 16, 2024

@kobuki @billchurch did you find a fix for this?
I had webssh2 working, tweaked the config file and now cannot get it to run at all - even when I revert back to the initial file.
Same error

from webssh2.

tip2tail avatar tip2tail commented on August 16, 2024

I have done some digging and I have found that the built version of server/app.js within the docker image itself differs from the defined source version in a couple of places. See higlighted below:
image

I worked around this by duplicating my config to match - e.g. socketio.origins config as http.origins
image

As well as session.secret and session.name as express.secret and express.name respectively.

This allows the process to start, however attempting to then launch within the browser results in another error:
image

@billchurch is there something going wrong in the compile of the JS?

from webssh2.

tip2tail avatar tip2tail commented on August 16, 2024

Just to follow up - I have attempted to build a completely fresh version of this with docker and still get the same cursorBlink error

from webssh2.

kobuki avatar kobuki commented on August 16, 2024

So... as soon as you release 0.4.7, we can run the container without quirks and until then we must manually checkout 0.4.6?

from webssh2.

billchurch avatar billchurch commented on August 16, 2024

@kobuki probably a better way you could phrase that to the only developer working on a project for free...

The example config.json you're pulling from main is the development branch. the 0.4.6 tag would contain the correct example config.json (as well as the correct README).

from webssh2.

billchurch avatar billchurch commented on August 16, 2024

@kobuki you can feel free to pull billchurch/webssh2:main if you want the current development branch, but its probably not what you want.

from webssh2.

kobuki avatar kobuki commented on August 16, 2024

No, I'm thankful for every piece of free software, including yours, that I have access to. I'm saying this as someone who also works on OSS projects even here. But as one I usually try to produce a master that can be used as-is and work on feature branches otherwise. I was a little baffled on why a code that's being regularly maintained refuses to even load its config. But, no offense was intended, I shoulda chosen my wording a bit better, maybe.

In any case, I can try out webssh2 in 0.4.6 now, thanks for the hints!

from webssh2.

billchurch avatar billchurch commented on August 16, 2024

if you're using docker, you don't need to checkout anything. A proper config for the version is the only thing you need, which is going to be stored under the tag for that version.

from webssh2.

billchurch avatar billchurch commented on August 16, 2024

I updated docker page as well...

from webssh2.

tip2tail avatar tip2tail commented on August 16, 2024

@billchurch Very much appreciated and thanks for the detail on what the root cause was.
Glad to have helped!

Thanks again
M

from webssh2.

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.