starting the service on boot results in: rserver[3604]: ERROR asio.netdb error 1 (host not found (authoritative))... restarting the crashed service once computer fully turned on works. was happening on a work network, not while at home, both are dhcp solution: adding net dependency in service file fixes the issue and rstudio-server will always start in the default run level depend() { use net } Reproducible: Sometimes Steps to Reproduce: 1. be on a network where dhcp may be slower 2. rstudio will probably run before networkmanager 3. Actual Results: see description Expected Results: service starts during boot solution provided
I can confirm this also occurs with systemd. If you use it, just copy the rstudio-verer files from /usr/lib/systemd/system/rstudio-server.service to /etc/systemd/system/rstudio-server.service and add this line in the Unit section: After=network.target
I found out that to fix this I needed "need net", not "use net".
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3ca911b12cb1ec292f6d15535c0beef3faa0549 commit e3ca911b12cb1ec292f6d15535c0beef3faa0549 Author: Pacho Ramos <pacho@gentoo.org> AuthorDate: 2021-06-11 18:27:50 +0000 Commit: Pacho Ramos <pacho@gentoo.org> CommitDate: 2021-06-11 18:34:34 +0000 sci-mathematics/rstudio: Fix server startup scripts Closes: https://bugs.gentoo.org/765856 Thanks-to: viktor.polak Thanks-to: François Valenduc Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Pacho Ramos <pacho@gentoo.org> sci-mathematics/rstudio/files/rstudio-server.initd | 6 +++++- sci-mathematics/rstudio/files/rstudio-server.service.in | 1 + .../rstudio/{rstudio-1.3.1093.ebuild => rstudio-1.3.1093-r1.ebuild} | 0 3 files changed, 6 insertions(+), 1 deletion(-)