Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-11129

[net-kit] www-apps/grafana-bin-9.4.7 grafana-server does not start after install due to missing binary

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Severe (Ebuild) Severe (Ebuild)
    • None
    • None
    • grafana users trying to upgrade

      After recently upgrading from www-apps/grafana-bin-9.3.6 to www-apps/grafana-bin-9.4.7 and restarting the service via the OpenRC init script, Grafana failed to start.

      Expected behavior is for everything to work after a Grafana upgrade and the new Golang binary simple will start back up.

      After digging a little deeper and invoking the same binary that /etc/init.d/grafana does locally on Funtoo Linux, /usr/bin/grafana-server in this scenario, I found the issue:

      grafana-server
      Error locating grafana: exec: "grafana": executable file not found in $PATH
      

      It looks like the new version of Grafana is expecting another Golang binary to be present locally.

      Doing some even deeper digging into the upstream tarball I found the root cause:

      wget https://dl.grafana.com/oss/release/grafana-9.4.7.linux-amd64.tar.gz
      tar tzvf grafana-9.4.7.linux-amd64.tar.gz | grep bin
      drwxr-xr-x root/root         0 2023-03-16 17:03 grafana-9.4.7/bin
      -rwxr-xr-x root/root 134009568 2023-03-16 17:03 grafana-9.4.7/bin/grafana
      -rwxr-xr-x root/root   1473264 2023-03-16 17:03 grafana-9.4.7/bin/grafana-cli
      -rw-r--r-- root/root        33 2023-03-16 17:03 grafana-9.4.7/bin/grafana-cli.md5
      -rwxr-xr-x root/root   1473264 2023-03-16 17:03 grafana-9.4.7/bin/grafana-server
      -rw-r--r-- root/root        33 2023-03-16 17:03 grafana-9.4.7/bin/grafana-server.md5
      -rw-r--r-- root/root        33 2023-03-16 17:03 grafana-9.4.7/bin/grafana.md5
      

      So it looks like the autogen ebuild template needs to be updated to include another dobin line to include the new bin/grafana binary, which can go on line 45 of kit-fixups/net-kit/curated/www-apps/grafana-bin/templates/grafana-bin.tmpl

       

            siris siris
            siris siris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: