nautical-backup icon indicating copy to clipboard operation
nautical-backup copied to clipboard

logger.sh syntax error

Open lo97 opened this issue 10 months ago • 5 comments

Hello, When I run it through docker, i get multiple lines of this error: /app/logger.sh: line 46: ((: 1 >= : syntax error: operand expected (error token is ">= ") /app/logger.sh: line 51: ((: 1 >= : syntax error: operand expected (error token is ">= ")

Running the latest docker version 2.12.5

lo97 avatar Apr 10 '25 10:04 lo97

I haven't seen this error before. Let's see what's going on.

Are you able to share your Docker configuration as well as set the LOG_LEVEL to TRACE and share the output?

Minituff avatar Apr 10 '25 14:04 Minituff

This only happens with log level trace. Here is my config: services: nautical-backup: image: minituff/nautical-backup:latest container_name: nautical-backup volumes: - /var/run/docker.sock:/var/run/docker.sock - config:/config - tests:/tests - /var/lib/docker/volumes:/app/source - /media/data/Backup/Nautical:/app/destination - /media/data2/Backup/Nautical:/app/destination2 environment: - TZ=Europe/Rome - CRON_SCHEDULE=55 3 * * */2 # - SKIP_CONTAINERS= - BACKUP_ON_START=true - LOG_LEVEL=trace - REPORT_FILE_LOG_LEVEL=trace - SECONDARY_DEST_DIRS=/app/destination2 - USE_DEST_DATE_FOLDER=true expose: - 8069 restart: always networks: - homepage - ntfy labels: - "com.centurylinklabs.watchtower.enable=true"

volumes: config: tests:

networks: homepage: external: true ntfy: external: true

lo97 avatar Apr 10 '25 14:04 lo97

I just noticed that it only happens when trace is lowercase, it goes away if I have it TRACE

lo97 avatar Apr 10 '25 14:04 lo97

Got it. So the error is only when you have the log level on trace?

The log levels are supposed to be uppercase, but I should probably just convert it to uppercase to avoid any confusion.

Minituff avatar Apr 10 '25 15:04 Minituff

Yes, it only happens with lowercase trace, when I uppercase it, the error disappeared

lo97 avatar Apr 10 '25 15:04 lo97