Depanaj
Pifò ensidan yo tonbe nan yon ti kantite modèl. Travay soti nan sentòm nan kouch la, konfime ak yon lòd, Lè sa a, aplike ranje ki pi piti a.
Matrice sentòm
| Sentòm | Kouch posib | Premye tcheke |
|---|---|---|
502 Bad Gateway | PHP-FPM oswa en | PHP-FPM estati pisin, boutèy erè |
503 Service Unavailable | Mòd antretyen oswa Surcharge | Panèl antretyen drapo, chaj mwayèn |
504 Gateway Timeout | En twò dousman | max_execution_time, demann dousman |
500 Internal Server Error | Aplikasyon | Log erè sit, display_errors koupe |
| Sit inaccessible | DNS oswa firewall | dig, curl -I, pò 80/443 |
| SSL erè | Sètifika | Ekspire, chèn, non host non matche |
| Lapòs difere | DNS oswa kota | SPF/DKIM, kota bwat lèt, keu |
| Disk plen | Depo | df -h, pi gwo anyè |
| Panel desann | Sèvis panèl | systemctl status wasfor-panel |
502 Move Gateway
Sèvè entènèt la pa t 'kapab rive jwenn PHP-FPM.
systemctl status php8.3-fpm --no-pager
tail -n 100 /home/acme/sites/app.example.com/logs/error.log
ss -lntp | grep fpm| Kòz | Ranje |
|---|---|
| Pisin FPM te fè aksidan | Rekòmanse pisin lan; enspekte jounal aksidan an |
| Socket chemen dezakò | Re-aplike sit PHP vèsyon an |
| Memwa fin itilize | Bese memory_limit oswa ajoute RAM |
| Delè travayè | Leve request_terminate_timeout ak anpil atansyon |
500 Erè sèvè entèn
Aplikasyon an echwe. Aktive anrejistreman olye ke display_errors:
tail -f /home/acme/sites/app.example.com/logs/error.log
grep -i "PHP Fatal" /home/acme/sites/app.example.com/logs/error.log | tail -20Kòz komen: manke ekstansyon PHP, otorizasyon dosye mal, kachèt konfigirasyon rasi, migrasyon echwe. Ranje kòz la, epi netwaye kachèt yo.
504 Gateway Timeout
Demann lan depase yon tan. Konpare twa valè:
Client / proxy timeout ≥ max_execution_time
max_execution_time ≥ expected work
Database query time < max_execution_timeTravay long fè pati nan yon travayè keu, pa nan yon demann entènèt.
DNS ak aksesiblite
dig +short app.example.com A
dig +short app.example.com AAAA
curl -I -H "Host: app.example.com" http://203.0.113.10Si demann Host lokal la ap travay men domèn nan echwe, pwoblèm nan se DNS oswa firewall kwen an, pa aplikasyon an.
SSL echèk
openssl s_client -connect app.example.com:443 -servername app.example.com </dev/null 2>/dev/null \
| openssl x509 -noout -dates -subject -issuer| Mesaj | Siyifikasyon |
|---|---|
certificate has expired | Renouvèlman echwe; re-emèt |
unable to verify the first certificate | Chèn enkonplè |
certificate is valid for … | Dezakò nan non lame; ajoute yon alyas |
Lapòs difere
mailq | tail -20
grep -i "deferred" /var/log/mail.log | tail -30Tcheke SPF/DKIM/DMARC, kota bwat lèt la, epi si destinasyon an ap limite ou. Yon ogmantasyon toudenkou nan volim sortan anjeneral vle di yon kont konpwomèt oswa script.
Disk plen
df -h
du -xh --max-depth=1 /home | sort -h | tail -10
du -xh --max-depth=1 /var/log | sort -h | tail -10Thorne mòso bwa, efase ansyen snapshots, epi tcheke pou sovgad sove. Pa janm efase dosye /var/lib/mysql alamen.
Erè koneksyon baz done
systemctl status mariadb --no-pager
mysqladmin status -u root -p| Erè | Siyifikasyon |
|---|---|
Too many connections | Leve max_connections oswa ranje fwit koneksyon |
Access denied | Move itilizatè, lame oswa modpas |
Disk full | Gade seksyon disk la |
Table is marked as crashed | Restore oswa kouri yon reparasyon sou yon sèvè sispann |
Panel pa chaje
systemctl status wasfor-panel --no-pager
journalctl -u wasfor-panel -n 200 --no-pager
curl -sk https://127.0.0.1:<port>/api/healthSi pwen final sante a reponn men UI a vid, tcheke konsole navigatè a ak kachèt avantaj estatik la. Netwaye kachèt panèl la epi rechaje.
Eskalad
Kolekte anvan ou ouvri yon tikè:
- Egzak timestamps ak timezone.
- Mande ID ak URL ki afekte yo.
- Ekstrè jounal ki enpòtan yo.
- Ki sa ki chanje imedyatman anvan ensidan an.
- Etap deja eseye.
Gade AI & sipò pou priyorite tikè ak objektif repons yo.