Not load all services after ssh after update to 1.8.8

Not load all service after ssh, after update hestiacp to 1.8.8 from 1.8.7.

/var/log/hestia/nginx-error.log

2023/10/15 14:19:12 [error] 7876#0: *12 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: ngettext(): Argument #3 ($count) must be of type int, string given in /usr/local/hestia/web/inc/main.php:329
Stack trace:
#0 /usr/local/hestia/web/inc/main.php(329): ngettext()
#1 /usr/local/hestia/web/templates/pages/list_services.php(197): humanize_time()
#2 /usr/local/hestia/web/inc/main.php(202): include('...')
#3 /usr/local/hestia/web/list/server/index.php(137): render_page()
#4 {main}
  thrown in /usr/local/hestia/web/inc/main.php on line 329" while reading upstream, client: 192.168.2.5, server: _, request: "GET /list/server/ HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "192.168.2.2:2083", referrer: "https://192.168.2.2:2083/list/backup/"

Hello @vihatsoft,

Could you please show the output of this command?

v-list-sys-services json

Cheers,
sahsanu

{
    "nginx": {
        "SYSTEM": "web server",
        "STATE": "running",
        "CPU": "0",
        "MEM": "14",
        "RTIME": "4"
    },
    "php8.2-fpm": {
        "SYSTEM": "backend server",
        "STATE": "running",
        "CPU": "0.1",
        "MEM": "29",
        "RTIME": "4"
    },
    "bind9": {
        "SYSTEM": "dns server",
        "STATE": "running",
        "CPU": "0.2",
        "MEM": "131",
        "RTIME": "3"
    },
    "exim4": {
        "SYSTEM": "mail server",
        "STATE": "running",
        "CPU": "0",
        "MEM": "14",
        "RTIME": "3"
    },
    "mariadb": {
        "SYSTEM": "database server",
        "STATE": "running",
        "CPU": "0.1",
        "MEM": "405",
        "RTIME": "3"
    },
    "vsftpd": {
        "SYSTEM": "ftp server",
        "STATE": "running",
        "CPU": "0",
        "MEM": "0",
        "RTIME": "3"
    },
    "cron": {
        "SYSTEM": "job scheduler",
        "STATE": "running",
        "CPU": "0",
        "MEM": "0",
        "RTIME": "3"
    },
    "ssh": {
        "SYSTEM": "ssh server",
        "STATE": "running",
        "CPU": "0.1",
        "MEM": "2",
        "RTIME": "28290813"
    },
    "iptables": {
        "SYSTEM": "firewall",
        "STATE": "running",
        "CPU": "0",
        "MEM": "0",
        "RTIME": "0"
    }
}

  • Same problem after fresh install too.

Hello @vihatsoft,

The problem is the ssh RTIME, 28290813 are minutes and that means… more than 53 years up and running (new Guinness record :stuck_out_tongue: ) and seems the php code can’t handle it.

Would you want to test a patch? I would appreciate whether you can test it.

As root:

cd /usr/local/hestia/bin/
mv v-list-sys-services v-list-sys-services.original
curl -sSL "https://gist.sahsanu.net/sahsanu/7ada3ee79bfe4ff493ef79f56728af87/raw/HEAD/v-list-sys-services.sh" -o v-list-sys-services
chmod +x v-list-sys-services

And check in Web UI whether it works fine again.

Cheers,
sahsanu

2 Likes