[Shiny newb - so phasers set to stun only ;-]
Installing shiny server on CentOS 7 box. Yum installed the latest RPM (1.5.9.923) - no problems. Permanently opened up 3838 in firewall. No problem. Used systemctl to start and enable shiny server, using default config (meaning, usual file locations, and usual 3838 port). No problem.
Point browser at server.name.here:3838, and up pops the sample-apps/hello page.
So, in theory, all good so far.
Problem(s) arise when trying to run a shiny app that isn't one of the sample-apps that comes bundled with the server. Here is what I tried:
1\ on desktop for my main account, created a directory called demo. [demo runs fine using runApp from within an R session - mention this now to prevent the likely 'problem with your R code' suggestion I anticipate...]
2\ then, cd to /srv/shiny-server/sample-apps, and create a symbolic link to the demo directory on my desktop
3\ chown everything to root (also tried shiny, makes no difference).
4\ point browser at server.name.here:3838/sample-apps/demo/, but get the very popular (based on peolle who run into this) 'An error has occurred. The application failed to start. The application exited during initialization'.
5\ so, being well-versed in various things, look at the logs, but see nothing that helps much (typical of most logs...)
su: ignore --preserve-environment, it's mutually exclusive to --login.
-bash: line 0: cd: /srv/shiny-server/sample-apps/demo: Permission denied
The 'Permission denied' bit would suggest permissions, but I used the same permissions as the other samples (e.g., hello), so I'm not convinced it is a simple* permissions issue.
The first line puzzles me completely.
At any rate, looking for pointers to the obvious first things to try...
Many thanks in advance.