-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
permission funk w/ shiny-server docker reading files on mbon server #25
Comments
Hi Dan and Tylar, Sorry about the hassles with permissions. I've struggled with permissions managed separately across server filesystems corals, mbon and docker images (rstudio-shiny, www). I changed those permissions per permission funk w/ shiny-server docker reading files on mbon server · Issue #25 · marinebon/sdg14: Was having a hell of a time getting the env shiny app to read the files on /mbon/data_big/satellite, eg /mbon/data_big/satellite/chlor_a/clim_27km ... Really appreciate your help with this Tylar. Another approach is to give Dan sudo access for changing as needed, hopefully while still giving access to shiny app. Documenting further in permission funk w/ shiny-server docker reading files on mbon server · Issue #25 · marinebon/sdg14. I get a 404 error at https://github.com/USF-IMARS/issues/issues/17, but maybe I don't have permissions to the USF-IMARS/issues repo. Thanks, Ben
|
Was having a hell of a time getting the env shiny app to read the files on /mbon/data_big/satellite, eg
/mbon/data_big/satellite/chlor_a/clim_27km
The code for the env app is at https://github.com/marinebon/sdg14-shiny/tree/master/env and on mbon server at
/mbon/shiny/env
.There were all kinds of issues:
shiny
had uid 998, which was same astelegraf
on host server mbonmhepner
had a default gid of 528, which is the same gid as groupusers
on mbonmbon
has same uid 1000 as userben
on mbonBelow documents what I did since I'm now having a major issue with getting the shiny apps to even show, per #24.
Connect to rstudio-shiny docker instance on host mbon.marine.usf.edu
ssh ben@mbon.marine.usf docker exec -it rstudio-shiny bash
Fix permissions on rstudio-shiny docker instance
On rstudio-shiny as root, so don't need to prefix commands with
sudo
....Restart rstudio-shiny docker instance
On server mbon as user ben...
Wish there was a better way to restart just shiny-server and not whole docker instance, but I can't make sense of how based on comments in Hint for making a docker image containing both rstudio-server and shiny-server? · Issue #200 · rocker-org/rocker which is apparently using the s6-svc for stop/start/restart control, but I can't fathom how to get that going.
Tried these configs without luck:
Generic template for changing uid/gid and updating ownership
Other paths on rstudio-shiny related to old shiny uid/gid
On rstudio-shiny...
On mbon...
/etc/passwd
and/etc/group
entriesrstudio-shiny
/etc/passwd
:rstudio-shiny
/etc/group
:mbon
/etc/passwd
:mbon
/etc/group
:Shiny configuration
On rstudio-shiny:
# shiny configuration view /etc/shiny-server/shiny-server.conf
Shiny logs
On rstudio-shiny cd into log directory and list all in reverse time with timestamp:
cd /var/log/shiny-server ls -latr
Same paths mapped to mbon and easier to access:
cd /mbon/shiny-logs ls -latr
Related issues
The text was updated successfully, but these errors were encountered: