I am trying to open a version of the latest Ratel on my M1 Mac and still have no luck so far. Do you think it’s the M1? I saw this post by @gja: Dgraph now works with Docker Desktop on Apple Silicon but I’m not sure how it works.
I additionally booted up an Ubuntu container and ran it on Docker to install a version of Dgraph, but it’s services are not working even though I have successfully installed Dgraph. I used this guide for Installing Dgraph on Linux as systemctl service: Installing Dgraph on Linux as systemctl service and am stuck on this step:
systemctl daemon-reload
I consistently get the following error:
System has not been booted with systemd as init system (PID 1). Can’t operate.
Failed to connect to bus: Host is down
How can I run Dgraph with the latest ratel on localhost:8000 through the Ubuntu container? Am I getting some logic wrong here?
What do you mean by container? That you run Ubuntu on Docker? Make sure the image has systemctl. Not all images have all tools from the desktop version.
But the question is, why do you need systemctl in docker?
Weird, I have an M1 and Dgraph works fine.
where this error comes from?
First I need to understand what is that. I know container only related to Docker, K8s and also some distros has its native support for “docker-like containers”. But when you say the word “container” along with “Ubuntu” and “Docker” in the same phrase, I think you are talking about something else.
You can use the standalone image Docker
and the Ratel image Docker
I’m no longer with dgraph, so please don’t take my answer as canon/may be outdated (I’m responding since I’m tagged):
I don’t think most people really need to run ratel themselves, you can just use the version of ratel hosted at https://play.dgraph.io and point it at their local dgraph instance (by entering http://localhost:8080 on the web interface)
Since ratel is in browser Javascript, the api calls go directly from your browser to your dgraph instance (ie: it does NOT go via the cloud, or via dgraph servers).
My setup was to run dgraph with docker via the command here: https://dgraph.io/docs/get-started/ (you can add —platform linux/amd64 in order to suppress a warning, but it’s optional). And use the version of ratel at dgraph play.
Thanks @MichelDiz and Tejas! I was trying to run it on Ubuntu because I read that that’s the only way I get to try out enterprise features? I guess I don’t need to worry about that? I was a little concerned because I read this post http://discuss.dgraph.io/t/dropping-support-for-windows-and-mac/12913/11 but perhaps this information is now outdated and dgraph on docker on m1 works just fine?
The error above came when I was running Dgraph on Ubuntu on Docker on M1, got a bit too creative there perhaps?
System has not been booted with systemd as init system (PID 1). Can’t operate.
Failed to connect to bus: Host is down
That post is still valid, the point is that the native binary for those OS will not be supported. Only docker. The version of the processor is a totally different story.
This error looks something related to the OS(in the case systemd)