Bug 51772 - Не запускается сервис grafana-server.service
Summary: Не запускается сервис grafana-server.service
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: grafana (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-21 20:52 MSK by Aleksandr Sysoev
Modified: 2024-10-23 10:11 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksandr Sysoev 2024-10-21 20:52:41 MSK
server-11.0.alpha20240611-x86-64 обновленный до Sisyphus

grafana-11.2.2-alt1.x86_64

Шаги воспроизведения:
Настроить и запустить grafana:
# cat > /etc/grafana/grafana.ini <<EOF
app_mode = production
instance_name = \${HOSTNAME}
[paths]
data = /var/lib/grafana
logs = /var/log/grafana
plugins = /var/lib/grafana/plugins
[server]
protocol = http
http_addr = $(hostname -i)
http_port = 3000
EOF

# systemctl enable --now grafana-server && sleep 5; systemctl status grafana-server

Ожидаемый результат: сервис стартует успешно
Фактический результат: сервис не стартует

Вывод journalctl:
окт 21 20:41:46 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain grafana[2170]: panic: pattern "GET /debug/pprof/" (registered at /usr/lib/golang/src/net/http/pprof/pprof.go:100) conflicts with pattern "/debug/pprof/delta_heap" (registered at /usr/src/RPM/BUILD/grafana-11.2.2/.gopath/src/github.com/grafana/grafana/vendor/github.com/grafana/pyroscope-go/godeltaprof/http/pprof/pprof.go:24):
окт 21 20:41:46 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain grafana[2170]:         GET /debug/pprof/ matches fewer methods than /debug/pprof/delta_heap, but has a more general path pattern
окт 21 20:41:46 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain grafana[2170]: goroutine 1 [running]:
окт 21 20:41:46 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain grafana[2170]: net/http.(*ServeMux).register(...)
окт 21 20:41:46 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain grafana[2170]:         /usr/lib/golang/src/net/http/server.go:2797
окт 21 20:41:46 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain grafana[2170]: net/http.HandleFunc({0xc00269a2b8?, 0x70e9ca9?}, 0x6396360?)
окт 21 20:41:46 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain grafana[2170]:         /usr/lib/golang/src/net/http/server.go:2791 +0x86
окт 21 20:41:46 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain grafana[2170]: net/http/pprof.init.0()
окт 21 20:41:46 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain grafana[2170]:         /usr/lib/golang/src/net/http/pprof/pprof.go:100 +0x85
окт 21 20:41:46 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain systemd[1]: grafana-server.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
окт 21 20:41:46 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain systemd[1]: grafana-server.service: Failed with result 'exit-code'.
окт 21 20:41:46 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain systemd[1]: Failed to start grafana-server.service - Grafana instance.
Comment 1 Alexander Makeenkov 2024-10-23 10:11:35 MSK
Не воспроизводится в версии grafana-11.2.2-alt2.