eolinker / apinto-dashboard

Dashboard for Apinto
https://www.apinto.com
102 stars 31 forks source link

按文件安裝了apinto跟apinto-dashboard,但是無法操作路由 #6

Closed elin72215 closed 2 years ago

elin72215 commented 2 years ago

Description

您好: 我嘗試在一台CentOS7的VM上建立apinto跟apinto-dashboard,然後由另外的電腦去連dashboard,可以進到後台介面,但無法創建路由,創建畫面只會看到3個欄位,是否有解決方式或可參考文件呢?

錯誤訊息內容如下: 如果config.yaml的apinto設定是http://127.0.0.1:9400時會得到錯誤訊息connection refused: [2022-07-06 06:28:59] [DEBU] [dashboard]request:/routers/create [2022-07-06 06:29:00] [DEBU] [dashboard]request api:GET /profession/routers/ [2022-07-06 06:29:00] [ERRO] [dashboard]do request:Get "http://127.0.0.1:9400/profession/router/drivers": dial tcp 127.0.0.1:9400: connect: connection refused

如果把127.0.0.1換成該VM對外IP時則會得到timeout: [2022-07-06 06:32:11] [DEBU] [dashboard]request api:GET /profession/routers/ [2022-07-06 06:32:31] [DEBU] [dashboard]request:/routers/create [2022-07-06 06:32:41] [ERRO] [dashboard]do request:Get "http://35.187.144.130:9400/profession/router/drivers": dial tcp 35.187.144.130:9400: i/o timeout

Environment

Dot-Liu commented 2 years ago

这个情况看起来是apinto没有启动成功。 请检查一下apinto是否有报错 https://help.apinto.com/docs/apinto/faq/ 看看这里是否可以帮助到你

elin72215 commented 2 years ago

这个情况看起来是apinto没有启动成功。 请检查一下apinto是否有报错 https://help.apinto.com/docs/apinto/faq/ 看看这里是否可以帮助到你

您好,根據說明文件有了一些進度,發現apinto有報錯,好像有文件被Lock了: [rd7-mob2@ffmpeg-nogpu-qa apinto]$ ./apinto start [2022-07-08 03:10:24] [INFO] [master-26109]new traffic

[2022-07-08 03:10:24] [DEBU] [master-26109]traffic controller: Export:

[2022-07-08 03:10:24] [INFO] [master-26109]start raft service [2022-07-08 03:10:24] [INFO] [master-26109]loading WAL at term 0 and index 0 [2022-07-08 03:10:24] [FATA] eosc: error loading wal (fileutil: file already locked) [2022-07-08 03:10:24] [FATA] [master-26109]eosc: error loading wal (fileutil: file already locked)

Dot-Liu commented 2 years ago

麻烦你删除一下快照文件,默认在/var/lib/apinto文件夹里,如果该文件夹没有,可查看一下apinto.yml,看看配置的目录位置

Dot-Liu commented 2 years ago

我将关闭该issue,感谢您的支持