GithubHelp home page GithubHelp logo

Comments (13)

Arttii avatar Arttii commented on August 17, 2024 2

So the way of solving this, is to omit

ADD Caddyfile /caddy/

, and instead write it out fully in the run.sh. I have no idea why this is happening, but thats' the only way I could get it to work.

I was facing this problem, when running this in Kubernetes on a Debian OS.

from kafka-topics-ui.

Overbryd avatar Overbryd commented on August 17, 2024 1

Seems to work just fine πŸ‘

$ kubectl -n kafka logs kafka-tools-1648884374-7f3jf topics-ui
Enabling proxy.
Kafka REST Proxy URL to /api/kafka-rest-proxy.

Activating privacy features... done.
http://0.0.0.0:8000

from kafka-topics-ui.

andmarios avatar andmarios commented on August 17, 2024

Hello, thanks for the report.

Your docker-compose file looks fine. I think that both the line and the error message point to a docker issue.

The problematic line is pretty much standard bash: https://github.com/Landoop/kafka-topics-ui/blob/master/docker/run.sh#L16

The error message (interrupted system call) doesn't come from bash but from docker itself, probably from some of the standard go libraries docker is using.

I don't know if this is something rancher specific, if you use bash on windows (a quick search seems to return this as a possible culprit), or something else.

Could you share more about your setup, like your operating system and how you access rancher? Maybe I can do some tests.

from kafka-topics-ui.

akking avatar akking commented on August 17, 2024

Thank you so much for your prompt response. We are running Rancher on Rancher OSs on a cluster of machines.

I tried to narrow the problem by reproducing the problem but the error happens like randomly under same docker-compose file.

from kafka-topics-ui.

andmarios avatar andmarios commented on August 17, 2024

I am afraid I can't help much because I can't reproduce the bug and I haven't any experience with RancherOS β€”nor the time to familiarize with it, unfortunately. :(

Looking a bit into rancher-compose (I guess this is what you use? ), there is a debug flag that may help you:
http://docs.rancher.com/rancher/v1.6/en/cattle/rancher-compose/

from kafka-topics-ui.

OneCricketeer avatar OneCricketeer commented on August 17, 2024

Also seeing this on MacOS

docker run --rm -it -p 8082:8000  -e "KAFKA_REST_PROXY_URL=http://kafka-rest-proxy:8082"  -e "PROXY=true" landoop/kafka-topics-ui
Enabling proxy.
/run.sh: line 23: can't create /caddy/Caddyfile: Interrupted system call
Kafka REST Proxy URL to /api/kafka-rest-proxy.

Activating privacy features... done.
http://0.0.0.0:8000

from kafka-topics-ui.

akking avatar akking commented on August 17, 2024

What's weird is that the error comes from line 23, at the fi block. If it can't create the file, why it doesn't happen at line 21 EOF? Why cat not closing the file at EOF line?

Sorry, I didn't mean to close the issue. My mistake.

from kafka-topics-ui.

Antwnis avatar Antwnis commented on August 17, 2024

Is it possible that docker runs out of disk space?

from kafka-topics-ui.

andmarios avatar andmarios commented on August 17, 2024

Thanks @Arttii for following up on this. Indeed, this seems a complex issue and I never managed to reproduce it in order to debug. I will implement your workaround, thanks again!

from kafka-topics-ui.

Overbryd avatar Overbryd commented on August 17, 2024

I am facing the same problem here, running on a GCE based Kubernetes cluster.

kubectl -n kafka logs -f deploy/kafka-tools topics-ui
Enabling proxy.
/run.sh: line 53: can't create /caddy/Caddyfile: Interrupted system call
Kafka REST Proxy URL to /api/kafka-rest-proxy.

Activating privacy features... done.
http://0.0.0.0:8000

from kafka-topics-ui.

andmarios avatar andmarios commented on August 17, 2024

I just pushed a possible fix with commit 762792a.
Could you please pull the latest image (docker pull landoop/kafka-topics-ui:latest) and give it a try?

from kafka-topics-ui.

Antwnis avatar Antwnis commented on August 17, 2024

Thats this helps a lot. We can apply the same fix on our other dockers as well, to make sure no such glitches come up πŸ‘

from kafka-topics-ui.

andmarios avatar andmarios commented on August 17, 2024

Thanks both @Arttii and @Overbryd and to all people who contributed on this issue. We couldn't have solved it without you!

from kafka-topics-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.