'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:




  1. renaming my subdirectory: no success.

  2. accessing urls to other preloaded shiny apps, e.g. http://XX.XXXX.30.42:3838/ShinyApps/sample-apps/hello : working.

  3. moving my app.R inside the path /home/rstudio/ShinyApps/sample-apps: runs successfully

  4. trying to find if any directory names are configured in the shiny config files at /opt/shiny-server/config : none found.

  5. 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.










share|improve this question


























    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:




    1. renaming my subdirectory: no success.

    2. accessing urls to other preloaded shiny apps, e.g. http://XX.XXXX.30.42:3838/ShinyApps/sample-apps/hello : working.

    3. moving my app.R inside the path /home/rstudio/ShinyApps/sample-apps: runs successfully

    4. trying to find if any directory names are configured in the shiny config files at /opt/shiny-server/config : none found.

    5. 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.










    share|improve this question
























      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:




      1. renaming my subdirectory: no success.

      2. accessing urls to other preloaded shiny apps, e.g. http://XX.XXXX.30.42:3838/ShinyApps/sample-apps/hello : working.

      3. moving my app.R inside the path /home/rstudio/ShinyApps/sample-apps: runs successfully

      4. trying to find if any directory names are configured in the shiny config files at /opt/shiny-server/config : none found.

      5. 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.










      share|improve this question













      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:




      1. renaming my subdirectory: no success.

      2. accessing urls to other preloaded shiny apps, e.g. http://XX.XXXX.30.42:3838/ShinyApps/sample-apps/hello : working.

      3. moving my app.R inside the path /home/rstudio/ShinyApps/sample-apps: runs successfully

      4. trying to find if any directory names are configured in the shiny config files at /opt/shiny-server/config : none found.

      5. 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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 18 at 12:10









      Sanjay Mehrotra

      305313




      305313





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          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






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          If I really need a card on my start hand, how many mulligans make sense? [duplicate]

          Alcedinidae

          Can an atomic nucleus contain both particles and antiparticles? [duplicate]