goaccess: goacess web 400 Invalid request

I’ve installed goaccess, and no matter what i’ve tried, just can’t make it respond as a service.

The last time i’ve configured it with --enable-debug and all i got now in console, is

ubuntu@nodeB:~$ /usr/local/bin/goaccess -f /var/log/nginx/cache_80.log -o /tmp/report.html --real-time-html --port=8022 --ws-url=127.0.0.1 --addr=127.0.0.1
WebSocket server ready to accept new client connections
Accepted: 12 127.0.0.1
Active: 0
Accepted: 12 127.0.0.1
Active: 0
Accepted: 12 127.0.0.1
Active: 0
Accepted: 12 127.0.0.1
Active: 0
Accepted: 12 127.0.0.1
Accepted: 13 127.0.0.1
Active: 1
Active: 0

but still got “400 Invalid Request”

I’ve followed instructions on https://github.com/allinurl/goaccess/issues/448 and https://github.com/allinurl/goaccess/issues/440 with no luck.

Ubuntu 16.04 goaccess-1.2.tar.gz

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Comments: 19 (7 by maintainers)

Most upvoted comments

i am also having this issue with the latest dev version.

    [user@server logrotate.d]# curl -v http://127.0.0.1:7890/
    * About to connect() to 127.0.0.1 port 7890 (#0)
    *   Trying 127.0.0.1...
    * Connected to 127.0.0.1 (127.0.0.1) port 7890 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: 127.0.0.1:7890
    > Accept: */*
    >
    < HTTP/1.1 400 Invalid Request
    * no chunk, no close, no size. Assume close to signal end
    <
    * Closing connection 0

@allinurl CentOS Linux release 7.3.1611 (Core) goaccess 1.3 version Install goaccess by make

2019-02-27 4 01 00 2019-02-27 4 01 14

Facing same problem here:

curl -v http://127.0.0.1:8080/report.html

  • Trying 127.0.0.1…
  • TCP_NODELAY set
  • Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)

GET /report.html HTTP/1.1 Host: 127.0.0.1:8080 User-Agent: curl/7.58.0 Accept: /

< HTTP/1.1 400 Invalid Request

  • no chunk, no close, no size. Assume close to signal end <
  • Closing connection 0