dozzle: Dozzle fails to load stream for Docker-compose with flag `tty:True`
The dozzle output remains blank and the network tab of the browser shows the /stream?id=######
API call to never start nor finish. It receives no data back.
Steps to reproduce
- Start any gekkobot container
- Start Dozzle
- Try to connect to the gekkobot container output in Dozzle
I really want this to work, because Dozzle is perfect for viewing the output of an automated trading bot.
This is an example of the output from a Gekko container straight from docker CLI
Creating gekkobot_gekko-cli-test ... done
Attaching to gekkobot_gekko-cli-test
gekko-cli-test |
gekko-cli-test | ______ ________ __ __ __ __ ______
gekko-cli-test | / \ / |/ | / |/ | / | / \
gekko-cli-test | /$$$$$$ |$$$$$$$$/ $$ | /$$/ $$ | /$$/ /$$$$$$ |
gekko-cli-test | $$ | _$$/ $$ |__ $$ |/$$/ $$ |/$$/ $$ | $$ |
gekko-cli-test | $$ |/ |$$ | $$ $$< $$ $$< $$ | $$ |
gekko-cli-test | $$ |$$$$ |$$$$$/ $$$$$ \ $$$$$ \ $$ | $$ |
gekko-cli-test | $$ \__$$ |$$ |_____ $$ |$$ \ $$ |$$ \ $$ \__$$ |
gekko-cli-test | $$ $$/ $$ |$$ | $$ |$$ | $$ |$$ $$/
gekko-cli-test | $$$$$$/ $$$$$$$$/ $$/ $$/ $$/ $$/ $$$$$$/
gekko-cli-test |
gekko-cli-test | Gekko v0.6.8
gekko-cli-test | I'm gonna make you rich, Bud Fox.
gekko-cli-test |
gekko-cli-test |
gekko-cli-test | 2019-10-29 15:22:40 (INFO): Setting up Gekko in realtime mode
gekko-cli-test | 2019-10-29 15:22:40 (INFO):
gekko-cli-test | 2019-10-29 15:22:40 (INFO): Setting up:
gekko-cli-test | 2019-10-29 15:22:40 (INFO): Candle writer
gekko-cli-test | 2019-10-29 15:22:40 (INFO): Store candles in a database
gekko-cli-test | 2019-10-29 15:22:40 (INFO):
gekko-cli-test |
gekko-cli-test | 2019-10-29 15:22:40 (INFO): Setting up:
gekko-cli-test | 2019-10-29 15:22:40 (INFO): Trading Advisor
gekko-cli-test | 2019-10-29 15:22:40 (INFO): Calculate trading advice
Dozzle is working for any other container and shows the output, but strangely I do see a console error
Firefox can’t establish a connection to the server at https://dozzle.domain.com/api/events/stream. main.b644d699.js:12:278
The connection to https://dozzle.domain.com/api/logs/stream?id=################ was interrupted while the page was loading.
Even with that error, it still loads the stream for the non gekko containers. Any idea why it won’t load the gekko container stream, with no response from the API?
And, what is the meaning of the console error for the containers even when it loads fine?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 20 (8 by maintainers)
That’s great to hear. Funny when tty is true, it even captures inputs. But I guess that’s how TTY interactive works.
Good to hear everything else works.
@IAMtheIAM With #168, I may have been able to add TTY support. Can you try
v1.16.0
?Nice. Good to hear. I was able to read more on TTY and there might be a way to make it work. But sounds like a lot of extra work as the format completely changes when TTY is enabled.
HA! It works! Dozzle gets the colors.
I can force
chalk
to enable itself with a docker-compose environment variableFORCE_COLOR=2
or by appending--color
to the nodejs process. Thanks for helping me figure that out! You are so helpful @amir20 😄