Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script  [SOLVED]

Discussions about the installation of KeyHelp.
Post Reply
User avatar
gusarg81
Posts: 33
Joined: Sun 18. Jul 2021, 02:20
Location: Argentina
Contact:

Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script

Post 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
Attachments
Screenshot 2023-08-24 at 22-39-14  KeyHelp.png
User avatar
Florian
Keyweb AG
Posts: 1322
Joined: Wed 20. Jan 2016, 02:28

Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script

Post by Florian »

Hello,

did you start the update script for a second time after the reboot. Did it run without any errors?
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
gusarg81
Posts: 33
Joined: Sun 18. Jul 2021, 02:20
Location: Argentina
Contact:

Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script

Post 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? :cry:

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
User avatar
Florian
Keyweb AG
Posts: 1322
Joined: Wed 20. Jan 2016, 02:28

Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script

Post by Florian »

Hallo,

you can provide me with the logins via PM, so I can have a look
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
gusarg81
Posts: 33
Joined: Sun 18. Jul 2021, 02:20
Location: Argentina
Contact:

Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script

Post 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 )
User avatar
Florian
Keyweb AG
Posts: 1322
Joined: Wed 20. Jan 2016, 02:28

Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script  [SOLVED]

Post by Florian »

Hello,

problem solved.

Cause: wrong setting of date.timezone in the "Additional PHP" settings of the user

Code: Select all

php_admin_value[date.timezone] =
php_admin_value must not be used here!
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
gusarg81
Posts: 33
Joined: Sun 18. Jul 2021, 02:20
Location: Argentina
Contact:

Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script

Post 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

Code: Select all

php_admin_value[date.timezone] =
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!!!
User avatar
Florian
Keyweb AG
Posts: 1322
Joined: Wed 20. Jan 2016, 02:28

Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script

Post by Florian »

Hallo,

I corrected it already. Use the syntax of the php.ini here:

Code: Select all

date.timezone = America/Argentina/Buenos_Aires
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
gusarg81
Posts: 33
Joined: Sun 18. Jul 2021, 02:20
Location: Argentina
Contact:

Re: Problems after upgrade Ubuntu 20.04 -> 22.04 using KeyHelp PHP script

Post 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.
Post Reply