Giter VIP home page Giter VIP logo

Comments (6)

fresh2dev avatar fresh2dev commented on June 18, 2024

It looks like the pertinent error is:

error while creating mount source path '/srv/shinystudio/content/sites/8080': mkdir /srv/shinystudio: read-only file system

It is important that the account you use for setup be a non-root user with sudoer access. The command to setup ShinyStudio is control.sh setup and should be run without elevation (sudo).

If you want to change the mountpoint, you can do so with an argument, control.sh setup /path/to/mountpoint.

from shinystudio.

engti avatar engti commented on June 18, 2024

Thanks for getting back to me so quickly.

I did try that initially, but it gave me the error listed below. Googling is telling me that I need to add docker to the sudo group. But using sudo usermod -aG docker ${USER} asks for the password. And since this is a GCP instance i am connecting with ssh key. So not sure where password is.

Anyway, if the above is the pertinent error. I will see what else I can do to fix it. Thanks again

ubuntu@spark-instance3:~/ShinyStudio$ ./control.sh setup
*** Stopping
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/json?filters=%7B%22network%22%3A%7B%22shinystudio-net%22%3Atrue%7D%7D: dial unix /var/run/docker.sock: connect: permission denied
"docker stop" requires at least 1 argument.
See 'docker stop --help'.

Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]

Stop one or more running containers
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/json?all=1&filters=%7B%22network%22%3A%7B%22shinystudio-net%22%3Atrue%7D%7D: dial unix /var/run/docker.sock: connect: permission denied
"docker rm" requires at least 1 argument.
See 'docker rm --help'.

Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...]

Remove one or more containers
ERROR: Couldn't connect to Docker daemon - you might need to run docker-machine start default.
*** Building
ERROR: Couldn't connect to Docker daemon - you might need to run docker-machine start default.
*** Starting
ERROR: Couldn't connect to Docker daemon - you might need to run docker-machine start default.

from shinystudio.

engti avatar engti commented on June 18, 2024

Okay, I managed to get docker to not require sudo.

And the setup script ran just fine. But when I go to the rstudio and vscode app, I still get error 500 Failed to start container.

And this line still exists in the log {"message":"error while creating mount source path '/srv/shinystudio/content/sites/8080': mkdir /srv/shinystudio: read-only file system"}

Any more avenues I can chase down?

from shinystudio.

fresh2dev avatar fresh2dev commented on June 18, 2024

You can either manually create the destination directory sudo mkdir -p /srv/shinystudio/content/sites/8080 and ensure the current user owns it sudo chown -R /srv/shinystudio, or specify the mountpoint be in a directory the current user owns, e.g., control.sh setup "${HOME}/shinystudio".

from shinystudio.

engti avatar engti commented on June 18, 2024

Awesome. It worked.

Thank you so much. Much appreciated.

from shinystudio.

fresh2dev avatar fresh2dev commented on June 18, 2024

Glad to help. Look forward to a rendition of ShinyStudio that can be served via DockerHub for easier setup.

from shinystudio.

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.