Giter Club home page Giter Club logo

stathub-go's Introduction

Stat Hub

License GoDoc Build Status Go Report Card Download Total Paypal Donate

A smart Hub for holding server stat

中文说明 | English README

Overview

Stat Hub is a service for collecting and displaying servers stat.

Stat Hub have two parts, one is the SERVER for recving, storing and displaying stat, the other is the CLIENT for collecting and sending stat to SERVER. Just ONE binary files is needed for all of this.

DEMO

demo

Feature

  • Powered by Golang
  • Only one binary files, collecting and displaying data
  • Easy deploy, no depends, no database required
  • SSL support, your domain support, secure and easy

Install

You shall choose a server for master, and install it following the below

Linux via curl

curl --insecure https://raw.githubusercontent.com/likexian/stathub-go/master/setup.sh | sh

Linux via wget

wget --no-check-certificate -O - https://raw.githubusercontent.com/likexian/stathub-go/master/setup.sh | sh

Open on your PC browser

For most systems, it will install and start after this, now you can view it via your PC browser.

The default url is

https://ip:15944

Then enter the default password: likexian

Add a CLIENT (node)

Follow the guide

https://ip:15944/help

FAQ

  • A client added, but no list on the page ?

    Please refer to the client.log on the node, it may show what is wrong.

  • Can I use my domain instead of the https://ip:15944 ?

    Yes, please add an A record on your dns server for one subdomain, then using https://subdomain.yourdomain:15944 .

  • Can I use https for visist ?

    Sure, it is SSL by default, using self-signed cert.

  • Cal I use my SSL cert, not the self-signed one ?

    Yes, please replace the cert in the cert dir, and it strong recommend that doing this.

  • Can I deploy it with my nginx ?

Sure, please add the folling config to nginx conf file.

location / {
    proxy_pass https://127.0.0.1:15944;
    proxy_set_header X-Real-IP $remote_addr;
}

Dependencies

LICENSE

Copyright 2015-2019 Li Kexian

Licensed under the Apache License 2.0

About

DONATE

stathub-go's People

Contributors

gensmusic avatar likexian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stathub-go's Issues

客户端到服务器的网络不稳定时,大量重复错误日志

观察到两台位于大陆地区的客户端无法稳定地向海外服务器报送数据,日志文件中有大量错误记录行。

基本都是以下两类:

 334807行
ERROR] send stat failed, Post https://1.2.3.4:15944/api/stat: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

  67706行
ERROR] send stat failed, Post https://1.2.3.4:15944/api/stat: dial tcp 1.2.3.4:15944: connect: connection refused

因为我有一段时间没关注软件的运行情况,没及时发现并排查解决问题,所以日志增长很快。也许其他用户也可能有网络不稳定的问题,软件是否可考虑降低网络不稳定情况下的重试频率,或合并错误日志行并定时清除?

以下为错误日志的排查详情:

ubuntu@client:/usr/local/stathub$ ll -h log/
total 72M
drwxr-xr-x 2 nobody nogroup 4.0K Sep  6 11:58 ./
drwxr-xr-x 4 nobody nogroup 4.0K Sep  5 16:50 ../
-rw-r--r-- 1 nobody nogroup  72M Dec  7 20:56 stathub.log
-rw-r--r-- 1 root   root       6 Sep  6 11:58 stathub.pid

ubuntu@client:/usr/local/stathub$ awk '{print $1}' log/stathub.log | sort | uniq -c
   1283 2019-09-05
   4318 2019-09-06
   4320 2019-09-07
   4320 2019-09-08
   4320 2019-09-09
   4320 2019-09-10
   4320 2019-09-11
   4320 2019-09-12
   4320 2019-09-13
   4320 2019-09-14
   4320 2019-09-15
   4320 2019-09-16
   4320 2019-09-17
   4320 2019-09-18
   4320 2019-09-19
   4320 2019-09-20
   4320 2019-09-21
   4320 2019-09-22
   4320 2019-09-23
   4320 2019-09-24
   4320 2019-09-25
   4320 2019-09-26
   4320 2019-09-27
   4320 2019-09-28
   4320 2019-09-29
   4320 2019-09-30
   4320 2019-10-01
   4320 2019-10-02
   4320 2019-10-03
   4320 2019-10-04
   4320 2019-10-05
   4320 2019-10-06
   4320 2019-10-07
   4320 2019-10-08
   4320 2019-10-09
   4320 2019-10-10
   4320 2019-10-11
   4320 2019-10-12
   4320 2019-10-13
   4320 2019-10-14
   4320 2019-10-15
   4320 2019-10-16
   4320 2019-10-17
   4320 2019-10-18
   4320 2019-10-19
   4320 2019-10-20
   4320 2019-10-21
   4320 2019-10-22
   4320 2019-10-23
   4320 2019-10-24
   4320 2019-10-25
   4320 2019-10-26
   4320 2019-10-27
   4320 2019-10-28
   4320 2019-10-29
   4320 2019-10-30
   4320 2019-10-31
   4320 2019-11-01
   4320 2019-11-02
   4320 2019-11-03
   4320 2019-11-04
   4320 2019-11-05
   4320 2019-11-06
   4320 2019-11-07
   4320 2019-11-08
   4320 2019-11-09
   4320 2019-11-10
   4320 2019-11-11
   4320 2019-11-12
   4320 2019-11-13
   4320 2019-11-14
   4320 2019-11-15
   4320 2019-11-16
   4320 2019-11-17
   4320 2019-11-18
   4320 2019-11-19
   4322 2019-11-20
   4320 2019-11-21
   4320 2019-11-22
   4320 2019-11-23
   4320 2019-11-24
   4320 2019-11-25
   4320 2019-11-26
   4320 2019-11-27
   4320 2019-11-28
   4320 2019-11-29
   4320 2019-11-30
   4320 2019-12-01
   4320 2019-12-02
   4320 2019-12-03
   4320 2019-12-04
   4320 2019-12-05
   4315 2019-12-06
   3774 2019-12-07

ubuntu@client:/usr/local/stathub$ sudo grep "cancel" log/stathub.log > ~/a.log

ubuntu@client:/usr/local/stathub$ sudo grep "refused" log/stathub.log > ~/b.log

ubuntu@client:/usr/local/stathub$ sudo grep -v "refused" log/stathub.log > ~/c.log

ubuntu@client:/usr/local/stathub$ sudo grep -v "cancel" ~/c.log > ~/d.log

ubuntu@client:/usr/local/stathub$ ll -h ~/*.log
-rw-r--r-- 1 ubuntu ubuntu  63M Dec  7 21:18 /home/ubuntu/a.log
-rw-r--r-- 1 ubuntu ubuntu 9.7M Dec  7 21:18 /home/ubuntu/b.log
-rw-r--r-- 1 ubuntu ubuntu  63M Dec  7 21:19 /home/ubuntu/c.log
-rw-r--r-- 1 ubuntu ubuntu 5.4K Dec  7 21:19 /home/ubuntu/d.log

ubuntu@client:/usr/local/stathub$ rm ~/c.log

ubuntu@client:/usr/local/stathub$ cd

ubuntu@client:~$ awk '{print $1}' a.log | uniq -c
   1281 2019-09-05
   4314 2019-09-06
   4320 2019-09-07
   4320 2019-09-08
   4320 2019-09-09
   4320 2019-09-10
   4320 2019-09-11
   4320 2019-09-12
   4320 2019-09-13
   4320 2019-09-14
   4320 2019-09-15
   4320 2019-09-16
   4320 2019-09-17
   4320 2019-09-18
   4320 2019-09-19
   4320 2019-09-20
   4320 2019-09-21
   4320 2019-09-22
   4320 2019-09-23
   4320 2019-09-24
   4320 2019-09-25
   4320 2019-09-26
   4320 2019-09-27
   4320 2019-09-28
   4320 2019-09-29
   4320 2019-09-30
   4320 2019-10-01
   4320 2019-10-02
   4320 2019-10-03
   4320 2019-10-04
   4320 2019-10-05
   4320 2019-10-06
   4320 2019-10-07
   4311 2019-10-08
   4320 2019-10-09
   4320 2019-10-10
   4320 2019-10-11
   4320 2019-10-12
   4320 2019-10-13
   4320 2019-10-14
   4320 2019-10-15
   4320 2019-10-16
   4320 2019-10-17
   4320 2019-10-18
   4318 2019-10-19
   4320 2019-10-20
   4320 2019-10-21
   4320 2019-10-22
   4320 2019-10-23
   4320 2019-10-24
   4320 2019-10-25
   4320 2019-10-26
   4320 2019-10-27
   4320 2019-10-28
   4320 2019-10-29
   4320 2019-10-30
   4320 2019-10-31
   4320 2019-11-01
   4320 2019-11-02
   4320 2019-11-03
   4320 2019-11-04
   4320 2019-11-05
   4320 2019-11-06
   4320 2019-11-07
   4320 2019-11-08
   4320 2019-11-09
   4318 2019-11-10
   4320 2019-11-11
   4320 2019-11-12
   4320 2019-11-13
   4307 2019-11-14
   4320 2019-11-15
   4317 2019-11-16
   4320 2019-11-17
   4320 2019-11-18
   4320 2019-11-19
   2307 2019-11-20
     23 2019-11-21
      3 2019-11-22
     46 2019-11-23
   1323 2019-11-24
     62 2019-11-25
      8 2019-11-26
      8 2019-11-27
      5 2019-11-28
      1 2019-11-29
      1 2019-11-30
      2 2019-12-01
      7 2019-12-02
     17 2019-12-03
     22 2019-12-04
     52 2019-12-05
   1844 2019-12-06
   3830 2019-12-07

ubuntu@client:~$ awk '{print $1}' b.log | uniq -c
      2 2019-09-06
   2015 2019-11-20
   4297 2019-11-21
   4317 2019-11-22
   4272 2019-11-23
   2997 2019-11-24
   4257 2019-11-25
   4312 2019-11-26
   4312 2019-11-27
   4315 2019-11-28
   4319 2019-11-29
   4319 2019-11-30
   4318 2019-12-01
   4313 2019-12-02
   4299 2019-12-03
   4298 2019-12-04
   4268 2019-12-05
   2471 2019-12-06
      5 2019-12-07

ubuntu@client:~$ sed 's/.*\[//g' a.log | uniq -c
 334807 ERROR] send stat failed, Post https://1.2.3.4:15944/api/stat: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

ubuntu@client:~$ sed 's/.*\[//g' b.log | uniq -c
  67706 ERROR] send stat failed, Post https://1.2.3.4:15944/api/stat: dial tcp 1.2.3.4:15944: connect: connection refused

Installation script issue.

Can't install master using proposed installation script:

wget --no-check-certificate -O - https://raw.githubusercontent.com/likexian/stathub-go/master/setup.sh | sh
--2016-02-26 15:12:13-- https://raw.githubusercontent.com/likexian/stathub-go/master/setup.sh
....
Length: 2124 (2.1K) [text/plain]
Saving to: “STDOUT”

100%[===============================================================================================================================>] 2,124 --.-K/s in 0s

2016-02-26 15:12:14 (604 MB/s) - written to stdout [2124/2124]

sh: line 8: syntax error near unexpected token else' sh: line 8:else'

GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)

逻辑优化:客户端部署

on 32 bits node
$ wget http://IP:15944/static/client_x86 -O client
on 64 bits node
$ wget http://IP:15944/static/client_x86_64 -O client

可优化为:wget http://IP:15944/static/client_$(uname -m) -O stathub_client && chmod +x stathub_client

引入workspace改善文件组织结构

目录结构:

bin/
    server_x86
    server_x86_64
    server_start.sh
    server_stop.sh
    client_x86
    client_x86_64
src/
    server/
        .....
    client/
        .....

构建过程:

GOOS=linux GOARCH=386   go build -o bin/server_x86    server
GOOS=linux GOARCH=amd64 go build -o bin/server_x86_64 server
GOOS=linux GOARCH=386   go build -o bin/client_x86    client
GOOS=linux GOARCH=amd64 go build -o bin/client_x86_64 client

see https://golang.org/doc/code.html
see https://github.com/golang/go/wiki/GithubCodeLayout

rc.local的两个问题

你好,我用的Ubuntu,反馈以下两个问题。

1、有些版本(如oracle的ubuntu 18镜像)没有rc.local文件,也没有调用rc.local的/etc/init.d/rc.local文件,安装时有如下错误:

2019-12-06 07:46:49 (7.37 MB/s) - ‘stathub.x86_64.tar.gz’ saved [2744821/2744821]

grep: /etc/rc.local: No such file or directory
----------------------------------------------------
| Client install successful, Please start it using |
| ./service {start|stop|restart}                   |
| Now it will automatic start                      |
|                                                  |
| Feedback: https://github.com/likexian/stathub-go |
| Thank you for your using, By Li Kexian           |
| StatHub, Apache License, Version 2.0             |
----------------------------------------------------
starting
ok

2、16.04和18.03两个版本的rc.local默认最后一行是exit 0,stathub的启动命令默认被放在了此行后面,造成了重启后服务不会自动启动。

errors after setup.sh

server_x86_64.tar.gz 100%> [===================================================================================================================>] 1.87M 86.4KB/s in 23s

2016-03-18 15:16:35 (81.5 KB/s) - ‘server_x86_64.tar.gz’ saved [1955924/1955924]

| Server install sucessful, Please start it using |
| ./service {start|stop|restart} |
| Now it will automatic start |
| |
| Feedback: https://github.com/likexian/stathub-go |
| Thank you for your using, By Li Kexian |

| StatHub, Apache License, Version 2.0 |

starting

ok

| Please open the below URL on your PC browser: |
| https://this-server-ip:15944 |
| Default password: likexian |
| |
| Feedback: https://github.com/likexian/stathub-go |
| Thank you for your using, By Li Kexian |

| StatHub, Apache License, Version 2.0 |

wget is a tracked alias for /usr/bin/wget
--2016-03-18 15:16:36-- https://127.0.0.1:15944/node?key=4d09165f3ad77f160372e367ece6baef
Connecting to 127.0.0.1:15944... failed: Connection refused.

I can't connect to https://127.0.0.1:15944 with chrome or firefox.
Also there is an error in the log above when i run curl --insecure https://raw.githubusercontent.com/likexian/stathub-go/master/setup.sh | sh

I check the /var/stathub/data and the log file is empty.
My OS is ubuntu 15.04 and 15.10(tried with two machines with same errors)

使用 ./service stop 进程并没有被杀死

使用了 ./service stop 进程并没有被杀死,pid 文件倒是被删掉了
看了一下 service 源码

stop() {
    echo "stopping"
    if [ -f $PID ]; then
        kill `cat $PID`
        rm -rf $PID
        echo "ok"
    fi
}

建议使用 kill -9 强制杀死
kill 会发送 SIGTERM 信号给程序,然后看程序怎么做了
kill -9 会发送 SIGKILL 信号给程序,强杀

优化建议:服务端和客户端程序体积压缩

➜  stathub  du -hs *
4.9M    client_x86
6.1M    client_x86_64
5.6M    server_x86
6.9M    server_x86_64
➜  stathub  strip *
➜  stathub  du -hs *
3.4M    client_x86
4.3M    client_x86_64
3.9M    server_x86
4.9M    server_x86_64
➜  stathub  goupx client_x86 client_x86_64 server_x86 server_x86_64
2015/04/16 21:50:47 {Class:ELFCLASS32 Data:ELFDATA2LSB Version:EV_CURRENT OSABI:ELFOSABI_NONE ABIVersion:0 ByteOrder:LittleEndian Type:ET_EXEC Machine:EM_386 Entry:134734320}
2015/04/16 21:50:47 File fixed!
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2013
UPX 3.91        Markus Oberhumer, Laszlo Molnar & John Reiser   Sep 30th 2013

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
   3499380 ->   1173980   33.55%  linux/elf386   client_x86                    

Packed 1 file.
2015/04/16 21:50:49 {Class:ELFCLASS64 Data:ELFDATA2LSB Version:EV_CURRENT OSABI:ELFOSABI_NONE ABIVersion:0 ByteOrder:LittleEndian Type:ET_EXEC Machine:EM_X86_64 Entry:4439776}
2015/04/16 21:50:49 Hemming PT_LOAD section
2015/04/16 21:50:49 File fixed!
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2013
UPX 3.91        Markus Oberhumer, Laszlo Molnar & John Reiser   Sep 30th 2013

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
   4425040 ->   1281052   28.95%  linux/ElfAMD   client_x86_64                 

Packed 1 file.
2015/04/16 21:50:50 {Class:ELFCLASS32 Data:ELFDATA2LSB Version:EV_CURRENT OSABI:ELFOSABI_NONE ABIVersion:0 ByteOrder:LittleEndian Type:ET_EXEC Machine:EM_386 Entry:134744352}
2015/04/16 21:50:50 File fixed!
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2013
UPX 3.91        Markus Oberhumer, Laszlo Molnar & John Reiser   Sep 30th 2013

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
   4015892 ->   1310984   32.64%  linux/elf386   server_x86                    

Packed 1 file.
2015/04/16 21:50:52 {Class:ELFCLASS64 Data:ELFDATA2LSB Version:EV_CURRENT OSABI:ELFOSABI_NONE ABIVersion:0 ByteOrder:LittleEndian Type:ET_EXEC Machine:EM_X86_64 Entry:4454368}
2015/04/16 21:50:52 Hemming PT_LOAD section
2015/04/16 21:50:52 File fixed!
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2013
UPX 3.91        Markus Oberhumer, Laszlo Molnar & John Reiser   Sep 30th 2013

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
   5060656 ->   1430780   28.27%  linux/ElfAMD   server_x86_64                 

Packed 1 file.
➜  stathub  du -hs *
1.2M    client_x86
1.3M    client_x86_64
1.3M    server_x86
1.4M    server_x86_64

goupx
空间开销可从24MiB压缩至5MiB

请求下个版本 可以自定义服务器Name

现在是从子机器直接提取Name 并不能自定义,请求下个版本加入自定义,以及api 调用 可以把一些不重要的数据,比如流量 放开查看。。这样就不需要每次输入密码查看了。

关于信息列的两个反馈

1、是否可以考虑将“是否需要重启”加入信息列。系统定时更新后,有时ssh登陆后会提示系统需要重启,Ubuntu此现象挺普遍,也许这是个挺有用的信息。

2、标识客户端状态的圆圈的颜色对一些人(比如我)来说也许不够鲜明,不认真辨别,我基本是分不清三种状态的颜色的。

客户端列表清空,以及stop似乎不能终止进程

发现一些未知原因可能导致客户端列表清空,以及./service stop似乎不能按预期终止进程。

两个出现客户端列表清空的情景:
1、服务端正常运行中,修改了rc.local,然后大意重新运行了/etc/rc.local,之后页面上的客户端消失了,显示“No data yet, please add nodes following the guide.”
2、正常运行了2个多小时后,发现客户端列表突然被清空了,显示“No data yet, please add nodes following the guide.”

image

解决问题的终端输出记录,显示stop未能终止进程:

在此之前运行了过一次`service stop`了,输出结果除了stopping还有前面的一行,不过输出被覆盖掉看不到了。

root@vps:/usr/local/stathub# ps aux | grep stat
nobody    6332  0.0  3.7 110764 38072 ?        Ssl  05:45   0:23 ./stathub -c conf/stathub.conf
root     20674  0.0  0.0  12944   936 pts/2    S+   12:42   0:00 grep --color=auto stat

root@vps:/usr/local/stathub# ./service stop
stopping

root@vps:/usr/local/stathub# ps aux | grep stat
nobody    6332  0.0  3.7 110764 38072 ?        Ssl  05:45   0:23 ./stathub -c conf/stathub.conf
root     20678  0.0  0.0  12944   904 pts/2    S+   12:42   0:00 grep --color=auto stat

root@vps:/usr/local/stathub# kill 6332

root@vps:/usr/local/stathub# ps aux | grep stat
root     20767  0.0  0.0  12944   936 pts/2    S+   12:45   0:00 grep --color=auto stat

root@vps:/usr/local/stathub# rm -f log/stathub.pid

root@vps:/usr/local/stathub# ./service start >>/usr/local/stathub/log/stathub.log 2>&1

然后页面恢复正常了。

能否在列表里面添加一个主机标识呢

image
能否在列表里面添加一个主机标识呢,在启动client的时候,后面添加一个参数,或者在安装client的时候在client.json中添加一个参数来说明这个主机是干什么的呢。
例如:
image

nginx反代感觉有点问题啊

location /stathub/ {
proxy_pass https://127.0.0.1:15944/;
proxy_set_header X-Real-IP $remote_addr; #
}

我把它写在配置文件里 不管 proxy_pass 后面的地址 是否加/ ,都会跳转到 localhost/login
而本应该跳转到 localhost/stathub/login
感觉像是写死了跳转

日志异常,太多“too many open files; retrying in 1s”

环境:服务端、Ubuntu 16、版本v0.102.3 Beta。

偶然输出日志,发现文件过大,查了下发现很多“too many open files; retrying in 1s”错误和“unsupported value: NaN”错误,下面是日志异常的具体情况:

异常行举例:

2019/09/13 10:43:25 http: Accept error: accept tcp [::]:15944: accept4: too many open files; retrying in 1s

2019-12-06 12:26:23 [ERROR] get stat failed: json: unsupported value: NaN

异常统计:

root@vps:/usr/local/stathub# ll -h log/stathub.log
-rw-r--r-- 1 nobody nogroup 683M Dec  6 12:24 log/stathub.log

root@vps:/usr/local/stathub# grep many log/stathub.log | wc -c
707339852

root@vps:/usr/local/stathub# wc -l log/stathub.log
6660045 log/stathub.log

root@vps:/usr/local/stathub# grep many log/stathub.log | wc -l
6549406

root@vps:/usr/local/stathub# grep many log/stathub.log | awk '{print $1}' | sort | uniq -c
      9 2019-09-05
  51805 2019/09/05
     12 2019-09-06
  78531 2019/09/06
  86372 2019/09/07
  86367 2019/09/08
  86365 2019/09/09
  86366 2019/09/10
  86367 2019/09/11
  86369 2019/09/12
  86366 2019/09/13
  86368 2019/09/14
  86371 2019/09/15
  86513 2019/09/16
  86347 2019/09/17
  86352 2019/09/18
  86355 2019/09/19
  86316 2019/09/20
  86211 2019/09/21
  86170 2019/09/22
  86266 2019/09/23
  86489 2019/09/24
  86357 2019/09/25
  86359 2019/09/26
  86357 2019/09/27
  86368 2019/09/28
  86370 2019/09/29
  86363 2019/09/30
  86366 2019/10/01
  86361 2019/10/02
  86355 2019/10/03
  86360 2019/10/04
  86361 2019/10/05
  86362 2019/10/06
  86347 2019/10/07
  86348 2019/10/08
  86288 2019/10/09
  86283 2019/10/10
  86320 2019/10/11
  86323 2019/10/12
  86325 2019/10/13
  86357 2019/10/14
  86319 2019/10/15
  85938 2019/10/16
  86342 2019/10/17
  86342 2019/10/18
  86309 2019/10/19
  86357 2019/10/20
  86358 2019/10/21
  86368 2019/10/22
  86524 2019/10/23
  86356 2019/10/24
  86350 2019/10/25
  86357 2019/10/26
  86365 2019/10/27
  86361 2019/10/28
  86370 2019/10/29
  86330 2019/10/30
  86347 2019/10/31
  86366 2019/11/01
  86368 2019/11/02
  86359 2019/11/03
  86368 2019/11/04
  86365 2019/11/05
  86365 2019/11/06
  86368 2019/11/07
  86369 2019/11/08
  86368 2019/11/09
  86359 2019/11/10
  86370 2019/11/11
  86363 2019/11/12
  86370 2019/11/13
  86357 2019/11/14
  86367 2019/11/15
  86357 2019/11/16
  86351 2019/11/17
  86365 2019/11/18
  86367 2019/11/19
  17019 2019/11/20
     12 2019-12-06
  12272 2019/12/06

root@vps:/usr/local/stathub# grep -v many log/stathub.log > a.log

root@vps:/usr/local/stathub# ll -h a.log
-rw-r--r--  1 root   root    7.9M Dec  6 12:34 a.log

root@vps:/usr/local/stathub# tail -n 3 a.log
2019-12-06 12:24:23 [ERROR] get stat failed: json: unsupported value: NaN
2019-12-06 12:25:23 [ERROR] get stat failed: json: unsupported value: NaN
2019-12-06 12:26:23 [ERROR] get stat failed: json: unsupported value: NaN

root@vps:/usr/local/stathub# wc -l a.log
110477 a.log

root@vps:/usr/local/stathub# grep "unsupported value: NaN" a.log | wc -l
109200

root@vps:/usr/local/stathub# grep -v "unsupported value: NaN" a.log > b.log

root@vps:/usr/local/stathub# ll -h b.log
-rw-r--r-- 1 root root 182K Dec  6 12:35 b.log

root@vps:/usr/local/stathub# tail b.log
| Thank you for your using, By Li Kexian           |
| StatHub, Apache License, Version 2.0             |
----------------------------------------------------
panic: listen tcp :15944: bind: address already in use

goroutine 1 [running]:
main.HttpService()
        /Users/likexian/www/github/stathub-go/src/server.go:41 +0x2f2
main.main()
        /Users/likexian/www/github/stathub-go/src/main.go:160 +0x896

剩余的大部分就是大约1千行" TLS handshake error"错误了,还算正常。

待更新的版本没有二进制包

你好,我在用的是v0.102.3 Beta,看到有更新提示就在服务端运行了一下,结果安装包下载时404了,是安装/更新脚本与二进制包的发布未同步造成的吗?

无法添加客户端

xian
添加一台centos6可以,但在rhel6上添加报上面的错误,请问如何解决?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.