update timeout
This commit is contained in:
@@ -86,18 +86,65 @@ docker-compose down -v
|
|||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
|
### Viewing Portainer Deployment Logs
|
||||||
|
|
||||||
|
**Option 1: Stack Logs**
|
||||||
|
1. Go to **Stacks** in Portainer
|
||||||
|
2. Click on your `basharbot` stack
|
||||||
|
3. Look for deployment output at the bottom of the page
|
||||||
|
|
||||||
|
**Option 2: Container Logs**
|
||||||
|
1. Go to **Containers** in Portainer
|
||||||
|
2. Find the `basharbot` container
|
||||||
|
3. Click on it and select **Logs**
|
||||||
|
4. Use the search/filter to find errors
|
||||||
|
|
||||||
|
**Option 3: CLI Access**
|
||||||
|
```bash
|
||||||
|
# View deployment logs
|
||||||
|
docker-compose logs basharbot
|
||||||
|
|
||||||
|
# Follow logs in real-time
|
||||||
|
docker logs -f basharbot
|
||||||
|
|
||||||
|
# View last 100 lines
|
||||||
|
docker logs --tail 100 basharbot
|
||||||
|
|
||||||
|
# Check build logs
|
||||||
|
docker-compose build --no-cache
|
||||||
|
```
|
||||||
|
|
||||||
|
### Common Issues
|
||||||
|
|
||||||
|
**Build timeout / "No space left on device":**
|
||||||
|
- TTS library is large (~500MB with dependencies)
|
||||||
|
- Increase Docker build timeout in Portainer
|
||||||
|
- Or disable Arabic TTS: Set `USE_ARABIC_TTS=false` in .env
|
||||||
|
|
||||||
**Bot won't start:**
|
**Bot won't start:**
|
||||||
- Check logs: `docker-compose logs basharbot`
|
- Check logs: `docker-compose logs basharbot`
|
||||||
- Verify DISCORD_TOKEN is set correctly in .env
|
- Verify DISCORD_TOKEN is set correctly in .env
|
||||||
|
- Check for Python import errors in logs
|
||||||
|
|
||||||
**Audio issues:**
|
**Audio issues:**
|
||||||
- Ensure ffmpeg is installed in container (included in Dockerfile)
|
- Ensure ffmpeg is installed in container (included in Dockerfile)
|
||||||
- Check opus library is available
|
- Check opus library is available
|
||||||
|
- Verify voice permissions in Discord
|
||||||
|
|
||||||
**High memory usage:**
|
**High memory usage:**
|
||||||
- Use smaller Whisper model: `WHISPER_MODEL_SIZE=tiny`
|
- Use smaller Whisper model: `WHISPER_MODEL_SIZE=tiny`
|
||||||
|
- Disable Arabic TTS: `USE_ARABIC_TTS=false`
|
||||||
- Reduce model compute type in stt.py
|
- Reduce model compute type in stt.py
|
||||||
|
|
||||||
|
**Packet loss warnings:**
|
||||||
|
- These are normal and suppressed in logs
|
||||||
|
- Don't affect functionality
|
||||||
|
|
||||||
|
**TTS model download fails:**
|
||||||
|
- First run downloads ~50MB Arabic model
|
||||||
|
- Ensure container has internet access
|
||||||
|
- Check `/root/.local/share/tts/` volume
|
||||||
|
|
||||||
## Updates
|
## Updates
|
||||||
|
|
||||||
To update the bot:
|
To update the bot:
|
||||||
|
|||||||
@@ -17,7 +17,8 @@ WORKDIR /app
|
|||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
# Install Python dependencies
|
# Install Python dependencies
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
# Increase pip timeout for large packages like TTS
|
||||||
|
RUN pip install --no-cache-dir --timeout=1000 -r requirements.txt
|
||||||
|
|
||||||
# Copy application files
|
# Copy application files
|
||||||
COPY bot.py .
|
COPY bot.py .
|
||||||
|
|||||||
Reference in New Issue
Block a user