-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic when carbon-relay connects to carbon-cache on ARM/V7 #439
Comments
This is the output with verbose logging: 2020-08-22 18:50:19.847 [INFO] ===== carbon-relay-ng instance 'carbon-relay-ng-7b898f7c97-8jlsj' starting. (version 0.13.0-4-gc9044b5) ===== goroutine 8 [running]: |
Hello,
My carbon-relay container panics when connecting to carbon-cache container on k3s (arm/v7):
[2020-08-21 11:31:05] check if the port 3003 for 'carbon-cache-service' is available
[2020-08-21 11:31:06] ----------------------------------------------------
[2020-08-21 11:31:06] carbon-relay-ng - build:
[2020-08-21 11:31:06] ----------------------------------------------------
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x4 pc=0x11fd0]
goroutine 34 [running]:
github.com/grafana/carbon-relay-ng/statsmt.(*LatencyHistogram15s32).Value(0x2db6000, 0x29936, 0x0)
/opt/go/src/github.com/graphite-ng/carbon-relay-ng/statsmt/latencyhistogram15s32.go:26 +0x5c
github.com/grafana/carbon-relay-ng/statsmt.(*Graphite).writer(0x2d80480)
/opt/go/src/github.com/graphite-ng/carbon-relay-ng/statsmt/out_graphite.go:118 +0x29c
created by github.com/grafana/carbon-relay-ng/statsmt.NewGraphite
/opt/go/src/github.com/graphite-ng/carbon-relay-ng/statsmt/out_graphite.go:52 +0x35c
Maybe you can point me in the right direction.
Im running a K3s cluster on RPI4 (ARM/V7).
A container with carbon-cache is already running.
Now i'm trying to get carbon-relay running by doing the following:
git clone https://github.com/bodsch/docker-carbon-relay-ng
cd docker-carbon-relay-ng
docker buildx build --platform linux/arm/v7 -t containerregistrydcsl.azurecr.io/metrics/docker-carbon-relay-ng --push .
And creating the deployment:
apiVersion: apps/v1
kind: Deployment
metadata:
name: carbon-relay-ng
labels:
app: metrics
spec:
replicas: 2
selector:
matchLabels:
app: metrics
template:
metadata:
labels:
app: metrics
spec:
containers:
image: containerregistrydcsl.azurecr.io/metrics/docker-carbon-relay-ng
env:
value: "carbon-cache-service"
value: "3003"
ports:
imagePullSecrets:
When I start the carbon-relay container from docker on my Mac (x86) it connect to carbon-cache without problems:
docker run -d
-p 2003:2003
-p 2004:2004
--name=docker-carbon-relay
-e GRAPHITE_HOST='192.168.0.202'
-e GRAPHITE_PORT='3003'
-d containerregistrydcsl.azurecr.io/metrics/docker-carbon-relay-ng
Thanks in advance,
Ronald
The text was updated successfully, but these errors were encountered: