# 默认持久化目录 /opt/jumpserver
ls -al /opt/jumpserver/core/logs
ls -al /opt/jumpserver/koko/data/logs
ls -al /opt/jumpserver/lion/data/logs
ls -al /opt/jumpserver/nginx/log
docker exec -it jms_core bash
cd /opt/jumpserver/logs
ls -al
# 如果需要进入容器操作
docker exec -it jms_koko bash
cd /opt/koko/data/logs
ls -al
total69040drwxr--r--2rootroot40967月1922:09.drwxr-xr-x5rootroot409612月182020..-rw-r--r--1rootroot524286007月1922:09koko-2021-07-19T22-09-53.213.log-rw-r--r--1rootroot182482688月812:46koko.log# koko 日志
tail -f koko.log -n 200
# koko 日志2021-07-1922:09:51[ERRO]UserrootAuthenticateerr:POSThttp://core:8080/api/v1/authentication/tokens/failed,getcode:400,{"error":"block_login","msg":"账号已被锁定(请联系管理员解锁或30分钟后重试)"}2021-07-1922:09:51[ERRO]UserrootAuthenticateerr:POSThttp://core:8080/api/v1/authentication/tokens/failed,getcode:400,{"error":"block_login","msg":"账号已被锁定(请联系管理员解锁或30分钟后重试)"}2021-07-1922:09:51[ERRO]UserrootAuthenticateerr:POSThttp://core:8080/api/v1/authentication/tokens/failed,getcode:400,{"error":"block_login","msg":"账号已被锁定(请联系管理员解锁或30分钟后重试)"}2021-07-1922:09:51[ERRO]UserrootAuthenticateerr:POSThttp://core:8080/api/v1/authentication/tokens/failed,getcode:400,{"error":"block_login","msg":"账号已被锁定(请联系管理员解锁或30分钟后重试)"}2021-07-1922:09:51[ERRO]UserrootAuthenticateerr:POSThttp://core:8080/api/v1/authentication/tokens/failed,getcode:400,{"error":"block_login","msg":"账号已被锁定(请联系管理员解锁或30分钟后重试)"}2021-07-1922:09:51[ERRO]UserrootAuthenticateerr:POSThttp://core:8080/api/v1/authentication/tokens/failed,getcode:400,{"error":"block_login","msg":"账号已被锁定(请联系管理员解锁或30分钟后重试)"}2021-07-1922:09:51[ERRO]Userroot
Authenticateerr:POSThttp://core:8080/api/v1/authentication/tokens/failed,getcode:400,{"error":"block_login","msg":"账号已被锁定(请联系管理员解锁或30分钟后重试)"}2021-07-1922:09:51[ERRO]UserrootAuthenticateerr:POSThttp://core:8080/api/v1/authentication/tokens/failed,getcode:400,{"error":"block_login","msg":"账号已被锁定(请联系管理员解锁或30分钟后重试)"}2021-07-1922:09:51[ERRO]UserrootAuthenticateerr:POSThttp://core:8080/api/v1/authentication/tokens/failed,getcode:400,{"error":"block_login","msg":"账号已被锁定(请联系管理员解锁或30分钟后重试)"}
docker logs -f jms_lion --tail 200
# 如果需要进入容器操作
docker exec -it jms_lion bash
cd /opt/lion/data/logs
ls -al
# nginx 日志2021/08/0716:01:19[error]1113#1113: *395030 recv() failed (104: Connection reset by peer) while proxying upgraded connection, client: 192.168.250.1, server: , request: "GET /ws/notifications/site-msg/ HTTP/1.1", upstream: "http://192.168.250.2:8070/ws/notifications/site-msg/", host: "192.168.100.100"2021/08/0717:51:55[error]1113#1113: *397564 recv() failed (104: Connection reset by peer) while proxying upgraded connection, client: 192.168.250.1, server: , request: "GET /ws/notifications/site-msg/ HTTP/1.1", upstream: "http://192.168.250.2:8070/ws/notifications/site-msg/", host: "192.168.100.100"2021/08/0717:52:19[error]1113#1113: *413161 recv() failed (104: Connection reset by peer) while proxying upgraded connection, client: 192.168.250.1, server: , request: "GET /ws/notifications/site-msg/ HTTP/1.1", upstream: "http://192.168.250.2:8070/ws/notifications/site-msg/", host: "192.168.100.100"2021/08/0722:31:31[warn]1113#1113: *416920 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/6/01/0000000016 while reading upstream, client: 192.168.250.1, server: , request: "GET /api/docs/?format=openapi HTTP/1.1", upstream: "http://192.168.250.2:8080/api/docs/?format=openapi", host: "192.168.100.100", referrer: "https://192.168.100.100/api/docs/"2021/08/0812:03:28[error]1113#1113: *410227 recv() failed (104: Connection reset by peer) while proxying upgraded connection, client: 192.168.250.1, server: , request: "GET /ws/notifications/site-msg/ HTTP/1.1", upstream: "http://192.168.250.2:8070/ws/notifications/site-msg/", host: "192.168.100.100"
Creating network "jms_net" with driver "bridge"
Creating jms_mysql ... done
Creating jms_redis ... done
Creating jms_core ... done
ERROR: for celery Container "76b2e315f69d"is unhealthy.
ERROR: for lion Container "76b2e315f69d"is unhealthy.
ERROR: for koko Container "76b2e315f69d"is unhealthy.
ERROR: for web Container "76b2e315f69d"is unhealthy.
ERROR: Encountered errors while bringing up the project.
# 如果出现上面的错误, 执行下面的命令, 直到出现 Check service status 为止
docker logs -f jms_core --tail 200# 如果没有报错就等表结构合并完毕后然后重新 start 即可