Skip to content

Failed to load native binding on v0.17.0 #359

@jfisbein

Description

@jfisbein

Platform

Web

Describe the bug

Updated from v0.16.2 to v0.17.0 and got this error:

{"level":60,"time":1773300946420,"pid":1,"hostname":"50f37e3e7c30","module":"server","err":{"type":"Error","message":"Failed to load native binding","stack":"Error: Failed to load native binding\n    at Object.<anonymous> (/app/node_modules/@swc/core/binding.js:333:11)\n    at Module._compile (node:internal/modules/cjs/loader:1706:14)\n    at Object..js (node:internal/modules/cjs/loader:1839:10)\n    at Module.load (node:internal/modules/cjs/loader:1441:32)\n    at Function._load (node:internal/modules/cjs/loader:1263:12)\n    at TracingChannel.traceSync (node:diagnostics_channel:328:14)\n    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)\n    at Module.<anonymous> (node:internal/modules/cjs/loader:1463:12)\n    at mod.require (/app/node_modules/next/dist/server/require-hook.js:68:28)\n    at require (node:internal/modules/helpers:147:16)"},"msg":"Server startup failed"}

No other change done in my docker compose file (attached).

name: norish
services:
  chrome-headless:
    image: zenika/alpine-chrome:latest
    container_name: chrome-headless
    command:
      - --no-sandbox
      - --disable-gpu
      - --disable-dev-shm-usage
      - --remote-debugging-address=0.0.0.0
      - --remote-debugging-port=3000
      - --headless
    restart: unless-stopped
    healthcheck:
      test: pgrep chromium
      interval: 60s
      retries: 3
      start_period: 10s
      timeout: 10s
    deploy:
      resources:
        limits:
          memory: 2G
  database:
    image: postgres:17-alpine
    container_name: norish-db
    volumes:
      - /media/local/norish/postgres_data:/var/lib/postgresql/data
    env_file:
      - .env
    ports:
      - 5437:5432
    restart: unless-stopped
    healthcheck:
      test:
        - CMD-SHELL
        - pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}
      interval: 10s
      timeout: 3s
      retries: 3
    deploy:
      resources:
        limits:
          memory: 2G
  norish:
    image: norishapp/norish:latest
    container_name: norish-app
    depends_on:
      chrome-headless:
        condition: service_healthy
      database:
        condition: service_healthy
      redis:
        condition: service_healthy
    volumes:
      - /media/local/norish/data:/app/uploads
    environment:
      # Core settings (required)
      #AUTH_URL: http://docker.fritz.box:3010
      AUTH_URL: https://norish.mydomain.top
      DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
      CHROME_WS_ENDPOINT: ws://chrome-headless:3000
      REDIS_URL: redis://redis:6379
      # OPTIONAL
      # NEXT_PUBLIC_LOG_LEVEL: info       # trace, debug, info, warn, error, fatal (default: info in prod, debug in dev)
      # TRUSTED_ORIGINS:http://192.168.1.100:3000,https://norish.example.com  # Additional trusted origins, comma separated. Useful when behind a proxy or using multiple domains.
      # YT_DLP_BIN_DIR: # Custom folder path for `yt-dlp` (default: /app/bin)

      # ─────────────────────────────────────────────────────────────────────────
      # FIRST USER SETUP
      # ─────────────────────────────────────────────────────────────────────────
      # On first startup, configure ONE auth provider below to create your admin account.
      # After first login, use Settings → Admin to configure additional providers,
      # AI settings, video parsing, and all other options.

      # Option 1= Password auth - basic auth with email/password
      # If not set defaults to disabled if OIDC or OAuth is configured.
      # Defaults to true if no other auth providers are configured.
      #PASSWORD_AUTH_ENABLED=false

      # Option 2: OIDC (Authentik, Keycloak, PocketID, etc.)
      # OIDC_NAME: NoraId
      # OIDC_ISSUER: https://nora.example.com
      # OIDC_CLIENT_ID: <client-id>
      # OIDC_CLIENT_SECRET: <client-secret>
      # OIDC_WELLKNOWN: https://auth.example.com/.well-known/openid-configuration
      # Wellknown is optional: By default the wellknown URL is derived from the issuer by appending /.well-known/openid-configuration

      # Option 3: GitHub OAuth (uncomment and remove OIDC above)
      # GITHUB_CLIENT_ID: <github-client-id>
      # GITHUB_CLIENT_SECRET: <github-client-secret>

      # Option 4: Google OAuth (uncomment and remove OIDC above)
      # GOOGLE_CLIENT_ID: <google-client-id>
      # GOOGLE_CLIENT_SECRET: <google-client-secret>
    env_file:
      - .env
    ports:
      - 3010:3000
    restart: unless-stopped
    user: 1000:1000
    deploy:
      resources:
        limits:
          memory: 2G
  # Redis for real-time events and job queues
  redis:
    image: docker.io/valkey/valkey:9-alpine
    container_name: norish-redis
    volumes:
      - /media/local/norish/redis_data:/data
    restart: unless-stopped
    healthcheck:
      test: redis-cli ping || exit 1
      interval: 60s
      retries: 3
      start_period: 10s
      timeout: 10s
    deploy:
      resources:
        limits:
          memory: 1G
networks: {}

To reproduce

docker compose stop
docker compose pull
docker compose up

Expected behavior

Norish starts without issues

Screenshots

No response

Environment

Linux running latest docker version

Additional context

No response

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