Error establishing a database connection
An unexpected database error occurred. Please try again later.
Oops... something went wrong!
An internal error has occurred. Your request cannot be processed at this time.
For administrators: Please check the application and/or server error logs for more information.
and the following error message is logged in Roundcube error log /var/log/plesk-roundcube/errors:#sestatus | grep 'Current mode'
Current mode: enforcing
type=AVC msg=audit(1739696552.295:5057): avc: denied { connectto } for pid=74152
comm="php-fpm"path="/var/lib/mysql/mysql.sock" scontext=system_u:system_r:httpd_t:s0
tcontext=system_u:system_r:unconfined_service_t:s0 tclass=unix_stream_socket permissive=0
type=SYSCALL msg=audit(1739696552.295:5057): arch=c000003e syscall=42 success=no exit=-13
a0=6 a1=7fff7a1224a0 a2=1b a3=1 items=0 ppid=74143 pid=74152 auid=4294967295 uid=10020
gid=1003 euid=10020 suid=10020 fsuid=10020 egid=1003 sgid=1003 fsgid=1003 tty=(none)
ses=4294967295 comm="php-fpm" exe="/opt/plesk/php/8.2/sbin/php-fpm"
subj=system_u:system_r:httpd_t:s0 key=(null)ARCH=x86_64 SYSCALL=connect AUID="unset"
UID="**REDACTED**" GID="**REDACTED**" EUID="**REDACTED**" SUID="**REDACTED**"
FSUID="**REDACTED**" EGID="**REDACTED**" SGID="**REDACTED**" FSGID="**REDACTED**"
type=PROCTITLE msg=audit(1739696552.295:5057): proctitle=**REDACTED**
#restorecon /usr/sbin/mariadbd
#systemctl restart mariadb
console
$ curl "https://api.vultr.com/v2/vpc2" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
console
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
console
$ curl "https://api.vultr.com/v2/vpc2/{vpc-id}/nodes/attach" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"nodes": [
"<instance-id>"
]
}'
console
$ vultr-cli vpc2 list
console
$ vultr-cli instance list
console
$ vultr-cli vpc2 nodes attach <vpc2 id> \
--nodes="<instance id>"
terraform
resource "vultr_instance" "server" {
# ...existing fields (region, plan, os_id, label)
vpc2_ids = [var.vpc2_id]
}
console
$ curl "https://api.vultr.com/v2/vpcs" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
console
$ curl "https://api.vultr.com/v2/vpc2/{vpc-id}" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
console
$ vultr-cli vpc2 list
console
$ vultr-cli vpc2 delete <VPC2 ID>
terraform
resource "vultr_vpc2" "net" {
region = "ewr"
description = "example-vpc2"
}
# To delete, either remove this block from configuration
# or run: terraform destroy -target vultr_vpc2.net
console
$ curl "https://api.vultr.com/v2/vpc2" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
console
$ curl "https://api.vultr.com/v2/vpc2/{vpc-id}/nodes" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
console
$ vultr-cli vpc2 list
console
$ vultr-cli vpc2 nodes list <VPC2 ID>
console
$ curl "https://api.vultr.com/v2/vpcs" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"region" : "<vultr-location-id>",
"description" : "<label>"
}'
console
$ vultr-cli vpc create --region="ewr" --description="test VPC"
terraform
resource "vultr_vpc" "net" {
region = "ewr"
description = "example-vpc"
# optional manual range
# v4_subnet = "10.10.0.0"
# v4_subnet_mask = 24
}
[security]
bruteforceProtection.enabled = true
bruteforceProtection.rateLimit = 5
bruteforceProtection.rateLimitPeriod = 300
Based on these settings, if the client has five failed login attempts, the next attempts will not be