Skip to main content

Hi, on this upgrade I have the error, in the webbrowser:

Error

I think this web-picture is no so interresting like the error in the logfile /var/log/php-fpm/centreon-error.log:

CRITICAL: Too few arguments to function Core\Security\Infrastructure\Repository\DbWriteTokenRepository::__construct(), 1 passed in /var/cache/centreon/symfony/ContainerBVjvxXk/getDbWriteTokenRepositoryService.php on line 20 and exactly 2 expected {"context":"[object] (ArgumentCountError(code: 0): Too few arguments to function Core\\Security\\Infrastructure\\Repository\\DbWriteTokenRepository::__construct(), 1 passed in /var/cache/centreon/symfony/ContainerBVjvxXk/getDbWriteTokenRepositoryService.php on line 20 and exactly 2 expected at /usr/share/centreon/src/Core/Security/Infrastructure/Repository/DbWriteTokenRepository.php:39)"}

CRITICAL: Too few arguments to function Core\Security\Infrastructure\Repository\DbWriteTokenRepository::__construct(), 1 passed in /var/cache/centreon/symfony/ContainerBVjvxXk/getDbWriteTokenRepositoryService.php on line 20 and exactly 2 expected {"context":"[object] (ArgumentCountError(code: 0): Too few arguments to function Core\\Security\\Infrastructure\\Repository\\DbWriteTokenRepository::__construct(), 1 passed in /var/cache/centreon/symfony/ContainerBVjvxXk/getDbWriteTokenRepositoryService.php on line 20 and exactly 2 expected at /usr/share/centreon/src/Core/Security/Infrastructure/Repository/DbWriteTokenRepository.php:39)"}

This error will be logged a few times per hour.

My system:

Centreon is running an a VM, downloaded the original image form centreon on centos. Didn’t change anything in the system before, only yum update a few times. So it is the original php version and everything like centreon builed the vm with 22.04. I have only added much devices, and my IT-100 licence key.

Did anyone have the same system, and got this error and solved it?

 

Thanks Jan

Hello,

Could you share the logs from /var/log/centreon/upgrade.log and /var/log/centreon/sql-error.log those logs should be more relevant to help you.

 

Thanks !


Hi Jérémy, 

thanks for answer. 

in the sql-error.log is only one line:

2022-09-24 12:42|0|0|SQLSTATET40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction QUERY : UPDATE security_token

                    SET expiration_date = :expirationDate

                    WHERE token = :sessionId, null

The timestamp is definitely after I have started the upgrade.

I have no file like upgrade.log or update, etc. in the /var/log/centreon folder. there is only a file called updatePlatformTopology.php in the folder, but this is an empty file.

Also outside in /var/log is no file which is about centreon. I do not know the centos, so I’m not sure if they have an other folder for logs. And I also don’t know the VM centreon has build, I used this always in the past, because it worked always well and you don’t need to do anything. Setup by hand on debian is very tricky. 

Thanks


I went to update my centeron today, and in step 4, this error occurred.
I've already looked at some logs and I don't know what it could be.

 

 

 


Reply