Tag: Log
-
Post Views: 15 1. Enter the container that the environment variable has been replaced, a configuration file, which is in line with expectations. as shown in Figure 1 2. Enter a container that has not been replaced with an environment variable, and a configuration file does not meet the expectations. as shown in Figure 2 3. View the logs of…
-
Post Views: 15 1. In Rancher’s volume, add: /webtv:/data. as shown in Figure 1 2. Check the log of the container, and report an error: log_name: unbound variable. as shown in Figure 2 3. Enter the container and view the directory list under /data, which does not meet the expectations. Not mounted successfully. as shown in Figure 3 4. In…
-
Post Views: 45 1. Since the log message is stored in the log table of mysql, in the production environment, a large amount of data has been accumulated, and the data length of the log table has reached hundreds of gigabytes. Therefore, it is decided to implement the timing deletion of log messages based on the console command line, and…
-
Post Views: 46 1. Execute the command and report an error: php warning: strpos(): empty needle in E:\WWWRoot\PCS-API\Vendor\yiisoft\yii2\log\target.php on line 243, as shown in Figure 1 2. View \console\runtime\logs\app.log 3. Edit on the command line 4. Edit on the command line. Once an exception is thrown in the console command line, when writing to the log, an error will be…
-
Post Views: 61 1. By configuring the additional event processor, edit \environments\dev\common\config\main-local.php, \environments\prod\common\config\main-local.php, as shown in Figure 1 2. Edit \QQ\RESTS\QQ_CW_APP\IndexAction.php, an entry of a push queue 3. Edit \Common\Services\AssetService.php, copy the source resource file to the resource directory published by the channel, after the queue task is successfully executed, call the corresponding service, otherwise, insert the release log (asynchronous)…
-
Post Views: 15 1. In the ALL option for configuring your application, there is no Yii2 framework, only PHP can be selected, as shown in Figure 1 2. Install PHP integration for Sentry. The recommended method is to use composer, but decided not to use this scheme for the time being, as shown in Figure 2 3. Search yii2…
-
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…