Debugging of ISPConfig 3 server actions in case of a failure

The follwing article describes the steps that can be taken to debug the ISPConfig 3 server scripts.

Enable the debug Loglevel in ISPConfig

Login to the ISPConfig intterface and set the log level to Debug under System > System > Server Config (see also chapter 4.9.2.2 of the ISPConfig 3 manual) for the affected server. After one or two minutes, there should be more detailed messages in ISPConfig's system log (Monitor > System State (All Servers) > Show System-Log).

Disable the server.sh cronjob

Go to the command line of the server on which the error happens (on multiserver systems, it is often the slave and not the master) and run (as root):

crontab -e

Comment out the server.sh cron job:

#* * * * * /usr/local/ispconfig/server/server.sh > /dev/null >> /var/log/ispconfig/cron.log

Run the server script manually to get detailed debug output

Then run the command:

/usr/local/ispconfig/server/server.sh

This will display any errors directly on the command line which should help you to fix the error. When you have fixed the error, please don't forget to uncomment the server.sh cron job again.

5 thoughts on “Debugging of ISPConfig 3 server actions in case of a failure”

  1. Avatar

    I get no errors when I run the server.sh script manually, but still have numerous jobs in the jobqueue and nothing being written to disk. Please help?

    I also ran the htf script and don’t see any errors there either.
    This was a working production server prior to whatever has happened.

    TIA!

    Reply
    • Avatar

      How can I solve this problem??? I have the same problem…

      Reply
  2. Avatar

    ISPConfig is installed on Ubuntu 20.04

    The ethernet name is not eth0: but enp3s0.

    This is shown below in the extract from “ip a”

    2: enp3s0: mtu 1500 qdisc fq_codel state UP group default qlen 1000

    I am able to visibly create mailboxes but they are not receiving any emails including the ISPConfig welcome email.

    Reply
    • Avatar

      Please use the ISPConfig support forum at howtoforge.com to get support.

      Reply
  3. Avatar

    I am getting that output. now, what can I do.

    – WARNING – There is already a lockfile set, but no process running with this PID (20496). Continuing.
    PHP Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php:531
    Stack trace:
    #0 /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php(183): db->escape()
    #1 /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php(302): db->_build_query_string()
    #2 /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php(341): db->_query()
    #3 /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php(367): db->query()
    #4 /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php(882): db->queryOneRecord()
    #5 /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php(517): apache2_plugin->update()
    #6 /usr/local/ispconfig/server/lib/classes/plugins.inc.php(120): apache2_plugin->insert()
    #7 /usr/local/ispconfig/server/mods-available/web_module.inc.php(136): plugins->raiseEvent()
    #8 /usr/local/ispconfig/server/lib/classes/modules.inc.php(302): web_module->process()
    #9 /usr/local/ispconfig/server/lib/classes/modules.inc.php(235): modules->raiseTabl in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 531

    Reply

Leave a Comment

*