Closed TaoRone closed 2 months ago
同样的问题 +1
日志同样的问题
1750K .......... .......... .......... .......... .......... 26% 403M 0s
1800K .......... .......... .......... .......... .......... 27% 356M 0s
1850K .......... .......... .......... .......... .......... 28% 421M 0s
1900K .......... .......... .......... .......... .......... 28% 423M 0s
Archive: /dashboard/nezha-agent.zip
1950K .......... .......... .......... .......... .......... 29% 859K 0s
2000K .......... .......... .......... .......... .......... 30% 21.3M 0s
2050K .......... .......... .......... .......... .......... 31% 26.7M 0s
2100K .......... .......... .......... .......... .......... 31% 42.4M 0s
2150K .......... .......... .......... .......... .......... 32% 40.5M 0s
2200K .......... .......... .......... .......... .......... 33% 57.3M 0s
2250K .......... .......... .......... .......... .......... 34% 46.2M 0s
2300K .......... .......... .......... .......... .......... 34% 53.5M 0s
2350K .......... .......... .......... .......... .......... 35% 152M 0s
2400K .......... .......... .......... .......... .......... 36% 270M 0s
2450K .......... .......... .......... .......... .......... 37% 193M 0s
2500K .......... .......... .......... .......... .......... 37% 373M 0s
2550K .......... .......... .......... .......... .......... 38% 257M 0s
2600K .......... .......... .......... .......... .......... 39% 241M 0s
2650K .......... .......... .......... .......... .......... 40% 223M 0s
2700K .......... .......... .......... .......... .......... 40% 258M 0s
2750K .......... .......... .......... .......... .......... 41% 339M 0s
2800K .......... .......... .......... .......... .......... 42% 237M 0s
2850K .......... .......... .......... .......... .......... 43% 227M 0s
2900K .......... .......... .......... .......... .......... 43% 253M 0s
2950K .......... .......... .......... .......... .......... 44% 241M 0s
3000K .......... .......... .......... .......... .......... 45% 327M 0s
3050K .......... .......... .......... .......... .......... 46% 256M 0s
3100K .......... .......... .......... .......... .......... 46% 238M 0s
3150K .......... .......... .......... .......... .......... 47% 239M 0s
3200K .......... .......... .......... .......... .......... 48% 325M 0s
3250K .......... .......... .......... .......... .......... 49% 245M 0s
3300K .......... .......... .......... .......... .......... 49% 242M 0s
3350K .......... .......... .......... .......... .......... 50% 231M 0s
3400K .......... .......... .......... .......... .......... 51% 288M 0s
3450K .......... .......... .......... .......... .......... 51% 322M 0s
3500K .......... .......... .......... .......... .......... 52% 131M 0s
3550K .......... .......... .......... .......... .......... 53% 260M 0s
3600K .......... .......... .......... .......... .......... 54% 241M 0s
3650K .......... .......... .......... .......... .......... 54% 159M 0s
3700K .......... .......... .......... .......... .......... 55% 300M 0s
3750K .......... .......... .......... .......... .......... 56% 239M 0s
3800K .......... .......... .......... .......... .......... 57% 22.1M 0s
3850K .......... .......... .......... .......... .......... 57% 21.5M 0s
3900K .......... .......... .......... .......... .......... 58% 29.8M 0s
3950K .......... .......... .......... .......... .......... 59% 55.3M 0s
4000K .......... .......... .......... .......... .......... 60% 40.3M 0s
4050K .......... .......... .......... .......... .......... 60% 57.4M 0s
4100K .......... .......... .......... .......... .......... 61% 98.7M 0s
4150K .......... .......... .......... .......... .......... 62% 261M 0s
4200K .......... .......... .......... .......... .......... 63% 230M 0s
4250K .......... .......... .......... .......... .......... 63% 239M 0s
4300K .......... .......... .......... .......... .......... 64% 243M 0s
4350K .......... .......... .......... .......... .......... 65% 233M 0s
4400K .......... .......... .......... .......... .......... 66% 304M 0s
4450K .......... .......... .......... .......... .......... 66% 242M 0s
4500K .......... .......... .......... .......... .......... 67% 253M 0s
4550K .......... .......... .......... .......... .......... 68% 243M 0s
4600K .......... .......... .......... .......... .......... 69% 330M 0s
4650K .......... .......... .......... .......... .......... 69% 261M 0s
4700K .......... .......... .......... .......... .......... 70% 232M 0s
4750K .......... .......... .......... .......... .......... 71% 58.8M 0s
4800K .......... .......... .......... .......... .......... 72% 27.5M 0s
4850K .......... .......... .......... .......... .......... 72% 24.2M 0s
4900K .......... .......... .......... .......... .......... 73% 32.0M 0s
4950K .......... .......... .......... .......... .......... 74% 39.4M 0s
5000K .......... .......... .......... .......... .......... 75% 85.0M 0s
5050K .......... .......... .......... .......... .......... 75% 298M 0s
5100K .......... .......... .......... .......... .......... 76% 260M 0s
5150K .......... .......... .......... .......... .......... 77% 245M 0s
5200K .......... .......... .......... .......... .......... 77% 215M 0s
5250K .......... .......... .......... .......... .......... 78% 262M 0s
5300K .......... .......... .......... .......... .......... 79% 314M 0s
5350K .......... .......... .......... .......... .......... 80% 263M 0s
5400K .......... .......... .......... .......... .......... 80% 185M 0s
5450K .......... .......... .......... .......... .......... 81% 246M 0s
5500K .......... .......... .......... .......... .......... 82% 234M 0s
5550K .......... .......... .......... .......... .......... 83% 338M 0s
5600K .......... .......... .......... .......... .......... 83% 264M 0s
5650K .......... .......... .......... .......... .......... 84% 332M 0s
5700K .......... .......... .......... .......... .......... 85% 368M 0s
5750K .......... .......... .......... .......... .......... 86% 415M 0s
5800K .......... .......... .......... .......... .......... 86% 414M 0s
5850K .......... .......... .......... .......... .......... 87% 314M 0s
5900K .......... .......... .......... .......... .......... 88% 345M 0s
5950K .......... .......... .......... .......... .......... 89% 406M 0s
6000K .......... .......... .......... .......... .......... 89% 414M 0s
6050K .......... .......... .......... .......... .......... 90% 425M 0s
6100K .......... .......... .......... .......... .......... 91% 400M 0s
6150K .......... .......... .......... .......... .......... 92% 343M 0s
6200K .......... .......... .......... .......... .......... 92% 305M 0s
6250K .......... .......... .......... .......... .......... 93% 347M 0s
6300K .......... .......... .......... .......... .......... 94% 395M 0s
6350K .......... .......... .......... .......... .......... 95% 26.0M 0s
6400K .......... .......... .......... .......... .......... 95% 25.5M 0s
6450K .......... .......... .......... .......... .......... 96% 23.3M 0s
6500K .......... .......... .......... .......... .......... 97% 109M 0s
6550K .......... .......... .......... .......... .......... 98% 395M 0s
6600K .......... .......... .......... .......... .......... 98% 404M 0s
6650K .......... .......... .......... .......... .......... 99% 348M 0s
6700K .......... .......... .......... 100% 490M=0.1s
2024-07-16 20:33:04 (47.5 MB/s) - '/dashboard/nezha-agent.zip' saved [6892459/6892459]
--2024-07-16 20:33:04-- https://github.com/fscarmen2/Argo-Nezha-Service-Container/raw/main/sqlite.db
Resolving github.com (github.com)... 140.82.113.4
Connecting to github.com (github.com)|140.82.113.4|:443... connected.
inflating: /dashboard/nezha-agent
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/fscarmen2/Argo-Nezha-Service-Container/main/sqlite.db [following]
--2024-07-16 20:33:04-- https://raw.githubusercontent.com/fscarmen2/Argo-Nezha-Service-Container/main/sqlite.db
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8003::154, 2606:50c0:8001::154, 2606:50c0:8000::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8003::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 147456 (144K) [application/octet-stream]
Saving to: '/dashboard/data/sqlite.db'
0K .......... .......... .......... .......... .......... 34% 22.6M 0s
50K .......... .......... .......... .......... .......... 69% 17.0M 0s
100K .......... .......... .......... .......... .... 100% 33.0M=0.006s
2024-07-16 20:33:04 (22.2 MB/s) - '/dashboard/data/sqlite.db' saved [147456/147456]
Restarting OpenBSD Secure Shell server: sshd.
Certificate request self-signature ok
subject=CN = *****
Restarting periodic command scheduler: cronStopping periodic command scheduler: cron.
Starting periodic command scheduler: cron.
2024-07-16 20:33:05,633 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-07-16 20:33:05,633 INFO Included extra file "/etc/supervisor/conf.d/damon.conf" during parsing
2024-07-16 20:33:05,637 INFO RPC interface 'supervisor' initialized
2024-07-16 20:33:05,637 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2024-07-16 20:33:05,638 INFO supervisord started with pid 250
2024-07-16 20:33:06,640 INFO spawned: 'agent' with pid 251
2024-07-16 20:33:06,642 INFO spawned: 'argo' with pid 252
2024-07-16 20:33:06,643 INFO spawned: 'grpcproxy' with pid 253
2024-07-16 20:33:06,649 INFO spawned: 'nezha' with pid 256
2024-07-16 20:33:07,928 INFO success: agent entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-16 20:33:07,928 INFO success: argo entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-16 20:33:07,928 INFO success: grpcproxy entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-16 20:33:07,928 INFO success: nezha entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
一直在疯狂重新拉取
刚回来,存档删除重装解决所有问题(还好常常备份配置)🤕🤕
新版本的nezha多了这个 看是不是你存档的数据是不是不适配这个
新版本的nezha多了这个 看是不是你存档的数据是不是不适配这个
我也猜测是不是新增内网穿透功能的问题 不过我机器数据太多。。 现在无法恢复存档很难受
那确实是个大工程量🤕🤕
那确实是个大工程量🤕🤕
我猜测回退版本可以解决……不过还没找到办法
刚回来,存档删除重装解决所有问题(还好常常备份配置)🤕🤕
存档不是每天自动备份的吗?
新版本的nezha多了这个 看是不是你存档的数据是不是不适配这个
我也猜测是不是新增内网穿透功能的问题 不过我机器数据太多。。 现在无法恢复存档很难受
听开发者UUa 说,反代方案用 Caddy
和 nginx
可以,但用 grpcWebProxy
就不行,大家出问题的,都是用 grpcWebProxy
的吗?
听开发者UUa 说,反代方案用
Caddy
和nginx
可以,但用grpcWebProxy
就不行,大家出问题的,都是用grpcWebProxy
的吗?听开发者UUa 说,反代方案用
Caddy
和nginx
可以,但用grpcWebProxy
就不行,大家出问题的,都是用grpcWebProxy
的吗?
改成nginx确实不一样了,现在可以顺利执行,但是配置文件似乎并没有修改 我看了下日志,因为尝试过清空github库文件,所以是将备份文件通过浏览器下载过(dashboard-2024-07-10-04_00_33.tar.gz),受限于微软系统,文件名的:变成了下划线 现在上传后,先实时备份一次,然后拉取这个备份文件,提示拉取有问题: (已修改敏感字段)
+ '[' -s /dashboard/dbfile ']'
+ '[' dashboard-2024-07-11-04_00_53.tar.gz = a ']'
+ '[' dashboard-2024-07-11-04_00_53.tar.gz = f ']'
+ [[ dashboard-2024-07-11-04_00_53.tar.gz =~ tar\.gz$ ]]
+ [[ '' =~ http.*/.*tar.gz ]]
+ FILE=dashboard-2024-07-11-04_00_53.tar.gz
+ DOWNLOAD_URL=https://raw.githubusercontent.com/***/nezha_backup/main/dashboard-2024-07-11-04_00_53.tar.gz
+ wget '--header=Authorization: token ghp_ogGH********V**6Zh' '--header=Accept: application/vnd.github.v3.raw' -O /tmp/restore_temp/backup.tar.gz https://raw.githubusercontent.com/**/nezha_backup/main/dashboard-2024-07-11-04_00_53.tar.gz
--2024-07-22 23:33:23-- https://raw.githubusercontent.com****/nezha_backup/main/dashboard-2024-07-11-04_00_53.tar.gz
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8003::154, 2606:50c0:8002::154, 2606:50c0:8001::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8003::154|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-07-22 23:33:23 ERROR 404: Not Found.
+ '[' -e /tmp/restore_temp/backup.tar.gz ']'
+ '[' 1 = 1 ']'
++ supervisorctl stop agent nezha grpcproxy
+ hint '\nagent: stopped
nezha: stopped
grpcproxy: stopped\n'
+ echo -e '\033[33m\033[01m\nagent: stopped
nezha: stopped
grpcproxy: stopped\n\033[0m'
agent: stopped
nezha: stopped
grpcproxy: stopped
++ tar tzf /tmp/restore_temp/backup.tar.gz
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
+ FILE_LIST=
++ sed -n 's#\(.*/\)data/sqlite\.db.*#\1#gp'
+ FILE_PATH=
+ CUSTOM_PATH=($(sed -n "/custom/s#$FILE_PATH\(.*custom\)/.*#\1#gp" <<< "$FILE_LIST" | sort -u))
++ sort -u
++ sed -n '/custom/s#\(.*custom\)/.*#\1#gp'
+ '[' 0 -gt 0 ']'
+ echo 'ââââââââââ Restore-file list ââââââââââ'
ââââââââââ Restore-file list ââââââââââ
+ tar xzvf /tmp/restore_temp/backup.tar.gz -C /tmp/restore_temp data
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
+ echo -e 'ââââââââââ Restore-file list ââââââââââ\n\n'
ââââââââââ Restore-file list ââââââââââ
+ sed -i 's@HTTPPort:.*@HTTPPort: 80@; s@Language:.*@Language: zh-CN@; s@^GRPCPort:.*@GRPCPort: 5555@; s@gGRPCHost:.*@IGRPCHost: ****@; s@ProxyGRPCPort:.*@ProxyGRPCPort: 443@; s@Type:.*@Type: "github" #Oauth2 ç»******
¥ç±»åï¼github/gitlab/jihulab/gitee/gitea ## Argo-容å¨**** github@; s@Admin:.*@Admin: "****" *****¼****¼@; s@ClientID:.*@ClientID: "cd2**********78" # å¨ https://github.com/settings/developers 建ï¼****®¡æ ¸ Callback å¡« http(s)://**IP/oauth****ack@; s@ClientSecret:.*@ClientSecret: "acc3b9f5ecb*****54ce493ae612bc7c"@I' /tmp/restore_temp/data/config.yaml
sed: can't read /tmp/restore_temp/data/config.yaml: No such file or directory
+ [[ -n '' ]]
++ awk '{print $NF}'
+ [[ '' =~ ^[0-9]+$ ]]
++ awk '{print $NF}'
+ [[ '' =~ ^[0-9]+$ ]]
+ '[' 1 = 1 ']'
++ type -p sqlite3
+ '[' /usr/bin/sqlite3 ']'
++ sqlite3 /tmp/restore_temp/data/sqlite.db 'select secret from servers where created_at='\''2023-04-23 13:02:00.770756566+08:00'\'''
Error: unable to open database "/tmp/restore_temp/data/sqlite.db": unable to open database file
+ DB_TOKEN=
+ '[' -n '' ']'
+ '[' '' '!=' '' ']'
+ cp -rf '/tmp/restore_temp/data/*' /dashboard/data/
cp: cannot stat '/tmp/restore_temp/data/*': No such file or directory
+ '[' -d /tmp/restore_temp/resource ']'
+ rm -rf /tmp/restore_temp
+ echo dashboard-2024-07-22-23:31:07.tar.gz
+ rm -f /tmp/restore_temp/backup.tar.gz
+ '[' 1 = 1 ']'
++ supervisorctl start agent nezha grpcproxy
+ hint '\nagent: started
nezha: started
grpcproxy: started\n'
+ echo -e '\033[33m\033[01m\nagent: started
nezha: started
grpcproxy: started\n\033[0m'
agent: started
nezha: started
grpcproxy: started
+ sleep 3
+ '[' 1 = 1 ']'
++ grep -c RUNNING
++ supervisorctl status all
++ grep -c '\[program:.*\]' /etc/supervisor/conf.d/damon.conf
+ '[' 4 = 4 ']'
+ info '\n All programs started! \n'
+ echo -e '\033[32m\033[01m\n All programs started! \n\033[0m'
All programs started!
+ rm -rf /tmp/restore_temp
+ echo -e '\n'
看日志是从github 下载备份文件失败,连github有问题,试试手动下载 https://raw.githubusercontent.com/***/nezha_backup/main/dashboard-2024-07-11-04_00_53.tar.gz
不知道是我一个人这样的吗,负载会有这么高的吗😐 小鸡里面不知道为什么这样。。。默认重复执行这么多还是怎么?😥
https://raw.githubusercontent.com/***/nezha_backup/main/dashboard-2024-07-11-04_00_53.tar.gz
看了下,是我之前打错了,,, nginx和grpcWebProxy都是这个报错(执行bash -x /dashboard/restore.sh dashboard-2024-07-10-04_00_33.tar.gz恢复备份时) 问题感觉还是在之前的哪吒内网穿透更新上……探针机器有近100台,总不可能是内存不够用吧。。。
+ cp -rf /tmp/restore_temp/data/config.yaml /tmp/restore_temp/data/sqlite.db /dashboard/data/
+ '[' -d /tmp/restore_temp/resource ']'
+ rm -rf /tmp/restore_temp
+ echo dashboard-2024-07-22-23:31:07.tar.gz
+ rm -f /tmp/restore_temp/backup.tar.gz
+ '[' 1 = 1 ']'
++ supervisorctl start agent nezha grpcproxy
+ hint '\nagent: started
nezha: ERROR (spawn error)
grpcproxy: started\n'
+ echo -e '\033[33m\033[01m\nagent: started
nezha: ERROR (spawn error)
grpcproxy: started\n\033[0m'
agent: started
nezha: ERROR (spawn error)
grpcproxy: started
+ sleep 3
+ '[' 1 = 1 ']'
++ grep -c RUNNING
++ supervisorctl status all
++ grep -c '\[program:.*\]' /etc/supervisor/conf.d/damon.conf
+ '[' 3 = 4 ']'
+ error '\n Failed to start program! \n'
+ echo -e '\033[31m\033[01m\n Failed to start program! \n\033[0m'
Failed to start program!
+ exit 1
+ rm -rf /tmp/restore_temp
+ echo -e '\n'
+ exit
不知道是我一个人这样的吗,负载会有这么高的吗
之前我也很高。。。
似乎彻底没治了…… 手动
wget '--header=Authorization: token ghp_Stxv***************' '--header=Accept: application/vnd.github.v3.raw' -O /home/test/backup.tar.gz https://raw.githubusercontent.com/TaoRone/nezha_backup/main/123.tar.gz
tar -xzvf /home/test/backup.tar.gz -C /home/test/restore_temp
ls -lh /home/test/restore_temp/data/
supervisorctl stop nezha
cd data
cp -rf /home/test/restore_temp/data/* ./
依然是相同的nezha: ERROR (spawn error)报错 很难受 突然想要脱坑了,好累
koyeb 故障停止了(也可能是好长时间没登陆停止了),重新部署后,加载存档就报错,试了两天的存档,都不行 (刚部署完,不加载存档数据,可以正常打开页面) 看了下,github也可以链接上啊。。。好奇怪 日志: