rstudio / shiny-server

Host Shiny applications over the web.
https://rstudio.com/shiny/server
Other
712 stars 290 forks source link

Installing via RPM fails. #514

Open j-horner-c4x opened 2 years ago

j-horner-c4x commented 2 years ago

Installing on Amazon Linux 2 via the supplied RPM fails.

Installing shiny-server...
2022-02-16 16:47:34 (119 MB/s) - ‘/tmp/shiny-server-1.5.17.973-x86_64.rpm’ saved [51038424/51038424]

+++ echo 'Installing shiny-server...'
+++ yum localinstall --nogpgcheck -y /tmp/shiny-server-1.5.17.973-x86_64.rpm
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Examining /tmp/shiny-server-1.5.17.973-x86_64.rpm: shiny-server-1.5.17.973-1.x86_64
Marking /tmp/shiny-server-1.5.17.973-x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package shiny-server.x86_64 0:1.5.17.973-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package        Arch     Version        Repository                         Size
================================================================================
Installing:
 shiny-server   x86_64   1.5.17.973-1   /shiny-server-1.5.17.973-x86_64   251 M

Transaction Summary
================================================================================
Install  1 Package

Total size: 251 M
Installed size: 251 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : shiny-server-1.5.17.973-1.x86_64                             1/1
Creating group shiny
Creating user shiny
/var/tmp/rpm-tmp.QIBtkZ: line 14: initctl: command not found
/var/tmp/rpm-tmp.QIBtkZ: line 17: initctl: command not found
  Verifying  : shiny-server-1.5.17.973-1.x86_64                             1/1

Installed:
  shiny-server.x86_64 0:1.5.17.973-1

Complete!

While it it says it completed, the service cannot be found with systemctl.

[root@ip-172-31-41-57 tmp]# systemctl status shiny-server.service
Unit shiny-server.service could not be found.

It looks like this check for systemd may be incorrectly deducing it needs to use initctl: https://github.com/rstudio/shiny-server/blob/dcd2deda4bb3b075c810ed3c25e8b462f9a545c3/packaging/rpm-script/posttrans.sh.in#L7