Page 1 of 1
Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script
Posted: Fri 25. Aug 2023, 03:42
by gusarg81
After finished all the process, and using KeyHelp script from
https://www.keyhelp.de/en/news/upgrade- ... ubuntu-22/, all domains shows as Processing State (see attachment).
So, some domais does not work ("Service Unavailable -The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.").
Any ideas? Thanks in advance.
EDIT1: also, for what I can see, there is no user domains PHP-FPM Running, only from KeyHelp:
/run/php$ ls
keyhelp_keyhelp.socket php8.1-fpm.pid
When should be something like keyhelp_proyectopuravida.socket and keyhelp_viajeres .socket ("proyectopuravida" and "viajeres" are the domain users) and there is not there.
EDIT2: also, I found this folder empty:
puravida@server:/etc/php/8.1/fpm/keyhelp_pool$ pwd
/etc/php/8.1/fpm/keyhelp_pool
Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script
Posted: Fri 25. Aug 2023, 10:46
by Florian
Hello,
did you start the update script for a second time after the reboot. Did it run without any errors?
Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script
Posted: Fri 25. Aug 2023, 13:41
by gusarg81
Florian wrote: ↑Fri 25. Aug 2023, 10:46
Hello,
did you start the update script for a second time after the reboot. Did it run without any errors?
Hi, yes I did it and no errors at all. Is there a way to fix this?
EDIT: This whats happens, for example, If I try to change PHP interpreter in any domain:
/var/log/keyhelp/php-error.log:
[25-Aug-2023 11:55:01 Etc/UTC] PHP Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in /home/keyhelp/www/keyhelp/core/SystemConfig/Webserver/PhpFpmPoolConfig.php:330
Stack trace:
#0 /home/keyhelp/www/keyhelp/core/SystemConfig/Webserver/PhpFpmPoolConfig.php(330): trim()
#1 /home/keyhelp/www/keyhelp/core/SystemConfig/Webserver/PhpFpmPoolConfig.php(240): PhpFpmPoolConfig->generate()
#2 /home/keyhelp/www/keyhelp/core/pending/Apache.php(1132): PhpFpmPoolConfig->save()
#3 /home/keyhelp/www/keyhelp/core/pending/Apache.php(806): Apache->applyUserConfigs()
#4 /home/keyhelp/www/keyhelp/cronjob/jobs/update.php(2091): Apache->applyAllConfigChanges()
#5 /home/keyhelp/www/keyhelp/cronjob/mastercronjob.php(443): unknown()
#6 {main}
thrown in /home/keyhelp/www/keyhelp/core/SystemConfig/Webserver/PhpFpmPoolConfig.php on line 330
Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script
Posted: Fri 25. Aug 2023, 15:19
by Florian
Hallo,
you can provide me with the logins via PM, so I can have a look
Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script
Posted: Fri 25. Aug 2023, 15:22
by gusarg81
Florian wrote: ↑Fri 25. Aug 2023, 15:19
Hallo,
you can provide me with the logins via PM, so I can have a look
Sure. Thanks.
EDIT: another error I am facing is is a Devocot permission problems with the file /etc/ssl/keyhelp/mail-ca.crt, So I had to disable the line 4 (ssl_ca = </etc/ssl/keyhelp/mail-ca.crt), to make it work again:
Aug 25 10:42:05 server postfix/pipe[405430]: 6EDB11A2029B: to=<
puravida@server.proyectopuravida.org>, relay=dovecot, delay=0.08, delays=0.05/0/0/0.03, dsn=4.3.0, status=deferred (temporary failure. Command output: doveconf: Fatal: Error in configuration file /etc/dovecot/conf.keyhelp.d/10-ssl.conf line 4: ssl_ca: Can't open file /etc/ssl/keyhelp/mail-ca.crt: Permission denied )
Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script [SOLVED]
Posted: Fri 25. Aug 2023, 17:07
by Florian
Hello,
problem solved.
Cause: wrong setting of date.timezone in the "Additional PHP" settings of the user
php_admin_value must not be used here!
Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script
Posted: Fri 25. Aug 2023, 17:11
by gusarg81
Florian wrote: ↑Fri 25. Aug 2023, 17:07
Hello,
problem solved.
Cause: wrong setting of date.timezone in the "Additional PHP" settings of the user
php_admin_value must not be used here!
Damn, that option were added by the other Admin of the server. Where I should add that in any case?
Thanks a lot!!!
Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script
Posted: Fri 25. Aug 2023, 17:15
by Florian
Hallo,
I corrected it already. Use the syntax of the php.ini here:
Code: Select all
date.timezone = America/Argentina/Buenos_Aires
Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script
Posted: Fri 25. Aug 2023, 17:20
by gusarg81
Florian wrote: ↑Fri 25. Aug 2023, 17:15
Hallo,
I corrected it already. Use the syntax of the php.ini here:
Code: Select all
date.timezone = America/Argentina/Buenos_Aires
Again, thanks a lot! I should restrict this kind of modifications.