go-openbmclapi icon indicating copy to clipboard operation
go-openbmclapi copied to clipboard

webdav正常工作情况下意外重启

Open ghitori opened this issue 9 months ago • 0 comments

程序总是获取measure/0文件失败,并随后重启 该文件本身并无问题,为openbmcpapi工作正常 但总是在检测保活时判断该文件context deadline exceeded,并随后退出 下次重启第一次检测又恢复正常

部分log

......
[INFO][10:59:18]: Check finished for "http://127.0.0.1:5244/dav/openbmclapi/measure/0", used 64.285µs, 30.4KB/s
[INFO][10:59:22]: Served 2964 requests, total responsed body = 0B, total used CPU time = 100.90s
[INFO][10:59:27]: Keep-alive success: hits=2914 bytes=4.1GB; 2024-05-16T10:59:27.000Z
[INFO][11:00:22]: Served 2838 requests, total responsed body = 0B, total used CPU time = 130.26s
[INFO][11:00:26]: Keep-alive success: hits=2787 bytes=4.2GB; 2024-05-16T11:00:26.000Z
[INFO][11:01:22]: Served 3026 requests, total responsed body = 0B, total used CPU time = 134.65s
[INFO][11:01:25]: Keep-alive success: hits=2963 bytes=4.3GB; 2024-05-16T11:01:25.000Z
[INFO][11:02:18]: Checking <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi> for 2 bytes ...
[INFO][11:02:22]: Served 2619 requests, total responsed body = 0B, total used CPU time = 99.56s
[INFO][11:02:24]: Keep-alive success: hits=2528 bytes=3.5GB; 2024-05-16T11:02:24.000Z
[ERRO][11:02:25]: Disabled storage <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>: Get "http://127.0.0.1:5244/dav/openbmclapi/measure/0": context deadline exceeded
[ERRO][11:02:25]: All storages are down, exit.
[INFO][11:02:25]: Disabling cluster ...
[WARN][11:02:25]: Cluster disabled
[ERRO][11:02:25]: Program exiting with code 5
[ERRO][11:02:25]: Please read https://github.com/LiterMC/go-openbmclapi?tab=readme-ov-file#faq before report your issue

Go-OpenBmclAPI  Copyright (C) 2023 Kevin Z <[email protected]>
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it under certain conditions;
Use subcommand 'license' for more information

[INFO][11:02:25]: Starting Go-OpenBmclApi v1.10.5 ()
[INFO][11:02:25]: Fetching authorization token ...
[INFO][11:02:25]: Authorization token fetched
[INFO][11:02:25]: Dialing wss://openbmclapi.bangbang93.com/socket.io/?EIO=4&transport=websocket
[INFO][11:02:26]: Connecting to socket.io namespace
[INFO][11:02:26]: Fetching file list
[INFO][11:02:26]: Engine.IO connected
[INFO][11:02:26]: Preparing to connect to center server (0/10)
[INFO][11:02:26]: Server public at https://openbmclapi.starrycraft.cn:443 (0.0.0.0:4000) with 0 certificates
[INFO][11:02:26]: Waiting for the first sync ...
[INFO][11:02:28]: Preparing to sync files, length of filelist is 136394 ...
[INFO][11:02:28]: Start checking files for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>, heavy = false
[INFO][11:02:54]: File check finished for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>, missing 0 files
[INFO][11:02:54]: All files were synchronized
[INFO][11:02:55]: Starting garbage collector for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>
[INFO][11:02:55]: Sending enable packet
[INFO][11:02:57]: Checking <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi> for 2 bytes ...
[INFO][11:02:57]: Check finished for "http://127.0.0.1:5244/dav/openbmclapi/measure/0", used 30.163µs, 64.8KB/s
[INFO][11:03:03]: Cluster enabled
[INFO][11:03:04]: Garbage collect finished for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>
[INFO][11:04:02]: Keep-alive success: hits=3090 bytes=4.5GB; 2024-05-16T11:04:02.000Z
[INFO][11:04:03]: Served 3107 requests, total responsed body = 0B, total used CPU time = 426.67s
[INFO][11:05:01]: Keep-alive success: hits=985 bytes=1.9GB; 2024-05-16T11:05:01.000Z
[INFO][11:05:03]: Served 978 requests, total responsed body = 0B, total used CPU time = 587.86s
[INFO][11:05:57]: Checking <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi> for 2 bytes ...
[INFO][11:06:00]: Keep-alive success: hits=1971 bytes=4.6GB; 2024-05-16T11:06:00.000Z
[ERRO][11:06:02]: Disabled storage <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>: Get "http://127.0.0.1:5244/dav/openbmclapi/measure/0": context deadline exceeded
[ERRO][11:06:02]: All storages are down, exit.
[INFO][11:06:02]: Disabling cluster ...
[WARN][11:06:02]: Cluster disabled
[ERRO][11:06:02]: Program exiting with code 5
[ERRO][11:06:02]: Please read https://github.com/LiterMC/go-openbmclapi?tab=readme-ov-file#faq before report your issue

Go-OpenBmclAPI  Copyright (C) 2023 Kevin Z <[email protected]>
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it under certain conditions;
Use subcommand 'license' for more information

[INFO][11:06:02]: Starting Go-OpenBmclApi v1.10.5 ()
[INFO][11:06:02]: Fetching authorization token ...
[INFO][11:06:03]: Authorization token fetched
[INFO][11:06:03]: Dialing wss://openbmclapi.bangbang93.com/socket.io/?EIO=4&transport=websocket
[INFO][11:06:03]: Connecting to socket.io namespace
[INFO][11:06:03]: Fetching file list
[INFO][11:06:03]: Engine.IO connected
[INFO][11:06:03]: Preparing to connect to center server (0/10)
[INFO][11:06:03]: Server public at https://openbmclapi.starrycraft.cn:443 (0.0.0.0:4000) with 0 certificates
[INFO][11:06:03]: Waiting for the first sync ...
[INFO][11:06:07]: Preparing to sync files, length of filelist is 136394 ...
[INFO][11:06:07]: Start checking files for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>, heavy = false
[INFO][11:06:38]: File check finished for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>, missing 0 files
[INFO][11:06:38]: All files were synchronized
[INFO][11:06:38]: Starting garbage collector for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>
[INFO][11:06:38]: Sending enable packet
[INFO][11:06:43]: Checking <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi> for 2 bytes ...
[INFO][11:06:43]: Check finished for "http://127.0.0.1:5244/dav/openbmclapi/measure/0", used 50.271µs, 38.9KB/s
[INFO][11:06:47]: Cluster enabled
[INFO][11:06:51]: Garbage collect finished for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>
[INFO][11:07:46]: Keep-alive success: hits=2758 bytes=5.2GB; 2024-05-16T11:07:46.000Z
[INFO][11:07:47]: Served 2782 requests, total responsed body = 0B, total used CPU time = 424.22s
[INFO][11:08:45]: Keep-alive success: hits=989 bytes=2.8GB; 2024-05-16T11:08:45.000Z
[INFO][11:08:47]: Served 977 requests, total responsed body = 0B, total used CPU time = 526.12s
[INFO][11:09:43]: Checking <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi> for 2 bytes ...
[INFO][11:09:44]: Keep-alive success: hits=1757 bytes=3.5GB; 2024-05-16T11:09:44.000Z
[INFO][11:09:47]: Served 1857 requests, total responsed body = 0B, total used CPU time = 612.84s
[ERRO][11:09:48]: Disabled storage <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>: Get "http://127.0.0.1:5244/dav/openbmclapi/measure/0": context deadline exceeded
[ERRO][11:09:48]: All storages are down, exit.
[INFO][11:09:48]: Disabling cluster ...
[WARN][11:09:48]: Cluster disabled
[ERRO][11:09:48]: Program exiting with code 5
[ERRO][11:09:48]: Please read https://github.com/LiterMC/go-openbmclapi?tab=readme-ov-file#faq before report your issue

Go-OpenBmclAPI  Copyright (C) 2023 Kevin Z <[email protected]>
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it under certain conditions;
Use subcommand 'license' for more information

[INFO][11:09:48]: Starting Go-OpenBmclApi v1.10.5 ()
[INFO][11:09:48]: Fetching authorization token ...
[INFO][11:09:48]: Authorization token fetched
[INFO][11:09:48]: Dialing wss://openbmclapi.bangbang93.com/socket.io/?EIO=4&transport=websocket
[INFO][11:09:48]: Connecting to socket.io namespace
[INFO][11:09:48]: Fetching file list
[INFO][11:09:48]: Engine.IO connected
[INFO][11:09:48]: Server public at https://openbmclapi.starrycraft.cn:443 (0.0.0.0:4000) with 0 certificates
[INFO][11:09:48]: Waiting for the first sync ...
[INFO][11:09:48]: Preparing to connect to center server (0/10)
[INFO][11:09:52]: Preparing to sync files, length of filelist is 136394 ...
[INFO][11:09:52]: Start checking files for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>, heavy = false
[INFO][11:10:15]: File check finished for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>, missing 0 files
[INFO][11:10:15]: All files were synchronized
[INFO][11:10:15]: Starting garbage collector for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>
[INFO][11:10:15]: Sending enable packet
[INFO][11:10:18]: Checking <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi> for 2 bytes ...
[INFO][11:10:18]: Check finished for "http://127.0.0.1:5244/dav/openbmclapi/measure/0", used 126.975µs, 15.4KB/s
[INFO][11:10:23]: Garbage collect finished for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>
[INFO][11:10:23]: Cluster enabled
[INFO][11:11:22]: Keep-alive success: hits=2182 bytes=3.6GB; 2024-05-16T11:11:22.000Z
[INFO][11:11:23]: Served 2196 requests, total responsed body = 0B, total used CPU time = 417.90s
[INFO][11:12:21]: Keep-alive success: hits=1019 bytes=2.3GB; 2024-05-16T11:12:21.000Z
[INFO][11:12:23]: Served 1012 requests, total responsed body = 0B, total used CPU time = 649.99s
[INFO][11:13:18]: Checking <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi> for 2 bytes ...
[INFO][11:13:20]: Keep-alive success: hits=1467 bytes=3.3GB; 2024-05-16T11:13:20.000Z
[ERRO][11:13:23]: Disabled storage <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>: Get "http://127.0.0.1:5244/dav/openbmclapi/measure/0": context deadline exceeded
[ERRO][11:13:23]: All storages are down, exit.
[INFO][11:13:23]: Disabling cluster ...
[WARN][11:13:23]: Cluster disabled
[ERRO][11:13:23]: Program exiting with code 5
[ERRO][11:13:23]: Please read https://github.com/LiterMC/go-openbmclapi?tab=readme-ov-file#faq before report your issue

Go-OpenBmclAPI  Copyright (C) 2023 Kevin Z <[email protected]>
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it under certain conditions;
Use subcommand 'license' for more information

[INFO][11:13:23]: Starting Go-OpenBmclApi v1.10.5 ()
[INFO][11:13:23]: Fetching authorization token ...
[ERRO][11:13:28]: Cannot fetch authorization token: Get "https://openbmclapi.bangbang93.com/openbmclapi-agent/challenge?clusterId=6640a5976a50584c2de03d95": dial tcp: lookup openbmclapi.bangbang93.com on 127.0.0.53:53: no such host
[ERRO][11:13:28]: Cannot get authorization token: Get "https://openbmclapi.bangbang93.com/openbmclapi-agent/challenge?clusterId=6640a5976a50584c2de03d95": dial tcp: lookup openbmclapi.bangbang93.com on 127.0.0.53:53: no such host; exit.
[ERRO][11:13:28]: Program exiting with code 3
[ERRO][11:13:28]: Please read https://github.com/LiterMC/go-openbmclapi?tab=readme-ov-file#faq before report your issue

Go-OpenBmclAPI  Copyright (C) 2023 Kevin Z <[email protected]>
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it under certain conditions;
Use subcommand 'license' for more information

[INFO][11:13:29]: Starting Go-OpenBmclApi v1.10.5 ()
[INFO][11:13:29]: Fetching authorization token ...
[INFO][11:13:29]: Authorization token fetched
[INFO][11:13:29]: Dialing wss://openbmclapi.bangbang93.com/socket.io/?EIO=4&transport=websocket
[INFO][11:13:29]: Connecting to socket.io namespace
[INFO][11:13:29]: Engine.IO connected
[INFO][11:13:29]: Preparing to connect to center server (0/10)
[INFO][11:13:29]: Fetching file list
[INFO][11:13:29]: Server public at https://openbmclapi.starrycraft.cn:443 (0.0.0.0:4000) with 0 certificates
[INFO][11:13:29]: Waiting for the first sync ...
[INFO][11:13:33]: Preparing to sync files, length of filelist is 136394 ...
[INFO][11:13:33]: Start checking files for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>, heavy = false
[INFO][11:13:47]: File check finished for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>, missing 0 files
[INFO][11:13:47]: All files were synchronized
[INFO][11:13:47]: Starting garbage collector for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>
[INFO][11:13:47]: Sending enable packet
[INFO][11:13:50]: Checking <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi> for 2 bytes ...
[INFO][11:13:50]: Check finished for "http://127.0.0.1:5244/dav/openbmclapi/measure/0", used 18.048µs, 108.2KB/s
[INFO][11:13:52]: Garbage collect finished for <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>
[INFO][11:13:56]: Cluster enabled
[INFO][11:14:55]: Keep-alive success: hits=706 bytes=1.9GB; 2024-05-16T11:14:55.000Z
[INFO][11:14:56]: Served 716 requests, total responsed body = 0B, total used CPU time = 812.16s
[INFO][11:15:54]: Keep-alive success: hits=331 bytes=838.2MB; 2024-05-16T11:15:54.000Z
[INFO][11:15:56]: Served 325 requests, total responsed body = 0B, total used CPU time = 392.39s
[INFO][11:16:50]: Checking <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi> for 2 bytes ...
[INFO][11:16:53]: Keep-alive success: hits=455 bytes=1.9GB; 2024-05-16T11:16:53.000Z
[ERRO][11:16:55]: Disabled storage <WebDavStorage endpoint="http://127.0.0.1:5244/dav/openbmclapi" user=openbmclapi>: Get "http://127.0.0.1:5244/dav/openbmclapi/measure/0": context deadline exceeded
[ERRO][11:16:55]: All storages are down, exit.
[INFO][11:16:55]: Disabling cluster ...
[WARN][11:16:55]: Cluster disabled
[ERRO][11:16:55]: Program exiting with code 5
[ERRO][11:16:55]: Please read https://github.com/LiterMC/go-openbmclapi?tab=readme-ov-file#faq before report your issue

Go-OpenBmclAPI  Copyright (C) 2023 Kevin Z <[email protected]>
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it under certain conditions;
Use subcommand 'license' for more information
......

ghitori avatar May 16 '24 12:05 ghitori