Skip to content

Expired token generating error log entry every 5 minutes #919

@lynix

Description

@lynix

Describe the bug

A log entry complaining about an expired access token is generated exactly every 5 minutes. Both the web interface as well as the desktop client work normally, no actual re-login is triggered.

2025-05-22T10:16:09Z ERR failed to authenticate the request error="failed to verify access token: token has invalid claims: token is expired" authenticator=oidc client.address=2a01:xxx::1 network.peer.address= network.peer.port= path=/graph/v1.0/me/drives service=proxy user_agent="Mozilla/5.0 (Linux) mirall/1.0.0 (OpenCloud, arch-6.14.2-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
2025-05-22T10:21:10Z ERR failed to authenticate the request error="failed to verify access token: token has invalid claims: token is expired" authenticator=oidc client.address=2a01:xxx::1 network.peer.address= network.peer.port= path=/graph/v1.0/me/drives service=proxy user_agent="Mozilla/5.0 (Linux) mirall/1.0.0 (OpenCloud, arch-6.14.2-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
2025-05-22T10:26:11Z ERR failed to authenticate the request error="failed to verify access token: token has invalid claims: token is expired" authenticator=oidc client.address=2a01:xxx::1 network.peer.address= network.peer.port= path=/graph/v1.0/me/drives service=proxy user_agent="Mozilla/5.0 (Linux) mirall/1.0.0 (OpenCloud, arch-6.14.2-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)"

Steps to reproduce

  1. Launch via docker compose as described in documentation
  2. Connect desktop client
  3. Leave idle

Expected behavior

No error log entry is generated.

Actual behavior

An error log entry is generated every 5 minutes.

Setup

# docker-compose.yml

services:
  app:
    container_name: opencloud
    image: opencloudeu/opencloud-rolling:latest
    entrypoint:
      - /bin/sh
    command: ["-c", "opencloud init || true; opencloud server"]
    read_only: true
    restart: unless-stopped
    user: 969:969  # opencloud
    security_opt:
      - no-new-privileges:true
    volumes:
      - ./config:/etc/opencloud:ro
      - ./data:/var/lib/opencloud
    tmpfs:
      - /tmp:uid=969,gid=969,size=64M
    ports:
      - 9200:9200
    environment:
      FRONTEND_ARCHIVER_MAX_SIZE: "10000000000"
      GATEWAY_GRPC_ADDR: 0.0.0.0:9142
      IDM_ADMIN_PASSWORD: "xxx"
      IDM_CREATE_DEMO_USERS: "false"
      IDP_DEFAULT_SIGNIN_PAGE_TEXT: ""
      MICRO_REGISTRY_ADDRESS: 127.0.0.1:9233
      NATS_NATS_HOST: 0.0.0.0
      NATS_NATS_PORT: 9233
      NOTIFICATIONS_SMTP_AUTHENTICATION: ""
      NOTIFICATIONS_SMTP_ENCRYPTION: none
      NOTIFICATIONS_SMTP_HOST: host.docker.internal
      NOTIFICATIONS_SMTP_INSECURE: "true"
      NOTIFICATIONS_SMTP_PASSWORD: ""
      NOTIFICATIONS_SMTP_PORT: 25
      NOTIFICATIONS_SMTP_SENDER: "OpenCloud <noreply@xxx.org>"
      NOTIFICATIONS_SMTP_USERNAME: ""
      OC_ADD_RUN_SERVICES: notifications
      OC_INSECURE: "false"
      OC_LOG_COLOR: "true"
      OC_LOG_LEVEL: warning
      OC_LOG_PRETTY: "true"
      OC_URL: https://xxx.org
      PROXY_ENABLE_BASIC_AUTH: "true"
      PROXY_HTTP_ADDR: 0.0.0.0:9200
      PROXY_TLS: "false"

Additional context

I'm running Treafik (natively on the host) as front-end for TLS termination.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Prio <= 3

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions