Black Friday: 40% off for life · BLACKFRIDAY40Claim →
crabsmith Get started
Browse documentation
← All documentation

Troubleshooting

On this page

Quick fixes when a server won't connect, HTTPS fails, a deploy breaks, or an app returns 502.

Server won't connect

Open your server's Overview and click Refresh to test the connection (for a newly added server that hasn't finished setup yet, use Connect and set up instead):

ErrorWhat to check
UnreachableCheck the IP/hostname, SSH port, whether the server is powered on, and your cloud provider's external firewall
Authentication failedMake sure Crabsmith's SSH public key is in ~/.ssh/authorized_keys for your login user
Host key changedThe server's OS was reinstalled or the IP now points to a different machine
Sudo requiredLog in as root, or use a user with passwordless sudo
Timed outCheck network connectivity or high CPU/memory load, then try again

Warning

Never click Reset host key in Settings just to dismiss a host-key warning. Verify the server's identity in your cloud provider's console first.

Password setup issues

  • Login failed during Add server: double-check the username and password, and make sure the server allows SSH password login. If password login is disabled or your password is longer than 32 characters, choose I will run a command instead.
  • Retrying setup: passwords are used once and never saved, so re-enter it if authorization hasn't completed yet.
  • Too many attempts: wait one minute before trying again (limited to 5 attempts per minute).

HTTPS, DNS, and Cloudflare issues

  • Auto HTTPS certificate fails: point an A record for your domain (and any aliases) to your server's IP, and make sure inbound TCP ports 80 and 443 are open in your cloud provider's firewall. Until DNS propagates, visitors will see a certificate error.
  • Cloudflare redirect loop (ERR_TOO_MANY_REDIRECTS): if Cloudflare SSL is set to Flexible, set your site's HTTPS mode to Off in Crabsmith Settings. Better yet, switch Cloudflare to Full (Strict) and keep Crabsmith on Auto.
  • Internal/private hostnames: use Internal HTTPS instead of Auto.

502 Bad Gateway and app errors

  • Proxy site returns 502 Bad Gateway (Node.js, Next.js, CrabPHP): open the site's Processes tab and check the app daemon's status and Logs. Make sure the app is running, listens on 127.0.0.1 on the site's assigned port, and is restarted by your deploy script.
  • PHP site returns 502 or 413 upload error: check that PHP-FPM is running under Services. For large file uploads, increase upload_max_filesize and post_max_size under Services → PHP → Config (see Config).
  • Changes to .env didn't take effect: saving the environment file does not restart your app or clear framework caches. Restart your daemon or click Deploy now.

Deploy, memory, and disk issues

  • Git fetch failed: make sure the site's deploy key has read access to the repository, you used the SSH clone URL for a private custom repo, and the branch name matches.
  • Deploy script failed: open the failed step under Deployments to read its output, fix the script or code, and deploy again.
  • Out of memory during npm run build or composer install: a 1 GB server can run out of RAM on large builds. Check swap and memory usage on Overview, build assets in CI, or upgrade to a 2 GB+ server.
  • Disk full (No space left on device): open the server's Terminal and run df -h to check disk usage, then clear old logs, build caches, or unused backups.
  • Browser disconnected mid-operation: Crabsmith keeps running in the background and reconnects automatically—just reopen the operation in Activity instead of starting a duplicate.
  • Service config rejected: Crabsmith validates config files before applying them and automatically restores the last working file on error. Fix the line shown in the error message and save again.