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

[Bug]: Issue with yarn.lock #1739

Closed
mxhp75 opened this issue Nov 27, 2023 · 2 comments
Closed

[Bug]: Issue with yarn.lock #1739

mxhp75 opened this issue Nov 27, 2023 · 2 comments
Labels
area: frontend Related to frontend functionality or under the /frontend directory bug Something isn't working Stale

Comments

@mxhp75
Copy link

mxhp75 commented Nov 27, 2023

What happened?

After running docker compose -f docker-compose.yml up --build there was a front end error.
Attempting to run quivr locally on an ubuntu machine.

Relevant log output

[+] Building 268.3s (43/61)                                                                                               docker:default

 => [frontend internal] load build definition from Dockerfile                                                                       0.5s

 => => transferring dockerfile: 2.20kB                                                                                              0.1s

 => [frontend internal] load .dockerignore                                                                                          0.4s

 => => transferring context: 340B                                                                                                   0.1s

 => [beat internal] load build definition from Dockerfile                                                                           0.7s

 => => transferring dockerfile: 1.05kB                                                                                              0.2s

 => [beat internal] load .dockerignore                                                                                              1.0s

 => => transferring context: 185B                                                                                                   0.1s

 => [frontend internal] load metadata for docker.io/library/node:18-alpine                                                          2.4s

 => [worker internal] load build definition from Dockerfile                                                                         0.8s

 => => transferring dockerfile: 1.05kB                                                                                              0.1s

 => [worker internal] load .dockerignore                                                                                            0.9s

 => => transferring context: 185B                                                                                                   0.1s

 => [flower internal] load metadata for docker.io/library/python:3.11.6-slim-bullseye                                               3.5s

 => [frontend internal] load build context                                                                                          2.4s

 => => transferring context: 73.17kB                                                                                                1.9s

 => [frontend base 1/1] FROM docker.io/library/node:18-alpine@sha256:3428c2de886bf4378657da6fe86e105573a609c94df1f7d6a70e57d2b51de  0.0s

 => CACHED [frontend runner 1/8] WORKDIR /app                                                                                       0.0s

 => CACHED [frontend runner 2/8] RUN addgroup --system --gid 1001 nodejs                                                            0.0s

 => CACHED [frontend runner 3/8] RUN adduser --system --uid 1001 nextjs                                                             0.0s

 => [beat internal] load build context                                                                                              0.6s

 => => transferring context: 13.47kB                                                                                                0.4s

 => [backend-core 1/8] FROM docker.io/library/python:3.11.6-slim-bullseye@sha256:876367fcc8100c84fb6951363e29112452d065eb28f8c3f05  0.0s

 => [worker internal] load build context                                                                                            0.5s

 => => transferring context: 13.47kB                                                                                                0.3s

 => CACHED [flower 2/8] RUN apt-get clean && apt-get update && apt-get install -y     libgeos-dev     libcurl4-openssl-dev     lib  0.0s

 => CACHED [flower 3/8] WORKDIR /code                                                                                               0.0s

 => CACHED [beat 4/8] COPY ./requirements.txt .                                                                                     0.0s

 => CACHED [beat 5/8] RUN pip install --upgrade pip                                                                                 0.0s

 => CACHED [beat 6/8] RUN pip install --no-cache-dir -r requirements.txt --timeout 200                                              0.0s

 => CACHED [beat 7/8] RUN if [ "" = "true" ]; then pip install --no-cache debugpy --timeout 200; fi                                 0.0s

 => CACHED [beat 8/8] COPY . .                                                                                                      0.0s

 => [beat] exporting to image                                                                                                       0.0s

 => => exporting layers                                                                                                             0.0s

 => => writing image sha256:11b0a47ffb7f701635fea4366518d51cdd862b44bc97fa0af1e20eb6dfc274ca                                        0.0s

 => => naming to docker.io/library/backend-base                                                                                     0.0s

 => [worker] exporting to image                                                                                                     0.1s

 => => exporting layers                                                                                                             0.0s

 => => writing image sha256:a0d32dc499528143561681d6d2f8adc308adacb595ec1dedaca4074a8632e543                                        0.0s

 => => naming to docker.io/library/backend-base                                                                                     0.1s

 => CACHED [frontend deps 1/5] RUN apk add --no-cache libc6-compat python3 make g++                                                 0.0s

 => CACHED [frontend deps 2/5] RUN yarn global add node-gyp                                                                         0.0s

 => CACHED [frontend deps 3/5] WORKDIR /app                                                                                         0.0s

 => CACHED [frontend deps 4/5] COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./                                   0.0s

 => ERROR [frontend deps 5/5] RUN     if [ -f yarn.lock ]; then yarn --frozen-lockfile;     elif [ -f package-lock.json ]; then   262.3s

 => [backend-core internal] load build definition from Dockerfile                                                                   0.5s

 => => transferring dockerfile: 1.05kB                                                                                              0.2s

 => [backend-core internal] load .dockerignore                                                                                      0.6s

 => => transferring context: 185B                                                                                                   0.1s

 => [flower internal] load build definition from Dockerfile                                                                         0.4s

 => => transferring dockerfile: 1.05kB                                                                                              0.1s

 => [flower internal] load .dockerignore                                                                                            0.5s

 => => transferring context: 185B                                                                                                   0.1s

 => [backend-core internal] load build context                                                                                      0.5s

 => => transferring context: 13.47kB                                                                                                0.2s

 => [flower internal] load build context                                                                                            0.3s

 => => transferring context: 13.47kB                                                                                                0.1s

 => CACHED [flower 4/8] COPY ./requirements.txt .                                                                                   0.0s

 => CACHED [flower 5/8] RUN pip install --upgrade pip                                                                               0.0s

 => CACHED [flower 6/8] RUN pip install --no-cache-dir -r requirements.txt --timeout 200                                            0.0s

 => CACHED [flower 7/8] RUN if [ "" = "true" ]; then pip install --no-cache debugpy --timeout 200; fi                               0.0s

 => CACHED [flower 8/8] COPY . .                                                                                                    0.0s

 => [flower] exporting to image                                                                                                     0.2s

 => => exporting layers                                                                                                             0.0s

 => => writing image sha256:b568ad184232a18d26f9a3ba7cfa855342f672fea0d6fe77e4eadc13db0ed03c                                        0.1s

 => => naming to docker.io/library/backend-base                                                                                     0.2s

 => [backend-core] exporting to image                                                                                               0.2s

 => => exporting layers                                                                                                             0.0s

 => => writing image sha256:16be31f809da669ded69f49e925f91ff565c5d5825b5a46e8cc8957a0bab096a                                        0.1s

 => => naming to docker.io/library/backend-base                                                                                     0.1s

------

 > [frontend deps 5/5] RUN     if [ -f yarn.lock ]; then yarn --frozen-lockfile;     elif [ -f package-lock.json ]; then npm ci;     elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile;     else echo "Lockfile not found." && exit 1;     fi:

6.477 yarn install v1.22.19

6.661 [1/4] Resolving packages...

8.318 [2/4] Fetching packages...

8.333 warning Pattern ["string-width@^4.1.0"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.

97.67 info There appears to be trouble with your network connection. Retrying...

131.2 info There appears to be trouble with your network connection. Retrying...

164.6 info There appears to be trouble with your network connection. Retrying...

197.9 info There appears to be trouble with your network connection. Retrying...

257.7 error An unexpected error occurred: "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz: ESOCKETTIMEDOUT".

257.7 info If you think this is a bug, please open a bug report with the information provided in "/app/yarn-error.log".

257.7 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

------

failed to solve: process "/bin/sh -c if [ -f yarn.lock ]; then yarn --frozen-lockfile;     elif [ -f package-lock.json ]; then npm ci;     elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile;     else echo \"Lockfile not found.\" && exit 1;     fi" did not complete successfully: exit code: 1

Twitter / LinkedIn details

No response

@mxhp75 mxhp75 added the bug Something isn't working label Nov 27, 2023
Copy link

dosubot bot commented Nov 27, 2023

🤖

Hello @mxhp75,

I'm Dosu, an AI bot here to assist you with your issues regarding Quivr while we wait for a human maintainer. I can help you troubleshoot bugs, answer your queries, and guide you to become a contributor. Let's work together to solve this problem!

Based on the error log you've provided, it seems like the issue is related to a network connection problem during the yarn install process. This could be due to a variety of reasons such as firewall settings, proxy settings, or general network issues.

Here are a few steps you can take to troubleshoot this issue:

  1. Check your network connection: Ensure that your Docker container can access the internet. If you're behind a proxy, make sure to configure Docker to use the proxy.

  2. Delete and regenerate the yarn.lock file: The yarn.lock file is used to lock down the versions of the package dependencies so that all developers are using the same versions. If this file is corrupted or outdated, it could cause issues when running yarn install. You can delete the yarn.lock file and run yarn install again to generate a new one. Here's how you can do it:

# Delete the yarn.lock file
rm yarn.lock

# Install the dependencies again
yarn install
  1. Increase the network timeout value: You can try increasing the network timeout value in the yarn install command in the Dockerfile. This can help if the issue is caused by a slow network connection. Here's how you can do it:
# Install dependencies in /app
RUN yarn install --network-timeout 2000000

Remember to rebuild your Docker image after making these changes.

In addition, I found a few similar issues in the Quivr repository that might be helpful:

  1. failed to solve: process "/bin/sh -c yarn install" did not complete successfully: exit code: 1
  2. error An unexpected error occurred: "https://registry.yarnpkg.com/@emotion/react/-/react-11.11.1.tgz: getaddrinfo EAI_AGAIN registry.yarnpkg.com".
  3. [Issue]

I hope this helps! If you have any other questions or if the issue persists, please let me know.

Sources

@dosubot dosubot bot added the area: frontend Related to frontend functionality or under the /frontend directory label Nov 27, 2023
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: frontend Related to frontend functionality or under the /frontend directory bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

1 participant