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

Restart Loop #63

Closed
2 tasks done
lukasdoering opened this issue Mar 25, 2023 · 10 comments
Closed
2 tasks done

Restart Loop #63

lukasdoering opened this issue Mar 25, 2023 · 10 comments

Comments

@lukasdoering
Copy link

Bug description

It's looping a restart

Steps to reproduce

i just followed the setup steps and wehen i tried running
docker compose exec serge python3 /usr/src/app/api/utils/download.py tokenizer 7B
I got an error saying the container is restarting, so i checked docker an there it says what i pastet into relevant log output

Environment Information

Docker version 20.10.23, build 7155243
Windows 11
Ryzen 7 5800x

Screenshots

No response

Relevant log output

2023-03-25 14:23:57 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:23:58 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:24:00 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:24:02 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:24:03 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:24:06 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:24:10 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:24:17 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:24:31 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:24:58 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:25:30 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:25:32 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:25:33 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:25:35 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:25:37 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:25:39 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:25:43 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:25:51 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:26:04 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:26:31 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:27:23 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:28:24 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:28:45 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:28:46 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:28:48 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:28:50 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:28:51 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:28:54 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found
2023-03-25 14:28:58 serge-serge-1  | /bin/sh: 1: /usr/src/app/deploy.sh: not found

Confirmations

  • I'm running the latest version of the main branch.
  • I checked existing issues to see if this has already been described.
@Morfid974
Copy link

Check your end of line sequence in deploy.sh. With vscode, edit file and change crlf by lf on bottom right of the window.

@Arolaworld
Copy link

Check your end of line sequence in deploy.sh. With vscode, edit file and change crlf by lf on bottom right of the window.

Yes, try checking that!

@nsarrazin
Copy link
Member

Alright I think we diagnosed the issue.

You can fix it by cloning the repo again with git clone https://github.com/nsarrazin/serge.git --config core.autocrlf=input. Then you can rebuild and it should work.

@OnRaptor
Copy link

Check your end of line sequence in deploy.sh. With vscode, edit file and change crlf by lf on bottom right of the window.

It worked for me, thanks

@si1en7
Copy link

si1en7 commented Mar 25, 2023

Alright I think we diagnosed the issue.

You can fix it by cloning the repo again with git clone https://github.com/nsarrazin/serge.git --config core.autocrlf=input. Then you can rebuild and it should work.

2023-03-25 10:51:33 /usr/src/app/deploy.sh: line 12:     8 Illegal instruction     mongod
2023-03-25 10:51:34 /usr/src/app/deploy.sh: line 12:     8 Illegal instruction     mongod
2023-03-25 10:51:35 /usr/src/app/deploy.sh: line 12:     8 Illegal instruction     mongod
2023-03-25 10:51:36 /usr/src/app/deploy.sh: line 12:     9 Illegal instruction     mongod

New output

@nsarrazin
Copy link
Member

@si1en7 What is the output of lscpu | grep avx in the command line ?

@kenny-caldieraro
Copy link

kenny-caldieraro commented Mar 25, 2023

in my case, my processor is not compatible with AVX (error: Illegal instruction mongod), so the latest version of mongodb is not usable.
I modified my Dockerfile to install mongodb 4.4 :

# MongoDB
RUN wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add -
RUN echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list

RUN wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb
RUN dpkg -i libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb

RUN apt-get update
RUN apt-get install -y mongodb-org

everything works perfectly.

@countnoobula
Copy link

countnoobula commented Mar 28, 2023

in my case, my processor is not compatible with AVX (error: Illegal instruction mongod), so the latest version of mongodb is not usable. I modified my Dockerfile to install mongodb 4.4 :

# MongoDB
RUN wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add -
RUN echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list

RUN wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb
RUN dpkg -i libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb

RUN apt-get update
RUN apt-get install -y mongodb-org

everything works perfectly.

I accidentally made a mistake when implementing this, and am leaving this here as a future note if anyone encounters this.

If you are replacing https://github.com/nsarrazin/serge/blob/main/Dockerfile#L17-L24 then you need to use

RUN apt-get update
RUN apt-get install -y curl wget gnupg python3-pip git

# MongoDB
RUN wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add -
RUN echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list

RUN wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb
RUN dpkg -i libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb

RUN apt-get update
RUN apt-get install -y mongodb-org
RUN git clone https://github.com/ggerganov/llama.cpp.git --branch master-d5850c5

@MrTechGadget
Copy link

countnoobula

This got me up and running, except I used the latest llama branch that was just updated today.

@gaby
Copy link
Member

gaby commented Apr 5, 2023

Can this be closed now?

@gaby gaby closed this as completed Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants