访问localhost页面不进行跳转
【问题分类】
长安链管理台
【问题描述】(请对问题进行描述,方便定位问题)
具体的现象,操作步骤,前置条件等,尽可能描述清楚,有截图说明更佳 按照v2.3.0版文档通过管理台启动长安链部分,执行第3.1.3.2步docker-compose up命令后,访问localhost页面不进行跳转,情况如下图所示:
【相关日志文件】(如果有报错日志请贴图,或者上传附件)
chainmaker-go 的 log/system.log & bin/panic.log file *
SDK 的 sdk.log file 以下是命令行输入docker-compose up命令后的日志:
[root@localhost management-backend]# docker-compose up [+] Running 4/4 ✔ Network management-backend_default Created 0.2s ✔ Container management-backend-cm_db-1 Created 0.3s ✔ Container management-backend-cm_mgmt_server-1 Created 0.2s ✔ Container management-backend-cm_mgmt_web-1 Created 0.2s Attaching to cm_db-1, cm_mgmt_server-1, cm_mgmt_web-1 cm_db-1 | 2024-03-29 09:13:15+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.44-1.el7 started. cm_db-1 | 2024-03-29 09:13:15+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' cm_db-1 | 2024-03-29 09:13:15+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.44-1.el7 started. cm_db-1 | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock' cm_db-1 | 2024-03-29T09:13:15.780927Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). cm_db-1 | 2024-03-29T09:13:15.782120Z 0 [Note] mysqld (mysqld 5.7.44) starting as process 1 ... cm_db-1 | 2024-03-29T09:13:15.786678Z 0 [Note] InnoDB: PUNCH HOLE support available cm_db-1 | 2024-03-29T09:13:15.786725Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins cm_db-1 | 2024-03-29T09:13:15.786740Z 0 [Note] InnoDB: Uses event mutexes cm_db-1 | 2024-03-29T09:13:15.786751Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier cm_db-1 | 2024-03-29T09:13:15.786761Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.13 cm_db-1 | 2024-03-29T09:13:15.786770Z 0 [Note] InnoDB: Using Linux native AIO cm_db-1 | 2024-03-29T09:13:15.787162Z 0 [Note] InnoDB: Number of pools: 1 cm_db-1 | 2024-03-29T09:13:15.787300Z 0 [Note] InnoDB: Using CPU crc32 instructions cm_db-1 | 2024-03-29T09:13:15.789325Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M cm_db-1 | 2024-03-29T09:13:15.802063Z 0 [Note] InnoDB: Completed initialization of buffer pool cm_db-1 | 2024-03-29T09:13:15.805356Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). cm_db-1 | 2024-03-29T09:13:15.817453Z 0 [Note] InnoDB: Highest supported file format is Barracuda. cm_db-1 | 2024-03-29T09:13:15.922177Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables cm_db-1 | 2024-03-29T09:13:15.922400Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... cm_db-1 | 2024-03-29T09:13:16.059111Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. cm_db-1 | 2024-03-29T09:13:16.060260Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active. cm_db-1 | 2024-03-29T09:13:16.060284Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active. cm_db-1 | 2024-03-29T09:13:16.061004Z 0 [Note] InnoDB: Waiting for purge to start cm_db-1 | 2024-03-29T09:13:16.111183Z 0 [Note] InnoDB: 5.7.44 started; log sequence number 12569984 cm_db-1 | 2024-03-29T09:13:16.111566Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool cm_db-1 | 2024-03-29T09:13:16.111971Z 0 [Note] Plugin 'FEDERATED' is disabled. cm_db-1 | 2024-03-29T09:13:16.115574Z 0 [Note] InnoDB: Buffer pool(s) load completed at 240329 9:13:16 cm_db-1 | 2024-03-29T09:13:16.119499Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them. cm_db-1 | 2024-03-29T09:13:16.119520Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory. cm_db-1 | 2024-03-29T09:13:16.119526Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher. cm_db-1 | 2024-03-29T09:13:16.119530Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher. cm_db-1 | 2024-03-29T09:13:16.120317Z 0 [Warning] CA certificate ca.pem is self signed. cm_db-1 | 2024-03-29T09:13:16.120377Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory. cm_db-1 | 2024-03-29T09:13:16.120772Z 0 [Note] Server hostname (bind-address): '*'; port: 3306 cm_db-1 | 2024-03-29T09:13:16.121298Z 0 [Note] IPv6 is available. cm_db-1 | 2024-03-29T09:13:16.121325Z 0 [Note] - '::' resolves to '::'; cm_db-1 | 2024-03-29T09:13:16.121372Z 0 [Note] Server socket created on IP: '::'. cm_mgmt_server-1 | Load handler[GetChainList] -> [*chain_management.GetChainListHandler] cm_mgmt_server-1 | Load handler[EnableUser] -> [*user.EnableUserHandler] cm_mgmt_server-1 | Load handler[GetTxList] -> [*explorer.GetTxListHandler] cm_mgmt_server-1 | Load handler[OneGenerate] -> [*ca.OneGenerateHandler] cm_mgmt_server-1 | Load handler[GetConsensusList] -> [*chain_management.GetConsensusListHandler] cm_mgmt_server-1 | Load handler[DeleteContract] -> [*contract_management.DeleteContractHandler] cm_mgmt_server-1 | Load handler[ReportLogFile] -> [*log_report.ReportLogFileHandler] cm_mgmt_server-1 | Load handler[GetResourcePolicies] -> [*chain_management.GetResourcePoliciesHandler] cm_mgmt_server-1 | Load handler[ResetPassword] -> [*user.ResetPasswordHandler] cm_mgmt_server-1 | Load handler[AutoReportLogFile] -> [*log_report.AutoReportLogFileHandler] cm_mgmt_server-1 | Load handler[GetCert] -> [*ca.GetCertHandler] cm_mgmt_server-1 | Load handler[GetOrgListByChainId] -> [*organization.GetOrgListByChainIdHandler] cm_mgmt_server-1 | Load handler[ModifyContract] -> [*contract_management.ModifyContractHandler] cm_mgmt_server-1 | Load handler[DownloadLogFile] -> [*log_report.DownloadLogFileHandler] cm_mgmt_server-1 | Load handler[GetCertList] -> [*ca.GetCertListHandler] cm_mgmt_server-1 | Load handler[ImportCert] -> [*ca.ImportCertHandler] cm_mgmt_server-1 | Load handler[UploadFile] -> [*ca.UploadHandler] cm_mgmt_server-1 | Load handler[GetBcResource] -> [*chain_management.GetBcResource] cm_mgmt_server-1 | Load handler[DeleteChain] -> [*chain_management.DeleteChainHandler] cm_mgmt_server-1 | Load handler[GetLogList] -> [*log_report.GetLogListHandler] cm_mgmt_server-1 | Load handler[DownloadSdkConfig] -> [*overview.DownloadSdkHandler] cm_mgmt_server-1 | Load handler[GetCertNodeList] -> [*chain_management.GetCertNodeHandler] cm_mgmt_server-1 | Load handler[AddUser] -> [*user.AddUserHandler] cm_mgmt_server-1 | Load handler[DisableUser] -> [*user.DisableUserHandler] cm_mgmt_server-1 | Load handler[GetBlockList] -> [*explorer.GetBlockListHandler] cm_mgmt_server-1 | Load handler[InvokeContract] -> [*contract_invoke.InvokeContractHandler] cm_mgmt_server-1 | Load handler[GetAuthOrgList] -> [*overview.GetAuthOrgListHandler] cm_mgmt_server-1 | Load handler[DeleteAccount] -> [*ca.DeleteAccountHandler] cm_mgmt_server-1 | Load handler[Login] -> [*user.LoginHandler] cm_mgmt_server-1 | Load handler[GetBlockDetail] -> [*explorer.GetBlockDetailHandler] cm_mgmt_server-1 | Load handler[ContractDetail] -> [*contract_management.ContractDetailHandler] cm_mgmt_server-1 | Load handler[GetInvokeContractList] -> [*contract_invoke.GetInvokeContractListHandler] cm_mgmt_server-1 | Load handler[ModifyChainAuth] -> [*overview.ModifyChainAuthHandler] cm_mgmt_server-1 | Load handler[DownloadCert] -> [*ca.DownLoadCertHandler] cm_mgmt_server-1 | Load handler[SubscribeChain] -> [*chain_management.SubscribeChainHandler] cm_mgmt_server-1 | Load handler[DownloadChainConfig] -> [*chain_management.DownloadChainConfigHandler] cm_mgmt_server-1 | Load handler[GetCaptcha] -> [*user.CaptchaHandler] cm_mgmt_server-1 | Load handler[ModifyPassword] -> [*user.ModifyPasswordHandler] cm_mgmt_server-1 | Load handler[GetContractList] -> [*explorer.GetContractListHandler] cm_mgmt_server-1 | Load handler[GetAuthRoleList] -> [*overview.GetAuthRoleListHandler] cm_mgmt_server-1 | Load handler[ResubscribeChain] -> [*chain_management.ResubscribeChainHandler] cm_mgmt_server-1 | Load handler[GetTxDetail] -> [*explorer.GetTxDetailHandler] cm_mgmt_server-1 | Load handler[GetContractDetail] -> [*explorer.GetContractDetailHandler] cm_mgmt_server-1 | Load handler[GetSubscribeConfig] -> [*chain_management.GetSubscribeConfigHandler] cm_mgmt_server-1 | Load handler[GetChainModes] -> [*chain_management.GetChainModes] cm_mgmt_server-1 | Load handler[GetNodeList] -> [*node.GetNodeListHandler] cm_mgmt_server-1 | Load handler[GetInvokeRecordDetail] -> [*contract_invoke.GetInvokeRecordDetailHandler] cm_mgmt_server-1 | Load handler[ModifyChainConfig] -> [*overview.ModifyChainConfigHandler] cm_mgmt_server-1 | Load handler[FreezeContract] -> [*contract_management.FreezeContractHandler] cm_mgmt_server-1 | Load handler[UpgradeContract] -> [*contract_management.UpgradeContractHandler] cm_mgmt_server-1 | Load handler[GeneralData] -> [*overview.GeneralDataHandler] cm_mgmt_server-1 | Load handler[ExplorerSubscribe] -> [*overview.ExplorerSubscribeHandler] cm_mgmt_server-1 | Load handler[AddChain] -> [*chain_management.AddChainHandler] cm_mgmt_server-1 | Load handler[Logout] -> [*user.LogoutHandler] cm_mgmt_server-1 | Load handler[GetOrgList] -> [*organization.GetOrgListHandler] cm_mgmt_server-1 | Load handler[InstallContract] -> [*contract_management.InstallContractHandler] cm_mgmt_server-1 | Load handler[ReInvokeContract] -> [*contract_invoke.ReInvokeContractHandler] cm_mgmt_server-1 | Load handler[GetCertOrgList] -> [*chain_management.GetCertOrgListHandler] cm_mgmt_server-1 | Load handler[PauseChain] -> [*chain_management.PauseChainHandler] cm_mgmt_server-1 | Load handler[GetAdminList] -> [*admin.GetAdminListHandler] cm_mgmt_server-1 | Load handler[Vote] -> [*vote.VoteHandler] cm_mgmt_server-1 | Load handler[GetAuthList] -> [*overview.GetAuthListHandler] cm_mgmt_server-1 | Load handler[GetResourceList] -> [*overview.GetResourceListHandler] cm_mgmt_server-1 | Load handler[GetCertUserList] -> [*chain_management.GetCertUserListHandler] cm_mgmt_server-1 | Load handler[GetNodeDetail] -> [*node.GetNodeDetailHandler] cm_mgmt_server-1 | Load handler[GetInvokeRecordList] -> [*contract_invoke.GetInvokeRecordListHandler] cm_mgmt_server-1 | Load handler[GetChainDetail] -> [*overview.GetChainDetailHandler] cm_mgmt_server-1 | Load handler[PullErrorLog] -> [*log_report.PullErrorLogHandler] cm_mgmt_server-1 | Load handler[GenerateCert] -> [*ca.GenerateCertHandler] cm_mgmt_server-1 | Load handler[GetVoteManageList] -> [*vote.GetVoteManageListHandler] cm_mgmt_server-1 | Load handler[GetContractManageList] -> [*contract_management.GetContractManageListHandler] cm_mgmt_server-1 | Load handler[GetUserList] -> [*user.GetUserListHandler] cm_mgmt_server-1 | Load handler[HomePageSearch] -> [*explorer.HomePageSearchHandler] cm_mgmt_server-1 | Load handler[GetVoteDetail] -> [*vote.GetVoteDetailHandler] cm_mgmt_server-1 | Load handler[UnFreezeContract] -> [*contract_management.UnFreezeContractHandler] cm_mgmt_server-1 | Load handler[RevokeContract] -> [*contract_management.RevokeContractHandler] cm_mgmt_server-1 | Load handler[GetRuntimeTypeList] -> [*contract_management.GetRuntimeTypeListHandler] cm_mgmt_server-1 | [env]: cm_mgmt_server-1 | env is empty, set default: space cm_mgmt_server-1 | { cm_mgmt_server-1 | "DBConf": { cm_mgmt_server-1 | "Database": "chainmaker_dev", cm_mgmt_server-1 | "Host": "cm_db", cm_mgmt_server-1 | "Passwd": "Baec&chainmaker", cm_mgmt_server-1 | "Port": "3306", cm_mgmt_server-1 | "User": "chainmaker" cm_mgmt_server-1 | }, cm_mgmt_server-1 | "LogConf": null, cm_mgmt_server-1 | "WebConf": { cm_mgmt_server-1 | "Address": "0.0.0.0", cm_mgmt_server-1 | "AgentPort": 22301, cm_mgmt_server-1 | "CaptchaConf": { cm_mgmt_server-1 | "Height": 80, cm_mgmt_server-1 | "Length": 4, cm_mgmt_server-1 | "NoiseCount": 5, cm_mgmt_server-1 | "Width": 200 cm_mgmt_server-1 | }, cm_mgmt_server-1 | "CrossDomain": true, cm_mgmt_server-1 | "ErrmsgLang": 1, cm_mgmt_server-1 | "LoadPeriodSeconds": 60, cm_mgmt_server-1 | "Password": "a123456", cm_mgmt_server-1 | "Port": 9999, cm_mgmt_server-1 | "ReportUrl": "https://bugreport.chainmaker.org.cn/v1/reportLogs", cm_mgmt_server-1 | "SessionAge": 86400 cm_mgmt_server-1 | } cm_mgmt_server-1 | } cm_db-1 | 2024-03-29T09:13:16.193244Z 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. cm_db-1 | 2024-03-29T09:13:16.519896Z 0 [Note] Event Scheduler: Loaded 0 events cm_db-1 | 2024-03-29T09:13:16.521168Z 0 [Note] mysqld: ready for connections. cm_db-1 | Version: '5.7.44' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL) cm_mgmt_server-1 | cm_mgmt_server-1 | (/cm-mgmt/src/db/connection/connection.go:109) cm_mgmt_server-1 | [2024-03-29 09:13:16] Error 1062 (23000): Duplicate entry 'admin' for key 'user_name_index' cm_mgmt_server-1 | cm_mgmt_server-1 | (/cm-mgmt/src/db/connection/connection.go:109) cm_mgmt_server-1 | [2024-03-29 09:13:16] [0.79ms] INSERT INTO
cmb_user(
create_at,
update_at,
user_name,
name,
salt,
passwd,
parent_id,
status) VALUES ('2024-03-29 09:13:16','2024-03-29 09:13:16','admin','admin','5ZAIO3uWQlp0pa7BrGo9jyRMfokI0qEQ','07e5dc594930843778f608dd5b7a116565e92b3bca25880ca1fe204d236161cd',0,0) cm_mgmt_server-1 | [0 rows affected or returned ] cm_mgmt_server-1 | Error 1062 (23000): Duplicate entry 'admin' for key 'user_name_index' cm_mgmt_server-1 | cm_mgmt_server-1 | (/cm-mgmt/src/db/chain/chain.go:73) cm_mgmt_server-1 | [2024-03-29 09:13:16] [0.91ms] SELECT * FROM
cmb_chainWHERE (status=0) ORDER BY id DESC cm_mgmt_server-1 | [0 rows affected or returned ] cm_mgmt_server-1 | 2024-03-29 09:13:16.929 [INFO] [WEB] router/router.go:35 start cross domain processing... cm_mgmt_web-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration cm_mgmt_web-1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ cm_mgmt_web-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh cm_mgmt_web-1 | 10-listen-on-ipv6-by-default.sh: Getting the checksum of /etc/nginx/conf.d/default.conf cm_mgmt_web-1 | 10-listen-on-ipv6-by-default.sh: error: /etc/nginx/conf.d/default.conf differs from the packaged version cm_mgmt_web-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh cm_mgmt_web-1 | /docker-entrypoint.sh: Configuration complete; ready for start up
【系统信息】(请填写系统信息,方便定位问题)
- chainmaker-go version * : [v2.3.0]
- **OS & version * :CentOS7
- **docker镜像 version:25.0.3
- **docker-compose version:2.24.6
- **管理台 version:master