ocr api
Build and Push Docker Images / build-and-push (push) Failing after 2m5s

This commit is contained in:
2025-07-17 16:00:42 +02:00
parent 7860aa3579
commit fed33b7623
9 changed files with 893 additions and 2 deletions
+34 -2
View File
@@ -167,7 +167,7 @@ The container logs all health check activities to both stdout and a log file (`/
Each log entry includes the host name for easy identification:
```
2024-01-15 10:30:00 - INFO - Performing health check for server1: http://server1:8000/?url=https%3A//www.google.com&skipCache=true
2024-01-15 10:30:00 - INFO - Performing health check for server1: http://server1:8000/?url=https%3A//www.google.com
2024-01-15 10:30:01 - INFO - Health check passed for server1 - API is responding correctly
2024-01-15 10:30:02 - WARNING - Health check failed for server2 - Status code: 500
```
@@ -181,6 +181,38 @@ Each log entry includes the host name for easy identification:
## Troubleshooting
### USB Device Mounting Error
If you encounter an error like:
```
error creating device nodes: mount src=/dev/bus/usb/003/003, dst=/var/lib/docker/overlay2/.../merged/dev/bus/usb/003/003: no such file or directory
```
**Solution**: Remove `privileged: true` from your Docker Compose configuration. The healthcheck container doesn't need privileged access.
**Correct configuration:**
```yaml
puppeteer-healthcheck:
image: bramkel/puppeteer-healthcheck:latest
container_name: puppeteer-healthcheck
# Remove this line: privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- HOSTS=puppeteer-api-1,puppeteer-api-2
- TEST_URL=https://www.google.com
- MAX_CONSECUTIVE_FAILURES=2
- API_KEY=${PUPPETEER_API_KEY}
- CHECK_INTERVAL=60
- TIMEOUT=15
restart: unless-stopped
depends_on:
- puppeteer-api-1
- puppeteer-api-2
```
### Docker Permission Issues
If you see "Permission denied" errors when accessing the Docker socket:
@@ -246,7 +278,7 @@ docker build -t puppeteer-healthcheck .
## Version
Current version: 2.0.0
Current version: latest
### Migration from v1.x