After restarting tomcat, the log will return to normal.

To keep it short, for my case, it’s because we have two WARs deployed to the same Tomcat and both are writing to the same file.

Advertisements

This error has been in Prestashop for quite a whilte and unfortunely, it still exists when I install the latest 1.7.3.

To fix this error, you need unzip the language file manually.

SSH to the server /app/Resources/translations and you will found that there is only one zip file in the language you want to update the translation.

Just unzip the zip file, make sure you unzip all the files to the root directory (no subdirectory)

MySQL cursor is a convenient way to loop through data, but it may exit prematurely sometimes.

Below is one example

drop procedure if exists a_stored_procedure;

DELIMITER $$

CREATE PROCEDURE a_stored_procedure()
BEGIN

  DECLARE done INT DEFAULT FALSE;
  DECLARE user_id, group_id BIGINT;
  DECLARE a_cursor CURSOR FOR select userId from User;

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
  
  OPEN a_cursor;

  read_loop: LOOP
    FETCH a_cursor INTO user_id;
    IF done THEN
      LEAVE read_loop;
    END IF;

    select groupId into @group_id from UserGroup where userId = user_id limit 1;
    
    -- other statements

    
  END LOOP;

  CLOSE a_cursor;
 
 
END;

In the above stored procedure with cursor, the cursor will terminate after no more users, but actually it will also terminiate when select groupId into @group_id returns no result because it will also trigger Not found handler.

Reference: https://dev.mysql.com/doc/refman/5.6/en/declare-handler.html

To resolve this issue, first list all running jobs

salt-run jobs.active

https://docs.saltstack.com/en/latest/topics/jobs/

Kill the job

# kill all jobs
salt '*' saltutil.kill_all_jobs

# kill the job with id
salt '*' saltutil.kill_job <job id>

https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.saltutil.html#module-salt.modules.saltutil

Turn off secure boot in your BIOS.

and then

sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox

Windows: hold Shift while right clicking in the folder

MAC OS X: System Preferences > Keyboard > Shortcuts > Services: Enable New Terminal at Folder.

Tasks: setTimeout, setInterval, setImmediate, I/O, UI rendering

MicroTasks: Promises, Object.observe, MutationObserver

MicroTasks generate from the current task will be executed before the next task.

https://jakearchibald.com/2015/tasks-microtasks-queues-and-schedules/