[GH-ISSUE #890] [Issue]: Default Port is already taken by software you will want to interoperate with (Move to 7869) #434

Closed
opened 2026-10-20 17:28:48 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @LeRobber on GitHub (May 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/890

Originally assigned to: @cha1latte on GitHub.

Summary

Stable Diffusion is an image generator that is popular for generating imagery locally. It runs (and has for years) through Automatic1111 on port 7860

Expected behavior

When someone installs ME, the default port SHOULD be 7869 (or some other port than 7860)

Actual behavior

Someone navigates to http://localhost:7860, and they see the HTTP endpoint for stable diffusion, which they've never seen before, but have running on their machine because they use it, possibly with sillytavern or possibly, with other things in comfyUI

This forces them to 1> recognize this screwed up like this and 2> figure out how to launch ME on a different port.

Steps to reproduce

  1. Install stableDiffusionWEBUI or drawthings and turn on it's localhost image generatation on the default port of 7860
  2. Install ME
  3. Run ME, follow instructions to go to http://localhost:7860
  4. See wrong thing (Not ME, random integration endpointt for Automatic1111 or DrawThings)

if you use something like drawthings.app on mac which is only on SOMETIMES:

  1. Run Drawthings.app server
  2. Install ME
  3. Run ME, follow instructions to go to http://localhost:7860
  4. See wrong thing (Not ME, random integration endpointt for Automatic1111 or DrawThings)

Then

  1. Turn off Drawthings.app server
  2. Install ME
  3. Run ME, follow instructions to go to http://localhost:7860
  4. See ME website on http://localhost:7860, but later, will not have working image generation in other local websites including SillyTavern....i.e. you will break sillytavern image gen through automatic1111/drawthings

Environment

  • Marinara Engine version: 1.5.9
  • Install type: git
  • OS + version: macos later (doesn't matter)
  • Browser or app shell: (opera)

Logs, screenshots, or video

══════════════════════════════════════════
Starting Marinara Engine on http://127.0.0.1:7860
Press Ctrl+C to stop
══════════════════════════════════════════

Should read

══════════════════════════════════════════
Starting Marinara Engine on http://127.0.0.1:7869
Press Ctrl+C to stop
══════════════════════════════════════════

Additional context

Sillytavern recognized that port as Automatic1111's port (that's a popular stable diffusion port). This is not just me .
https://github.com/search?q=repo%3ASillyTavern%2FSillyTavern%207860&type=code

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • [] I DID NOT read this template and provide the requested details.
Originally created by @LeRobber on GitHub (May 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/890 Originally assigned to: @cha1latte on GitHub. ## Summary Stable Diffusion is an image generator that is popular for generating imagery locally. It runs (and has for years) through Automatic1111 on port 7860 ## Expected behavior When someone installs ME, the default port SHOULD be 7869 (or some other port than 7860) ## Actual behavior Someone navigates to http://localhost:7860, and they see the HTTP endpoint for stable diffusion, which they've never seen before, but have running on their machine because they use it, possibly with sillytavern or possibly, with other things in comfyUI This forces them to 1> recognize this screwed up like this and 2> figure out how to launch ME on a different port. ## Steps to reproduce 1. Install stableDiffusionWEBUI or drawthings and turn on it's localhost image generatation on the default port of 7860 2. Install ME 3. Run ME, follow instructions to go to http://localhost:7860 4. See wrong thing (Not ME, random integration endpointt for Automatic1111 or DrawThings) if you use something like drawthings.app on mac which is only on SOMETIMES: 1. Run Drawthings.app server 2. Install ME 3. Run ME, follow instructions to go to http://localhost:7860 4. See wrong thing (Not ME, random integration endpointt for Automatic1111 or DrawThings) Then 1. Turn off Drawthings.app server 2. Install ME 3. Run ME, follow instructions to go to http://localhost:7860 4. See ME website on http://localhost:7860, but later, will not have working image generation in other local websites including SillyTavern....i.e. you will break sillytavern image gen through automatic1111/drawthings ## Environment - Marinara Engine version: 1.5.9 - Install type: git - OS + version: macos later (doesn't matter) - Browser or app shell: (opera) ## Logs, screenshots, or video ══════════════════════════════════════════ Starting Marinara Engine on http://127.0.0.1:7860 Press Ctrl+C to stop ══════════════════════════════════════════ Should read ══════════════════════════════════════════ Starting Marinara Engine on http://127.0.0.1:7869 Press Ctrl+C to stop ══════════════════════════════════════════ ## Additional context Sillytavern recognized that port as Automatic1111's port (that's a popular stable diffusion port). This is not just me . https://github.com/search?q=repo%3ASillyTavern%2FSillyTavern%207860&type=code ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:28:48 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@LeRobber commented on GitHub (May 15, 2026):

Yes, I know how to work around this FOR ME but you are breaking image generation for OTHER software that you share a forum with currently.

Here is the workaround for anyone who experiences it on mac/linux:

Since the port default is set on line 204 of start.sh, you run ME like this instead of the normal way:

PORT=7869 bash ./start.sh

<!-- gh-comment-id:4462414116 --> @LeRobber commented on GitHub (May 15, 2026): Yes, I know how to work around this *FOR ME* but you are breaking image generation for OTHER software that you share a forum with currently. Here is the workaround for anyone who experiences it on mac/linux: Since the port default is set on line 204 of start.sh, you run ME like this instead of the normal way: PORT=7869 bash ./start.sh
Author
Owner

@cha1latte commented on GitHub (May 15, 2026):

Thanks for the detailed report.

I’m going to keep this tracked as a bug/UX issue rather than treating the exact requested port change as the only possible fix. A safer first step may be to improve startup behavior around occupied ports: detect the collision clearly, avoid opening the browser to the wrong service, and tell users how to launch Marinara on another port, e.g. PORT=7869 bash ./start.sh. Changing the canonical default port globally is also possible, but it has a wider blast radius across docs, installers, Android, dev proxy behavior, and callback defaults, so that should be handled deliberately.

<!-- gh-comment-id:4462572046 --> @cha1latte commented on GitHub (May 15, 2026): Thanks for the detailed report. I’m going to keep this tracked as a bug/UX issue rather than treating the exact requested port change as the only possible fix. A safer first step may be to improve startup behavior around occupied ports: detect the collision clearly, avoid opening the browser to the wrong service, and tell users how to launch Marinara on another port, e.g. `PORT=7869 bash ./start.sh`. Changing the canonical default port globally is also possible, but it has a wider blast radius across docs, installers, Android, dev proxy behavior, and callback defaults, so that should be handled deliberately.
Author
Owner

@LeRobber commented on GitHub (May 15, 2026):

I understand it's hard, but it's bad to take a port that breaks related software that you are competing with in a hard way, but that you still use the forum of. This will never get easier than now. This is what it looks like for people right now:

Image

As you break software that ISN'T yours with this (in the case people turn image generation backends on and off, as they do to unload it from vram), that IS likely to be run on the same system, and IS on a subreddit you share:

it's not just inconvenient for ME users on startup, this breaks their image gen in sillytavern intermittently in a way that's hard to debug.

Politically, I feel it's a nonstarter to stay on 7860.

<!-- gh-comment-id:4462620112 --> @LeRobber commented on GitHub (May 15, 2026): I understand it's hard, but it's bad to take a port that breaks related software that you are competing with in a hard way, but that you still use the forum of. This will never get easier than now. This is what it looks like for people right now: <img width="2014" height="280" alt="Image" src="https://github.com/user-attachments/assets/663b61ca-2ce2-4a0f-8511-5fd32fe66a2e" /> As you break software that ISN'T yours with this (in the case people turn image generation backends on and off, as they do to unload it from vram), that IS likely to be run on the same system, and IS on a subreddit you share: it's not just inconvenient for ME users on startup, this breaks their image gen in sillytavern intermittently in a way that's hard to debug. Politically, I feel it's a nonstarter to stay on 7860.
Author
Owner
<!-- gh-comment-id:4462864144 --> @LeRobber commented on GitHub (May 15, 2026): Fixed in https://github.com/LeRobber/Marinara-Engine/tree/fixingME890 https://github.com/LeRobber/Marinara-Engine/commit/d5a02d722052321438cd68ba59cda2aa9e183c16 & https://github.com/LeRobber/Marinara-Engine/commit/5d22e9f99b4e00c5bcd10762057b07f65435f065
Author
Owner

@LeRobber commented on GitHub (May 15, 2026):

FYI re that block:

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)

It runs on the correct port now 7869. It doesn't conflict with any apparent common local LLM/image gen ports. 7869 was not on a few random "what's on this port" websites.

  • Read and followed CONTRIBUTING.md

FWIW, I am an actual software dev. It is unlikely this really breaks anything for new users but, depending on how many weird ways people used this in docker, a few might need to run the app slightly differently.

I don't have docker setup locally, is there someone who can check this on there?

<!-- gh-comment-id:4462974778 --> @LeRobber commented on GitHub (May 15, 2026): FYI re that block: - [X] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [X] Ran the app, clicked through the changes manually - [X] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [X] Above manual verification completed (describe below) It runs on the correct port now 7869. It doesn't conflict with any apparent common local LLM/image gen ports. 7869 was not on a few random "what's on this port" websites. - [X] Read and followed `CONTRIBUTING.md` FWIW, I am an actual software dev. It is unlikely this really breaks anything for new users but, depending on how many weird ways people used this in docker, a few might need to run the app slightly differently. I don't have docker setup locally, is there someone who can check this on there?
Author
Owner

@LeRobber commented on GitHub (May 15, 2026):

Also verified this was correctly connected to on iOS

This update was made without the assistance of AI, made on github.dev with the find and replace, then this human reading over the changes.

<!-- gh-comment-id:4463055353 --> @LeRobber commented on GitHub (May 15, 2026): Also verified this was correctly connected to on iOS This update was made without the assistance of AI, made on github.dev with the find and replace, then this human reading over the changes.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#434
No description provided.