Articles in this section

Unable to install the 360 Monitoring agent on a Plesk server: ($mysqlUserPassword) must be of type string, null given

Plesk 360 Platform 360

Symptoms

Unable to install 360 Monitoring agent on a Plesk server:

PleskExt\Monitoring\Task\InstallCloudAgentTask::setupServiceConfig(): Argument #1 ($mysqlUserPassword) must be of type string, null given, called in /opt/psa/admin/plib/modules/monitoring/library/Task/InstallCloudAgentTask.php on line 61

Cause

File /etc/agent360.ini has [mysql] section without the line password =.

This behavior is a confirmed bug with ID EXTPLESK-4861.

Resolution

Note: In some cases it is required to put MySQL password into quotes like password =`some&password`.

  1. Connect to the server via SSH.
  2. Adjust /etc/agent360.ini file by adding the line password = under [mysql] section using any text editor like vi.

 

If the file is absent run this command to re-create it:

# wget -qO /etc/agent360.ini https://monitoring.platform360.io/agent360.ini

After the file is recreated, open it with a text editor and uncomment full [mysql] section.

Was this article helpful?

Comments

3 comments
Date Votes
  • in my case, this solution was wrong 

    there is the line 

    password = 

    in the [mysql] , already filled with some password, BUT of course, the value need to be quoted 

    password = `existin,gp&assword`

     

    Problem solved

    2
  • Same problem here. The real solution to the problem is quoting the password as stated by Julian

    0
  • Lynx 2000 thank you for this confirming detail. The article was updated with the corresponding note.

    0

Please sign in to leave a comment.