Fresh install 1.6.7 on Ubuntu 22.04 and 20.04 returns Internal Server Error Error Code: 500

Tried several attempts on lxd container and on a full VM Ubuntu 20.04 and 22.04 with the latest script and every time it returns Internal Server Error Code: 500 when opening the login page for the first time.

in the logs I find

=> nginx-error.log <==
2022/09/01 08:39:03 [error] 41248#0: *27 FastCGI sent in stderr: “PHP message: PHP Warning: Trying to access array offset on value of type null in /usr/local/hestia/web/inc/main.php on line 485PHP message: PHP Warning: foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 486PHP message: PHP Warning: Undefined array key “RELEASE_BRANCH” in /usr/local/hestia/web/inc/main.php on line 102PHP message: PHP Warning: Trying to access array offset on value of type null in /usr/local/hestia/web/inc/main.php on line 485PHP message: PHP Warning: foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 486PHP message: PHP Warning: Trying to access array offset on value of type null in /usr/local/hestia/web/login/index.php on line 317PHP message: PHP Warning: Trying to access array offset on value of type null in /usr/local/hestia/web/login/index.php on line 317PHP message: PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/hestia/web/login/index.php:322
Stack trace:
#0 /usr/local/hestia/web/login/index.php(322): in_array()
#1 {main}
thrown in /usr/local/hestia/web/login/index.php on line 322” while reading response header from upstream, client: 192.168.1.30, server: _, request: “GET /login/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/hestia-php.sock:”, host: “192.168.1.209:8083”, referrer: “https://192.168.1.10:8006/

Blockquote

Can you run:

cat /usr/local/hestia/conf/hestia.conf
?

cat /usr/local/hestia/conf/hestia.conf

API='yes'
API_ALLOWED_IP=''
API_SYSTEM='1'
BACKEND_PORT='8083'
BACKUP_GZIP='4'
BACKUP_MODE='zstd'
BACKUP_SYSTEM='local'
CRON_SYSTEM='cron'
DB_PMA_ALIAS='phpmyadmin'
DB_SYSTEM='mysql'
DEBUG_MODE='no'
DISK_QUOTA='no'
DNS_SYSTEM='bind9'
ENFORCE_SUBDOMAIN_OWNERSHIP='yes'
FILE_MANAGER='true'
FIREWALL_EXTENSION='fail2ban'
FIREWALL_SYSTEM='iptables'
FTP_SYSTEM='vsftpd'
IMAP_SYSTEM='dovecot'
INACTIVE_SESSION_TIMEOUT='60'
LANGUAGE='en'
LOGIN_STYLE='default'
MAIL_SYSTEM='exim4'
PHPMYADMIN_KEY=''
PLUGIN_APP_INSTALLER='true'
POLICY_CSRF_STRICTNESS='1'
POLICY_SYSTEM_ENABLE_BACON='no'
POLICY_SYSTEM_HIDE_SERVICES='no'
POLICY_SYSTEM_PASSWORD_RESET='yes'
POLICY_SYSTEM_PROTECTED_ADMIN='no'
POLICY_SYSTEM_PROTECTED_ADMIN='yes'
POLICY_USER_CHANGE_THEME='yes'
POLICY_USER_DELETE_LOGS='yes'
POLICY_USER_EDIT_DETAILS='yes'
POLICY_USER_EDIT_DNS_TEMPLATES='yes'
POLICY_USER_EDIT_WEB_TEMPLATES='true'
POLICY_USER_VIEW_LOGS='yes'
POLICY_USER_VIEW_SUSPENDED='no'
PROXY_PORT='80'
PROXY_SSL_PORT='443'
PROXY_SYSTEM='nginx'
RELEASE_BRANCH='release'
SERVER_SMTP_ADDR=''
SERVER_SMTP_HOST=''
SERVER_SMTP_PASSWD=''
SERVER_SMTP_PORT=''
SERVER_SMTP_SECURITY=''
SERVER_SMTP_USER=''
STATS_SYSTEM='awstats'
THEME='dark'
UPGRADE_SEND_EMAIL='true'
UPGRADE_SEND_EMAIL_LOG='false'
USE_SERVER_SMTP='false'
VERSION='1.6.7'
WEBMAIL_ALIAS='webmail'
WEBMAIL_SYSTEM='roundcube'
WEB_BACKEND='php-fpm'
WEB_PORT='8080'
WEB_RGROUPS='www-data'
WEB_SSL='mod_ssl'
WEB_SSL_PORT='8443'
WEB_SYSTEM='apache2'

Config file look fie.

How ever according the code it says that the issue in the return data from the json code.

What happens when you run:

v-list-sys-config json

v-list-sys-config json
{
“config”: {
“WEB_SYSTEM”: “apache2”,
“WEB_RGROUPS”: “www-data”,
“WEB_PORT”: “8080”,
“WEB_SSL”: “mod_ssl”,
“WEB_SSL_PORT”: “8443”,
“WEB_BACKEND”: “php-fpm”,
“PROXY_SYSTEM”: “nginx”,
“PROXY_PORT”: “80”,
“PROXY_SSL_PORT”: “443”,
“FTP_SYSTEM”: “vsftpd”,
“MAIL_SYSTEM”: “exim4”,
“IMAP_SYSTEM”: “dovecot”,
“ANTIVIRUS_SYSTEM”: “”,
“ANTISPAM_SYSTEM”: “”,
“DB_SYSTEM”: “mysql”,
“DNS_SYSTEM”: “bind9”,
“DNS_CLUSTER”: “”,
“STATS_SYSTEM”: “awstats”,
“BACKUP_SYSTEM”: “local”,
“CRON_SYSTEM”: “cron”,
“DISK_QUOTA”: “no”,
“FIREWALL_SYSTEM”: “iptables”,
“FIREWALL_EXTENSION”: “fail2ban”,
“FILE_MANAGER”: “true”,
“REPOSITORY”: “”,
“VERSION”: “1.6.7”,
“RELEASE_BRANCH”: “release”,
“UPGRADE_SEND_EMAIL”: “true”,
“UPGRADE_SEND_EMAIL_LOG”: “false”,
“SMTP_RELAY”: “”,
“SMTP_RELAY_HOST”: “”,
“SMTP_RELAY_PORT”: “”,
“SMTP_RELAY_USER”: “”,
“DEMO_MODE”: “”,
“THEME”: “dark”,
“LANGUAGE”: “en”,
“BACKUP_GZIP”: “4”,
“BACKUP”: “/backup”,
“BACKUP_MODE”: “zstd”,
“WEBMAIL_ALIAS”: “webmail”,
“WEBMAIL_SYSTEM”: “roundcube”,
“DB_PMA_ALIAS”: “phpmyadmin”,
“DB_PGA_ALIAS”: “”,
“LOGIN_STYLE”: “default”,
“INACTIVE_SESSION_TIMEOUT”: “60”,
“PHPMYADMIN_KEY”: “”,
“ENFORCE_SUBDOMAIN_OWNERSHIP”: “yes”,
“DEBUG_MODE”: “no”,
“API”: “yes”,
“API_SYSTEM”: “1”,
“API_ALLOWED_IP”: “”,
“UPDATE_AVAILABLE”: “”,
“PLUGIN_APP_INSTALLER”: “true”,
“PLUGIN_FILE_MANAGER”: “”,
“POLICY_SYSTEM_ENABLE_BACON”: “no”,
“POLICY_SYSTEM_PROTECTED_ADMIN”: “yes”,
“POLICY_SYSTEM_HIDE_ADMIN”: “”,
“POLICY_SYSTEM_HIDE_SERVICES”: “no”,
“POLICY_SYSTEM_PASSWORD_RESET”: “yes”,
“POLICY_USER_VIEW_SUSPENDED”: “no”,
“POLICY_USER_EDIT_DETAILS”: “yes”,
“POLICY_USER_EDIT_WEB_TEMPLATES”: “true”,
“POLICY_USER_EDIT_DNS_TEMPLATES”: “yes”,
“POLICY_USER_DELETE_LOGS”: “yes”,
“POLICY_USER_VIEW_LOGS”: “yes”,
“POLICY_USER_CHANGE_THEME”: “yes”,
“POLICY_CSRF_STRICTNESS”: “1”,
“USE_SERVER_SMTP”: “false”,
“SERVER_SMTP_HOST”: “”,
“SERVER_SMTP_PORT”: “”,
“SERVER_SMTP_SECURITY”: “”,
“SERVER_SMTP_USER”: “”,
“SERVER_SMTP_PASSWD”: “”,
“SERVER_SMTP_ADDR”: “”
}
}