Sean-Der / fail2rest

REST server for fail2ban
106 stars 24 forks source link

Error #31

Open Owned67 opened 7 years ago

Owned67 commented 7 years ago

go install -v github.com/Sean-Der/fail2rest github.com/kisielk/og-rek

github.com/kisielk/og-rek

src/github.com/kisielk/og-rek/ogorek.go:677: reflect.TypeOf(key).Comparable undefined (type reflect.Type has no field or method Comparable) src/github.com/kisielk/og-rek/ogorek.go:870: reflect.TypeOf(k).Comparable undefined (type reflect.Type has no field or method Comparable) src/github.com/kisielk/og-rek/ogorek.go:897: reflect.TypeOf(key).Comparable undefined (type reflect.Type has no field or method Comparable)

Sean-Der commented 7 years ago

Hey @Owned67

What version of Golang are you using? I just made some changes to fail2go and AFAIK everything is working (for me at least)

thanks!

Owned67 commented 7 years ago

`apt show golang Package: golang Version: 2:1.3.3-1 Installed-Size: 91,1 kB Maintainer: Go Compiler Team pkg-golang-devel@lists.alioth.debian.org Replaces: golang-weekly Provides: golang-weekly Depends: golang-go (>= 2:1.3.3-1), golang-src (>= 2:1.3.3-1), golang-doc (>= 2:1.3.3-1) Conflicts: golang-weekly Homepage: http://golang.org/ Section: devel Priority: optional Download-Size: 25,0 kB APT-Manual-Installed: yes APT-Sources: http://ftp.fr.debian.org/debian/ jessie/main amd64 Packages Description: Go programming language compiler - metapackage The Go programming language is an open source project to make programmers more productive. Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel type system enables flexible and modular program construction. Go compiles quickly to machine code yet has the convenience of garbage collection and the power of run-time reflection. It's a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language. . This package is a metapackage that, when installed, guarantees that (most of) a full Go development environment is installed.

whereis fail2rest

fail2rest: /usr/`bin/fail2rest /etc/fail2rest.json

`systemctl status fail2rest.service

`mai 03 16:48:54 debian systemd[1]: Started fail2ban REST server. mai 03 16:48:54 debian systemd[62544]: Failed at step EXEC spawning /usr/bin/fail2rest: No such file or directory mai 03 16:48:55 debian systemd[1]: fail2rest.service: main process exited, code=exited, status=203/EXEC mai 03 16:48:55 debian systemd[1]: Unit fail2rest.service entered failed state.

`

artemkaxboy commented 7 years ago

I've got the same error. Do you have any suggestion?