Closed ksdaylight closed 1 year ago
hello,
我遇到了无法获取系统信息的情况,如下图 日志部分如下:
> @xprofiler/all-in-one@1.0.0 dev /home/milo/all-in-one > cross-env EZM_ENV=local nodemon index.js [nodemon] 2.0.20 [nodemon] to restart at any time, enter `rs` [nodemon] watching path(s): *.* [nodemon] watching extensions: js,mjs,json [nodemon] starting `node index.js` Debugger listening on ws://127.0.0.1:53055/948db6af-273c-4967-8bed-2d3e0fd3c109 For help, see: https://nodejs.org/en/docs/inspector Debugger attached. 2023-07-29 10:16:22,301 INFO 1082516 [master] node version v18.12.1 2023-07-29 10:16:22,302 INFO 1082516 [master] @xprofiler/console version 1.0.5 2023-07-29 10:16:22,305 INFO 1082516 [master] node version v18.12.1 2023-07-29 10:16:22,305 INFO 1082516 [master] @xprofiler/manager version 1.0.1 2023-07-29 10:16:22,307 INFO 1082516 [master] node version v18.12.1 2023-07-29 10:16:22,307 INFO 1082516 [master] @xprofiler/wsserver version 1.0.3 2023-07-29 10:16:22,886 INFO 1082516 [master] agent_worker#1:1082586 started (568ms) 2023-07-29 10:16:22,898 INFO 1082516 [master] agent_worker#1:1082579 started (588ms) 2023-07-29 10:16:22,904 INFO 1082580 [RemoteConfig] loading remote config and save to /home/milo/all-in-one/run/remote_config.json 2023-07-29 10:16:22,930 INFO 1082516 [master] agent_worker#1:1082580 started (617ms) 2023-07-29 10:16:23,481 INFO 1082640 [RemoteConfig] loading remote config from /home/milo/all-in-one/run/remote_config.json 2023-07-29 10:16:23,499 INFO 1082653 [RemoteConfig] loading remote config from /home/milo/all-in-one/run/remote_config.json 2023-07-29 10:16:23,624 INFO 1082516 [master] @xprofiler/wsserver started on http://127.0.0.1:9190 (1317ms) 2023-07-29 10:16:23,633 INFO 1082586 [xtransit] xtransit start. 2023-07-29 10:16:23,634 INFO 1082586 [xtransit] websocket client connecting to ws://127.0.0.1:9190... 2023-07-29 10:16:23,655 INFO 1082586 [xtransit] websocket client has been connected. 2023-07-29 10:16:23,669 ERROR 1082639 [-/127.0.0.1/-/17ms GET /] getAppSecret http failed: RequestError: connect ECONNREFUSED 127.0.0.1:8543, POST http://127.0.0.1:8543/xtransit/app_secret -1 (connected: false, keepalive socket: false, agent status: {"createSocketCount":1,"createSocketErrorCount":0,"closeSocketCount":0,"errorSocketCount":1,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"127.0.0.1:8543:":1},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0) headers: {}, raw data: [object Object] 2023-07-29 10:16:23,699 ERROR 1082639 [-/127.0.0.1/-/47ms GET /] getAppSecret http failed: RequestError: connect ECONNREFUSED 127.0.0.1:8543, POST http://127.0.0.1:8543/xtransit/app_secret -1 (connected: false, keepalive socket: false, agent status: {"createSocketCount":2,"createSocketErrorCount":0,"closeSocketCount":1,"errorSocketCount":2,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"127.0.0.1:8543:":1},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0) headers: {}, raw data: [object Object] 2023-07-29 10:16:23,715 INFO 1082516 [master] @xprofiler/console started on http://127.0.0.1:8443 (1413ms) 2023-07-29 10:16:23,724 INFO 1082579 [xtransit] xtransit start. 2023-07-29 10:16:23,727 INFO 1082579 [xtransit] websocket client connecting to ws://127.0.0.1:9190... 2023-07-29 10:16:23,744 INFO 1082579 [xtransit] websocket client has been connected. 2023-07-29 10:16:23,747 ERROR 1082639 [-/127.0.0.1/-/10ms GET /] getAppSecret http failed: RequestError: connect ECONNREFUSED 127.0.0.1:8543, POST http://127.0.0.1:8543/xtransit/app_secret -1 (connected: false, keepalive socket: false, agent status: {"createSocketCount":3,"createSocketErrorCount":0,"closeSocketCount":2,"errorSocketCount":3,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"127.0.0.1:8543:":1},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0) headers: {}, raw data: [object Object] 2023-07-29 10:16:23,751 ERROR 1082586 [xtransit] Error: Command failed: df -P df: /run/user/1000/doc: Operation not permitted 2023-07-29 10:16:23,802 ERROR 1082639 [-/127.0.0.1/-/151ms GET /] getAppSecret http failed: RequestError: connect ECONNREFUSED 127.0.0.1:8543, POST http://127.0.0.1:8543/xtransit/app_secret -1 (connected: false, keepalive socket: false, agent status: {"createSocketCount":5,"createSocketErrorCount":0,"closeSocketCount":3,"errorSocketCount":4,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"127.0.0.1:8543:":2},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0) headers: {}, raw data: [object Object] 2023-07-29 10:16:23,803 ERROR 1082639 [-/127.0.0.1/-/152ms GET /] getAppSecret http failed: RequestError: connect ECONNREFUSED 127.0.0.1:8543, POST http://127.0.0.1:8543/xtransit/app_secret -1 (connected: false, keepalive socket: false, agent status: {"createSocketCount":5,"createSocketErrorCount":0,"closeSocketCount":3,"errorSocketCount":5,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"127.0.0.1:8543:":2},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0) headers: {}, raw data: [object Object] 2023-07-29 10:16:23,840 ERROR 1082639 [-/127.0.0.1/-/103ms GET /] getAppSecret http failed: RequestError: connect ECONNREFUSED 127.0.0.1:8543, POST http://127.0.0.1:8543/xtransit/app_secret -1 (connected: false, keepalive socket: false, agent status: {"createSocketCount":6,"createSocketErrorCount":0,"closeSocketCount":5,"errorSocketCount":6,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"127.0.0.1:8543:":1},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0) headers: {}, raw data: [object Object] 2023-07-29 10:16:23,861 INFO 1082516 [master] @xprofiler/manager started on http://127.0.0.1:8543 (1556ms) 2023-07-29 10:16:23,869 INFO 1082580 [xtransit] xtransit start. 2023-07-29 10:16:23,870 INFO 1082580 [xtransit] websocket client connecting to ws://127.0.0.1:9190... 2023-07-29 10:16:23,891 ERROR 1082579 [xtransit] Error: Command failed: df -P df: /run/user/1000/doc: Operation not permitted 2023-07-29 10:16:23,901 INFO 1082580 [xtransit] websocket client has been connected. 2023-07-29 10:16:24,062 ERROR 1082580 [xtransit] Error: Command failed: df -P df: /run/user/1000/doc: Operation not permitted
之后就一直是这条消息不断滚动了:
2023-07-29 10:17:23,751 ERROR 1082586 [xtransit] Error: Command failed: df -P df: /run/user/1000/doc: Operation not permitted
我尝试搜索这个问题,但是又看不懂相关内容。。。。
就是采集 system 信息的时候报错了,所以没上报。
具体是 df -P 自动获取 /run/user/1000/doc 目录因为没权限导致的失败,你可以手动配置 xtransit 的上报目录:
df -P
/run/user/1000/doc
xtransit
disks 数组里配置你有权限的目录即可,比如 process.cwd()
disks
process.cwd()
感谢,一切正常了 💕
hello,
我遇到了无法获取系统信息的情况,如下图 日志部分如下:
之后就一直是这条消息不断滚动了:
我尝试搜索这个问题,但是又看不懂相关内容。。。。