Giter Club home page Giter Club logo

Comments (15)

Dot-Liu avatar Dot-Liu commented on September 26, 2024 2
  1. 停止容器
    docker-compose down
  2. 删除redis挂载目录
    rm -fr /var/lib/apinto/redis-cluster/data
  3. 重启服务
    docker-compose up -d

from apinto-dashboard.

Dot-Liu avatar Dot-Liu commented on September 26, 2024

麻烦将错误日志截图,redis的docker容器日志

from apinto-dashboard.

aipymhx avatar aipymhx commented on September 26, 2024

@Dot-Liu
image

from apinto-dashboard.

Dot-Liu avatar Dot-Liu commented on September 26, 2024

是Redis的容器,容器名称redis_cluster

from apinto-dashboard.

Dot-Liu avatar Dot-Liu commented on September 26, 2024

一般是你的host的配置有误,如果您需要更及时的支持,可以加入咱们的用户群

from apinto-dashboard.

aipymhx avatar aipymhx commented on September 26, 2024

@Dot-Liu
image

redis看起来没有问题,

from apinto-dashboard.

Dot-Liu avatar Dot-Liu commented on September 26, 2024

有问题的,redis集群没有建成功

from apinto-dashboard.

FunkyGod avatar FunkyGod commented on September 26, 2024

这个docker-compose的文档是有问题的,redis也无法正常启动

from apinto-dashboard.

FunkyGod avatar FunkyGod commented on September 26, 2024

有问题的,redis集群没有建成功

这个docker-compose的文档是有问题的,redis也无法正常启动

from apinto-dashboard.

Dot-Liu avatar Dot-Liu commented on September 26, 2024

@FunkyGod
估计是您这边的IP设置原因,教程里建议使用局域网IP

from apinto-dashboard.

Dot-Liu avatar Dot-Liu commented on September 26, 2024

请问您的问题解决了吗

from apinto-dashboard.

pemako avatar pemako commented on September 26, 2024

@Dot-Liu 你好,我这边也遇到了问题,麻烦看下是我设置的有问题吗

  1. 我这边的yaml文件如下
---
version: '3'
services:
  mysql:
    image: mysql:5.7.34
    privileged: true
    restart: always
    container_name: apinto_mysql
    hostname: apinto_mysql
    command:
      - "--character-set-server=utf8mb4"
      - "--collation-server=utf8mb4_unicode_ci"
    ports:
      - "33307: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:
      - "18081:8080"
    depends_on:
      - mysql
      - redis_cluster
    environment:
      - MYSQL_USER_NAME=root
      - MYSQL_PWD=123456
      - MYSQL_IP=apinto_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=172.100.0.1:7201
      - REDIS_PWD=123456
    volumes:
      - /var/log/apinto/apinto-dashboard/work:/apinto-dashboard/work
  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.0.0.212
    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
  1. 启动之后报错
image
  1. 机器的 ip route 信息
image
  1. 页面打开 404

from apinto-dashboard.

pemako avatar pemako commented on September 26, 2024

dashboard 的详细日志如下

docker logs bd42badc8a90
mysql:
  user_name: root
  password: 123456
  ip: apinto_mysql
  port: 3306
  db: "apinto"
redis:
  user_name:
  password: 123456
  addr:
    - 172.100.0.1:7201
port: 8080
error_log:
  dir: /apinto-dashboard/work/logs
  file_name: error.log
  log_level: info
  log_expire: 7d
  log_period: day

2023/11/29 02:26:15 /home/runner/go/pkg/mod/gorm.io/[email protected]/callbacks.go:134 Error 1062: Duplicate entry '1' for key 'PRIMARY'
[0.976ms] [rows:0] INSERT INTO `namespace` (`name`,`create_time`,`id`) VALUES ('default','2023-11-29 02:26:15.177',1)
[2023-11-29 02:26:15] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:26:15] [WARN] lockKey=updateExtender_1701195975 error=CLUSTERDOWN Hash slot not served
[2023-11-29 02:26:25] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:26:35] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:26:45] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:26:55] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:27:00] [WARN] lockKey=updateExtender_1701196020 error=CLUSTERDOWN Hash slot not served
[2023-11-29 02:27:05] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:27:15] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:27:25] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:27:35] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:27:45] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:27:55] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:28:00] [WARN] lockKey=updateExtender_1701196080 error=CLUSTERDOWN Hash slot not served
[2023-11-29 02:28:05] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:28:15] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
mysql:
  user_name: root
  password: 123456
  ip: apinto_mysql
  port: 3306
  db: "apinto"
redis:
  user_name:
  password: 123456
  addr:
    - 172.100.0.1:7201
port: 8080
error_log:
  dir: /apinto-dashboard/work/logs
  file_name: error.log
  log_level: info
  log_expire: 7d
  log_period: day

2023/11/29 02:30:27 /home/runner/go/pkg/mod/gorm.io/[email protected]/callbacks.go:134 Error 1062: Duplicate entry '1' for key 'PRIMARY'
[0.658ms] [rows:0] INSERT INTO `namespace` (`name`,`create_time`,`id`) VALUES ('default','2023-11-29 02:30:27.195',1)
[2023-11-29 02:30:27] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:30:27] [WARN] lockKey=updateExtender_1701196227 error=CLUSTERDOWN Hash slot not served
[2023-11-29 02:30:37] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:30:47] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:30:57] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:31:00] [WARN] lockKey=updateExtender_1701196260 error=CLUSTERDOWN Hash slot not served
[2023-11-29 02:31:07] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:31:17] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
mysql:
  user_name: root
  password: 123456
  ip: apinto_mysql
  port: 3306
  db: "apinto"
redis:
  user_name:
  password: 123456
  addr:
    - 172.100.0.1:7201
port: 8080
error_log:
  dir: /apinto-dashboard/work/logs
  file_name: error.log
  log_level: info
  log_expire: 7d
  log_period: day

2023/11/29 02:31:19 /home/runner/go/pkg/mod/gorm.io/[email protected]/callbacks.go:134 Error 1062: Duplicate entry '1' for key 'PRIMARY'
[0.524ms] [rows:0] INSERT INTO `namespace` (`name`,`id`,`create_time`) VALUES ('default',1,'2023-11-29 02:31:19.974')
[2023-11-29 02:31:20] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:31:20] [WARN] lockKey=updateExtender_1701196280 error=CLUSTERDOWN Hash slot not served
[2023-11-29 02:31:30] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:31:40] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:31:50] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:32:00] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:32:00] [WARN] lockKey=updateExtender_1701196320 error=CLUSTERDOWN Hash slot not served
[2023-11-29 02:32:10] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:32:20] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:32:30] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:32:40] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:32:50] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:33:00] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:33:00] [WARN] lockKey=updateExtender_1701196380 error=CLUSTERDOWN Hash slot not served
[2023-11-29 02:33:10] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:33:20] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:33:30] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:33:40] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:33:50] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:34:00] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:34:00] [WARN] lockKey=updateExtender_1701196440 error=CLUSTERDOWN Hash slot not served
[2023-11-29 02:34:10] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:34:20] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:34:30] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:34:40] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:34:50] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:35:00] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:35:00] [WARN] lockKey=updateExtender_1701196500 error=CLUSTERDOWN Hash slot not served
[2023-11-29 02:35:10] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:35:20] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:35:30] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:35:40] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:35:50] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:36:00] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:36:00] [WARN] lockKey=updateExtender_1701196560 error=CLUSTERDOWN Hash slot not served
[2023-11-29 02:36:10] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:36:20] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:36:30] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:36:40] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:36:50] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:37:00] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:37:00] [WARN] lockKey=updateExtender_1701196620 error=CLUSTERDOWN Hash slot not served
[2023-11-29 02:37:10] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:37:20] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:37:30] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
mysql:
  user_name: root
  password: 123456
  ip: apinto_mysql
  port: 3306
  db: "apinto"
redis:
  user_name:
  password: 123456
  addr:
    - 172.100.0.1:7201
port: 8080
error_log:
  dir: /apinto-dashboard/work/logs
  file_name: error.log
  log_level: info
  log_expire: 7d
  log_period: day

2023/11/29 02:38:58 /home/runner/go/pkg/mod/gorm.io/[email protected]/gorm.go:206
[error] failed to initialize database, got error dial tcp 172.100.0.2:3306: connect: connection refused
panic: dial tcp 172.100.0.2:3306: connect: connection refused

goroutine 1 [running]:
github.com/eolinker/apinto-dashboard/config.InitDb()
        /home/runner/work/apinto-dashboard/apinto-dashboard/config/store-mysql.go:30 +0x634
main.run()
        /home/runner/work/apinto-dashboard/apinto-dashboard/app/apserver/main.go:55 +0x127
main.main.func1(0xc0000037c0?)
        /home/runner/work/apinto-dashboard/apinto-dashboard/app/apserver/main.go:39 +0x17
github.com/urfave/cli/v2.(*Command).Run(0xc0000037c0, 0xc0004912c0, {0xc00011e200, 0x1, 0x1})
        /home/runner/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:271 +0xaab
github.com/urfave/cli/v2.(*App).RunContext(0xc000692000, {0x2e29a10?, 0xc000126000}, {0xc00011e200, 0x1, 0x1})
        /home/runner/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:329 +0x665
github.com/urfave/cli/v2.(*App).Run(...)
        /home/runner/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:306
main.main()
        /home/runner/work/apinto-dashboard/apinto-dashboard/app/apserver/main.go:43 +0x18d
mysql:
  user_name: root
  password: 123456
  ip: apinto_mysql
  port: 3306
  db: "apinto"
redis:
  user_name:
  password: 123456
  addr:
    - 172.100.0.1:7201
port: 8080
error_log:
  dir: /apinto-dashboard/work/logs
  file_name: error.log
  log_level: info
  log_expire: 7d
  log_period: day

2023/11/29 02:38:59 /home/runner/go/pkg/mod/gorm.io/[email protected]/callbacks.go:134 Error 1062: Duplicate entry '1' for key 'PRIMARY'
[0.603ms] [rows:0] INSERT INTO `namespace` (`name`,`create_time`,`id`) VALUES ('default','2023-11-29 02:38:59.084',1)
[2023-11-29 02:38:59] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:38:59] [WARN] lockKey=updateExtender_1701196739 error=CLUSTERDOWN Hash slot not served
[2023-11-29 02:39:00] [WARN] lockKey=updateExtender_1701196740 error=CLUSTERDOWN Hash slot not served
[2023-11-29 02:39:09] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:39:19] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
[2023-11-29 02:39:29] [ERRO] get module config version:CLUSTERDOWN Hash slot not served

from apinto-dashboard.

Dot-Liu avatar Dot-Liu commented on September 26, 2024

这个原因是因为您Redis没有起来,或者集群模式没有搭建成功,教程里有一键部署的命令,您可以看看
https://help.eolink.com/tutorial/Apinto/c-1406

from apinto-dashboard.

pemako avatar pemako commented on September 26, 2024

非常感谢,我已经按照提示的部署命令进行调整了,服务都可以正常启动,但是访问 dashboard 404;看错误日志如下,我需要如何调整呢。再次感谢

  1. docker-compose.yml
---
version: '3'
services:
  mysql:
    image: mysql:5.7.34
    privileged: true
    restart: always
    container_name: apinto_mysql
    hostname: apinto_mysql
    command:
      - "--character-set-server=utf8mb4"
      - "--collation-server=utf8mb4_unicode_ci"
    ports:
      - "33307: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:
      - "18081:8080"
    depends_on:
      - mysql
      - redis_cluster
    environment:
      - MYSQL_USER_NAME=root
      - MYSQL_PWD=123456
      - MYSQL_IP=apinto_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=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_PWD=123456
    volumes:
      - /var/log/apinto/apinto-dashboard/work:/apinto-dashboard/work
  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.0.0.212
    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
  1. compose 日志信息
docker-compose logs
Attaching to apinto-dashboard, apinto_mysql, redis_cluster
apinto-dashboard    | mysql:
apinto-dashboard    |   user_name: root
apinto-dashboard    |   password: 123456
apinto-dashboard    |   ip: apinto_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    |     - 172.100.0.1:7201
apinto-dashboard    |     - 172.100.0.1:7202
apinto-dashboard    |     - 172.100.0.1:7203
apinto-dashboard    |     - 172.100.0.1:7204
apinto-dashboard    |     - 172.100.0.1:7205
apinto-dashboard    |     - 172.100.0.1: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/11/29 11:37:57 /home/runner/go/pkg/mod/gorm.io/[email protected]/gorm.go:206
apinto-dashboard    | [error] failed to initialize database, got error dial tcp 172.100.0.2:3306: connect: connection refused
apinto-dashboard    | panic: dial tcp 172.100.0.2:3306: connect: connection refused
apinto-dashboard    |
apinto-dashboard    | goroutine 1 [running]:
apinto-dashboard    | github.com/eolinker/apinto-dashboard/config.InitDb()
apinto-dashboard    | 	/home/runner/work/apinto-dashboard/apinto-dashboard/config/store-mysql.go:30 +0x634
apinto-dashboard    | main.run()
apinto-dashboard    | 	/home/runner/work/apinto-dashboard/apinto-dashboard/app/apserver/main.go:55 +0x127
apinto-dashboard    | main.main.func1(0xc00047f680?)
apinto-dashboard    | 	/home/runner/work/apinto-dashboard/apinto-dashboard/app/apserver/main.go:39 +0x17
apinto-dashboard    | github.com/urfave/cli/v2.(*Command).Run(0xc00047f680, 0xc0002e2280, {0xc000034240, 0x1, 0x1})
apinto-dashboard    | 	/home/runner/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:271 +0xaab
apinto-dashboard    | github.com/urfave/cli/v2.(*App).RunContext(0xc00013a000, {0x2e29a10?, 0xc000038098}, {0xc000034240, 0x1, 0x1})
apinto-dashboard    | 	/home/runner/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:329 +0x665
apinto-dashboard    | github.com/urfave/cli/v2.(*App).Run(...)
apinto-dashboard    | 	/home/runner/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:306
apinto-dashboard    | main.main()
apinto-dashboard    | 	/home/runner/work/apinto-dashboard/apinto-dashboard/app/apserver/main.go:43 +0x18d
apinto-dashboard    | mysql:
apinto-dashboard    |   user_name: root
apinto-dashboard    |   password: 123456
apinto-dashboard    |   ip: apinto_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    |     - 172.100.0.1:7201
apinto-dashboard    |     - 172.100.0.1:7202
apinto-dashboard    |     - 172.100.0.1:7203
apinto-dashboard    |     - 172.100.0.1:7204
apinto-dashboard    |     - 172.100.0.1:7205
apinto-dashboard    |     - 172.100.0.1: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/11/29 11:37:58 /home/runner/go/pkg/mod/gorm.io/[email protected]/callbacks.go:134 Error 1062: Duplicate entry '1' for key 'PRIMARY'
apinto-dashboard    | [0.606ms] [rows:0] INSERT INTO `namespace` (`name`,`create_time`,`id`) VALUES ('default','2023-11-29 11:37:58.336',1)
apinto-dashboard    | [2023-11-29 11:37:58] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
apinto-dashboard    | [2023-11-29 11:37:58] [WARN] lockKey=updateExtender_1701229078 error=CLUSTERDOWN Hash slot not served
apinto-dashboard    | [2023-11-29 11:38:00] [WARN] lockKey=updateExtender_1701229080 error=CLUSTERDOWN Hash slot not served
apinto-dashboard    | [2023-11-29 11:38:08] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
apinto-dashboard    | [2023-11-29 11:38:18] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
apinto-dashboard    | [2023-11-29 11:38:28] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
apinto-dashboard    | [2023-11-29 11:38:38] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
apinto-dashboard    | [2023-11-29 11:38:48] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
apinto-dashboard    | mysql:
apinto-dashboard    |   user_name: root
apinto-dashboard    |   password: 123456
apinto-dashboard    |   ip: apinto_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    |     - 172.100.0.1:7201
apinto-dashboard    |     - 172.100.0.1:7202
apinto-dashboard    |     - 172.100.0.1:7203
apinto-dashboard    |     - 172.100.0.1:7204
apinto-dashboard    |     - 172.100.0.1:7205
apinto-dashboard    |     - 172.100.0.1: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/11/29 11:39:03 /home/runner/go/pkg/mod/gorm.io/[email protected]/gorm.go:206
apinto-dashboard    | [error] failed to initialize database, got error dial tcp 172.100.0.2:3306: connect: connection refused
apinto-dashboard    | panic: dial tcp 172.100.0.2:3306: connect: connection refused
apinto-dashboard    |
apinto-dashboard    | goroutine 1 [running]:
apinto-dashboard    | github.com/eolinker/apinto-dashboard/config.InitDb()
apinto-dashboard    | 	/home/runner/work/apinto-dashboard/apinto-dashboard/config/store-mysql.go:30 +0x634
apinto-dashboard    | main.run()
apinto-dashboard    | 	/home/runner/work/apinto-dashboard/apinto-dashboard/app/apserver/main.go:55 +0x127
apinto-dashboard    | main.main.func1(0xc00001cc80?)
apinto-dashboard    | 	/home/runner/work/apinto-dashboard/apinto-dashboard/app/apserver/main.go:39 +0x17
apinto-dashboard    | github.com/urfave/cli/v2.(*Command).Run(0xc00001cc80, 0xc0002e2e80, {0xc000034240, 0x1, 0x1})
apinto-dashboard    | 	/home/runner/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:271 +0xaab
apinto-dashboard    | github.com/urfave/cli/v2.(*App).RunContext(0xc0000ae000, {0x2e29a10?, 0xc000038098}, {0xc000034240, 0x1, 0x1})
apinto-dashboard    | 	/home/runner/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:329 +0x665
apinto-dashboard    | github.com/urfave/cli/v2.(*App).Run(...)
apinto-dashboard    | 	/home/runner/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:306
apinto-dashboard    | main.main()
apinto-dashboard    | 	/home/runner/work/apinto-dashboard/apinto-dashboard/app/apserver/main.go:43 +0x18d
apinto-dashboard    | mysql:
apinto-dashboard    |   user_name: root
apinto-dashboard    |   password: 123456
apinto-dashboard    |   ip: apinto_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    |     - 172.100.0.1:7201
apinto-dashboard    |     - 172.100.0.1:7202
apinto-dashboard    |     - 172.100.0.1:7203
apinto-dashboard    |     - 172.100.0.1:7204
apinto-dashboard    |     - 172.100.0.1:7205
apinto-dashboard    |     - 172.100.0.1: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/11/29 11:39:04 /home/runner/go/pkg/mod/gorm.io/[email protected]/callbacks.go:134 Error 1062: Duplicate entry '1' for key 'PRIMARY'
apinto-dashboard    | [0.612ms] [rows:0] INSERT INTO `namespace` (`name`,`id`,`create_time`) VALUES ('default',1,'2023-11-29 11:39:04.884')
apinto-dashboard    | [2023-11-29 11:39:05] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
apinto-dashboard    | [2023-11-29 11:39:05] [WARN] lockKey=updateExtender_1701229145 error=CLUSTERDOWN Hash slot not served
apinto-dashboard    | [2023-11-29 11:39:15] [ERRO] get module config version:CLUSTERDOWN Hash slot not served
redis_cluster       | Starting 7201
redis_cluster       | /usr/local/bin/redis-server --port 7201 --cluster-enabled yes --cluster-node-timeout 2000 --cluster-config-file nodes-redis-7201.conf --appendonly yes --appendfilename appendonly-7201.aof --dbfilename dump-7201.rdb --logfile 7201.log --daemonize yes --requirepass 123456 --masterauth 123456 --maxmemory 1073741824
redis_cluster       | Starting 7202
redis_cluster       | /usr/local/bin/redis-server --port 7202 --cluster-enabled yes --cluster-node-timeout 2000 --cluster-config-file nodes-redis-7202.conf --appendonly yes --appendfilename appendonly-7202.aof --dbfilename dump-7202.rdb --logfile 7202.log --daemonize yes --requirepass 123456 --masterauth 123456 --maxmemory 1073741824
redis_cluster       | Starting 7203
redis_cluster       | /usr/local/bin/redis-server --port 7203 --cluster-enabled yes --cluster-node-timeout 2000 --cluster-config-file nodes-redis-7203.conf --appendonly yes --appendfilename appendonly-7203.aof --dbfilename dump-7203.rdb --logfile 7203.log --daemonize yes --requirepass 123456 --masterauth 123456 --maxmemory 1073741824
redis_cluster       | Starting 7204
redis_cluster       | /usr/local/bin/redis-server --port 7204 --cluster-enabled yes --cluster-node-timeout 2000 --cluster-config-file nodes-redis-7204.conf --appendonly yes --appendfilename appendonly-7204.aof --dbfilename dump-7204.rdb --logfile 7204.log --daemonize yes --requirepass 123456 --masterauth 123456 --maxmemory 1073741824
redis_cluster       | Starting 7205
redis_cluster       | /usr/local/bin/redis-server --port 7205 --cluster-enabled yes --cluster-node-timeout 2000 --cluster-config-file nodes-redis-7205.conf --appendonly yes --appendfilename appendonly-7205.aof --dbfilename dump-7205.rdb --logfile 7205.log --daemonize yes --requirepass 123456 --masterauth 123456 --maxmemory 1073741824
redis_cluster       | Starting 7206
redis_cluster       | /usr/local/bin/redis-server --port 7206 --cluster-enabled yes --cluster-node-timeout 2000 --cluster-config-file nodes-redis-7206.conf --appendonly yes --appendfilename appendonly-7206.aof --dbfilename dump-7206.rdb --logfile 7206.log --daemonize yes --requirepass 123456 --masterauth 123456 --maxmemory 1073741824
redis_cluster       | hosts: 10.0.0.212:7201 10.0.0.212:7202 10.0.0.212:7203 10.0.0.212:7204 10.0.0.212:7205 10.0.0.212:7206
redis_cluster       | 集群已加入无需重复加入
redis_cluster       | Starting 7201
redis_cluster       | /usr/local/bin/redis-server --port 7201 --cluster-enabled yes --cluster-node-timeout 2000 --cluster-config-file nodes-redis-7201.conf --appendonly yes --appendfilename appendonly-7201.aof --dbfilename dump-7201.rdb --logfile 7201.log --daemonize yes --requirepass 123456 --masterauth 123456 --maxmemory 1073741824
redis_cluster       | Starting 7202
redis_cluster       | /usr/local/bin/redis-server --port 7202 --cluster-enabled yes --cluster-node-timeout 2000 --cluster-config-file nodes-redis-7202.conf --appendonly yes --appendfilename appendonly-7202.aof --dbfilename dump-7202.rdb --logfile 7202.log --daemonize yes --requirepass 123456 --masterauth 123456 --maxmemory 1073741824
redis_cluster       | Starting 7203
redis_cluster       | /usr/local/bin/redis-server --port 7203 --cluster-enabled yes --cluster-node-timeout 2000 --cluster-config-file nodes-redis-7203.conf --appendonly yes --appendfilename appendonly-7203.aof --dbfilename dump-7203.rdb --logfile 7203.log --daemonize yes --requirepass 123456 --masterauth 123456 --maxmemory 1073741824
redis_cluster       | Starting 7204
redis_cluster       | /usr/local/bin/redis-server --port 7204 --cluster-enabled yes --cluster-node-timeout 2000 --cluster-config-file nodes-redis-7204.conf --appendonly yes --appendfilename appendonly-7204.aof --dbfilename dump-7204.rdb --logfile 7204.log --daemonize yes --requirepass 123456 --masterauth 123456 --maxmemory 1073741824
redis_cluster       | Starting 7205
redis_cluster       | /usr/local/bin/redis-server --port 7205 --cluster-enabled yes --cluster-node-timeout 2000 --cluster-config-file nodes-redis-7205.conf --appendonly yes --appendfilename appendonly-7205.aof --dbfilename dump-7205.rdb --logfile 7205.log --daemonize yes --requirepass 123456 --masterauth 123456 --maxmemory 1073741824
redis_cluster       | Starting 7206
redis_cluster       | /usr/local/bin/redis-server --port 7206 --cluster-enabled yes --cluster-node-timeout 2000 --cluster-config-file nodes-redis-7206.conf --appendonly yes --appendfilename appendonly-7206.aof --dbfilename dump-7206.rdb --logfile 7206.log --daemonize yes --requirepass 123456 --masterauth 123456 --maxmemory 1073741824
redis_cluster       | hosts: 10.0.0.212:7201 10.0.0.212:7202 10.0.0.212:7203 10.0.0.212:7204 10.0.0.212:7205 10.0.0.212:7206
redis_cluster       | 集群已加入无需重复加入
apinto_mysql        | 2023-11-29 03:37:56+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.34-1debian10 started.
apinto_mysql        | 2023-11-29 03:37:57+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
apinto_mysql        | 2023-11-29 03:37:57+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.34-1debian10 started.
apinto_mysql        | 2023-11-29T03:37:57.540641Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
apinto_mysql        | 2023-11-29T03:37:57.542797Z 0 [Note] mysqld (mysqld 5.7.34) starting as process 1 ...
apinto_mysql        | 2023-11-29T03:37:57.547063Z 0 [Note] InnoDB: PUNCH HOLE support available
apinto_mysql        | 2023-11-29T03:37:57.547091Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
apinto_mysql        | 2023-11-29T03:37:57.547098Z 0 [Note] InnoDB: Uses event mutexes
apinto_mysql        | 2023-11-29T03:37:57.547103Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
apinto_mysql        | 2023-11-29T03:37:57.547112Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
apinto_mysql        | 2023-11-29T03:37:57.547117Z 0 [Note] InnoDB: Using Linux native AIO
apinto_mysql        | 2023-11-29T03:37:57.547545Z 0 [Note] InnoDB: Number of pools: 1
apinto_mysql        | 2023-11-29T03:37:57.547714Z 0 [Note] InnoDB: Using CPU crc32 instructions
apinto_mysql        | 2023-11-29T03:37:57.549727Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
apinto_mysql        | 2023-11-29T03:37:57.560517Z 0 [Note] InnoDB: Completed initialization of buffer pool
apinto_mysql        | 2023-11-29T03:37:57.563124Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
apinto_mysql        | 2023-11-29T03:37:57.575800Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
apinto_mysql        | 2023-11-29T03:37:57.587517Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
apinto_mysql        | 2023-11-29T03:37:57.587632Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
apinto_mysql        | 2023-11-29T03:37:57.612834Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
apinto_mysql        | 2023-11-29T03:37:57.613772Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
apinto_mysql        | 2023-11-29T03:37:57.613785Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
apinto_mysql        | 2023-11-29T03:37:57.614199Z 0 [Note] InnoDB: Waiting for purge to start
apinto_mysql        | 2023-11-29T03:37:57.664393Z 0 [Note] InnoDB: 5.7.34 started; log sequence number 13151595
apinto_mysql        | 2023-11-29T03:37:57.664662Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
apinto_mysql        | 2023-11-29T03:37:57.664842Z 0 [Note] Plugin 'FEDERATED' is disabled.
apinto_mysql        | 2023-11-29T03:37:57.668853Z 0 [Note] InnoDB: Buffer pool(s) load completed at 231129  3:37:57
apinto_mysql        | 2023-11-29T03:37:57.672979Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
apinto_mysql        | 2023-11-29T03:37:57.673004Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
apinto_mysql        | 2023-11-29T03:37:57.673825Z 0 [Warning] CA certificate ca.pem is self signed.
apinto_mysql        | 2023-11-29T03:37:57.673888Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
apinto_mysql        | 2023-11-29T03:37:57.674376Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
apinto_mysql        | 2023-11-29T03:37:57.674429Z 0 [Note] IPv6 is available.
apinto_mysql        | 2023-11-29T03:37:57.674449Z 0 [Note]   - '::' resolves to '::';
apinto_mysql        | 2023-11-29T03:37:57.674485Z 0 [Note] Server socket created on IP: '::'.
apinto_mysql        | 2023-11-29T03:37:57.675376Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
apinto_mysql        | 2023-11-29T03:37:57.685730Z 0 [Note] Event Scheduler: Loaded 0 events
apinto_mysql        | 2023-11-29T03:37:57.685943Z 0 [Note] mysqld: ready for connections.
apinto_mysql        | Version: '5.7.34'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
apinto_mysql        | 2023-11-29 03:39:03+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.34-1debian10 started.
apinto_mysql        | 2023-11-29 03:39:03+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
apinto_mysql        | 2023-11-29 03:39:03+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.34-1debian10 started.
apinto_mysql        | 2023-11-29T03:39:03.801799Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
apinto_mysql        | 2023-11-29T03:39:03.803879Z 0 [Note] mysqld (mysqld 5.7.34) starting as process 1 ...
apinto_mysql        | 2023-11-29T03:39:03.807722Z 0 [Note] InnoDB: PUNCH HOLE support available
apinto_mysql        | 2023-11-29T03:39:03.807742Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
apinto_mysql        | 2023-11-29T03:39:03.807747Z 0 [Note] InnoDB: Uses event mutexes
apinto_mysql        | 2023-11-29T03:39:03.807750Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
apinto_mysql        | 2023-11-29T03:39:03.807756Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
apinto_mysql        | 2023-11-29T03:39:03.807760Z 0 [Note] InnoDB: Using Linux native AIO
apinto_mysql        | 2023-11-29T03:39:03.808068Z 0 [Note] InnoDB: Number of pools: 1
apinto_mysql        | 2023-11-29T03:39:03.808203Z 0 [Note] InnoDB: Using CPU crc32 instructions
apinto_mysql        | 2023-11-29T03:39:03.810015Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
apinto_mysql        | 2023-11-29T03:39:03.820554Z 0 [Note] InnoDB: Completed initialization of buffer pool
apinto_mysql        | 2023-11-29T03:39:03.823148Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
apinto_mysql        | 2023-11-29T03:39:03.835794Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
apinto_mysql        | 2023-11-29T03:39:03.837536Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 13159078
apinto_mysql        | 2023-11-29T03:39:03.837549Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 13159087
apinto_mysql        | 2023-11-29T03:39:03.837555Z 0 [Note] InnoDB: Database was not shutdown normally!
apinto_mysql        | 2023-11-29T03:39:03.837559Z 0 [Note] InnoDB: Starting crash recovery.
apinto_mysql        | 2023-11-29T03:39:03.953549Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
apinto_mysql        | 2023-11-29T03:39:03.953577Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
apinto_mysql        | 2023-11-29T03:39:03.953655Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
apinto_mysql        | 2023-11-29T03:39:03.978861Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
apinto_mysql        | 2023-11-29T03:39:03.979804Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
apinto_mysql        | 2023-11-29T03:39:03.979819Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
apinto_mysql        | 2023-11-29T03:39:03.980233Z 0 [Note] InnoDB: Waiting for purge to start
apinto_mysql        | 2023-11-29T03:39:04.030427Z 0 [Note] InnoDB: 5.7.34 started; log sequence number 13159087
apinto_mysql        | 2023-11-29T03:39:04.030625Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
apinto_mysql        | 2023-11-29T03:39:04.030845Z 0 [Note] Plugin 'FEDERATED' is disabled.
apinto_mysql        | 2023-11-29T03:39:04.034554Z 0 [Note] InnoDB: Buffer pool(s) load completed at 231129  3:39:04
apinto_mysql        | 2023-11-29T03:39:04.038354Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
apinto_mysql        | 2023-11-29T03:39:04.038371Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
apinto_mysql        | 2023-11-29T03:39:04.039198Z 0 [Warning] CA certificate ca.pem is self signed.
apinto_mysql        | 2023-11-29T03:39:04.039263Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
apinto_mysql        | 2023-11-29T03:39:04.039719Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
apinto_mysql        | 2023-11-29T03:39:04.039771Z 0 [Note] IPv6 is available.
apinto_mysql        | 2023-11-29T03:39:04.039790Z 0 [Note]   - '::' resolves to '::';
apinto_mysql        | 2023-11-29T03:39:04.039824Z 0 [Note] Server socket created on IP: '::'.
apinto_mysql        | 2023-11-29T03:39:04.040596Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
apinto_mysql        | 2023-11-29T03:39:04.050628Z 0 [Note] Event Scheduler: Loaded 0 events
apinto_mysql        | 2023-11-29T03:39:04.050830Z 0 [Note] mysqld: ready for connections.
apinto_mysql        | Version: '5.7.34'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)

from apinto-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.