Skip to content

question: Internal Server Error after restarting OmniRoute on Windows #8975

Description

@muhammad-fiaz

OmniRoute Version

3.8.49

Installation Method

npm (global)

Operating System

Windows

OS Version

No response

Node.js Version

v25.9.0

Provider(s) Involved

No response

Model(s) Involved

No response

Client Tool

No response

Description

I found a startup issue on Windows after installing OmniRoute via npm.

On a fresh installation, OmniRoute starts normally. The dashboard loads successfully and everything appears to work.

However, after stopping the server with Ctrl+C and starting it again by running omniroute, the dashboard no longer loads and instead displays an Internal Server Error.

Deleting the .omniroute directory allows OmniRoute to start successfully again, but the problem returns after stopping and restarting the server.

This appears to be different from the previously fixed upgrade issue because it happens on a completely fresh installation without upgrading from an older version.

Steps to Reproduce

  1. Install OmniRoute globally:
   npm install -g omniroute
  1. Run:
  omniroute
  1. Wait until the dashboard opens successfully.

  2. Stop the server using Ctrl+C.

  3. Run:

  omniroute
  1. Open the dashboard again.

  2. Observe that the dashboard displays:

  Internal Server Error
  1. Delete:
  C:\Users\<username>\.omniroute
  1. Run omniroute again.

  2. The dashboard works again until the server is stopped and restarted.

Expected Behavior

OmniRoute should start successfully every time it is run.

Stopping the server with Ctrl+C should shut it down cleanly without leaving it in a state that prevents future startups.

Running omniroute again should start the server normally, reuse the existing .omniroute data directory, and load the dashboard without displaying an Internal Server Error.

Users should not have to delete the .omniroute directory or reinstall OmniRoute to restore normal operation.

Actual Behavior

The first launch after a fresh installation works correctly.

After stopping OmniRoute with Ctrl+C and running omniroute again, the dashboard immediately displays Internal Server Error.

Deleting the .omniroute directory temporarily fixes the issue until the next restart.

Test Impact

Unsure

Error Logs / Output

No error or stack trace is printed in the terminal.

The first run starts successfully:

✔ OmniRoute is running!

After stopping the server with Ctrl+C and running `omniroute` again, the dashboard no longer loads and the browser displays:

Internal Server Error

Deleting the `.omniroute` directory allows OmniRoute to start successfully again, but the issue returns after stopping the server and running `omniroute` again.

Screenshots

Image

Additional Context

Validation Plan

Manual validation

npm install -g omniroute
omniroute
  • Verify that the dashboard loads successfully.

Stop the server with Ctrl+C.

omniroute
  • Verify that the dashboard loads successfully without displaying Internal Server Error.

Repeat the Ctrl+Comniroute restart cycle multiple times.

Expected result

  • OmniRoute starts successfully on every launch.
  • The dashboard loads correctly after every restart.
  • The existing .omniroute directory is reused without requiring deletion.
  • No Internal Server Error is displayed after restarting the server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedstartup

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions