Category: Cloud Server
-
Post Views: 15 1. Execute the initialization command in Windows 10, set the directory permissions of all applications, normal (14 lines in total), as shown in Figure 1 2. Execute the initialization command in CentOS 7.2, the directory permissions under some applications are not set, abnormal (8 lines in total), as shown in Figure 2 3. Enter the /api directory…
-
Post Views: 15 1. Supervisor is a small system that can manage and monitor various processes in UNIX-like systems. The configuration file of supervisor is a Windows-ini style (Python ConfigParser) file. 2. The program configuration item of the configuration file of Supervisor 3. Create a new \build\c_files\etc\supervisord.d\yii-task-submit.ini, as shown in Figure 1 4. StopWaitSecs, after the program sends a stop…
-
Post Views: 14 1. When there is an environment variable, the replacement is not performed, the variable in the file /etc/nginx/conf.d/pcs.conf is not replaced, and there is a replacement record in /config/init/change.log, as shown in Figure 1 2. Check the container log, report an error: sed: couldnT open file ww/pcs/build/config.js: No such file or directory 3. pcs_cfg_callback_login=https://cmclogin.chinamcloud.com/login/index?call_back=http://wjdev2.chinamcloud.com:8657/#/topic/add, there is #…
-
Post Views: 15 1, \build\c_files\config\init\config0.sh, replace the shell script of environment variables 2. When upgrading, the system source ID of the parameters uploaded by the CP upload is missing, and the boot container fails, as shown in Figure 1 3. Edit \build\c_files\config\init\config0.sh, and replace the shell script of the environment variable. When an environment variable exists, the replacement operation is…
-
Post Views: 13 1. View the \build\c_files\config\init\config0.sh file 2. In the Rancher environment variable, the values of pcs_api_cfg_cpu_params_xcontent, pcs_api_cfg_cpu_params_pcs are Chinese, as shown in Figure 1 3. After the upgrade is completed, go to the container to check, and find that the variables in the configuration file have not been replaced, as shown in Figure 2 4. Edit the \build\c_files\config\init\config0.sh…
-
Post Views: 14 1. The upgrade fails in Rancher, and Rolling-Back (Expected State Running But Got Stopped) appears when rolling back, as shown in Figure 1 2. Click the link to view the log, as shown in Figure 2 3. Log: WebTV-PCS-1, prompt: pcs_api_cfg_db_host, unbound variables (it can be clear that the environment variables were bound before, the reason has…
-
Post Views: 50 1. The code of the Dockerfile is as follows: 2. When building based on Jenkins, the details of the error are as follows, as shown in Figure 1 3. Edit the dockerfile, temporarily cancel the composer related, after the build is successful, run composer -v in the docker container, no response, as shown in Figure 2 4.…
-
Post Views: 12 1. The image is successfully built in Jenkins, as shown in Figure 1 2. Execute the upgrade in Rancher and report an error: sed: -e expression #1, char 36: unknownd option toS, as shown in Figure 2 3. Replace the / in the .sh file with @, as shown in Figure 3 sed -i “s/cmcp_api_cfg_yii_debug/$cmcp_api_cfg_yii_debug/g” /sobey/www/cmcp-api/.env; be…