Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 902459 - www-apps/grafana-bin-9.3.8 and later fails to start after install/upgrade
Summary: www-apps/grafana-bin-9.3.8 and later fails to start after install/upgrade
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-03-20 18:54 UTC by John Einar Reitan
Modified: 2023-03-20 19:17 UTC (History)
0 users

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 John Einar Reitan 2023-03-20 18:54:40 UTC
Grafana upstream has changed how they deploy the server. Up until 9.3.8 grafana-server was a standalone binary, but from 9.3.8 it became a stub for a main grafana binary. The ebuild only installs grafana-server, thus the stub doesn't find the main binary on 9.3.8 and later as not installed.

Reproducible: Always

Steps to Reproduce:
1. emerge =www-apps/grafana-bin-9.3.8
2. /etc/init.d/grafana restart
Actual Results:  
 * Stopping grafana ... [ ok ]
 * Starting grafana ... * start-stop-daemon: /usr/bin/grafana-server died
 * Failed to start grafana
                                                                                                                                                                                   [ !! ]
 * ERROR: grafana failed to start

Expected Results:  
 * Stopping grafana ... [ ok ]
 * Starting grafana ... [ ok ]

Upstream seem to plan to later remove the stub, so best to switch to not depending on the stub once we fix this. Proper launch is to launch main grafana binary with server as argument.
Comment 1 Larry the Git Cow gentoo-dev 2023-03-20 19:17:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c62f15f877fec0ac7c11b5c3c8d3231792ef7f8

commit 7c62f15f877fec0ac7c11b5c3c8d3231792ef7f8
Author:     Patrick Lauer <patrick@gentoo.org>
AuthorDate: 2023-03-20 19:15:58 +0000
Commit:     Patrick Lauer <patrick@gentoo.org>
CommitDate: 2023-03-20 19:17:28 +0000

    www-apps/grafana-bin: Fix installed files
    
    Closes: https://bugs.gentoo.org/902459
    Signed-off-by: Patrick Lauer <patrick@gentoo.org>

 www-apps/grafana-bin/files/grafana.initd2          | 36 ++++++++++++++++++++++
 ...in-9.3.8.ebuild => grafana-bin-9.3.8-r1.ebuild} |  3 +-
 ...in-9.4.3.ebuild => grafana-bin-9.4.3-r1.ebuild} |  3 +-
 3 files changed, 40 insertions(+), 2 deletions(-)