'Not Found' browser error when the same app.R file is loaded inside a sub directory on Ubuntu shiny server
up vote
0
down vote
favorite
I have successfully hosted a shiny app on an Ubuntu server (on AWS) inside the directory /home/rstudio/nlp
so the end file is /home/rstudio/nlp/app.R
and I am able to access it on the internet on the following url:
http://XX.XXXX.XX.XX:3838/nlp
(sorry I have masked the IP address)
but strangely if the same app.R file is placed inside a subdirectory e.g. /home/rstudio/nlp/shiny/app.R
, it does not get picked up on the url
http://XX.XXXX.XX.XX:3838/nlp/shiny
It throws the error:
Not Found
I have tried the following:
- renaming my subdirectory: no success.
- accessing urls to other preloaded shiny apps, e.g.
http://XX.XXXX.30.42:3838/ShinyApps/sample-apps/hello
: working. - moving my app.R inside the path
/home/rstudio/ShinyApps/sample-apps
: runs successfully - trying to find if any directory names are configured in the shiny config files at
/opt/shiny-server/config
: none found. - reading this FAQ article on Rstudio support: no help
Why is the app.R not getting accessed on my subdirectory under nlp
directory?
I am certain it is not an app initialization problem as the error, in that case, is different. I tried by adding a deliberate bug and this was the error message (of course when the app is placed in some other directory)
An error has occurred The application failed to start. The application
exited during initialization.
But I did not get the same error when the app.R is placed inside nlp/shiny
directory. The Not found
error indicates the subdirectory is not accessible or is incorrect.
Any help will be appreciated.
r shiny
add a comment |
up vote
0
down vote
favorite
I have successfully hosted a shiny app on an Ubuntu server (on AWS) inside the directory /home/rstudio/nlp
so the end file is /home/rstudio/nlp/app.R
and I am able to access it on the internet on the following url:
http://XX.XXXX.XX.XX:3838/nlp
(sorry I have masked the IP address)
but strangely if the same app.R file is placed inside a subdirectory e.g. /home/rstudio/nlp/shiny/app.R
, it does not get picked up on the url
http://XX.XXXX.XX.XX:3838/nlp/shiny
It throws the error:
Not Found
I have tried the following:
- renaming my subdirectory: no success.
- accessing urls to other preloaded shiny apps, e.g.
http://XX.XXXX.30.42:3838/ShinyApps/sample-apps/hello
: working. - moving my app.R inside the path
/home/rstudio/ShinyApps/sample-apps
: runs successfully - trying to find if any directory names are configured in the shiny config files at
/opt/shiny-server/config
: none found. - reading this FAQ article on Rstudio support: no help
Why is the app.R not getting accessed on my subdirectory under nlp
directory?
I am certain it is not an app initialization problem as the error, in that case, is different. I tried by adding a deliberate bug and this was the error message (of course when the app is placed in some other directory)
An error has occurred The application failed to start. The application
exited during initialization.
But I did not get the same error when the app.R is placed inside nlp/shiny
directory. The Not found
error indicates the subdirectory is not accessible or is incorrect.
Any help will be appreciated.
r shiny
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have successfully hosted a shiny app on an Ubuntu server (on AWS) inside the directory /home/rstudio/nlp
so the end file is /home/rstudio/nlp/app.R
and I am able to access it on the internet on the following url:
http://XX.XXXX.XX.XX:3838/nlp
(sorry I have masked the IP address)
but strangely if the same app.R file is placed inside a subdirectory e.g. /home/rstudio/nlp/shiny/app.R
, it does not get picked up on the url
http://XX.XXXX.XX.XX:3838/nlp/shiny
It throws the error:
Not Found
I have tried the following:
- renaming my subdirectory: no success.
- accessing urls to other preloaded shiny apps, e.g.
http://XX.XXXX.30.42:3838/ShinyApps/sample-apps/hello
: working. - moving my app.R inside the path
/home/rstudio/ShinyApps/sample-apps
: runs successfully - trying to find if any directory names are configured in the shiny config files at
/opt/shiny-server/config
: none found. - reading this FAQ article on Rstudio support: no help
Why is the app.R not getting accessed on my subdirectory under nlp
directory?
I am certain it is not an app initialization problem as the error, in that case, is different. I tried by adding a deliberate bug and this was the error message (of course when the app is placed in some other directory)
An error has occurred The application failed to start. The application
exited during initialization.
But I did not get the same error when the app.R is placed inside nlp/shiny
directory. The Not found
error indicates the subdirectory is not accessible or is incorrect.
Any help will be appreciated.
r shiny
I have successfully hosted a shiny app on an Ubuntu server (on AWS) inside the directory /home/rstudio/nlp
so the end file is /home/rstudio/nlp/app.R
and I am able to access it on the internet on the following url:
http://XX.XXXX.XX.XX:3838/nlp
(sorry I have masked the IP address)
but strangely if the same app.R file is placed inside a subdirectory e.g. /home/rstudio/nlp/shiny/app.R
, it does not get picked up on the url
http://XX.XXXX.XX.XX:3838/nlp/shiny
It throws the error:
Not Found
I have tried the following:
- renaming my subdirectory: no success.
- accessing urls to other preloaded shiny apps, e.g.
http://XX.XXXX.30.42:3838/ShinyApps/sample-apps/hello
: working. - moving my app.R inside the path
/home/rstudio/ShinyApps/sample-apps
: runs successfully - trying to find if any directory names are configured in the shiny config files at
/opt/shiny-server/config
: none found. - reading this FAQ article on Rstudio support: no help
Why is the app.R not getting accessed on my subdirectory under nlp
directory?
I am certain it is not an app initialization problem as the error, in that case, is different. I tried by adding a deliberate bug and this was the error message (of course when the app is placed in some other directory)
An error has occurred The application failed to start. The application
exited during initialization.
But I did not get the same error when the app.R is placed inside nlp/shiny
directory. The Not found
error indicates the subdirectory is not accessible or is incorrect.
Any help will be appreciated.
r shiny
r shiny
asked Nov 18 at 12:10
Sanjay Mehrotra
305313
305313
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53360708%2fnot-found-browser-error-when-the-same-app-r-file-is-loaded-inside-a-sub-direct%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown