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`.
- Connect to the server via SSH.
- Adjust
/etc/agent360.ini
file by adding the linepassword =
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.
Comments
3 comments
in my case, this solution was wrong
there is the line
in the [mysql] , already filled with some password, BUT of course, the value need to be quoted
Problem solved
Same problem here. The real solution to the problem is quoting the password as stated by Julian
Lynx 2000 thank you for this confirming detail. The article was updated with the corresponding note.
Please sign in to leave a comment.