coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: Application logs do not work

Open snimshchikov opened this issue 2 years ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

Frontend sends request to domain/api/v1/applications/(id)/logs/(id)-bot?since=0 Response: {"logs": [], "noContainer": true}

If I delete "-bot" from url and send the same request, I get a correct response

Steps To Reproduce

Don't know. I created my first containers and they were working fine, but then something broke and now every app I create have no logs Os: ubuntu 22.04.1

Version

3.10.16

snimshchikov avatar Nov 06 '22 12:11 snimshchikov

Ok, I got what's wrong. My github repo has a docker-compose.yml file in it (with a "bot" service). When I start a python app in coolify, app logs search for (id)-(app-name) and find nothing. And that's the issue

Workaround: delete docker-compose file or choose a nonstandart name for it

snimshchikov avatar Nov 06 '22 14:11 snimshchikov

Are you using Docker Compose buildpack or the python one?

andrasbacsai avatar Nov 07 '22 20:11 andrasbacsai

I am using python buildpack (but I also have a docker-compose file and it automatically parses info from it even when I use python) btw, I tested other buildpacks, they have the same issue

snimshchikov avatar Nov 09 '22 15:11 snimshchikov

Can you please check if coolify-fluentbit container is running on your system? docker ps -a | grep -i coolify-fluentbit

andrasbacsai avatar Nov 15 '22 20:11 andrasbacsai