Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant enable and find core dumped #880

Open
vitassuper opened this issue Oct 17, 2023 · 8 comments
Open

Cant enable and find core dumped #880

vitassuper opened this issue Oct 17, 2023 · 8 comments

Comments

@vitassuper
Copy link

When my Python program fails in a Docker container, no core dump or backtrace is generated. I tried enabling it using ulimit -c unlimited, but it didn't help. I cannot find a stack trace to determine why my program is crashing. All I get is a corrupted size vs. prev_size message.

@LaurentGoderre
Copy link
Member

Do you have an example that we can take a look at?

@vitassuper
Copy link
Author

Do you have an example that we can take a look at?

Here is my program https://github.com/vitassuper/flux-bot and screen below
image

@LaurentGoderre
Copy link
Member

It would be helpful to add env vars to your docker compose to get it running quicky

environment:
      - DEBUG_MODE=false
      - SQLALCHEMY_DATABASE_URI=postgres://root:root@postgres
      - SQLALCHEMY_DATABASE_DB=connector
      - POSTGRES_SERVER=postgres
      - POSTGRES_USER=root
      - POSTGRES_PASSWORD=root
      - POSTGRES_DB=trading_view_connector
      - APP_KEY=1234
      - TELEGRAM_BOT_TOKEN=1234
      - API_PASSWORD=1234
      - TELEGRAM_CHAT_ID=1234
      - TELEGRAM_CHAT_ID2=1234

@vitassuper
Copy link
Author

It would be helpful to add env vars to your docker compose to get it running quicky

environment:
      - DEBUG_MODE=false
      - SQLALCHEMY_DATABASE_URI=postgres://root:root@postgres
      - SQLALCHEMY_DATABASE_DB=connector
      - POSTGRES_SERVER=postgres
      - POSTGRES_USER=root
      - POSTGRES_PASSWORD=root
      - POSTGRES_DB=trading_view_connector
      - APP_KEY=1234
      - TELEGRAM_BOT_TOKEN=1234
      - API_PASSWORD=1234
      - TELEGRAM_CHAT_ID=1234
      - TELEGRAM_CHAT_ID2=1234

Good to know, but I read tip from docker doc
Don't use environment variables to pass sensitive information, such as passwords, in to your containers. Use [secrets](https://docs.docker.com/compose/use-secrets/) instead.
Anyway, this is not the reason for my issue

@LaurentGoderre
Copy link
Member

Yeah I know, I was trying to get the app started to see if I can reproduce. It starts but I didn't configure it correctly so it just gives errors

@vitassuper
Copy link
Author

Yeah I know, I was trying to get the app started to see if I can reproduce. It starts but I didn't configure it correctly so it just gives errors

What errors did you get?

@LaurentGoderre
Copy link
Member

Screenshot 2023-12-13 at 10 31 40 AM

@blopker
Copy link
Contributor

blopker commented Dec 26, 2023

Maybe this is useful, but looking at the repo, flux-bot is using a slim variant. This variant strips debug info for file size, where the full fat images do not. Just found this out in #825 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants