Skip to content

Self-Hosted Server fails with "Unexpected identifier 'raw'" on latest Docker image #153

@FGYada1984

Description

@FGYada1984

Describe the bug
My Ferdium desktop app cannot connect to my self-hosted server. The server logs show a fatal SyntaxError: Unexpected identifier 'raw' immediately on startup, even with a completely fresh data directory. This makes the server unusable.

To Reproduce
Steps to reproduce the behavior:

  1. Use the attached docker-compose.yml file.
  2. Pull the ferdium/ferdium-server:latest Docker image.
  3. Start the container with docker-compose up -d using an empty ./data directory.
  4. The server starts, but any attempt by the client app to connect fails. The logs show the error below.

Expected behavior
The server should start correctly and allow the desktop client to connect.

Logs

This is the critical error from the server log:

{"level":50,"time":1752760891764,"pid":1728,"hostname":"7c3bbae45708","name":"ferdium-server","err":{"type":"SyntaxError","message":"Unexpected identifier 'raw'","stack":"/app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]_pg_049cf74d9e61e5ab650d703f6be7e2a1/node_modules/@adonisjs/lucid/build/src/Orm/BaseModel/index.js:1444\n     * Serializes relationships to a plain object. When `raw=true`, it will\n ^^^\n\nSyntaxError: Unexpected identifier 'raw'\n    at wrapSafe (node:internal/modules/cjs/loader:1486:18)\n    at Module._compile (node:internal/modules/cjs/loader:1528:20)\n    at Object..js (node:internal/modules/cjs/loader:1706:10)\n    at Module.load (node:internal/modules/cjs/loader:1289:32)\n    at Function._load (node:internal/modules/cjs/loader:1108:12)\n    at TracingChannel.traceSync (node:diagnostics_channel:322:14)\n    at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)\n    at Module.require (node:internal/modules/cjs/loader:1311:12)\n    at require (node:internal/modules/helpers:136:16)\n    at Object.callback (/app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]_pg_049cf74d9e61e5ab650d703f6be7e2a1/node_modules/@adonisjs/lucid/build/providers/DatabaseProvider.js:44:35)","status":500},"msg":"Unexpected identifier 'raw'"}

docker-compose.yml

services:
  ferdium-server:
    container_name: ferdium-server
    image: ferdium/ferdium-server:latest
    ports:
      - "3333:3333" 
    restart: unless-stopped 
      NODE_ENV: "production"
      DB_CONNECTION: "sqlite"
      DB_HOST: "localhost"
      DB_PORT: "3306"
      DB_USER: "root"
      DB_PASSWORD: ""
      DB_DATABASE: "database.sqlite"
      APP_URL: "http://localhost:3333"
      API_URL: "http://localhost:3333"
      WEB_URL: "http://localhost:3333"
      PORT: "3333"
      DATA_DIR: "/data"
    volumes:
      - ./data:/data

    networks:
      - nginx-proxy-network


networks:
  nginx-proxy-network:
    external: true

Desktop Environment:

  • OS: Arch Linux
  • Ferdium Version: 7.1.0

Server Environment:

  • Docker Image: ferdium/ferdium-server:latest
  • Host OS: Arch Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions