Skip to content

[Bug]: FATAL: Missing required configuration property: secret_key #202

Description

@arminus

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

After having run xyops on my home server for some time now, I was just trying to set it up on a remote server, basically, same compose file like so:

services:
  xyops01:
    image: ghcr.io/pixlcore/xyops:latest
    container_name: xyops01
    hostname: xyops.domain.com
    init: true
    restart: unless-stopped
    environment:
      XYOPS_xysat_local: "false"
      TZ: Europe/Berlin
    volumes:
      - ./xy-data:/opt/xyops/data
      - ./xyops-conf:/opt/xyops/conf
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - "5542:5522"

created empty folders for xy-data and xyops-conf, then:

docker compose up                                                                                                                                   ─╯
Attaching to xyops01
xyops01  | 
xyops01  | | xyOps > xyOps v1.0.30 Starting Up | {"pid":7,"ppid":1,"node":"v22.22.1","arch":"x64","platform":"linux","argv":["/usr/local/bin/node","/opt/xyops/lib/main.js","--foreground"],"execArgv":["--max-old-space-size=4096"]}
xyops01  | 
xyops01  | FATAL: Missing required configuration property: secret_key
xyops01  | 
xyops01 exited with code 1 (restarting)

Checking xyops-conf/config.json on my running server, I see that it has

{
        "base_app_url": "http://localhost:5522",
        "email_from": "admin@localhost",
        "secret_key": "initial",
...

(wherever "initial" is coming from ? an older beta version maybe?), applied that change to the new server's config.json, same error.

Operating System

Docker version 29.2.1, build a5c7197

Node.js Version

from image

xyOps Version

v1.0.30

Server Setup

Single Conductor

Storage Setup

Default (SQLite + Filesystem)

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions