question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No output when running app inside a Docker container

See original GitHub issue

So I have an application. I configure the loggers in a logger.ts file and, for debugging this particular issue, the first two lines are:

console.log(process.env.DEBUG);
import { debug as dbg } from "debug";

If I just run the application with DEBUG='*' tsc && node dist/index.js I will see the output of * followed by the the logs coming from the loggers in my application.

But if I run the application with docker-compose I just see the asterisk * and nothing after that. The app keeps executing and works fine. Just no logs.

I can only find the issue #777 which was closed with the literal “found issue. Thanks” meme.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
BlueSialiacommented, Jun 17, 2022

So I gave up yesterday. Today, without changing anything at all it works. No idea what fixed it other than a reboot.

1reaction
BlueSialiacommented, Jun 16, 2022

I’m at a loss here. I’ll keep trying with whatever permutation of a setup I can come up with.

Thank you for your help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python app does not print anything when running detached in ...
Finally I found a solution to see Python output when running daemonized in Docker, thanks to @ahmetalpbalkan over at GitHub. Answering it here...
Read more >
Docker run but no output? - Mkyong.com
The default docker ps show only running containers. To list out the exited container, we can use docker ps -a . Terminal. $...
Read more >
Executable file produces no output, silently fails in Windows ...
This .exe should produce this output when called from the command line in any directory, and the permissions are good. No setup is...
Read more >
App not creating output file in docker container ... - Reddit
I open up the docker container and give it a go with bash, no output file prints. If one does, it's not visible...
Read more >
No output prints when debugging app in linux docker ... - GitHub
VSCode runs on Mac, C++ application runs on a linux container (Ubuntu) with gdbserver, gdb used to debug is also taken from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found