dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Deployed application full logs not displaying properly - missing real-time logs for application actions

Open Harikrishnan1367709 opened this issue 3 months ago • 3 comments

To Reproduce

  1. Deploy any application using Dokploy (GitHub, Docker, or any source type)
  2. Wait for deployment to complete successfully
  3. Navigate to the application's "Logs" tab in the Dokploy dashboard
  4. Observe that the logs section shows logs till only the application deployed successfully
  5. Try to access the application - logs still don't appear

Current vs. Expected behavior

Current Behavior:

  • Deployed applications run successfully but logs are not visible in the Dokploy UI
  • Logs tab shows till only the application deploy successfull
  • No real-time log streaming occurs when accessing the application
  • Users cannot monitor application behavior or debug issues through the UI

Expected Behavior:

  • Logs should display in real-time showing all application actions and output
  • Logs should stream live updates as the application processes requests
  • Users should be able to monitor application health and debug issues

Provide environment information

0.25.1

Which area(s) are affected? (Select all that apply)

Application, Docker

Are you deploying the applications where Dokploy is installed or on a remote server?

Both

Additional context

No response

Will you send a PR to fix it?

Maybe, need help

Harikrishnan1367709 avatar Sep 15 '25 07:09 Harikrishnan1367709

Hey!

I had the exact same issue ! No logs showing up and deployments failing silently. Super frustrating when you know it worked before on another instance.

In my case, the problem was my Nginx configuration. I was using Nginx as a reverse proxy in front of Dokploy with just a basic proxy_pass, and that completely breaks the WebSocket connection that Dokploy uses to stream logs in real-time.

Here's what fixed it for me:

server {
    listen 80;
    server_name your-dokploy-domain.com;

    location / {
        proxy_pass http://localhost:3000;
        
        # These are CRITICAL for WebSocket (logs streaming)
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        
        # Standard headers
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        
        # Important for keeping the connection alive
        proxy_read_timeout 86400;
        proxy_buffering off;
        proxy_cache_bypass $http_upgrade;
    }
}

After applying this config and reloading Nginx , everything started working immediately - logs appeared and deployments succeeded.

To check if this is your issue, open your browser DevTools (F12) → Network tab → filter by "WS" (WebSocket). If you see a WebSocket connection with 0 bytes transferred, that's the problem.

Are you using Nginx or another reverse proxy in front of Dokploy? If so, this might be your solution too!

Let me know if this helps or if you need the full config! 🙂

Kheush98 avatar Oct 25 '25 14:10 Kheush98

you were using a external proxy for this issue? @Harikrishnan1367709

Siumauricio avatar Nov 26 '25 08:11 Siumauricio

you were using a external proxy for this issue? @Harikrishnan1367709

No @Siumauricio ,I am not using any external proxy

Harikrishnan1367709 avatar Nov 26 '25 09:11 Harikrishnan1367709

Feel free to add a minimal reproduce @Harikrishnan1367709

Siumauricio avatar Dec 07 '25 00:12 Siumauricio

Feel free to add a minimal reproduce @Harikrishnan1367709

ok @Siumauricio

Harikrishnan1367709 avatar Dec 07 '25 11:12 Harikrishnan1367709

Closed due to inactivity

Siumauricio avatar Dec 18 '25 05:12 Siumauricio