Skip to content

Docker cron not running #109

Description

@bruvv

Describe the bug
when running docker with cron it doesn't execute
this is my cron:

# min   hour    day     month   weekday command

0 8 * * * sldl https://open.spotify.com/playlist/3d3ayPBSCJuQZAChSCkmH6?si=58fe1a49f711494b \
             -c /config/sldl.conf \
             -p /data \
             --index-path /data/pla1.index.sldl \
             --no-progress

0 18 * * * sldl https://open.spotify.com/playlist/5e1n6tnLzz1WF1kmossine?si=83c4f988f1b446e7 \
              -c /config/sldl.conf \
              -p /data \
              --index-path /data/pla2.index.sldl \
              --no-progress

# CSV-tracklist – elke dag om 13:00
0 13 * * * sldl /config/tracks.csv \
               --input-type csv \
               -c /config/sldl.conf \
               -p /data \
               --index-path /data/csvtracks.index.sldl \
               --no-progress

Now when I run one of the commands in the container it works just fine but when letting the container sit for over 2 days nothing has happened

Compose file:

services:
  sldl:
    ports:
      - "127.0.0.1:48721:48721"
    build:
      context: .
    environment:
      - TZ=Europe/London # Specify timezone from TZ Database name found here https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
      - PUID=1026 # recommended if running docker on linux host, see main README Docker setup instructions
      - PGID=100 # recommended if running docker on linux host, see main README Docker setup instructions
    volumes:
      - ./config:/config
      - ./data:/data

cron.log

crond: file abc:
crond:  line sldl https://open.spotify.com/playlist/3d3ayPBSCJuQZAChSCkmH6?si=58fe1a49f711494b              -c /config/sldl.conf              -p /data              --index-path /data/pla1.index.sldl              --no-progress
crond:  line sldl https://open.spotify.com/playlist/5e1n6tnLzz1WF1kmossine?si=83c4f988f1b446e7               -c /config/sldl.conf               -p /data               --index-path /data/pla2.index.sldl               --no-progress
crond:  line sldl /config/tracks.csv                --input-type csv                -c /config/sldl.conf                -p /data                --index-path /data/csvtracks.index.sldl                --no-progress
crond: wakeup dt=60
crond: file root:
crond:  line run-parts /etc/periodic/15min
crond:  line run-parts /etc/periodic/hourly
crond:  line run-parts /etc/periodic/daily
crond:  line run-parts /etc/periodic/weekly
crond:  line run-parts /etc/periodic/monthly
crond: file abc:
crond:  line sldl https://open.spotify.com/playlist/3d3ayPBSCJuQZAChSCkmH6?si=58fe1a49f711494b              -c /config/sldl.conf              -p /data              --index-path /data/pla1.index.sldl              --no-progress
crond:  line sldl https://open.spotify.com/playlist/5e1n6tnLzz1WF1kmossine?si=83c4f988f1b446e7               -c /config/sldl.conf               -p /data               --index-path /data/pla2.index.sldl               --no-progress
crond:  line sldl /config/tracks.csv                --input-type csv                -c /config/sldl.conf                -p /data                --index-path /data/csvtracks.index.sldl                --no-progress

To Reproduce
See above cron log

Expected behavior
Cron runs like the command also does.

Desktop (please complete the following information):

  • OS: DSM7 (Synology NAS)
  • Using docker: yes
  • Version: latest docker

Additional context
see above

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions