Installation error: invalid event level format

Hi
I am getting the “invalid event level format :: Info” error when I want to install HestiaCP on Ubuntu 22.04. Details are as follows;

I would be very glad if anyone can assist, thanks.

Adding required repositories to proceed with installation:

[ * ] NGINX
[ * ] PHP
[ * ] MariaDB
[ * ] Hestia Control Panel
[ * ] PostgreSQL

Updating currently installed packages, please wait…|
The installer is now downloading and installing all required packages.
NOTE: This process may take 10 to 15 minutes to complete, please wait…
Paketlerdeki ileti şablonları çıkarılıyor: 100%

========================================================================

[ * ] Configuring system settings…
[ * ] Configuring Hestia Control Panel…
[ * ] Configuring OpenSSL to improve TLS performance…
[ * ] Generating default self-signed SSL certificate…
[ * ] Adding SSL certificate to Hestia Control Panel…
[ * ] Enabling SFTP jail…
[ * ] Creating default admin account…
Error: invalid event level format :: Info
Error: invalid event level format :: Info
Error: invalid event level format :: Info
Error: invalid event level format :: Info
Error: invalid event level format :: Info
[ * ] Configuring NGINX…
[ * ] Updating Cloudflare IP Ranges for Nginx…
[ * ] Installing PHP 8.2…
[ * ] Configuring PHP-FPM 8.2…
[ * ] Configuring PHP…
[ * ] Configuring Vsftpd server…
[ * ] Configuring MariaDB database server…
[ * ] Installing phpMyAdmin version v5.2.1…
Error: invalid event level format :: Info
Error: ERROR: Restart of nginx failed.
Error: invalid event level format :: Info
[ * ] Configuring PostgreSQL database server…
Error: invalid event level format :: Info
Error: ERROR: Restart of nginx failed.
Error: invalid event level format :: Info
[ * ] Configuring fail2ban access monitor…
Error: invalid event level format :: Info
Error: invalid event level format :: Info
[ * ] Configuring File Manager…
Error: invalid event level format :: Info
Error: invalid event level format :: Info
Error: invalid event level format :: Info
[ * ] Configuring PHP dependencies…
Error: invalid event level format :: Info
[ * ] Installing Rclone…
[ * ] Configuring System IP…
Error: invalid event level format :: Info
Error: invalid event level format :: Info
Error: ERROR: Restart of nginx failed.
sh: 1: /usr/sbin/sendmail: not found
Error: nginx restart failed
Error: can’t create domain

Hi @Bilinmeyen,

You are having those errors when calling Hestia scripts, specifically the v-log-action part. v-log-action is executing function is_common_format_valid and for some weird reason it is not working fine.

# Common format validator
is_common_format_valid() {
        exclude="[!|#|$|^|&|(|)|+|=|{|}|:|<|>|?|/|\|\"|'|;|%|\`| ]"
        if [[ "$1" =~ $exclude ]]; then
                check_result "$E_INVALID" "invalid $2 format :: $1"
        fi
        if [ 400 -le ${#1} ]; then
                check_result "$E_INVALID" "invalid $2 format :: $1"
        fi
        if [[ "$1" =~ @ ]] && [ ${#1} -gt 1 ]; then
                check_result "$E_INVALID" "invalid $2 format :: $1"
        fi
        if [[ $1 =~ \* ]]; then
                if [[ "$(echo $1 | grep -o '\*\.' | wc -l)" -eq 0 ]] && [[ $1 != '*' ]]; then
                        check_result "$E_INVALID" "invalid $2 format :: $1"
                fi
        fi
        if [[ $(echo -n "$1" | tail -c 1) =~ [^a-zA-Z0-9_*@.] ]]; then
                check_result "$E_INVALID" "invalid $2 format :: $1"
        fi
        if [[ $(echo -n "$1" | grep -c '\.\.') -gt 0 ]]; then
                check_result "$E_INVALID" "invalid $2 format :: $1"
        fi
        if [[ $(echo -n "$1" | head -c 1) =~ [^a-zA-Z0-9_*@] ]]; then
                check_result "$E_INVALID" "invalid $2 format :: $1"
        fi
        if [[ $(echo -n "$1" | grep -c '\-\-') -gt 0 ]]; then
                check_result "$E_INVALID" "invalid $2 format :: $1"
        fi
        if [[ $(echo -n "$1" | grep -c '\_\_') -gt 0 ]]; then
                check_result "$E_INVALID" "invalid $2 format :: $1"
        fi
        is_no_new_line_format "$1"
}

Info is a valid event level so I don’t know the reason for the errors you are seeing but I think that your OS is not working fine because these event level errors are produced when logging the events so thats not a fatal error but I’m worried about the other error messages:

Error: ERROR: Restart of nginx failed.
sh: 1: /usr/sbin/sendmail: not found
Error: nginx restart failed
Error: can’t create domain

Do you have enough free disk space? Free RAM? I would install a fresh Ubuntu and would try again.

I already tried many times but I got the same error.

Reinstalled the operating system with english language and region. The problem is solved. The old one was Turkish.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.