# Error connecting to n8n - using Docker on RHEL

**URL:** <https://community.n8n.io/t/error-connecting-to-n8n-using-docker-on-rhel/229090>\
**Category:** Questions\
**Created:** [December 1, 2025, 1:08pm UTC](https://community.n8n.io/t/error-connecting-to-n8n-using-docker-on-rhel/229090 "2025-12-01T13:08:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Katore\_IN](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/abhishek_katore_in/32/59049_2.png) [@Abhishek\_Katore\_IN](https://community.n8n.io/u/Abhishek_Katore_IN)\
**Post date:** [December 1, 2025, 1:08pm UTC](https://community.n8n.io/t/error-connecting-to-n8n-using-docker-on-rhel/229090/1 "2025-12-01T13:08:06Z")

</div>

## Describe the problem/error/question

Getting “Error connecting to n8n - Could not connect to server” in browser when accessing n8n at **`http://localhost:5678`**

## What is the error message (if any)?

 ![n8n](https://europe1.discourse-cdn.com/n8n/original/3X/2/4/247e805675a65d375ffaa6303710b8653805dd3d.png)

 ![n8n_image](https://europe1.discourse-cdn.com/n8n/original/3X/d/6/d661147cb897b91a229397ab50a24f50dbe4f8ef.png)

**Environment:**

- n8n version: 1.120.4

- Running in Docker

- Access via Tailscale IP

- OS: RHEL9.6

**What’s working:**

- n8n container is running successfully

- Server logs show: **`n8n ready on 0.0.0.0, port 5678`**

- API responds correctly: **`curl http://localhost:5678/rest/settings`** works

**What I’ve tried:**

- Recreated container multiple times with correct environment variables ( **`N8N_EDITOR_BASE_URL`** , **`WEBHOOK_URL`** )

- Fixed volume permissions (chown 1000:1000)

- Tried without volumes (fresh container)

- Cleared browser cache completely (hard refresh, incognito mode, cleared local storage, service workers)

- Tried different port (5679)

- Tried different browsers

- Error persists across all attempts

---

<div class="post-metadata">

**Author:** ![syedsafwaan9711](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@syedsafwaan9711](https://community.n8n.io/u/syedsafwaan9711)\
**Post date:** [December 1, 2025, 4:04pm UTC](https://community.n8n.io/t/error-connecting-to-n8n-using-docker-on-rhel/229090/2 "2025-12-01T16:04:42Z")

</div>

Hey! Since the API works but the frontend does not load, this sounds like a reverse proxy or base URL mismatch. Check if N8N\_EDITOR\_BASE\_URL matches exactly how you access n8n (including protocol and port). If you are using Tailscale IP, set it to something like `http://your-tailscale-ip:5678`. Also verify N8N\_HOST is set to 0.0.0.0 and N8N\_PORT matches your container port. Try accessing directly via [http://container-ip:5678](http://container-ip:5678/) to rule out network issues. If still broken, check browser console for specific JavaScript errors blocking the frontend load.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [March 1, 2026, 4:05pm UTC](https://community.n8n.io/t/error-connecting-to-n8n-using-docker-on-rhel/229090/3 "2026-03-01T16:05:34Z")

</div>

Closed on March 1, 2026, 4:05pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
