Troubleshooting
This page lists the most common problems as symptom → cause → fix, plus where the logs are for tracing other problems.
Where the logs are
| Log | How to open it |
|---|---|
| Control plane (panel) | GUI: Logs & Audit › Control plane log. Holds the last 5,000 entries since the panel restarted. Admins only. |
| Control plane, full history | journalctl -u moorcp-shared on the panel server |
| Agent | GUI: Servers › server › Services › moorcp-agent › log. Or journalctl -u moorcp-agent on the hosting server. |
| Server services (nginx, php-fpm, postfix, mariadb, …) | GUI: the Services tab on the server detail page, with line, time range, priority, and text filters |
| Failed logins (admin, client, API key) | /var/log/moorcp-shared/auth.log on the panel server |
| Audit (who did what) | GUI: Logs & Audit, or GET /v1/audit |
| Jobs | GUI: Jobs, then open the job's details |
| Website logs (access, error, PHP) | Website details › logs tab, or GET /v1/websites/{id}/logs |
Useful journal commands:
journalctl -u moorcp-shared --since "1 hour ago"journalctl -u moorcp-agent -p warning --since todayjournalctl -u moorcp-shared -fTIP
When you open a ticket, include the job ID, the errorCode from the job or API response, and a log excerpt around the time of the problem. Do not include the contents of /etc/moorcp-shared/env, because it holds secret keys.
Diagnostic commands
Read-only check commands collect the usual facts in one go, like the /scripts/* tools of cPanel. Their output is English; set MOORCP_LANG=id for Indonesian.
On the hosting server, as root:
| Command | What it shows |
|---|---|
moorcp-agent mail check <address> | The owning account, the mail folder and its format (Maildir or cPanel mdbox), message and subfolder counts, size, owner and SELinux label, what doveadm sees, and a suggested fix |
moorcp-agent mail convert-mdbox <user> [address] [--dry-run] | Lists the account's mdbox mailboxes (--dry-run) or converts them to Maildir, the same conversion the cPanel import runs. This command changes mailboxes and is logged in the agent log. |
moorcp-agent app check <user> [directory] | The account's Node.js, Python, and Ruby apps: URL, version, port, unit status, the startup file (missing or empty), node_modules, an HTTP test to the app port, and the last 15 log lines |
moorcp-agent website check <domain> | Whether DNS points to this server, the local HTTP and HTTPS answers for the domain, the certificate (names, expiry, whether it covers the domain), the OpenLiteSpeed vhost and its latest errors or the Nginx server block, and the same for webmail.<domain> |
From anywhere, through the API with moorctl (MOORCTL_URL and MOORCTL_API_KEY set):
| Command | What it shows |
|---|---|
moorctl migrate wave-report <wave-id> [cpuser] [--json] | A migration wave summary (status, import time, failing stages per account), or every import stage of one account with counts, durations, errors, manual steps, warnings, and the last sync, test, and cutover |
moorctl audit <username> [--since 2h] [--action prefix] [--limit 100] | An account's audit entries: time, action, result, actor, details |
See CLI.
Agent offline
A server is marked offline and the server_offline alert appears when the panel receives no heartbeat for more than 180 seconds.
| Symptom | Cause | Fix |
|---|---|---|
| Server offline after a reboot or outage | The agent service is down | On the hosting server: systemctl status moorcp-agent, then systemctl restart moorcp-agent |
| Agent running but still offline | The agent cannot reach the panel on port 8443 | From the hosting server: curl -sS https://panel.example.com:8443/v1/health. Check DNS, the outgoing firewall, and the panel server's firewall. |
Heartbeats arrive, but panel actions fail with cp.agent_unreachable | The panel cannot reach the agent on port 7443 | Open port 7443/tcp on the hosting server for the panel IP. Check the agent address on the server detail page. |
Agent log: certificate refused, cp.agent_cert_superseded | The agent uses an old certificate (for example from a backup) | Put the latest certificate back, or re-enroll with a token for that server (POST /v1/servers/enroll-tokens with serverId) |
agent_cert_expiring alert | Automatic certificate renewal failed | Click certificate rotation on the server detail page, or POST /v1/servers/{id}/cert/rotate; check the agent log if it fails |
| Large clock difference on the server detail page | NTP is off on the hosting server | Open the time settings on the server detail page, then sync the clock (NTP). TLS and dated commands can be refused when the clock is too far off. |
Some features answer 501 cp.agent_outdated | The agent version is older than the feature needs | Upgrade the agent from Settings › Updates, or with the upgrade command on that server. See Updates and releases. |
Server stuck in verifying
| Symptom | Cause | Fix |
|---|---|---|
A new server does not become active; the filesystem_quota check fails | Disk quota is not active on /home or / | XFS root: the installer adds the rootflags=uquota,gquota boot option and exits with code 10. Reboot the server, then run the same installer command again. Other filesystems: add usrquota,grpquota in /etc/fstab for /home, then remount or reboot. |
| Account quotas do not apply, disk usage 0 | Same: filesystem quota not active | As above, then run Verify on the server detail page and reapply limits (POST /v1/servers/{id}/accounts/reapply-limits) |
| Driver check fails | The cloudlinux driver was chosen on a server without LVE/CageFS | Use the generic driver, or convert to CloudLinux. See CloudLinux. |
Check XFS quota on the hosting server:
xfs_quota -x -c "state" /Failed jobs
| Symptom | Cause | Fix |
|---|---|---|
Job failed with an errorCode | The operation on the agent failed | Open the job details under Jobs, read errorCode and errorMessage. Fix the cause, then click Retry. |
| A job retries itself a few times | Temporary error (for example the agent was briefly unreachable); the worker tries up to 3 times | Wait. If it still fails, check that server's agent. |
Retry refused with cp.job_not_retryable | The job is not failed/cancelled yet | Wait until the job ends |
Retry refused with cp.job_retry_conflict | A job of the same kind for the same target is still running | Wait for that job to finish |
| No Retry button for server move, migration, web server switch | These job kinds have their own recovery flow (dry-run, rollback) | Repeat from the Move server, Migration, or Switch web server page |
| A cPanel backup restore fails at the start | The new username already exists, or /home has less free space than the archive size | Choose another username, or free up space on /home, then restore again. See Importing from cPanel. |
| A backup file does not appear in Restore cPanel backup | The file is not owned by root, is a symlink, is outside /root, /home, and /var/lib/moorcp/import, or is more than two folders deep | Copy it as root into one of those folders, then click Scan again |
Old jobs pile up as queued | The panel just restarted or the worker is busy | Check journalctl -u moorcp-shared. Jobs are processed in order per target. |
A job hangs in running | The agent operation takes long or no longer answers | Click Stop on the job. If it still does not end, Kill appears. Check the result on the server before you retry. See Jobs. |
Job failed with cp.job_abandoned | The control plane restarted or was upgraded while the job ran, so its heartbeat stopped for more than 3 minutes | Check what the job already did on the server, then click Retry |
Stopping is refused with 409 cp.job_not_cancellable | Server moves, web server switches, migration cutovers, and database profile changes have their own rollback and cannot be stopped while running | Wait for the job to finish or roll back |
Retry creates a new job with the same payload; the old job stays as history. See Jobs.
SSL issuing fails
| Symptom | Cause | Fix |
|---|---|---|
ssl.issue job fails for an ordinary domain | HTTP-01 validation failed: the domain does not point to the server IP yet, or port 80 is closed | Make sure the A/AAAA record points to the server's main IP and port 80 is open. Run Website health to see the DNS and HTTP results. |
| Domain behind the Cloudflare proxy | The proxy changes or blocks the HTTP-01 challenge | Turn the proxy off for a while, or make sure HTTP to /.well-known/acme-challenge/ is passed through unchanged |
| AAAA points elsewhere | Let's Encrypt validates over IPv6 against another server | Remove or fix the AAAA record |
Wildcard refused with 400 cp.ssl_invalid | Wildcards use DNS-01, and the primary domain's zone is not hosted on panel DNS | Move the domain's nameservers to panel DNS, or issue without a wildcard |
| 409 when issuing | The website is not active yet | Wait for the website creation job to finish |
| Repeated failures for the same domain | Let's Encrypt rate limits | Wait a few hours before trying again; fix the cause first |
ssl_renew_failed alert | Automatic renewal (30 days before expiry) failed | Read the error on the website detail page. Usually DNS was moved elsewhere. Fix it, then issue again. |
| The panel shows an old expiry date | SSL status is not synced yet | Sync runs every hour; force it with POST /v1/ssl/sync |
Certificate issued without some aliases (for example www.<subdomain>) | Those aliases have no DNS record (NXDOMAIN), so they were skipped so the primary domain still gets a certificate | See the skipped aliases in the website's SSL column (sslJob.skipped). Create their DNS records, then issue again. |
| You want to know why the latest SSL request failed | The SSL column in the admin and client website lists shows the status and ACME error of the latest request, also available as the sslJob field in GET /v1/websites/{id} |
After a migration from cPanel, issue SSL again after DNS points to the new server.
Upgrading from the panel
| Symptom | Cause | Fix |
|---|---|---|
The Upgrade button only shows a command, or the API answers 501 cp.upgrade_unsupported | The panel was installed before v0.9.0-rc.22, so the moorcp-shared-upgrade.path unit does not exist yet | Run one upgrade from the command line on the panel server. After that, upgrades work from the panel. |
| The panel upgrade is recorded as failed | Release verification or the installer failed | Read the Installer log under Settings › Updates. The status and full log are in /var/lib/moorcp-shared/upgrade-state/ on the panel server. |
| The upgrade stays at Waiting for the upgrade service | The path unit is not active | On the panel server: systemctl status moorcp-shared-upgrade.path, then systemctl enable --now moorcp-shared-upgrade.path |
| Agent rollout Stopped: first server failed | The trial server failed to upgrade, so the other servers were not tried | Check that server's agent log (journalctl -u moorcp-agent), fix it, then run Upgrade agents again |
| One server skipped or failed during the rollout | The server is offline, or its agent is older than v0.9.0-rc.22 | Start the agent, or upgrade once from the command line on that server |
Settings › Updates shows the stable channel, but the server used rc | Installs from before v0.9.0 that recorded rc are moved to stable once on their next upgrade | Normal. To stay on release candidates, run upgrade --channel rc on the server. See Updates and releases. |
501 cp.rollout_unavailable | No target agent version yet, or the agent binaries are missing on the panel server | Click Check now, or run the installer in upgrade mode on the panel server |
| The installer upgrade prints "moorcp-shared terpasang tetapi dimatikan (disabled dan tidak berjalan); panel di server ini dilewati" (installed but turned off, panel on this server skipped) | The panel on this server was turned off, for example after a move | Normal. Only the agent is upgraded. |
Email not delivered or going to spam
| Symptom | Cause | Fix |
|---|---|---|
| The mail client fails SMTP login on port 25 | SMTP login is only on 587 (STARTTLS) and 465 (SSL) | Change the client settings to 587 or 465 |
| The server rejects mail because the sender does not match | The From address does not match the login account | Send with the mailbox address used to log in |
Mail from PHP mail() goes to spam | Local mail is not DKIM-signed | Send through SMTP 587 with a mailbox login (for example a WordPress SMTP plugin) |
| Goes to spam at Gmail/Outlook | SPF, DKIM, or DMARC is not right | Run the email domain check (GET /v1/accounts/{id}/email/domains/{domain}/check) and fix the flagged records |
mail_send_blocked alert | The mailbox was blocked for a send spike, outgoing spam, or by an admin | Check the mailbox (it may be compromised), change its password, then unblock it on the account's Email tab |
mail_queue_large alert | The queue is deferred because recipients reject mail or the server is blacklisted | Look at the queue on the server detail page and check the rejection reasons |
ip_blacklisted alert | The server IP is listed on a DNSBL | Find the account sending spam, stop it, then request delisting through the links on the IP blacklist (DNSBL) card |
| Spamhaus always errors | Spamhaus refuses queries through public resolvers | Set MOORCP_RBL_RESOLVER to your own recursive resolver |
| Every mailbox login refused | The account's emailLogin toggle is off or the account is suspended | Check the account's access controls. Incoming mail is still accepted while the toggle is off. |
| New email settings do not apply yet | The mail server setup has not been run again | Run Repair email stack on the server detail page (POST /v1/servers/{id}/mail/setup) |
| A migrated mailbox is empty in webmail although its quota is used | The mail is still in cPanel's mdbox format | On the hosting server: moorcp-agent mail check <address>, then moorcp-agent mail convert-mdbox <user> |
See Mail server and Monitoring and alerts.
Database connections from outside the server
| Symptom | Cause | Fix |
|---|---|---|
| An app on another computer cannot connect to MariaDB | The account's remote access is off | Turn on the remoteDb toggle in the account's access controls (and the package's RemoteDB feature) |
Creating a user with a host other than localhost is refused | The account's remote access is off | Same as above |
| Login refused from a certain IP | The database user was created with host localhost | Create the user with host % or the client's IP |
| Connection timeout | Port 3306 is not open in the hosting server's firewall (the installer does not open it) | Open 3306/tcp only for the client's IP, for example with a firewalld rich rule |
| Connection info in the client panel does not show a remote host | The remote toggle is off | remoteHost only shows when the account's remote access is on |
External database servers
| Symptom | Cause | Fix |
|---|---|---|
| Test connection fails at the network step | Database server firewall | Allow the hosting server address shown in the test result |
| Fails at the TLS step | TLS mode does not match | Use preferred, or verify with the right CA |
| Fails at the admin rights step | The admin user lacks rights | MariaDB: ALL PRIVILEGES ON *.* WITH GRANT OPTION. PostgreSQL: SUPERUSER, or CREATEROLE + CREATEDB. |
Profile job fails with cp.db_profile_has_databases | The account still has databases on the old endpoint | Repeat with the option to move the existing databases |
| A non-WordPress app errors after its database was moved | The database host in the app config is still the old one | Change the host in the app config; the new host shows on the client Databases page |
Locked logins
| Symptom | Cause | Fix |
|---|---|---|
Admin or client login answers 429 cp.auth_locked, even with the right password | Too many failed attempts from that IP | Wait for Retry-After, or an admin unlocks it under Security › Login protection |
| Every staff member at the office is locked out | The per-IP rule (10 failures / 15 minutes) hits the office NAT | Unlock, then add the office IP to the login protection allowlist |
An integration answers 429 cp.auth_locked | A wrong API key was tried repeatedly from that IP | Fix the API key. Valid API keys are never held back. |
An integration answers 429 cp.rate_limited | The per-key or per-account rate limit was exceeded | Wait for Retry-After, lower the frequency, use bulk endpoints |
| An admin forgot their password | On the panel server: moorcp-shared staff passwd --email ops@example.com (password from stdin) | |
| A staff member lost their authenticator phone | On the panel server: moorcp-shared staff reset-2fa --email ops@example.com | |
| A client lost their authenticator phone | An admin or billing: DELETE /v1/accounts/{id}/client-totp | |
The GUI answers 403 cp.ip_not_allowed | The IP is not in MOORCP_ADMIN_ALLOWED_CIDRS | Connect from an allowed IP, or change the env on the panel server and restart |
The staff commands run with the panel environment, for example:
set -a; . /etc/moorcp-shared/env; set +aecho 'NEW_PASSWORD' | runuser -u moorcp --preserve-environment -- /usr/local/bin/moorcp-shared staff passwd --email ops@example.comPanel and API
| Symptom | Cause | Fix |
|---|---|---|
The GUI does not open, /v1/health does not answer | The panel service is down | systemctl status moorcp-shared, then journalctl -u moorcp-shared -n 100 |
| The browser warns about the certificate | The panel uses a self-signed certificate | Install Let's Encrypt once the panel DNS points to the server. See Installing the panel. |
Creating an account or server is refused with 402 cp.license_limit | The plan limit is reached, or the license is not active | Check Settings › License. Existing hosting keeps running. See License. |
The admin panel only shows Panel locked: license expired, clients see Hosting panel unavailable, the API answers 402 cp.license_locked | The license expired and its grace period is over, or the license server refused the trial | Renew at member.moorcp.com, then click Activate or Check now on the lock page. The panel unlocks right away. See License. |
| Settings › License shows an error under Last check | The panel cannot reach license.moorcp.com, or the license server refused the request | Check outbound HTTPS from the panel server. The current token stays valid until it expires, followed by the offline grace period |
Creating an account is refused with 409 cp.capacity_exceeded | No server passes the capacity rules | Add a server, raise the capacity limits, or pick a specific server |
| A billing key always gets 404 for a certain account | The account does not belong to that key's owner | An admin binds the account to the owner with PUT /v1/accounts/{id}/billing |
Client operations get 403 cp.billing_management_disabled | The admin turned off "manage from billing" | Turn it back on in the account's access controls |
| The client panel answers "panel client belum dikonfigurasi" (client panel is not configured) | MOORCP_CLIENT_LISTEN and MOORCP_CLIENT_PUBLIC_URL are not set | Set them in the panel env, open port 2083, then restart the panel |
| Webhooks do not arrive | The receiving endpoint errors, redirects, or times out (10 seconds) | Check the delivery history under Settings › Integrations & webhooks, fix it, then Redeliver |
Deleting a package is refused with 409 cp.package_in_use | Accounts that are not terminated still use the package | Move the accounts to another package or terminate them first |
| Changing a package does not change existing accounts' limits | The package was saved without reapplying (?apply=0, or the update-accounts option was off in the GUI) | Edit the package again with Also update accounts on this package now on |
Changing the primary domain is refused with 409 cp.domain_conflict | The new domain is used by another account or another website of this account | Delete that website first, or pick another domain |
Closing a firewall port is refused with 409 firewall.protected | SSH, web, panel, and agent ports are protected | These ports cannot be closed from the panel |
Opening or closing a port is refused with 409 firewall.inactive | firewalld is not running on that server | The panel does not start firewalld by itself. Start it on the server if you use it. |
Installing Softaculous is refused with 409 cp.softaculous_install_unsupported | Softaculous is already installed, or the agent is too old | Upgrade that server's agent first |
| The Softaculous license shows "Free" after installation | The server's public IP is not registered on a Softaculous license | Register the IP with Softaculous, then click Check license |
Website errors
For a website that errors or is slow, start with Website health. It checks DNS, HTTP, HTTPS, the certificate, PHP errors from the last 24 hours, today's share of 5xx responses, and the account's limits, with fix steps. See Website health.
| Symptom | Cause | Fix |
|---|---|---|
| Error 500 after a migration | .htaccess uses Options +FollowSymLinks, +ExecCGI, or +Includes | Replace +FollowSymLinks with +SymLinksIfOwnerMatch and remove the other options |
| The suspension page shows | The account is suspended | Unsuspend from the panel or billing |
| The site is slow, limit faults go up | The account hits its CPU, RAM, or process limit | Check the account's Resource tab and the Limit Explainer; upgrade the package if needed |
| A domain does not open, or shows the wrong site or certificate | DNS points elsewhere, the vhost is missing, or the certificate does not cover the domain | On the hosting server: moorcp-agent website check <domain> |
| A Node.js, Python, or Ruby app does not respond or shows an error | The app unit is stopped, the startup file is missing or empty, or node_modules is broken | On the hosting server: moorcp-agent app check <user> |
