Ho batle phoso
Liketsahalo tse ngata li oela ka palo e fokolang ea mekhoa. Sebetsa ho tloha ho letšoao ho ea ho lera, tiisa ka taelo, ebe u sebelisa tokiso e nyenyane ka ho fetisisa.
Matrix ea matšoao
| Letšoao | Mohlomong lera | Sheba pele |
|---|---|---|
502 Bad Gateway | PHP-FPM kapa holimo | Boemo ba letamo la PHP-FPM, tlaleho ea liphoso |
503 Service Unavailable | Mokhoa oa ho lokisa kapa ho jara haholo | Folakha ea tlhokomelo ea phanele, karolelano ea mojaro |
504 Gateway Timeout | Holimo butle haholo | max_execution_time, lipotso tse liehang |
500 Internal Server Error | Kopo | Lenane la phoso ea sebaka, display_errors e tima |
| Sebaka ha se fumanehe | DNS kapa firewall | dig, curl -I, boema-kepe ba 80/443 |
| Phoso ea SSL | Setifikeiti | Nako ea ho felloa ke nako, ketane, lebitso la moamoheli le sa lumellane |
| Lengolo le chechisitsoe morao | DNS kapa palo | SPF/DKIM, palo ea lebokose la mangolo, mokoloko |
| Disk e tletse | Polokelo | df -h, li-directory tse kholo ka ho fetisisa |
| Phanele tlase | Tšebeletso ea phanele | systemctl status wasfor-panel |
502 Bad Gateway
Seva ea tepo ha e khone ho fihla 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| Lebaka | Lokisa |
|---|---|
| Letamo la FPM le soahlamane | Qala hape letamo; hlahloba thipa ea ho soahlamana |
| Ho se lumellane ha tsela ea li-socket | Kenya kopo hape mofuta oa sebaka sa PHP |
| Mehopolo e felile | Tlase memory_limit kapa eketsa RAM |
| Nako ea nako ea basebetsi | Eketsa request_terminate_timeout ka hloko |
500 Phoso ea Ka hare ea Seva
Kopo e hlolehile. Bulela ho rema lifate ho fapana le 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 -20Lisosa tse tloaelehileng: ho haella ha PHP, tumello ea faele e fosahetseng, cache ea khale ea config, ho falla ho hlolehileng. Lokisa sesosa, ebe o hlakola li-cache.
504 Gateway Timeout
Kopo e fetile nako e itseng. Bapisa litekanyetso tse tharo:
Client / proxy timeout ≥ max_execution_time
max_execution_time ≥ expected work
Database query time < max_execution_timeMesebetsi e melelele ke ea motho ea etsang mela, eseng ka kopo ea tepo.
DNS le ho fihlella
dig +short app.example.com A
dig +short app.example.com AAAA
curl -I -H "Host: app.example.com" http://203.0.113.10Haeba kopo ea lehae ea Host e sebetsa empa domain name e hloleha, bothata ke DNS kapa firewall ea moeli, eseng ts'ebeliso.
Ho hloleha ha SSL
openssl s_client -connect app.example.com:443 -servername app.example.com </dev/null 2>/dev/null \
| openssl x509 -noout -dates -subject -issuer| Molaetsa | Tlhaloso |
|---|---|
certificate has expired | Nchafatso e hlolehile; hlahisa bocha |
unable to verify the first certificate | Ketane e sa fellang |
certificate is valid for … | Ho se lumellane ha lebitso la moamoheli; eketsa lebitso |
Lengolo le chechisitsoe morao
mailq | tail -20
grep -i "deferred" /var/log/mail.log | tail -30Sheba SPF/DKIM/DMARC, quota ea lebokose la mangolo, le hore na sebaka seo u eang ho sona se u behela meeli. Ho phahama ka tšohanyetso ha molumo o tsoang hangata ho bolela ak'haonte kapa script e senyehileng.
Disk e tletse
df -h
du -xh --max-depth=1 /home | sort -h | tail -10
du -xh --max-depth=1 /var/log | sort -h | tail -10Fetola likutu, hlakola linepe tsa khale, 'me u hlahlobe likopi tse balehileng. Le ka mohla u se ke ua hlakola lifaele tsa /var/lib/mysql ka letsoho.
Liphoso tsa khokahano ea database
systemctl status mariadb --no-pager
mysqladmin status -u root -p| Phoso | Tlhaloso |
|---|---|
Too many connections | Phahamisa max_connections kapa lokisa ho lutla ha khokahano |
Access denied | Mosebelisi, moamoheli kapa password e fosahetseng |
Disk full | Sheba karolo ea disk |
Table is marked as crashed | Khutlisa kapa u tsamaise tokiso ho seva se emisitsoeng |
Panele ha e laetsoe
systemctl status wasfor-panel --no-pager
journalctl -u wasfor-panel -n 200 --no-pager
curl -sk https://127.0.0.1:<port>/api/healthHaeba pheletso ea bophelo bo botle e arabela empa UI e se na letho, hlahloba "browser console" le "static asset cache". Hlakola cache ea phanele ebe u kenya hape.
Keketseho
Li bokelle pele u bula tekete:
- Lipampiri tsa nako hantle tse nang le sebaka sa nako.
- Kopa li-ID le li-URL tse amehang.
- Lintlha tse qotsitsoeng tse amanang.
- Ke eng e ileng ea fetoha hang-hang pele ho ketsahalo eo.
- Mehato e seng e lekoa.
Sheba AI & support bakeng sa lintho tse tlang pele bophelong ba litekete le likarabo tsa likarabo.