eolinker / apinto-dashboard Goto Github PK
View Code? Open in Web Editor NEWDashboard for Apinto
Home Page: https://www.apinto.com
Dashboard for Apinto
Home Page: https://www.apinto.com
编译时前端出现错误,编译命令:./scripts/build.sh ./out all
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:62:3 - error NG8002: Can't bind to 'nzDraggable' since it isn't a known property of 'eo-ng-table'.
1. If 'eo-ng-table' is an Angular component and it has 'nzDraggable' input, then verify that it is part of this module.
2. If 'eo-ng-table' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
62 [nzDraggable]="nzDraggable"
~~~~~~~~~~~~~~~~~~~~~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:63:3 - error NG8002: Can't bind to 'nzDragCheck' since it isn't a known property of 'eo-ng-table'.
1. If 'eo-ng-table' is an Angular component and it has 'nzDragCheck' input, then verify that it is part of this module.
2. If 'eo-ng-table' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
63 [nzDragCheck]="nzDragCheck"
~~~~~~~~~~~~~~~~~~~~~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:66:3 - error NG8002: Can't bind to 'nzLoading' since it isn't a known property of 'eo-ng-table'.
1. If 'eo-ng-table' is an Angular component and it has 'nzLoading' input, then verify that it is part of this module.
2. If 'eo-ng-table' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
66 [nzLoading]="nzLoading"
~~~~~~~~~~~~~~~~~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:67:3 - error NG8002: Can't bind to 'nzLoadingIndicator' since it isn't a known property of 'eo-ng-table'.
1. If 'eo-ng-table' is an Angular component and it has 'nzLoadingIndicator' input, then verify that it is part of this module.
2. If 'eo-ng-table' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
67 [nzLoadingIndicator]="nzLoadingIndicator"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:68:3 - error NG8002: Can't bind to 'nzVirtualMaxItems' since it isn't a known property of 'eo-ng-table'.
1. If 'eo-ng-table' is an Angular component and it has 'nzVirtualMaxItems' input, then verify that it is part of this module.
2. If 'eo-ng-table' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
68 [nzVirtualMaxItems]="nzVirtualMaxItems"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:76:5 - error NG8002: Can't bind to 'nzTooltipTitle' since it isn't a known property of 'span'.
76 [nzTooltipTitle]="item.tooltip || ''"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:77:5 - error NG8002: Can't bind to 'nzTooltipTitleContext' since it isn't a known property of 'span'.
77 [nzTooltipTitleContext]="item"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:78:5 - error NG8002: Can't bind to 'nzTooltipVisible' since it isn't a known property of 'span'.
78 [nzTooltipVisible]="item.tooltipVisible || false"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:79:5 - error NG8002: Can't bind to 'nzTooltipTrigger' since it isn't a known property of 'span'.
79 [nzTooltipTrigger]="item.tooltip ? item.tooltipTrigger || 'hover' : null"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:92:7 - error NG8002: Can't bind to 'nzTooltipTitle' since it isn't a known property of 'span'.
92 [nzTooltipTitle]="
~~~~~~~~~~~~~~~~~~
93 rowItem.json
~~~~~~~~~~~~~~~~~~~~
...
103 (rowItem.keySuffix || '')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
104 "
~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:105:7 - error NG8002: Can't bind to 'nzTooltipTitleContext' since it isn't a known property of 'span'.
105 [nzTooltipTitleContext]="{ rowItem: rowItem, item: item }"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:106:7 - error NG8002: Can't bind to 'nzTooltipVisible' since it isn't a known property of 'span'.
106 [nzTooltipVisible]="rowItem.tooltipVisible || false"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:107:7 - error NG8002: Can't bind to 'nzTooltipTrigger' since it isn't a known property of 'span'.
107 [nzTooltipTrigger]="rowItem.tooltipTrigger || 'hover'"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:108:7 - error NG8002: Can't bind to 'nzTooltipOverlayClassName' since it isn't a known property of 'span'.
108 [nzTooltipOverlayClassName]="rowItem.json ? 'tooltip-json' : ''"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:122:7 - error NG8002: Can't bind to 'copyText' since it isn't a known property of 'span'.
122 [copyText]="
~~~~~~~~~~~~
123 (rowItem.keyPrefix || '') +
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
125 (rowItem.keySuffix || '')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
126 "
~~~~~~~
projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
9 templateUrl: './table.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TableComponent.
ELIFECYCLE Command failed with exit code 1.
apinto dashboard version
): 3.3.0uname -a
): Linux VM-87-153 5.4.32-1-linux4-0001 #1 SMP Tue Jul 21 14:24:37 CST 2020 x86_64 x86_64 x86_64 GNU/Linux目前使用的包为 github.com/mattn/go-sqlite3 不支持跨平台编译
建议替换成 modernc.org/sqlite
仅供参考
dashboard什么时候可以配置oauth2鉴权
uname -a
): ubuntu22.04运行时候提示如下信息,怎么解决,有没有源码编译部署说明
[2023-12-29 00:55:37] [FATA] need:[github.com/eolinker/apinto-dashboard/modules/cluster/cluster-store.cluster_store.IClusterNodeStore github.com/eolinker/apinto-dashboard/modules/notice/notice-store.notice_store.INoticeChannelStatStore github.com/eolinker/apinto-dashboard/modules/variable/variable-store.variable_store.IClusterVariableStore github.com/eolinker/apinto-dashboard/modules/group/group-store.group_store.ICommonGroupStore github.com/eolinker/apinto-dashboard/modules/plugin/plugin-store.plugin_store.IPluginHistoryStore github.com/eolinker/apinto-dashboard/modules/api/store.api_store.IApiHistoryStore github.com/eolinker/apinto-dashboard/modules/api/store.api_store.IAPIStore github.com/eolinker/apinto-dashboard/modules/cluster/cluster-store.cluster_store.IClusterCertificateStore github.com/eolinker/apinto-dashboard/modules/dynamic/dynamic-store.dynamic_store.IDynamicPublishHistoryStore github.com/eolinker/apinto-dashboard/modules/plugin_template/plugin-template-store.plugin_template_store.IPluginTemplateHistoryStore github.com/eolinker/apinto-dashboard/modules/plugin_template/plugin-template-store.plugin_template_store.IPluginTemplateStore github.com/eolinker/apinto-dashboard/modules/base/quote-store.quote_store.IQuoteStore github.com/eolinker/apinto-dashboard/modules/plugin/plugin-store.plugin_store.IClusterPluginRuntimeStore github.com/eolinker/apinto-dashboard/modules/module-plugin/store.store.IModulePluginEnableStore github.com/eolinker/apinto-dashboard/modules/plugin/plugin-store.plugin_store.IClusterPluginPublishHistoryStore github.com/eolinker/apinto-dashboard/modules/module-plugin/store.store.IPluginResources github.com/eolinker/apinto-dashboard/modules/variable/variable-store.variable_store.IVariableRuntimeStore github.com/eolinker/apinto-dashboard/modules/variable/variable-store.variable_store.IVariablePublishVersionStore github.com/eolinker/apinto-dashboard/modules/variable/variable-store.variable_store.IVariableHistoryStore github.com/eolinker/apinto-dashboard/modules/openapp/openapp-store.openapp_store.IExternalApplicationStore github.com/eolinker/apinto-dashboard/modules/application/application-store.application_store.IApplicationHistoryStore github.com/eolinker/apinto-dashboard/modules/cluster/cluster-store.cluster_store.IClusterStore github.com/eolinker/apinto-dashboard/modules/plugin_template/plugin-template-store.plugin_template_store.IPluginTemplateVersionStore github.com/eolinker/apinto-dashboard/modules/dynamic/dynamic-store.dynamic_store.IDynamicQuoteStore github.com/eolinker/apinto-dashboard/modules/api/store.api_store.IAPIVersionStore github.com/eolinker/apinto-dashboard/modules/plugin/plugin-store.plugin_store.IClusterPluginStore github.com/eolinker/apinto-dashboard/modules/application/application-store.application_store.IApplicationStatStore github.com/eolinker/apinto-dashboard/modules/namespace/namespace-store.namespace_store.INamespaceStore github.com/eolinker/apinto-dashboard/modules/plugin/plugin-store.plugin_store.IPluginStore github.com/eolinker/apinto-dashboard/modules/plugin/plugin-store.plugin_store.IClusterPluginPublishVersionStore github.com/eolinker/apinto-dashboard/modules/application/application-store.application_store.IApplicationStore github.com/eolinker/apinto-dashboard/modules/plugin_template/plugin-template-store.plugin_template_store.IPluginTemplateStatStore github.com/eolinker/apinto-dashboard/modules/application/application-store.application_store.IApplicationVersionStore github.com/eolinker/apinto-dashboard/modules/audit/audit-store.audit_store.IAuditLogStore github.com/eolinker/apinto-dashboard/modules/plugin_template/plugin-template-store.plugin_template_store.IPluginTemplatePublishHistoryStore github.com/eolinker/apinto-dashboard/modules/user/user-store.user_store.IUserInfoStore github.com/eolinker/apinto-dashboard/modules/cluster/cluster-store.cluster_store.IClusterRuntimeStore github.com/eolinker/apinto-dashboard/modules/module-plugin/store.store.IModulePluginStore github.com/eolinker/apinto-dashboard/modules/application/application-store.application_store.IApplicationAuthStore github.com/eolinker/apinto-dashboard/modules/remote_storage/store.store.IRemoteStorage github.com/eolinker/apinto-dashboard/modules/dynamic/dynamic-store.dynamic_store.IDynamicStore github.com/eolinker/apinto-dashboard/modules/api/store.api_store.IAPIStatStore github.com/eolinker/apinto-dashboard/modules/plugin/plugin-store.plugin_store.IClusterPluginHistoryStore github.com/eolinker/apinto-dashboard/modules/notice/notice-store.notice_store.INoticeChannelStore github.com/eolinker/apinto-dashboard/modules/dynamic/dynamic-store.dynamic_store.IDynamicPublishVersionStore github.com/eolinker/apinto-dashboard/modules/variable/variable-store.variable_store.IVariablePublishHistoryStore github.com/eolinker/apinto-dashboard/modules/api/store.api_store.IApiPublishHistoryStore github.com/eolinker/apinto-dashboard/modules/application/application-store.application_store.IAppPublishHistoryStore github.com/eolinker/apinto-dashboard/modules/cluster/cluster-store.cluster_store.IClusterHistoryStore github.com/eolinker/apinto-dashboard/modules/notice/notice-store.notice_store.INoticeChannelVersionStore github.com/eolinker/apinto-dashboard/modules/variable/variable-store.variable_store.IGlobalVariableStore]
请问 apinto-dashboard / apinto 是否支持 Developer Portal 功能?类似 Tyk Developer Portal 或 Kong Dev Portal 这种,允许第三方开发者自助注册 app 并申请 API 访问权限。
demo 里找了一圈没找到。
(not applied)
Hello,
I have currently installed on a cloud server:
However, I encounter an error when trying to access the following route.: http://localhost:18080/login
The YAML file for deployment is as follows:
version: '3' services: mysql: image: mysql:5.7.34 privileged: true restart: always container_name: apinto_mysql hostname: apinto_mysql ports: - "33306:3306" environment: - MYSQL_ROOT_PASSWORD=123456 - MYSQL_DATABASE=apinto volumes: - /var/lib/apinto/mysql:/var/lib/mysql networks: - apinto apinto-dashboard: image: eolinker/apinto-dashboard container_name: apinto-dashboard privileged: true restart: always networks: - apinto ports: - "18080:8080" depends_on: - mysql - redis_cluster environment: - MYSQL_USER_NAME=root - MYSQL_PWD=123456 - MYSQL_IP=apinto_mysql - MYSQL_PORT=3306 #mysql端口 - MYSQL_DB="apinto" - ERROR_DIR=/apinto-dashboard/work/logs # 日志放置目录 - ERROR_FILE_NAME=error.log # 错误日志文件名 - ERROR_LOG_LEVEL=info # 错误日志等级,可选:panic,fatal,error,warning,info,debug,trace 不填或者非法则为info - ERROR_EXPIRE=7d # 错误日志过期时间,默认单位为天,d|天,h|小时, 不合法配置默认为7d - ERROR_PERIOD=day # 错误日志切割周期,仅支持day、hour - REDIS_ADDR=172.100.0.1:7201,172.100.0.1:7202,172.100.0.1:7203,172.100.0.1:7204,172.100.0.1:7205,172.100.0.1:7206 #Redis集群地址 多个用,隔开 - REDIS_PWD=123456 # Redis密码 volumes: - /var/log/apinto/apinto-dashboard/work:/apinto-dashboard/work #挂载log到主机目录 redis_cluster: container_name: redis_cluster image: eolinker/cluster-redis:6.2.7 hostname: redis_cluster privileged: true restart: always environment: - REDIS_PWD=123456 - PORT=7201 - HOST=172.18.21.251 volumes: - /var/lib/apinto/redis-cluster/data:/usr/local/cluster_redis/data network_mode: host networks: apinto: driver: bridge ipam: driver: default config: - subnet: 172.100.0.0/24
I can't find where I should configure the Apinto services like the IP addresses of the clusters. What could be the issue?
I would expect to see what is shown in the image, which I extracted from this repository.
No response
apinto dashboard version
):uname -a
):version: '3'
services:
mysql:
image: mysql:5.7.21
privileged: true
restart: always
container_name: apinto_mysql
hostname: apinto_mysql
ports:
- "33306:3306"
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=apinto
volumes:
- /var/lib/apinto/mysql:/var/lib/mysql
networks:
- apinto
apinto-dashboard:
image: eolinker/apinto-dashboard
container_name: apinto-dashboard
privileged: true
restart: always
networks:
- apinto
ports:
- "18080:8080"
depends_on:
- mysql
- redis_cluster
environment:
- MYSQL_USER_NAME=root
- MYSQL_PWD=123456
- MYSQL_IP=apinto_mysql
- MYSQL_PORT=3306 #mysql端口
- MYSQL_DB="apinto"
- ERROR_DIR=/apinto-dashboard/work/logs # 日志放置目录
- ERROR_FILE_NAME=error.log # 错误日志文件名
- ERROR_LOG_LEVEL=info # 错误日志等级,可选:panic,fatal,error,warning,info,debug,trace 不填或者非法则为info
- ERROR_EXPIRE=7d # 错误日志过期时间,默认单位为天,d|天,h|小时, 不合法配置默认为7d
- ERROR_PERIOD=day # 错误日志切割周期,仅支持day、hour
- REDIS_ADDR=172.100.0.1:7201,172.100.0.1:7202,172.100.0.1:7203,172.100.0.1:7204,172.100.0.1:7205,172.100.0.1:7206 #Redis集群地址 多个用,隔开
- REDIS_PWD=123456 # Redis密码
volumes:
- /var/log/apinto/apinto-dashboard/work:/apinto-dashboard/work #挂载log到主机目录
redis_cluster:
container_name: redis_cluster
image: eolinker/cluster-redis:6.2.7
hostname: redis_cluster
privileged: true
restart: always
environment:
- REDIS_PWD=123456
- PORT=7201
- HOST=55.235.31.218
volumes:
- /var/lib/apinto/redis-cluster/data:/usr/local/cluster_redis/data
network_mode: host
networks:
apinto:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.100.0.0/24
apinto dashboard version
):uname -a
):追踪日志不能实时获取数据,连接IP似乎是没有取真实地址。
No response
apinto dashboard version
):apserver_v3.2.1uname -a
):Linux test 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux点开上游的页面,就能发现只有15条数据,前端按照20条进行分页查询,但是后端只有15条返回,导致缺失5条
No response
No response
接口: /api/dynamic/upstream/list?page=1&pageSize=20&keyword=&cluster=%5B%5D&namespace=default
此带有dynamic 的请求在api.service.ts underline() 方法中,忽略了驼峰转下划线的转换
后端中,modules/dynamic/dynamic-controller./dynamic.go 获取getPage() 为 pageSize := ctx.Query("page_size"),全局搜索到,后端基本没有pageSize的query 参数获取了。
apinto dashboard version
): v3.3.3uname -a
): 6.8.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 17 Apr 2024 15:20:28 +0000 x86_64 GNU/Linux日志检索异常:系统管理->日志检索,报错:
node addr http://172.18.0.2:9400 can not be connected
控制台network
请求的一个API:api/log/files?cluster=cluster_2e34f6a8_509c_482b_9dd3_0d49d1060db6&node=5a399d0b6b9644b78a19e6f636825474&namespace=default
,响应如下:
{"code":-1,"msg":"node addr http://172.18.0.2:9400 can not be connected"}
1,希望能解答一下,关于网关和节点中涉及到相关的访问地址及之间的关联;
2,日志检索能正常使用,以及该问题是否跟1
相关;
/var/lib/apinto/error*.log
几个文件中,都是空的。
1,dashboard 安装:https://help.eolink.com/tutorial/Apinto/c-1406
中 docker-compose ,修改项:密码和redis_cluster . environment . HOST
为 本地内网IP:172.17.0.5
2,节点安装:https://help.eolink.com/tutorial/Apinto/c-1378
,单节点,Docker方式,直接复制文档中的配置,暂无任何修改;
1, dashboard 添加集群时,录入的是:172.17.0.5:9400
,检测成功,录入之后,页面返回的管理地址和服务地址,ip 分别变成了 172.18.0.2
,这是为啥?
2,第一条的内网变更,对功能没有任何影响,上游API及访问测试,无论通过 172.17.0.5:8099
或172.18.0.2:8099
都可以;
3,日志检索异常:系统管理->日志检索,报错:
node addr http://172.18.0.2:9400 can not be connected
控制台network
请求的一个API:api/log/files?cluster=cluster_2e34f6a8_509c_482b_9dd3_0d49d1060db6&node=5a399d0b6b9644b78a19e6f636825474&namespace=default
,响应如下:
{"code":-1,"msg":"node addr http://172.18.0.2:9400 can not be connected"}
uname -a
: Linux sls-tc-sh 5.4.119-19-0009.11 #1 SMP Wed Oct 5 18:41:07 CST 2022 x86_64 x86_64 x86_64 GNU/Linux理解apinto作为开源项目,需要为自己的pro版本引流。但是在最新的3.2.2版本中,内嵌了api市场以及众多的广告按钮。
想提个小建议,能否减少开源版中的引流呢
您好:
我嘗試在一台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
您好:目前dashboard首页部分的统计预计会在哪个版本发布?
/home/runner/work/apinto-dashboard/apinto-dashboard/app/apserver/redis.go:22
连不上redis
version: '3'
services:
mysql:
image: mysql:5.7.21
privileged: true
restart: always
container_name: apinto_mysql
hostname: apinto_mysql
ports:
- "33306:3306"
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=apinto
volumes:
- /var/lib/apinto/mysql:/var/lib/mysql
networks:
- apinto
apinto-dashboard:
image: eolinker/apinto-dashboard
container_name: apinto-dashboard
privileged: true
restart: always
networks:
- apinto
ports:
- "18182:8080"
depends_on:
- mysql
- redis_cluster
environment:
- MYSQL_USER_NAME=root
- MYSQL_PWD=123456
- MYSQL_IP=apinto_mysql
- MYSQL_PORT=3306 #mysql端口
- MYSQL_DB="apinto"
- ERROR_DIR=/apinto-dashboard/work/logs # 日志放置目录
- ERROR_FILE_NAME=error.log # 错误日志文件名
- ERROR_LOG_LEVEL=info # 错误日志等级,可选:panic,fatal,error,warning,info,debug,trace 不填或者非法则为info
- ERROR_EXPIRE=7d # 错误日志过期时间,默认单位为天,d|天,h|小时, 不合法配置默认为7d
- ERROR_PERIOD=day # 错误日志切割周期,仅支持day、hour
- REDIS_ADDR=172.100.0.1:7201,172.100.0.1:7202,172.100.0.1:7203,172.100.0.1:7204,172.100.0.1:7205,172.100.0.1:7206 #Redis集群地址 多个用,隔开
- REDIS_PWD=123456 # Redis密码
volumes:
- /var/log/apinto/apinto-dashboard/work:/apinto-dashboard/work #挂载log到主机目录
redis_cluster:
container_name: redis_cluster
image: eolinker/cluster-redis:6.2.7
hostname: redis_cluster
privileged: true
restart: always
environment:
- REDIS_PWD=123456
- PORT=7201
- HOST=10.1.38.172
volumes:
- /var/lib/apinto/redis-cluster/data:/usr/local/cluster_redis/data
network_mode: host
networks:
apinto:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.100.0.0/24
Hi, I read the doc about running with docker-compose, but I noticed that some service like mysql, redis(-cluster) are exported to the host which I believe is not best practise due to port conflicts and also not required.
So, I tried to update my own version of docker-compose. But the following docker-compose.yml do not working.
It failed with the following errors, maybe redis(-cluster) or mysql problems.
version: '3'
services:
mysql:
image: mysql:5.7.34
# image: mysql
privileged: true
restart: always
container_name: mysql
hostname: mysql
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
ports:
- 3306
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=apinto
volumes:
- ./mysql:/var/lib/mysql
networks:
- apinto
apinto-gateway:
image: eolinker/apinto-gateway
container_name: apinto-gateway
privileged: true
restart: always
networks:
- apinto
ports:
- 8099:8099
- 9400:9400
- 9401:9401
volumes:
- ./apinto/data:/var/lib/apinto
- ./apinto/log:/var/log/apinto
apinto-dashboard:
image: eolinker/apinto-dashboard
container_name: apinto-dashboard
privileged: true
restart: always
networks:
- apinto
ports:
- 18088:8080
depends_on:
- mysql
- cluster-redis
environment:
- MYSQL_USER_NAME=root
- MYSQL_PWD=123456
- MYSQL_IP=mysql
- MYSQL_PORT=3306
- MYSQL_DB=apinto
- ERROR_DIR=/apinto-dashboard/work/logs
- ERROR_FILE_NAME=error.log
- ERROR_LOG_LEVEL=info
- ERROR_EXPIRE=7d
- ERROR_PERIOD=day
- REDIS_ADDR=cluster-redis:7201,cluster-redis:7202,cluster-redis:7203,cluster-redis:7204,cluster-redis:7205,cluster-redis:7206
- REDIS_PWD=123456
volumes:
- ./apinto-dashboard/work:/apinto-dashboard/work
cluster-redis:
container_name: cluster-redis
image: eolinker/cluster-redis:6.2.7
hostname: cluster-redis
privileged: true
restart: always
networks:
- apinto
ports:
- 7201
- 7202
- 7203
- 7204
- 7205
- 7206
environment:
- REDIS_PWD=123456
- PORT=7201
- HOST=localhost
volumes:
- ./redis-cluster/data:/usr/local/cluster_redis/data
networks:
apinto:
driver: bridge
ipam:
driver: default
# config:
# - subnet: 172.100.0.0/24
[root@localhost apinto_dashboard]# docker compose up
[+] Running 4/0
✔ Container mysql Running 0.0s
✔ Container cluster-redis Running 0.0s
✔ Container apinto-gateway Created 0.0s
✔ Container apinto-dashboard Created 0.0s
Attaching to apinto-dashboard, apinto-gateway, cluster-redis, mysql
apinto-dashboard | mysql:
apinto-dashboard | user_name: root
apinto-dashboard | password: 123456
apinto-dashboard | ip: mysql
apinto-dashboard | port: 3306
apinto-dashboard | db: apinto
apinto-dashboard | redis:
apinto-dashboard | user_name:
apinto-dashboard | password: 123456
apinto-dashboard | addr:
apinto-dashboard | - cluster-redis:7201
apinto-dashboard | - cluster-redis:7202
apinto-dashboard | - cluster-redis:7203
apinto-dashboard | - cluster-redis:7204
apinto-dashboard | - cluster-redis:7205
apinto-dashboard | - cluster-redis:7206
apinto-dashboard | port: 8080
apinto-dashboard | error_log:
apinto-dashboard | dir: /apinto-dashboard/work/logs
apinto-dashboard | file_name: error.log
apinto-dashboard | log_level: info
apinto-dashboard | log_expire: 7d
apinto-dashboard | log_period: day
apinto-dashboard |
apinto-dashboard | 2023/12/01 00:27:27 /home/runner/go/pkg/mod/gorm.io/[email protected]/callbacks.go:134 Error 1062: Duplicate entry '1' for key 'PRIMARY'
apinto-dashboard | [1.612ms] [rows:0] INSERT INTO `namespace` (`name`,`create_time`,`id`) VALUES ('default','2023-12-01 00:27:27.179',1)
apinto-dashboard | [2023-12-01 00:27:27] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
apinto-dashboard | [2023-12-01 00:27:27] [WARN] lockKey=updateExtender_1701361647 error=CLUSTERDOWN Hash slot not served
apinto-gateway exited with code 0
apinto-gateway exited with code 0
apinto-gateway exited with code 0
apinto-gateway exited with code 0
apinto-gateway exited with code 0
apinto-gateway exited with code 0
apinto-dashboard | [2023-12-01 00:27:37] [ERRO] get module config version:dial tcp :7201: connect: connection refused
apinto-gateway exited with code 0
apinto-gateway exited with code 0
apinto-dashboard | [2023-12-01 00:27:47] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
apinto-dashboard | [2023-12-01 00:27:57] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
apinto-gateway exited with code 0
apinto-dashboard | [2023-12-01 00:28:00] [WARN] lockKey=updateExtender_1701361680 error=CLUSTERDOWN The cluster is down
apinto-dashboard | [2023-12-01 00:28:07] [ERRO] get module config version:CLUSTERDOWN The cluster is down
apinto-dashboard | [2023-12-01 00:28:17] [ERRO] get module config version:dial tcp :7201: connect: connection refused
^CGracefully stopping... (press Ctrl+C again to force)
Aborting on container exit...
[+] Running 4/4
✔ Container apinto-dashboard Stopped 10.3s
✔ Container apinto-gateway Stopped 0.0s
✔ Container cluster-redis Stopped 10.7s
✔ Container mysql Stopped 1.4s
canceled
[root@localhost apinto_dashboard]#
I do not familar with redis-cluster, could I replace the cluster version to normal redis service and how to do it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.