Skip to content

No crontabs and no logs #276

@schultzter

Description

@schultzter

I installed in a container and mapped my host's crontab directory into the container. But in the UI I don't see any crontabs, or entries, and I can't find any logs anywhere. I access crontab-ui through a reverse proxy, that's why port isn't published.

How do I get it working?

Thanks

This is my compose file:

services:
  crontab-ui-server:
    container_name: crontab-ui
    environment:
      - BASIC_AUTH_USER=admin
      - BASIC_AUTH_PWD=****
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8000/"]
      interval: 5m
      timeout: 1m
    networks:
      - applications
    restart: unless-stopped
    volumes:
      - /var/spool/cron/crontabs:/etc/crontabs
      - crontab-ui:/crontab-ui/crontabs
    image: alseambusher/crontab-ui

networks:
  applications:
    name: applications

volumes:
  crontab-ui:
    name: crontab-ui

This is the contents of /var/spool/cron/crontabs on my host:

$ ls -l /var/spool/cron/crontabs
total 6
-rw-------    1 root     op             158 May  5 10:01 op
-rw-------    1 root     root          1066 Mar 27 20:03 root

And this is the contents of the op crontab file:

# min hr day mth wkd command
#  * * * * * (date;env) >> crontest
43 0 * * * /home/op/VolumeBackup.sh 2>&1 > /home/op/VolumeBackup-$(date +%Y%m%d-%H%M%S).log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions