Skip to content

Container restarts due to segmentation violation #1583

@instantdreams

Description

@instantdreams

Describe the bug

My simple opencloud container instance restarts multiple times, and the logs indicate this is due to failures in the service.go module.

Steps to reproduce

  1. Start instance
  2. Wait a while; optionally try to add a file or folder
  3. Check the logs and identify a segmentation violation

Expected behavior

For the instance not to restart multiple times.

Actual behavior

The instance always restarts and remains stable for an indeterminate length of time.

Setup

Environment details:

  • Debian 6.1.135-1
  • Docker Engine 28.4.0
  • Docker Compose 2.39.2
  • config and apps directories mounted on ext4
  • data directory mounted on zfs

Here is my compose.yaml file:

Details

name: opencloud
services:
  opencloud:
    command:
      - -c
      - opencloud init || true; opencloud server
    container_name: opencloud
    domainname: example.com
    entrypoint:
      - /bin/sh
    environment:
      DIRECTORY_APPS: /srv/opencloud/apps
      DIRECTORY_CONFIG: /srv/opencloud/config
      DIRECTORY_DATA: /mnt/storage/opencloud
      IDM_ADMIN_PASSWORD: [redacted]
      IDM_CREATE_DEMO_USERS: "false"
      MICRO_REGISTRY_ADDRESS: localhost:9233
      NATS_NATS_HOST: 0.0.0.0
      NATS_NATS_PORT: "9233"
      NOTIFICATIONS_SMTP_AUTHENTICATION: auto
      NOTIFICATIONS_SMTP_ENCRYPTION: starttls
      NOTIFICATIONS_SMTP_HOST: smtp.sendgrid.net
      NOTIFICATIONS_SMTP_INSECURE: "false"
      NOTIFICATIONS_SMTP_PASSWORD: [redacted]
      NOTIFICATIONS_SMTP_PORT: "465"
      NOTIFICATIONS_SMTP_SENDER: admin@example.com
      NOTIFICATIONS_SMTP_USERNAME: [redacted]
      OC_DISABLE_VERSIONING: "true"
      OC_INSECURE: "true"
      OC_LOG_COLOR: "false"
      OC_LOG_LEVEL: debug
      OC_LOG_PRETTY: "false"
      OC_PERSISTENT_STORE: nats-js-kv
      OC_PERSISTENT_STORE_NODES: localhost:9233
      OC_URL: https://opencloud.example.com
      PROXY_ENABLE_BASIC_AUTH: "true"
      PROXY_HTTP_ADDR: 0.0.0.0:9200
      PROXY_TLS: "false"
      STORAGE_USERS_DRIVER: posix
      STORAGE_USERS_POSIX_GENERAL_SPACE_ALIAS_TEMPLATE: '{{.SpaceType}}/{{.SpaceName | replace " " "-" | lower}}'
      STORAGE_USERS_POSIX_GENERAL_SPACE_PATH_TEMPLATE: projects/{{.SpaceName | replace " " "-" | lower}}
      STORAGE_USERS_POSIX_PERSONAL_SPACE_ALIAS_TEMPLATE: '{{.SpaceType}}/{{.User.Username | lower}}'
      STORAGE_USERS_POSIX_PERSONAL_SPACE_PATH_TEMPLATE: users/{{.User.Username | lower}}
      STORAGE_USERS_POSIX_PROPAGATOR: sync
      STORAGE_USERS_POSIX_SCAN_DEBOUNCE_DELAY: 4s
      STORAGE_USERS_POSIX_USE_SPACE_GROUPS: "false"
      STORAGE_USERS_POSIX_WATCH_FS: "false"
      STORAGE_USERS_POSIX_WATCH_TYPE: inotifywait
      TZ: America/Edmonton
    extra_hosts:
      - opencloud.example.com=192.168.1.91
    hostname: opencloud
    image: opencloudeu/opencloud-rolling:latest
    ports:
      - mode: ingress
        target: 9200
        published: "9202"
        protocol: tcp
    restart: unless-stopped
    volumes:
      - type: bind
        source: /srv/opencloud/config
        target: /etc/opencloud
        bind:
          create_host_path: true
      - type: bind
        source: /mnt/storage/opencloud
        target: /var/lib/opencloud
        bind:
          create_host_path: true
      - type: bind
        source: /srv/opencloud/apps
        target: /var/lib/opencloud/web/assets/apps
        bind:
          create_host_path: true
      - type: bind
        source: /etc/localtime
        target: /etc/localtime
        read_only: true
        bind:
          create_host_path: true

Here is a link to my opencloud-20250929.log log files with debug enabled.

Additional context

I am trying to stand up a file server only, no collabra, ODIC, or other apps. I wish to stabilise it before adding additional utilities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions