# Zeros are working but alphas are not

**URL:** <https://discuss.dgraph.io/t/zeros-are-working-but-alphas-are-not/8264>\
**Category:** Issues\
**Tags:** untagged, charts\
**Created:** [March 24, 2020, 1:25pm UTC](https://discuss.dgraph.io/t/zeros-are-working-but-alphas-are-not/8264 "2020-03-24T13:25:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [March 24, 2020, 1:25pm UTC](https://discuss.dgraph.io/t/zeros-are-working-but-alphas-are-not/8264/1 "2020-03-24T13:25:04Z")

</div>

**Moved from GitHub [charts/12](https://github.com/dgraph-io/charts/issues/12)**

_Posted by_ [ruanwz](https://github.com/ruanwz):

When running helm install, alphas have following invalid address errors:

```auto
2020/03/24 13:21:01 dgraph3-dgraph-alpha-2.dgraph3-dgraph-alpha-headless.default.svc.cluster.local.:7080 is not valid address
github.com/dgraph-io/dgraph/x.AssertTruef
	/tmp/go/src/github.com/dgraph-io/dgraph/x/error.go:88
github.com/dgraph-io/dgraph/worker.StartRaftNodes
	/tmp/go/src/github.com/dgraph-io/dgraph/worker/groups.go:84
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run.func4
	/tmp/go/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:645
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1357

```

But everything are fine in zeros. Is that anything wrong when checking --my parameter for alpha?

```auto
I0324 12:46:54.069770 1 pool.go:160] CONNECTING to dgraph003-dgraph-zero-1.dgraph003-dgraph-zero-headless.default.svc.cluster.local.:5080

```

---

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [April 1, 2020, 7:38am UTC](https://discuss.dgraph.io/t/zeros-are-working-but-alphas-are-not/8264/2 "2020-04-01T07:38:21Z")

</div>

[ruanwz](https://github.com/ruanwz) _commented_ :

to bypass the --my parameter checking, I changed alpha-statefulset.yaml as below, now the problem is fixed.

```auto

< [[`hostname` =~ -([0-9]+)$ ]] || exit 1
< idx=${BASH_REMATCH[1]}
< dgraph alpha --my={{ template "dgraph.alpha.fullname" . }}-$idx.{{ template "dgraph.alpha.fullname" . }}-headless.${POD_NAMESPACE}.svc.cluster.local:7080 --lru_mb {{ .Values.alpha.lru_mb }} --zero {{ template "dgraph.zero.fullname" . }}-0.{{ template "dgraph.zero.fullname" . }}-headless.${POD_NAMESPACE}.svc.cluster.local:5080
---
> dgraph alpha --my=$(hostname -f):7080 --lru_mb {{ .Values.alpha.lru_mb }} --zero {{ template "dgraph.zero.fullname" . }}-0.{{ template "dgraph.zero.fullname" . }}-headless.${POD_NAMESPACE}.svc.cluster.local:5080

```

---

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [April 1, 2020, 9:09am UTC](https://discuss.dgraph.io/t/zeros-are-working-but-alphas-are-not/8264/3 "2020-04-01T09:09:04Z")

</div>

[ruanwz](https://github.com/ruanwz) _commented_ :

if it still has problem, replace with ip (hostname -i) should work:

```auto
dgraph alpha --my=$(hostname -i):7080 --lru_mb {{ .Values.alpha.lru_mb }} --zero {{ template "dgraph.zero.fullname" . }}-0.{{ template "dgraph.zero.fullname" . }}-headless.${POD_NAMESPACE}.svc.cluster.local:5080

```

---

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [July 11, 2020, 4:37am UTC](https://discuss.dgraph.io/t/zeros-are-working-but-alphas-are-not/8264/4 "2020-07-11T04:37:38Z")

</div>

Closed on July 11, 2020, 4:37am UTC


