Open KaiLemke opened 1 year ago
For comparison: If I start a docker container with https://hub.docker.com/layers/dgraph/standalone/v22.0.1/images/sha256-f649c7e17a0c9c7fd5fce4a0b398c3d16a9ed67bbbb59d3096985f204e091435?context=explore, I get no logs about this acl flag and dgraph version
looks like this:
root@c642d9fce01c:/dgraph# dgraph version
Dgraph version : v22.0.1
Dgraph codename : dgraph
Dgraph SHA-256 : 52c4ae7b827c72a04325af9659642c099faf8f2d7dcb2f2326f777b78cd3b749
Commit SHA-1 : 7fb5291
Commit timestamp : 2022-11-11 04:13:12 +0000
Branch : release/v22.0.1
Go version : go1.18.5
jemalloc enabled : true
For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph , visit https://discuss.dgraph.io.
For fully-managed Dgraph Cloud , visit https://dgraph.io/cloud.
Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2021 Dgraph Labs, Inc.
I get the same failure just running dgraph zero & dgraph alpha
with dgraph from nix shell 'nixpkgs/nixos-22.11#dgraph'
.
The version from nixos-22.05 worked fine, though the version output differed also:
docker dgraph/standalone:21.12.0:
root@8ecde959ca9a:/dgraph# dgraph version
Dgraph version : v21.12.0
Dgraph codename : zion
Dgraph SHA-256 : 078c75df9fa1057447c8c8afc10ea57cb0a29dfb22f9e61d8c334882b4b4eb37
Commit SHA-1 : d62ed5f15
Commit timestamp : 2021-12-02 21:20:09 +0530
Branch : HEAD
Go version : go1.17.3
jemalloc enabled : true
For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph , visit https://discuss.dgraph.io.
For fully-managed Dgraph Cloud , visit https://dgraph.io/cloud.
Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2021 Dgraph Labs, Inc.
nix shell:
/home/kai〉dgraph version 01/14/2023 08:28:15 PM
Dgraph version : 21.12.0-oss
Dgraph codename :
Dgraph SHA-256 : a563adbc35aa085d39b33846b2eb3290594ae441046f5d6ce102968bd36f1c5c
Commit SHA-1 :
Commit timestamp :
Branch :
Go version : go1.17.13
jemalloc enabled : false
For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph , visit https://discuss.dgraph.io.
For fully-managed Dgraph Cloud , visit https://dgraph.io/cloud.
Licensed under the Apache Public License 2.0.
Copyright 2015-2021 Dgraph Labs, Inc.
What's different in 22.11 is, that the go version is different from the official docker image, in 22.05 not.
Hey thanks for reporting ! I havent run dgraph in a whike unfortunately. I see two things that could potentially help.
Update the version of dgraph to the latest.
Check the output of the command journalctl -u dgraph-alpha
There might be additional information in there.
Hi, I tried to upgrade to v22.0.2, but the build failed due to a dependency:
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/65ah74r0hqzajr6cp0z9wswap4xcykn5-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Building subPackage ./dgraph
vendor/golang.org/x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/sys/unix/syscall_linux.go:2255:9: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/sys/unix/syscall_unix.go:118:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
I'm a bit confused, because go.mod lists golang.org/x/sys v0.0.0-20221010170243-090e33056c14
, but https://deps.dev/go/golang.org%2Fx%2Fsys/v0.4.0/versions does not list that version.
Also buildGoModule should use go1.19 - where does the go1.16 come from? I didn't work with buildGoModule before. So sorry, if I'm asking obvious things. ;)
Have you any ideas what's going on here?
For completeness I already started a draft merge request: #212130
Just as foreign to me. I dont know where this could come from.
I tried searching in yhe dgraph repo to see if it wasnt something set there. Couldnt find anything
I also tried changing the go version in nix to 18 and 17, but same failure.
I wish i knew more about go, but unfortunately, im a rust dev.
Describe the bug
Setting up
dgraph
using the optionsservices.dgraph.*
results in a functioningdgraph-zero.service
and a brokendgraph-alpha.service
.It seems to me
dgraph
is complaining about having theacl
flag which is not available / appliacble for the OSS version. But the flag is not set nor are there setting or variables for ACLs.Steps To Reproduce
Steps to reproduce the behavior:
sudo nixos-container create dgraph --flake 'gitlab:dgrow/dgraph.nix/5821e5bd78a39b09a5840e2877e6dbb0b5d6f398#container'
sudo nixos-container start dgraph
sudo nixos-container root-login dgraph
I also tried without
services.settings
andservices.dgraph.*.host
and explicitly setting--acl ""
without effect.Expected behavior
dgraph-alpha.service
starts - at least if the only setting isservices.dgraph.enable
.Screenshots
Notify maintainers
@sigma (package maintainer) @happysalada (module maintainer) @pennae (last module editor)
Metadata
Yes, I know it's broken, but the system is configured via nix flakes only and I don't have problems with containers usually.