Skip to content

Windows: FloCafe fails to start when ports 3001 and 3002 are occupied #538

Description

@ADITYA-tp01

Bug description

FloCafe fails to start on Windows when ports 3001 and 3002 are already occupied by another process.

In my case, the ports were occupied by a Docker container running in the background from another project.

The startup output showed:

[kill-ports] Port 3001 is not free.
[kill-ports] Port 3002 is not free.

Instead of starting on the next available port, such as 3003, FloCafe failed to start.

Steps to reproduce

  1. Run FloCafe in the Windows development environment using npm run dev.
  2. Start another application or Docker container that occupies ports 3001 and 3002.
  3. Start FloCafe.
  4. Observe the startup output.
  5. FloCafe fails to start instead of switching to the next available port, such as 3003.

Expected behavior

FloCafe should detect that ports 3001 and 3002 are already occupied and automatically start on the next available port (3003`) instead of failing to start.

Actual behavior

FloCafe fails to start when ports 3001 and 3002 are already occupied.

The startup output shows:

[kill-ports] Port 3001 is not free.
[kill-ports] Port 3002 is not free.

Instead of switching to an available port such as 3003, the application fails to start.

Operating System

Windows

Installation Method

GitHub / direct installer

FloCafe version

3.3.1 - beta 3

OS version & architecture (optional)

Windows 11 64-bit

Relevant logs or printer output

No response

Screenshots & hardware context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions