Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 765856 - sci-mathematics/rstudio rstudio-server doesn't always start on default run level
Summary: sci-mathematics/rstudio rstudio-server doesn't always start on default run level
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mark Wright
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-18 04:02 UTC by viktor.polak
Modified: 2021-06-11 18:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description viktor.polak 2021-01-18 04:02:27 UTC
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
Comment 1 François Valenduc 2021-01-25 16:56:30 UTC
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
Comment 2 viktor.polak 2021-02-18 21:06:57 UTC
I found out that to fix this I needed "need net", not "use net".
Comment 3 Larry the Git Cow gentoo-dev 2021-06-11 18:34:40 UTC
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(-)