Kuxiwo gbɔ kpɔkpɔ
Nudzɔdzɔ akpa gãtɔ dzena le nɔnɔme ʋɛ aɖewo me. Wɔ dɔ tso dzesia dzi va ɖo ƒuƒoƒoa dzi, ɖo kpe edzi kple sedede, emegbe nàwɔ ɖɔɖɔɖo suetɔ kekeake.
Dzesiwo ƒe matriki
| Dzesi si dzena | Anɔ eme be layer | Kpɔe ɖa gbã |
|---|---|---|
502 Bad Gateway ƒe ŋkɔ | PHP-FPM alo le dzigbe gome | PHP-FPM pool ƒe nɔnɔme, vodada ƒe nuŋlɔɖi |
503 Service Unavailable ƒe ŋkɔ | Dzadzraɖo ƒe nɔnɔme alo agba si wu tsɔtsɔ | Panel beléle na aflaga, agba le mama dedie nu |
504 Gateway Timeout ƒe ŋkɔ | Dzigbe gome blewu akpa | max_execution_time, biabia blewu |
500 Internal Server Error ƒe ŋkɔ | Mᴐbibia | Nyatakakadzraɖoƒea ƒe vodada ŋuti nuŋlɔɖi, display_errors tsi |
| Nyatakakadzraɖoƒea si womate ŋu aɖo o | DNS alo dzodoƒe | dig, curl -I, melidzeƒe 80/443 |
| SSL ƒe vodada | Ɖasɛɖigbalẽ | Expiry, chain, hostname ƒe masɔmasɔ |
| Wohe lɛtaɖoɖo ɖe megbe | DNS alo xexlẽme si woɖo ɖi | SPF/DKIM, lɛtaɖaka ƒe xexlẽme, fli |
| Disk yɔ fũ | Nudzadzraɖo | df -h, si nye nyatakakadzraɖoƒe gãtɔwo kekeake |
| Panel yi anyime | Panel subɔsubɔdɔ | systemctl status wasfor-panel ƒe ŋkɔ |
502 Agbo Gbegblẽ
Web server la mete ŋu ɖo PHP-FPM gbɔ o.
systemctl status php8.3-fpm --no-pager
tail -n 100 /home/acme/sites/app.example.com/logs/error.log
ss -lntp | grep fpm| Wᴐe be | Wɔ |
|---|---|
| FPM ta la ge dze anyi | Gbugbɔ dze ta la gɔme ake; lé ŋku ɖe afɔku ŋuti nuŋlɔɖi si le ʋua ƒe gbagbã ŋu la ŋu |
| Socket mɔ ƒe masɔmasɔ | Gbugbɔ wɔ nyatakakadzraɖoƒea ƒe PHP tɔ ŋudɔ |
| Ŋkuɖodzinyawo nu yi | Ðe memory_limit ɖe anyi alo tsɔ RAM kpee |
| Dɔwɔlawo ƒe ɣeyiɣi si woatsɔ awɔ dɔe | Do request_terminate_timeout ɖe dzi nyuie |
500 Ememe Server ƒe Vodada
Dɔdamɔnua do kpo nu. Trɔ logging tsɔ wu 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 -20Nusiwo gbɔ wòtsona zi geɖe: PHP ƒe kpeɖeŋutɔ si bu, faɛl ƒe mɔɖeɖe siwo mesɔ o, ɖoɖowɔɖi ƒe cache si tsi, ʋuʋu si do kpo nu. Dzra nusi gbɔ wòtso ɖo, emegbe nàkɔ caches me.
504 Agbo ƒe Ɣeyiɣi ƒe Nuwuwu
Nubiabia la wu ɣeyiɣi si woɖo ɖi. Tsɔ asixɔxɔ etɔ̃ sɔ kple wo nɔewo:
Client / proxy timeout ≥ max_execution_time
max_execution_time ≥ expected work
Database query time < max_execution_timeDɔ didiwo nyea dɔwɔla si le fli me tɔ, ke menye le web biabia me o.
DNS kple alesi woate ŋu aɖoe
dig +short app.example.com A
dig +short app.example.com AAAA
curl -I -H "Host: app.example.com" http://203.0.113.10Ne teƒea ƒe Host biabia wɔ dɔ gake domenyinyia do kpo nu la, kuxia nye DNS alo edge firewall, ke menye dɔwɔwɔa o.
SSL ƒe kpododonuwo
openssl s_client -connect app.example.com:443 -servername app.example.com </dev/null 2>/dev/null \
| openssl x509 -noout -dates -subject -issuer| Gbedeasi | Gɔmeɖeɖe |
|---|---|
certificate has expired ƒe ŋkɔ | Yeyewɔwɔ do kpo nu; gbugbɔ tae |
unable to verify the first certificate ƒe ŋkɔ | Kɔsɔkɔsɔ si mede blibo o |
certificate is valid for … ƒe ŋkɔ | Hostname ƒe masɔmasɔ; tsɔ ŋkɔ bubu aɖe kpee |
Wohe lɛtaɖoɖo ɖe megbe
mailq | tail -20
grep -i "deferred" /var/log/mail.log | tail -30Kpɔ SPF/DKIM/DMARC, posuɖaka ƒe agbɔsɔsɔme, kple nenye be teƒe si yim nèle la le seɖoƒe ɖom na wò hã. Zi geɖe la, gbeɖiɖi si dona tsoa eme ƒe dzidziɖedzi kpata fia be akɔntabubu alo nuŋɔŋlɔ si ŋu wogblẽ nu le.
Disk yɔ fũ
df -h
du -xh --max-depth=1 /home | sort -h | tail -10
du -xh --max-depth=1 /var/log | sort -h | tail -10Trɔ nuŋlɔɖiwo, kɔ foto xoxowo ŋu, eye nàkpɔe ɖa be sisi ƒe megbenyawo hã li. Mègatutu /var/lib/mysql ƒe faɛlwo kple asi gbeɖe o.
Nyatakakadzraɖoƒe ƒe kadodo ƒe vodadawo
systemctl status mariadb --no-pager
mysqladmin status -u root -p| Vodada | Gɔmeɖeɖe |
|---|---|
Too many connections ƒe ŋkɔ | Do max_connections ɖe dzi alo ɖɔ kadodo ƒe tsi si le dodom ɖo |
Access denied ƒe ŋkɔ | Zãla, amedzro alo nyagbe si mesɔ o |
Disk full ƒe ŋkɔ | Kpɔ disk ƒe akpaa |
Table is marked as crashed ƒe ŋkɔ | Gbugbɔ ɖɔ nuwo ɖo alo wɔ nuwo ɖɔɖɔɖo le server si wotɔ la dzi |
Panel mele agba me o
systemctl status wasfor-panel --no-pager
journalctl -u wasfor-panel -n 200 --no-pager
curl -sk https://127.0.0.1:<port>/api/healthNe lãmesẽ ƒe nuwuƒea ɖo eŋu gake UI la le ƒuƒlu la, ke lé ŋku ɖe browser console kple static asset cache ŋu. Klɔ panel cache la me eye nàgbugbɔ akɔe.
Nuwo ƒe dzidziɖedzi
Ƒo nu ƒu hafi nàʋu tikiti:
- Ɣeyiɣi ƒe dzesi siwo sɔ pɛpɛpɛ kple ɣeyiɣi ƒe didime.
- Bia IDwo kple URL siwo ŋu wòku ɖo.
- Log me nya siwo sɔ.
- Nusi trɔ do ŋgɔ teti na nudzɔdzɔa.
- Afɔɖeɖe siwo wote kpɔ xoxo.
Kpɔ AI & support hena tikiti ƒe nu vevitɔwo kple ŋuɖoɖo ƒe taɖodzinuwo.