# Comandos para diagnosticar problemas en ZimaOS # Copia y pega estos comandos en la terminal de ZimaOS # 1. Ver logs del discordbot docker exec bot_lastwar_funcionando cat /var/www/html/bot/logs/discordbot.out.log # 2. Ver logs del discordbot (errores) docker exec bot_lastwar_funcionando cat /var/www/html/bot/logs/discordbot.err.log # 3. Ver logs del translation-worker docker exec bot_lastwar_funcionando cat /var/www/html/bot/logs/translation-worker.out.log # 4. Verificar si el archivo discord_bot.php existe docker exec bot_lastwar_funcionando ls -la /var/www/html/bot/discord_bot.php # 5. Verificar el .env generado docker exec bot_lastwar_funcionando cat /var/www/html/bot/.env # 6. Verificar si los archivos del proyecto están montados docker exec bot_lastwar_funcionando ls -la /var/www/html/bot/ | head -20 # 7. Verificar permisos de la carpeta logs docker exec bot_lastwar_funcionando ls -la /var/www/html/bot/logs/ # 8. Ver todos los procesos en ejecución docker exec bot_lastwar_funcionando ps aux # 9. Ver estado de supervisor docker exec bot_lastwar_funcionando supervisorctl status # ==== DIAGNÓSTICO DE APACHE ==== # 10. Ver si Apache está escuchando en puerto 80 docker exec bot_lastwar_funcionando netstat -tulpn | grep :80 # 11. Ver procesos de Apache docker exec bot_lastwar_funcionando ps aux | grep apache # 12. Ver log de error de Apache docker exec bot_lastwar_funcionando cat /var/log/apache2/error.log # 13. Ver log de error del sitio docker exec bot_lastwar_funcionando cat /var/www/html/bot/logs/apache2.err.log # 14. Probar Apache directamente dentro del contenedor docker exec bot_lastwar_funcionando curl -v http://localhost:80/ 2>&1 | head -20 # 15. Ver configuración de Apache docker exec bot_lastwar_funcionando apache2ctl -S 2>&1 # 16. Ver módulos de Apache cargados docker exec bot_lastwar_funcionando apache2ctl -M 2>&1 | grep php # 17. Verificar si hay algo escuchando en el puerto publicado netstat -tulpn | grep 8086 # 18. Ver logs del contenedor docker logs bot_lastwar_funcionando 2>&1 | tail -30 # 19. Reiniciar el contenedor (si necesitas hacer cambios) docker restart bot_lastwar_funcionando