Workflow State and Log Output is not available Rundeck 5.11.0

33 views
Skip to first unread message

Ariel Rotenberg

unread,
May 8, 2025, 6:43:39 AM5/8/25
to rundeck-discuss
Hi everyone :)
I've recently upgraded from rundeck 4.12.0 to 5.11.0 using docker compose. 

I have a problem regarding the logs. 
Every time i restart the containers the logs of the jobs are not being saved.

there is a volume that is mounted to the path where the logs are inside the docker compose file
      - ./rundeck-logs:/home/rundeck/logs
      - ./rundeck-var:/home/rundeck/var

i tried configure rundeck.log.storage.provider=filesystem on Edit configuration on the project and it didn't make any changes. 

is there any other ways to resolve this? 

Thank you :) 

rac...@rundeck.com

unread,
May 8, 2025, 10:42:29 AM5/8/25
to rundeck-discuss

Hi,

Can you share your docker-compose definition?

I tried this basic example:

services: rundeck: image: rundeck/rundeck:5.11.1 environment: RUNDECK_GRAILS_URL: http://localhost:4440 RUNDECK_LOGGING_STRATEGY: FILE volumes: - ./data/logs/:/home/rundeck/var/logs/rundeck/ ports: - 4440:4440 tty: true

After restarting the container, I can also see the log output/workflow state.

Regards.

Message has been deleted

Ariel Rotenberg

unread,
May 11, 2025, 3:41:43 AM5/11/25
to rundeck-discuss

Hi! 
Thank you for responding. 
This is my docker compose file: 

I see the log when I run a job, but if I'm restarting the container I can't see the log output history for jobs i ran before the restart. 

Thank you :)


 services:
  postgres:
    image: postgres:14
    environment:
      POSTGRES_NAME: rundeck
      POSTGRES_USER: rundeck
      POSTGRES_PASSWORD: changeme
    volumes:
      - postgres-data:/var/lib/postgresql/data
    ports:
      - "5432:5432"
    healthcheck:
      test: ["CMD", "pg_isready", "-U", "rundeck"]
      interval: 10s
      timeout: 5s
      retries: 5

  rundeck:
    build: .
    depends_on:
      postgres:
        condition: service_healthy
    ports:
      - "4440:4440"
    hostname: rundeck
    environment:
      RUNDECK_GRAILS_URL: "http://0.0.0.0:4440"
      DATABASE_DRIVER: org.postgresql.Driver
      DATABASE_URL: jdbc:postgresql://postgres:5432/rundeck
      DATABASE_USERNAME: rundeck
      DATABASE_PASSWORD: changeme
      RUNDECK_SERVER_FORWARDED: "true"
      RUNDECK_DATABASE_ENGINE: postgres
      RUNDECK_ADMIN_USER: admin
      RUNDECK_ADMIN_PASSWORD: changeme
      JAVA_OPTS: "-Xms2g -Xmx4g"
      RUNDECK_FEATURES_DISABLE_UPDATES: "true"
      RUNDECK_TOKENS_FILE_AUTOGEN: "false"
      RUNDECK_SECURITY_REMOTE_ADDRESS_USE_HOSTNAME: "false"
      RUNDECK_JAASLOGIN: true
      RD_URL: http://0.0.0.0:4440/
      RD_USER: admin
      RD_PASSWORD: changeme
    volumes:
      - ./rundeck-data:/home/rundeck/server/data
      - ./rundeck-etc:/home/rundeck/server/config
      - ./rundeck-logs:/home/rundeck/logs
      - ./rundeck-var:/home/rundeck/var
      - ./rundeck-lib:/var/lib/rundeck
      - ./rundeck-keys:/home/rundeck/.ssh/
      - /var/run/docker.sock:/var/run/docker.sock
      - ./rundeck-etc/ansible/hosts:/etc/ansible/hosts

volumes:
  postgres-data:

ב-יום חמישי, 8 במאי 2025 בשעה 17:42:29 UTC+3, rac...@rundeck.com כתב/ה:
Reply all
Reply to author
Forward
0 new messages