Skip to content

Localhost spacebar 'npm run start' not working #1632

@somethingcats-dot

Description

@somethingcats-dot

Describe the bug
I'm trying to self host (localhost only) spacebar, I'm not a self host professional, so maybe there was something simple I missed.

I followed the instructions on https://docs.spacebar.chat/setup/server/#setup to step 'npm run start' which gives the error 'DATABASE environment variable not set! Please set it to your database connection string. Example for postgres: postgres://user:password@localhost:5432/database'.

To Reproduce
Follow the instructions to 'npm run start'.

Expected behavior
No error? The docs said it should just be working afterwards.

System Information (please complete the following information):

  • OS: Arch Linux
  • Node Version: v25.9.0
  • Python 3 Version: Python 3.14.4

Env and Software info

  • Release: should be latest?
  • Database: I don't know, I haven't set one?
  • Reverse Proxy: I also don't know.
  • Thread Count: no idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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