Hello Andreas , hello and sorry Nilesh (for the lack of feedback),

I'm not a Shiny user either (so far), however the plan is for our institute to 
provide Shiny applications for certain users. (I will probably write some of 
these applications at some point, and I also administrate the web server...).

My test system: I have a current Debian sid with R, cleaned from nodejs 
(apt...) and thus without shiny-server.

Now I install the shiny-server (apt install shiny-server).

In the packages r-cran-shiny and shiny-server are sample applications. I copied 
the examples from the r-cran-shiny package (e.g. 
/usr/lib/R/site-library/shiny/examples/01_hello) to /srv/shiny-server and could 
(after restarting shiny-server (systemctl restart shiny-server)) access the 
application via firefox: http://localhost:3838/01_hello/ .

These applications consist of a UI part (user interface) and a result part. In 
the UI part, the web user can set (e.g.) parameters for the display in the 
result part.

The problem: After installation, only the UI part is visible via the web 
browser.
The result part is probably not visible because it does not receive any data 
from the UI part.

With the help of a deb package for the Shiny sever from rstudio and the Debian 
package, I had at some point identified the sockjs installation as the 
problem...

To get the Shiny application running (in the current scenario), I got the 
latest version of sockjs from github, "comped" it with npm () and then replaced 
the javascript files under "/usr/share/nodejs/sockjs/lib/" (from the Debian 
installation) with the files from the sockjs (github) package tree 
".../node_modules/sockjs/lib/".

After restarting the Shiny server, you can now also see the result part in the 
web browser and the Shiny application works. 

I am not a javascript/coffeescript friend or expert. The only thing I could see 
is that both my sockjs scripts and the Debian ones are based on the same github 
version (https://github.com/sockjs/sockjs-node/releases/tag/v0.3.24), but the 
Debian version was generated with coffescript 2.7.0 and "my" version was 
generated with coffescript 1.12.7.

I hope this helps, sincerly,
Sebastian


-----Ursprüngliche Nachricht-----
Von: Andreas Tille <andr...@an3as.eu> 
Gesendet: Sonntag, 22. Januar 2023 09:34
An: Debian Science List <debian-scie...@lists.debian.org>; Debian R 
<debia...@lists.debian.org>; 1017...@bugs.debian.org; Krüger, Sebastian 
<sebastian.krue...@institut-ba.de>; Eric Brown <e...@ericebrown.com>
Betreff: Please help to reproduce (Was: shiny-server: server-function don't run)

Hi Sebastian,

thanks for your bug report and your attempt to track this down by replacing
the sockjs files.  Please note that neither Nilesh nor I are shiny-server
users.  Thus it would help if you could provide a possibly small example that
helps us reproducing the problem.

Kind regards
    Andreas.

-- 
http://fam-tille.de

Reply via email to