shiny-server.service: Supervising process xxx which is not our child. We'll most likely not notice when it exits.

795 views
Skip to first unread message

Tech Arkit

unread,
Jul 29, 2019, 1:24:44 AM7/29/19
to suppor...@googlegroups.com

when i am trying to start the shiny-server its starting two services at the same time, i am getting below error service stops automatically after app getting accessed.



 shiny-server.service - ShinyServer
   Loaded: loaded (/etc/systemd/system/shiny-server.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2019-07-29 15:17:18 AEST; 2s ago
  Process: 4015 ExecStopPost=/usr/bin/sleep 5 (code=exited, status=0/SUCCESS)
  Process: 4018 ExecStartPost=/usr/bin/sleep 3 (code=exited, status=0/SUCCESS)
 Main PID: 4019 (shiny-server)
   CGroup: /system.slice/shiny-server.service
           ├─4017 /usr/bin/bash -c /opt/shiny-server/bin/shiny-server --pidfile=/var/run/shiny-server.pid >> /var/log/shiny-server.log 2>&1
           └─4019 /opt/shiny-server/ext/node/bin/shiny-server /opt/shiny-server/lib/main.js --pidfile=/var/run/shiny-server.pid


Jul 29 15:17:15  systemd[1]: Starting ShinyServer...
Jul 29 15:17:18  systemd[1]: shiny-server.service: Supervising process 4019 which is not our child. We'll most likely not notice when it exits.
Jul 29 15:17:18  systemd[1]: Started ShinyServer.

Tech Arkit

unread,
Jul 29, 2019, 1:55:24 AM7/29/19
to suppor...@googlegroups.com
If you updated your shiny-server version however old version of shiny-server config is not cleaned up above issue will occur. in order to overcome the issue remove the old shiny-server package and re-install it.

Or

install newer version them existing so old version config will auto cleanup by new version.

# systemctl stop shiny-server.service
# systemctl status shiny-server.service
# yum remove shiny-server
# wget https://download3.rstudio.org/centos6.3/x86_64/shiny-server-1.5.9.923-x86_64.rpm
# yum install --nogpgcheck shiny-server-1.5.9.923-x86_64.rpm

Loaded plugins: fastestmirror, langpacks
Examining shiny-server-1.5.9.923-x86_64.rpm: shiny-server-1.5.9.923-1.x86_64
Marking shiny-server-1.5.9.923-x86_64.rpm as an update to shiny-server-1.4.2.786-1.x86_64
Resolving Dependencies
--> Running transaction check
---> Package shiny-server.x86_64 0:1.4.2.786-1 will be updated
---> Package shiny-server.x86_64 0:1.5.9.923-1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================
 Package                                               Arch                                            Version                                                 Repository                                                               Size
=====================================================================================================================================
Updating:
 shiny-server                                          x86_64                                          1.5.9.923-1                                             /shiny-server-1.5.9.923-x86_64                                          229 M

Transaction Summary
=======================================================================================================================================
Upgrade  1 Package

Total size: 229 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : shiny-server-1.5.9.923-1.x86_64                                                                                                                                                                                           1/2
User shiny already exists. Ensuring proper permissions on /home/shiny/.
  Cleanup    : shiny-server-1.4.2.786-1.x86_64                                        2/2

  Verifying  : shiny-server-1.5.9.923-1.x86_64                                      1/2
  Verifying  : shiny-server-1.4.2.786-1.x86_64                                      2/2

Updated:
  shiny-server.x86_64 0:1.5.9.923-1

Complete!

# systemctl restart shiny-server

# systemctl status shiny-server
● shiny-server.service - ShinyServer

   Loaded: loaded (/etc/systemd/system/shiny-server.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2019-07-29 15:25:07 AEST; 5s ago
  Process: 4175 ExecStopPost=/usr/bin/env sleep 5 (code=exited, status=0/SUCCESS)
 Main PID: 4176 (shiny-server)
   CGroup: /system.slice/shiny-server.service
           └─4176 /opt/shiny-server/ext/node/bin/shiny-server /opt/shiny-server/lib/main.js


Reply all
Reply to author
Forward
0 new messages