Comments (6)
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.
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.
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.
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.
Awesome. It worked.
Thank you so much. Much appreciated.
from shinystudio.
Glad to help. Look forward to a rendition of ShinyStudio that can be served via DockerHub for easier setup.
from shinystudio.
Related Issues (20)
- License for commercial use HOT 4
- State of play for Windows 10 HOT 7
- Template customizations HOT 2
- Default 8080 is not accessible HOT 7
- Occupies entire 75gb drive on ubuntu HOT 3
- certify.sh: Links for downloading options-ssl-nginx.conf and ssl-dhparams.pem don't work
- Permission error HOT 1
- Stack minimal setup not working as expected HOT 1
- Feature Request: Add the Possibility to Include in the Landing Page Custom Web App Containers (Streamlit, flexdashboard, ...)
- certify.sh Bug Windows Subsystem Linux (WSL 2) Ubuntu 18.04: shinystudio_nginx_1 does not start HOT 1
- application.yml Update Error: Error Status code: 500 Message: Failed to start container HOT 1
- Is possible update all to latest version?
- docker run error
- docker compose up error
- ./certify.sh error
- Shiny not able to load libraries HOT 3
- Error accessing RStudio and VS Code HOT 3
- Cannot View Documents or Apps HOT 7
- RStudio crashes when an external FS is mounted to the user content directory HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shinystudio.