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

Docker commands in helper functions.sh need "-T" to properly pipe to jq #415

Closed
chuck-confluent opened this issue Apr 4, 2022 · 0 comments
Labels

Comments

@chuck-confluent
Copy link
Contributor

Description

The check_connector_status_running isn't properly parsing whether the connector is running, causing the start script to timeout. Same problem with host_check_schema_registered. The solution is to add the -T option to the docker-compose exec commands to disable teletype so the output is properly sent as stdout to the jq command. See this stackoverflow comment.

Here is an example where start.sh times out while retrying:

Start streaming from the Wikipedia SSE source connector:
...
{"name":"wikipedia-sse","connector":{"state":"RUNNING","worker_id":"connect:8083"},"tasks":[{"id":0,"state":"RUNNING","worker_id":"connect:8083"}],"type":"source"}

Troubleshooting
After adding the -T flag to the various docker-compose exec commands in functions.sh fixed the issue and CP Demo was able to start normally. PR incoming.

Environment

  • GitHub branch: [e.g. 7.0.1-post]
  • Operating System: Ubuntu 20.04
  • Version of Docker: 20.10.12
  • Version of Docker Compose: 2.2.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant