quivr icon indicating copy to clipboard operation
quivr copied to clipboard

backend docker can't find start.sh

Open mishal-harbi opened this issue 1 year ago • 18 comments

hi, the frontend works, however, the backend didn't run and giving the following message:

exec /code/scripts/start.sh: no such file or directory

Install is on windows 11. the file "start.sh" exists where it should be. not sure about the issue. Screenshot 2023-07-07 223348

mishal-harbi avatar Jul 07 '23 19:07 mishal-harbi

same here

MaKeG0 avatar Jul 07 '23 22:07 MaKeG0

facing same error

realto-abe avatar Jul 07 '23 22:07 realto-abe

ditto

laodev1 avatar Jul 07 '23 23:07 laodev1

Same problem. I can see the start.sh in the files of the container.

cyberautomate avatar Jul 07 '23 23:07 cyberautomate

Same here, help! Capture1

judrogue3 avatar Jul 08 '23 01:07 judrogue3

same issue, guys :( I thought that my stupid (actually I am) backend exited with code 0 backend | exec /code/scripts/start.sh: no such file or directory backend | exec /code/scripts/start.sh: no such file or directory backend | exec /code/scripts/start.sh: no such file or directory backend exited with code 1

LiveRuDomest avatar Jul 08 '23 01:07 LiveRuDomest

Hey guys, here is how to fix it: If you don't care about gpt4all, just edit Quivr/backend/Dockerfile and replace this:

ENTRYPOINT ["/code/scripts/start.sh"]

with this:

ENTRYPOINT exec uvicorn main:app --reload --host 0.0.0.0 --port 5050

from this issue

laodev1 avatar Jul 08 '23 03:07 laodev1

I am in the same boat

BasedAnon avatar Jul 08 '23 12:07 BasedAnon

Hey guys, here is how to fix it:

This makes it impossible for me to access quivr from my end.

I don't see GPT4All mentioned ANYWHERE on the main repo... wtf happened?

BasedAnon avatar Jul 08 '23 12:07 BasedAnon

I have no /code/ directory... There is no such thing in the source code either... WTF? Am I crazy, or is everyone else?

BasedAnon avatar Jul 08 '23 12:07 BasedAnon

If you are on windows try to change the line ending of the start.sh from CRLF to LF. This solved it for me.

Kehdar avatar Jul 08 '23 13:07 Kehdar

Hey guys, here is how to fix it: If you don't care about gpt4all, just edit Quivr/backend/Dockerfile and replace this:

ENTRYPOINT ["/code/scripts/start.sh"]

with this:

ENTRYPOINT exec uvicorn main:app --reload --host 0.0.0.0 --port 5050

from this issue

Nicely done!

Thanks!

Mattang-Tim avatar Jul 08 '23 16:07 Mattang-Tim

If you are on windows try to change the line ending of the start.sh from CRLF to LF. This solved it for me.

I saw this mentioned by someone else, but I have absolutely no clue what it means. T_T How do I do that?

Edit: after looking around, I found the setting in the bottom right of VSCodium. image

BasedAnon avatar Jul 08 '23 17:07 BasedAnon

If you are on windows try to change the line ending of the start.sh from CRLF to LF. This solved it for me.

I saw this mentioned by someone else, but I have absolutely no clue what it means. T_T How do I do that?

Edit: after looking around, I found the setting in the bottom right of VSCodium. image

For anyone looking for 'start.sh' file, it can be found here: quivr\backend\scripts\start.sh Open in vscode and changed the 'Select end of line sequence' as noted by BasedAnon hope it helps.

freshlesh3 avatar Jul 08 '23 19:07 freshlesh3

Thank you very much. That cost me a lifetime. I would never have thought of "LF". I am programme code focused and fixed! I have installed Quivr under Windows (VSCODE, Win-Docker). It works with Supabase.com. Thanks again.

hklein42 avatar Jul 09 '23 10:07 hklein42

Thanks everyone for your help solving this issue. Since we develop mostly on macOS it got missed.

mattzcarey avatar Jul 09 '23 12:07 mattzcarey

Pls update this in readme and code...

johnfelipe avatar Jul 12 '23 12:07 johnfelipe

非常棒, 我已经运行成功了。很感谢

iooiie avatar Jul 15 '23 08:07 iooiie

Thanks for your contributions, we'll be closing this issue as it has gone stale. Feel free to reopen if you'd like to continue the discussion.

github-actions[bot] avatar Aug 20 '23 14:08 github-actions[bot]