Relevant Cake error logged is:
Commands via curl2022-06-06 09:20:30 Error: [MissingConnectionException] Database connection "Mysql" is missing, or could not be created.
Exception Attributes: array (
'class' => 'Mysql',
'message' => 'SQLSTATE[HY000] [2006] MySQL server has gone away',
'enabled' => true,
)
curl -XPOST -d "user=<user>&pass=<password>" https://<FQDN>/zm/api/host/login.json
curl -v -XGET https://<FQDN>/zm/api/monitors.json?token=<token obtained via XPUT>
[relevant output:}
Regular ZM web interface is no problem. Mysql/mariadb running.* SSL certificate verify ok.
> GET /zm/api/monitors.json?token=<token> HTTP/1.1
> Host: <FQDN>
> User-Agent: curl/7.74.0
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Mark bundle as not supporting multiuse
< HTTP/1.1 500 Internal Server Error
< Date: Mon, 06 Jun 2022 17:21:22 GMT
< Server: Apache
< Content-Length: 422
< Connection: close
< Content-Type: application/json; charset=UTF-8
<
{
"code": 500,
"name": "Database connection "Mysql" is missing, or could not be created.",
"message": "SQLSTATE[HY000] [2006] MySQL server has gone away",
"url": "\/zm\/api\/monitors.json?token=<token>"
* Closing connection 0
* TLSv1.3 (OUT), TLS alert, close notify (256):
Accounts/logins are all unchanged (all have API access).
I'm starting to chase my tail and figure it's best to stop and see if someone can get me pointed in the right direction.
Thanks.