ricklamers / gridstudio

Grid studio is a web-based application for data science with full integration of open source data science frameworks and languages.
GNU Affero General Public License v3.0
8.88k stars 1.5k forks source link

Not working on Win7 running Docker Toolbox #47

Closed sinablk closed 5 years ago

sinablk commented 5 years ago

I successfully downloaded the docker image and it shows in docker images. But I get the following error after ./run.sh on Git Bash for Win7 running Docker Toolbox:

$ ./run.sh
Error response from daemon: No such container: gridstudio
Error: failed to start containers: gridstudio

I can run the container using docker run ricklamers/gridstudio:release which gives the following output (same as docker logs <CONTAINER>: Screenshot_1

Since I'm running Docker Toolbox, my default IP is 192.168.99.100, but I get a "Unable to connect" error when visiting http://192.168.99.100:8080.

And here's the output from docker container ls: Screenshot_2

Also, the folder is located in C:\Users\sina\repos\gridstudio.

ricklamers commented 5 years ago

Could you run destroy.sh and run.sh consecutively? Perhaps you could modify the run.sh file to have the full image name as in your self run command ricklamers/gridstudio:release.

Haven't worked with Docker Toolbox so I'm not really familiar with the differences. When you run your own command that seems to run the server you're not forwarding the ports so that's why it's failing.

sinablk commented 5 years ago

Well, the main problem was finding out to which ports it was actually forwarding. I executed docker run -d -p 8080 ricklamers/gridstudio:release and used Kitematic (which comes with Docker Toolbox) to look at my active containers. I used the Web Preview tab to open the app: Screenshot_2

This opens up 192.168.99.100 with a random port and takes me to the admin page. I can successfully login to the dashboard, but as soon as I create or open a workspace, it gives me this error: Screenshot_1

Here's output from docker container ls: Screenshot_3

Checking the logs, you can see there's a runtime error: Screenshot_4

ricklamers commented 5 years ago

In the run.sh the Docker command shows the flag -p 8080:8080 -p 4430:4430 for port forwarding. That should also work in your case.

sinablk commented 5 years ago

Yup, that does work and forwards to port 8080. But I still get the "Lost connection to server. Redirect to dashboard?" error after opening workspace. Even when I hit "Cancel", I still cannot operate the sheet, interpreter, terminal, or anything.

ricklamers commented 5 years ago

It disconnects if it cannot establish a connection to the websocket server on port 4430. It appears this connection can still not be made in your setup.

Docker Toolbox is not intended to be supported - i.e. feel free to try and make it work but I'm not able to give you support on how to make it work.

nanayuri commented 5 years ago

hello, you may try to use "docker run --name=gridstudio --rm=false -p 8080:8080 -p 4430:4430 ricklamers/gridstudio:release" to run the gridsutdio.

wanmeow commented 5 years ago

@nanayuri your answer actually helps! Thank you so much