Description
After you select the software package to upload on the software package feature module, the system makes no response or displays software package upload failure.
Cause analysis
The following issues may cause the software package upload failure:
The OCP server cannot operate properly.
The host of the OCP server does not have sufficient storage space.
The MetaDB storage space is insufficient.
The network connection of the client is poor. For example, the network or bandwidth of the bastion host is limited.
Solutions
The OCP server cannot operate properly.
Check whether the process of the OCP server host is normal.
Open the
$HOME/logs/ocp/ocp.logfile to check for exception information in the latest log.
The host of the OCP server does not have sufficient storage space.
Run the
dfcommand on the host of the OCP server to check whether the usage of the corresponding disk exceeds the threshold.If yes, open the
$HOME/data/files/directory to check whether a great number of files are in the directory.If yes, delete the files in the directory, increase the disk space, or delete other files.
The MetaDB storage space is insufficient.
Open the
$HOME/logs/ocp/ocp.logfile to check whether the MetaDB size exceeds the limit.The network connection of the client is poor. For example, the network or bandwidth of the bastion host is limited. You can call the OCP API in the network environment where the OCP server is deployed to upload the software package. Procedure:
If you can access an external network through the network of the OCP server, you can run the
wget/curlcommand to download the software package to the OCP server or the host of the OCP server.If you cannot access an external network, you can upload the software package to OCP based on the OCP version. Run
scp/ftpor use thefile copyfeature to copy the software package to the OCP server or the host of the OCP server.Parameters of OCP 2.4.x
Parameter Description SITE_URL The URL of the OCP server used to access an external network. This URL must be an intranet URL of OCP. FILE_TYPE The file type, which is determined based on the software package. - OB_SERVER_INSTALL_PACKAGE: OBServer installation package
- OB_AGENT_INSTALL_PACKAGE: OB Agent installation package
- OCP_AGENT_INSTALL_PACKAGE: OCP Agent installation package
- OBPROXY_INSTALL_PACKAGE: OB Proxy installation package
- OB_BACKUP_AGENT_INSTALL_PACKAGE: installation package of the backup and recovery agent.
- OTHERS_RPM: any other installation package
- SCRIPT: script file
FILE_NAME The absolute path of the software package. OCP_USERNAME The username of the OCP user who has the software package write permission. OCP_PASSWORD The password for the user. Example
# Download the software package from the URL of the software package. If you manually copy the software package to a remote host, you can skip this step. wget "http://yum.tbsite.net/taobao/7/x86_64/xxx/${FILE_NAME}" SITE_URL="http://xxx.xxx.xxx.xxx:8080" FILE_TYPE="OCP_AGENT_INSTALL_PACKAGE" FILE_NAME="t-oceanbase-ocp-agent-2.5.0-xxx.alios7.x86_64.rpm" curl -i --user <OCP_USERNAME>:<OCP_PASSWORD> -X POST \ "${SITE_URL}/api/v2/files/uploadFile?type=${FILE_TYPE}" \ -H "Content-Type: multipart/form-data" \ -F "file=@${FILE_NAME}"Parameters of OCP 2.5.0
Parameter Description SITE_URL The URL of the OCP server used to access an external network. This URL must be an intranet URL of OCP. FILE_NAME The absolute path of the software package. The backend automatically analyzes the type of the software package based on the name and content of the software package. OCP_USERNAME The username of the OCP user who has the software package write permission. OCP_PASSWORD The password for the user. Example
# Download the software package from the URL of the software package. If you manually copy the software package to a remote host, you can skip this step. wget "http://yum.tbsite.net/taobao/7/x86_64/test/t-oceanbase-ocp-agent/${FILE_NAME}" SITE_URL="http://xxx.xxx.xxx.xxx:8080" FILE_NAME="t-oceanbase-ocp-agent-2.5.0-xxx.alios7.x86_64.rpm" curl -i --user <OCP_USERNAME>:<OCP_PASSWORD> -X POST \ "${SITE_URL}/api/v2/software-packages" \ -H "Content-Type: multipart/form-data" \ -F "file=@${FILE_NAME}"