langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Docker failing to build

Open RobertHH-IS opened this issue 2 years ago • 8 comments

Describe the bug docker-compose build fails to build docker container.

Browser and Version

  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

To Reproduce Steps to reproduce the behavior:

  1. In root directory type docker-compose build in terminal
  2. Get error => CANCELED [3/7] RUN apt-get update && apt-get install gcc g++ curl build-essential postgresql-server-dev-all -y
    failed to solve: executor failed running [/bin/sh -c chmod +x set_proxy.sh && ./set_proxy.sh]: exit code: 127

Additional context Add any other context about the problem here.

RobertHH-IS avatar Apr 24 '23 19:04 RobertHH-IS

Same issue here error: => CANCELED [3/7] RUN apt-get update && apt-get install gcc g++ curl build-essential postgresql-server-dev-all - 0.8s failed to solve: executor failed running [/bin/sh -c chmod +x set_proxy.sh && ./set_proxy.sh]: exit code: 127

When trying to build docker-compose build , also tried --no-cache

aqueiroz avatar Apr 26 '23 09:04 aqueiroz

FYI this version installs ok https://github.com/logspace-ai/langflow/archive/refs/tags/v0.0.56.zip now having other issues

aqueiroz avatar Apr 26 '23 11:04 aqueiroz

Could you try running make dev build=1?

ogabrielluiz avatar Apr 26 '23 20:04 ogabrielluiz

i tried that. i am getting this error either way.

[langflow-frontend builder-client 5/6] RUN chmod +x set_proxy.sh && ./set_proxy.sh: #0 0.527 /bin/sh: 1: ./set_proxy.sh: not found

dataforxyz avatar May 04 '23 23:05 dataforxyz

This set_proxy.sh script was created to make docker-compose change the proxy to what is needed by docker to connect both containers. Right now, we are changing manually in package.json, which is not ideal but seems to work better because of docker's caching.

We could implement something better if you have any suggestions.

ogabrielluiz avatar May 05 '23 17:05 ogabrielluiz

if you merge my fix we can close this. The line endings were windows.

https://github.com/logspace-ai/langflow/pull/254

far as the changing in package.json thing. i can help with that probably using checkpoints in docker and pushing it to be later? or a script you run post install to change if you need? Probably the same script. If you can outline the problem more I can probably solve it.

dataforxyz avatar May 05 '23 18:05 dataforxyz

Yes, I applied your modifications and successfully built the docker image

oerlock avatar May 10 '23 07:05 oerlock

Hey @bobsburgers, I'd love help with that, actually. That script was just a hacky way of doing it and a better solution is definitely appreciated.

I've just merged #254 btw

ogabrielluiz avatar May 10 '23 10:05 ogabrielluiz

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 24 '23 11:06 stale[bot]