Issue with Web UI on Mac OS


#1

I just installed Cayley on Mac OS and as I’m trying to access the web UI I’m getting the following:

$ cayley http
ERROR: logging before flag.Parse: E0204 17:44:45.280011   33048 cayley.go:142] The assets flag is deprecated as assets are provided as part of the binary.
I0204 17:44:45.280306   33048 command.go:805] Cayley version: 0.7.7 (dcf764f)
I0204 17:44:45.280727   33048 http.go:20] using backend "memstore"
I0204 17:44:45.280983   33048 command.go:826] listening on 127.0.0.1:64210, web interface at http://127.0.0.1:64210
2020/02/04 17:45:15 http: panic serving 127.0.0.1:64557: runtime error: invalid memory address or nil pointer dereference
goroutine 28 [running]:
net/http.(*conn).serve.func1(0xc000151180)
	/usr/local/Cellar/go/1.13.1/libexec/src/net/http/server.go:1767 +0x139
panic(0x508f7c0, 0x6093b90)
	/usr/local/Cellar/go/1.13.1/libexec/src/runtime/panic.go:679 +0x1b2
html/template.(*Template).lookupAndEscapeTemplate(0x0, 0xc00013a780, 0xa, 0x0, 0x0, 0x0)
[...]

#2

Hello, and thank you for posting.
How did you install Cayley?
Thank you,
Iddan


#3

I used Homebrew, just following the Install instructions


#4

The issue is reproducible on my machine.
While we’re fixing it you can use the UI from: https://cayley-ui.netlify.com/
Or run Cayley through docker: https://github.com/cayleygraph/cayley/blob/master/docs/installation.md#install-cayley-with-docker
Or download the release and run the binary from here: https://github.com/cayleygraph/cayley/releases/download/v0.7.7/cayley_0.7.7_darwin_amd64.tar.gz


#5

I am working on a solution here: https://github.com/Homebrew/homebrew-core/pull/49841


#6

Couldn’t make the build pass. Would love some help with that.


#7

Managed to make build pass. Waiting for approval.


#8

The PR is merged. You can now reinstall Cayley from brew and the problem should be fixed