马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
- sudo docker run --detach \
- --hostname 1xx.2xx.3xx.4xx \
- --publish 9443:443 --publish 9080:80 --publish 9022:22 \
- --name gitlab \
- --restart always \
- --volume /data/gitlab/config:/etc/gitlab \
- --volume /data/gitlab/logs:/var/log/gitlab \
- --volume /data/gitlab/data:/var/opt/gitlab \
- --shm-size 256m \
- registry.gitlab.cn/omnibus/gitlab-jh:latest
复制代码 按照官网教程进行安装,没有配置环境变量(export GITLAB_HOME=/srv/gitlab)。
使用 docker logs -f gitlab --tail=300查看日志
- ==> /var/log/gitlab/gitlab-rails/production_json.log <==
- {"method":"GET","path":"/-/metrics","format":"html","controller":"MetricsController","action":"index","status":200,"time":"2024-06-15T17:58:54.728Z","params":[],"redis_calls":8,"redis_duration_s":0.000927,"redis_read_bytes":1392,"redis_write_bytes":445,"redis_feature_flag_calls":8,"redis_feature_flag_duration_s":0.000927,"redis_feature_flag_read_bytes":1392,"redis_feature_flag_write_bytes":445,"db_count":0,"db_write_count":0,"db_cached_count":0,"db_txn_count":0,"db_replica_txn_count":0,"db_primary_txn_count":0,"db_main_txn_count":0,"db_ci_txn_count":0,"db_main_replica_txn_count":0,"db_ci_replica_txn_count":0,"db_replica_count":0,"db_primary_count":0,"db_main_count":0,"db_ci_count":0,"db_main_replica_count":0,"db_ci_replica_count":0,"db_replica_cached_count":0,"db_primary_cached_count":0,"db_main_cached_count":0,"db_ci_cached_count":0,"db_main_replica_cached_count":0,"db_ci_replica_cached_count":0,"db_replica_wal_count":0,"db_primary_wal_count":0,"db_main_wal_count":0,"db_ci_wal_count":0,"db_main_replica_wal_count":0,"db_ci_replica_wal_count":0,"db_replica_wal_cached_count":0,"db_primary_wal_cached_count":0,"db_main_wal_cached_count":0,"db_ci_wal_cached_count":0,"db_main_replica_wal_cached_count":0,"db_ci_replica_wal_cached_count":0,"db_replica_txn_max_duration_s":0.0,"db_primary_txn_max_duration_s":0.0,"db_main_txn_max_duration_s":0.0,"db_ci_txn_max_duration_s":0.0,"db_main_replica_txn_max_duration_s":0.0,"db_ci_replica_txn_max_duration_s":0.0,"db_replica_txn_duration_s":0.0,"db_primary_txn_duration_s":0.0,"db_main_txn_duration_s":0.0,"db_ci_txn_duration_s":0.0,"db_main_replica_txn_duration_s":0.0,"db_ci_replica_txn_duration_s":0.0,"db_replica_duration_s":0.0,"db_primary_duration_s":0.0,"db_main_duration_s":0.0,"db_ci_duration_s":0.0,"db_main_replica_duration_s":0.0,"db_ci_replica_duration_s":0.0,"cpu_s":0.053257,"mem_objects":5198,"mem_bytes":2004344,"mem_mallocs":1303,"mem_total_bytes":2212264,"pid":1144,"worker_id":"puma_7","rate_limiting_gates":[],"correlation_id":"f89fabc1-30e9-434b-9ee3-2c14f4975713","db_duration_s":0.0,"view_duration_s":0.00046,"duration_s":0.04508}
- <font color="#ff0000">==> /var/log/gitlab/gitlab-workhorse/current <==
- redis: 2024/06/15 17:58:55 pubsub.go:168: redis: discarding bad PubSub connection: EOF
- {"error":"keywatcher: pubsub receive: EOF","level":"error","msg":"","time":"2024-06-15T17:58:55Z"}</font>
- ==> /var/log/gitlab/gitlab-exporter/current <==
- 2024-06-15_17:58:57.04650 ::1 - - [15/Jun/2024:17:58:57 UTC] "GET /sidekiq HTTP/1.1" 200 508
- 2024-06-15_17:58:57.04652 - -> /sidekiq
复制代码 上面的日志,一直在滚动输出,感觉已经输出了好多遍。就发现有一个这样的错误。怎么解决啊?
|