Hello Hugging Face community and team,
I am writing to report a persistent and blocking issue with every Docker-based Space I create. I have tried all troubleshooting steps and I’m hoping someone can help. I am posting this without links due to the new user filter.
The Problem:
My Docker Spaces consistently return a 404 error on their public URL. The application logs confirm a successful startup on the correct internal port, so the core issue seems to be that the app_port directive in my README.md is being ignored by the platform’s router.
My test Spaces can be found by navigating to a user’s Spaces and looking for the paths:
-
josejar/n8n_2
-
josejar/n8napp
Expected Behavior:
The public URL of the Space should route traffic to my application.
Actual Behavior:
A Hugging Face 404 page is displayed.
Configuration Details (Verified on all attempts):
- README.md:
Generated yaml
---
title: N8N Test App
sdk: docker
app_port: 5678
---
content_copydownload
Use code with caution.Yaml
- Dockerfile:
Generated dockerfile
FROM n8nio/n8n:latest
EXPOSE 5678
content_copydownload
Use code with caution.Dockerfile
- Application Logs: The logs always confirm a successful startup. The last lines typically state that the editor is accessible on “localhost port 5678”.
Troubleshooting Steps Performed (without success):
-
Verified README.md and Dockerfile configurations.
-
Confirmed all necessary secrets (WEBHOOK_URL, auth, etc.) are set.
-
Performed multiple Restarts and a full Factory Rebuild .
-
Created brand new, clean Spaces from scratch (the ones listed above by path).
The outcome is always the same: a perfect application log but a 404 on the public URL. This strongly suggests a platform-level issue.
Could the HF team please take a look at the routing for my account’s Spaces?
Thank you for your help.
User: josejar