Hey all,
So recently i've upgrade my server from PHP 8.0.28 to PHP 8.1.16.
This change was needed to prepare the migration from Laravel 9.x to 10.x which is due soon.
Currently i've upgraded everything in the project to be compatible with PHP 8.1, unfortunately the deploy fails. And this is where it gets a bit strange. If i connect to my server via SSH in terminal or a remote server with my designated user / password and i run the command php -v i get the following result :
PHP 8.1.16 (cli) (built: Feb 20 2023 13:55:35) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.16, Copyright (c) Zend Technologies
When i add a hook to envoyer at the beginning of the deployment and execute the command php -v (for the same user (but with ssh_key) I take a look at the output ... Iget a different version of PHP
PHP 8.0.28 (cli) (built: Feb 20 2023 13:55:35) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.16, Copyright (c) Zend Technologies
I've contacted the admins for the server and they confirm that this version of PHP is not running on my server anymore... yet Envoyer.io has a connection to this php version.
I closed all connections for the user with pkill command, and verified with who that the user is not connected anymore. It looks like that Envoyer.io has somekind of open connection or something or caching. Anyone else experienced this behaviour before? And how do i Solve it? I've Reached out to the Envoyer.io Team but have yet to receive feedback.
If i do the deployment manually on my server everything works fine.
Currently i'm out of ideas ...