Giter Site home page Giter Site logo

Can't start Shiny apps about shiny HOT 2 CLOSED

JanKrivanek avatar JanKrivanek commented on July 17, 2024 3
Can't start Shiny apps

from shiny.

Comments (2)

JanKrivanek avatar JanKrivanek commented on July 17, 2024

One weird thing is that whan I try to see the apps dirs in hosted OS - thay are not there:

shiny@59cd7497fb50:/$ cd srv/shiny-server/
shiny@59cd7497fb50:/srv/shiny-server$ dir
shiny@59cd7497fb50:/srv/shiny-server$

Despite the specified -v mounting command command, the hosted OS doesn't see the content of the host OS mounted folder. what can be the reason?

When I output docker insepct, I can see that mounts are properly configured and picked:

    "Mounts": [
            {
                "Type": "bind",
                "Source": "/host_mnt/d/Projects/DockedShiny/apps",
                "Destination": "/srv/shiny-server",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/host_mnt/d/Projects/DockedShiny/logs",
                "Destination": "/var/log/shiny-server",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],

In the host OS I can see that the shared folder is indeed unempty:

D:\Projects\DockedShiny\apps>dir /b
HonzaVisual18-11-27
TomasVisual1
Whatev1

What can be the reason for the hosted OS to suddenly not properly seeing content of mounted host OS directory?

from shiny.

JanKrivanek avatar JanKrivanek commented on July 17, 2024

So I dived into the failing mount and was investigating 100+ possibilities (not shared drive in win; win firewall dropping SMB; docker share option; etc.) And then found this post that got me in a right dirrection:

docker/for-win#25 (comment)

Basically - I've changed my username on thet box recently and docker had cashed the old one. I needed to 'reset credentials' in docker settings -> Shared Drives menu and after that the new images are seeing the host file system correctly!

from shiny.

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.