Re: shiny-server in debian
Hi again,
As previously noted, using your above-linked repo, shiny-server
installs on a new debian sid VM without error. However it doesn't
fully work as expected. Here are a few issues I have noticed.
First, there are missing symlinks at /srv/shiny-server. I think the
expected behaviour is for there to be symbolic links to an index.html
file and a sample apps folder in this location (specifically these
files https://github.com/rstudio/shiny-server/tree/master/samples),
which I believe is configured here
(https://github.com/rstudio/shiny-server/blob/master/packaging/debian-control/postinst.in)
When I move the sample files or my own shiny apps to
/srv/shiny-server, the folder that determines what is hosted, the
server does serve the pages and they render properly. However, when
interacting with the shiny app, it is clear they are not working
properly. The are unresponsive, don't update/produce results and
ultimately timeout/freeze. When I look at the web browser console, it
appears that certain internal javascript files are not being found
(e.g. __assets__/sockjs-0.3.4.min.js).
Finally, I noticed that the server logging is not fully working. The
server is supposed to log to /var/log/shiny-server.log but there is no
such file. On the other hand, it does properly log each individual
app's R output to /var/log/shiny-server/app_name-*.log.
I wonder whether these issues relate to patching it to use the Debian
node dependencies rather than its upstream internal install process?
I hope this is helpful and let me know if you need any clarifications.
Best,
Eric
On Thu, Mar 24, 2022 at 2:33 PM Eric Brown <eb@ericebrown.com> wrote:
>
> Hi Nilesh,
> This is fantastic. I can say right off the bat that it installed and ran just fine when I used your repo per the README. I’m going to do it again on a fresh Debian and try my apps, just to be sure because I had been playing around with some dependencies on this current install.
> Thanks for all your work on this.
> Best,
> Eric
>
> On Thu, Mar 24, 2022 at 13:33 Nilesh Patra <nilesh@nileshpatra.info> wrote:
>>
>> Hi Eric,
>>
>> On 3/24/22 10:05 PM, Eric Brown wrote:
>> > Hi Nilesh,
>> >
>> > I'm not sure whether you are running the current shiny-server version
>> > on salsa (upstream 1.5.14.948) but if so, the errors may be because it
>> > is out of date and subsequent to that release there were some changes
>> > to the iputils.js file
>> > (https://github.com/rstudio/shiny-server/commit/fba8b83ccd58eba1c2118884b25669a1d99ea202).
>> > I wonder if updating to the latest upstream release might fix these
>> > errors?
>>
>> Thanks that helped.
>> I backported selective fixes and got all tests passing and the package building \o/
>>
>> Since you volunteered to test the package once, I have hosted the '.deb' and other '.deb'
>> of its dependencies which are not available in the archive here:
>>
>> https://people.debian.org/~nilesh/shiny-server/
>>
>> Readme should help you pull it w/o hassles. If you want to directly install the '.debs' they are in the
>> pool dir
>>
>> https://people.debian.org/~nilesh/shiny-server/pool/main/
>>
>> Could you please test this? That'd be very helpful.
>>
>> Regards,
>> Nilesh
>>
>>
>>
> --
> Eric Brown MD MSc FRCPC
> For encryption, OpenPGP public key available on request.
--
Eric Brown MD MSc FRCPC
For encryption, OpenPGP public key available on request.
Reply to: