wavelog: CronManager doesn't execute some jobs

I’ve used the latest docker image according to the wiki.

The jobs do run manually, e.g. i can upload/download to lotw, eqsl, qrz, clublog, etc. using the menu (or in case of clublog using a url). I do not find errors within the log file which could indicate a issue. Executing the command in /etc/cron/wavelog manually also doesn’t indicate a error.

root@0dfe98d0fcc2:/var/www/html# curl --silent http://localhost/index.php/cron/run
CRON: clublog_download -> is due: false -> Next Run: 2024-08-21 00:07:00
CRON: clublog_upload -> is due: false -> Next Run: 2024-08-20 12:03:00
CRON: eqsl_sync -> is due: false -> Next Run: 2024-08-20 12:09:00
CRON: hrdlog_upload is disabled. skipped..
CRON: lotw_lotw_upload -> is due: false -> Next Run: 2024-08-20 08:00:00
CRON: qrz_download -> is due: false -> Next Run: 2024-08-20 12:18:00
CRON: qrz_upload -> is due: false -> Next Run: 2024-08-20 12:06:00
CRON: update_dxcc -> is due: false -> Next Run: 2024-09-01 00:20:00
CRON: update_lotw_users -> is due: false -> Next Run: 2024-08-26 01:10:00
CRON: update_update_clublog_scp -> is due: false -> Next Run: 2024-08-25 00:00:00
CRON: update_update_dok -> is due: false -> Next Run: 2024-09-01 00:00:00
CRON: update_update_pota -> is due: false -> Next Run: 2024-09-01 00:15:00
CRON: update_update_sota -> is due: false -> Next Run: 2024-09-01 00:05:00
CRON: update_update_wwff -> is due: false -> Next Run: 2024-09-01 00:10:00

Version Information

  • OS (Host): Debian 12
  • PHP: not relevant due to docker
  • MySQL/MariaDB: mariadb:11.3 image
  • Wavelog: ghcr.io/wavelog/wavelog:latest (Version 1.8.2)

Steps to Reproduce

  1. Fill in all credentials for qrz, eqsl, lotw, …
  2. Enable all cronjobs
  3. Wait 2 days
  4. See attached screenshot.

image

As you note, some cronjobs are executed, some are not. The instance is running for two weeks already with all cronjobs enabled. (And the manual upload just works)…

Expected Behavior The lotw, qrz, eqsl, … cronjobs are executed reliable.

Screenshots See above

Desktop Information:

  • OS: Debian Unstable
  • Browser: Firefox
  • Version: 128

Additional Context Please contact me in case of any questions. I’m happy to help - wavelog is awesome 😃

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 31 (31 by maintainers)

Most upvoted comments

Try the following:

call the cron/run from outside of the docker container. from an external machine as minute interval cronjob

* * * * * curl --silent https://public-url/cron/run &>/dev/null

if this solves the issue, it’s probably your cron setup

I’ll test this above till this evening with the following setup:

wavelog-main:
    container_name: wavelog-main
    image: ghcr.io/wavelog/wavelog:latest
    depends_on:
      - wavelog-db
    links:
      - web
    environment:
      #      - TZ=Europe/Berlin
      - CI_ENV=docker
    volumes:
      - /home/docker/wavelog/config:/var/www/html/application/config/docker
      - /home/docker/wavelog/uploads:/var/www/html/uploads
      - /home/docker/wavelog/userdata:/var/www/html/userdata
      - /home/docker/wavelog/logs:/var/www/html/application/logs
      - /home/docker/wavelog/cron/wavelogNonInternal:/var/spool/cron/crontabs/root:ro
    restart: always
    networks:
      wavelogbackend:
        ipv4_address: 172.174.1.22
      webproxy:
        ipv4_address: 172.170.1.22 
        ipv6_address: 2607:5300:61:a54:2::22
    deploy:
      resources:
        limits:
          cpus: '1'
          memory: 2G

This ro-mounted crontab file is just empty, thus disabling the internal crontab/ curl call.

The cron/run is called from a external machine every minute.

I’ll report back this evening or tomorrow.

After reviewing the changes from beginning till here the main change is the missing CI_ENV: docker environmental variable.