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] Addition of Sentry seems to have broken the docker build #89

Open
2 tasks
scottmoney opened this issue Apr 17, 2024 · 0 comments
Open
2 tasks

[Bug] Addition of Sentry seems to have broken the docker build #89

scottmoney opened this issue Apr 17, 2024 · 0 comments

Comments

@scottmoney
Copy link

scottmoney commented Apr 17, 2024

Describe the bug
I clone the main branch and followed the docker build instructions. Instead of having a working docker container I get the following error.

To Reproduce
Steps to reproduce the behavior:

  1. clone git clone https://github.com/run-llama/chat-llamaindex
  2. Copy cp .env.template .env.development.local
  3. Build docker build -t chat-llamaindex .
  4. See error
 => [build 2/6] WORKDIR /usr/src/app                                                                                                 0.8s
 => [runtime 2/6] WORKDIR /usr/src/app                                                                                               0.8s
 => [build 3/6] COPY package.json pnpm-lock.yaml ./                                                                                  0.0s
 => [build 4/6] RUN npm install -g pnpm &&     pnpm install                                                                         14.6s
 => [build 5/6] COPY . .                                                                                                             0.3s
 => ERROR [build 6/6] RUN pnpm build                                                                                                39.5s
------
 > [build 6/6] RUN pnpm build:
0.674
0.674 > chat-llamaindex@ build /usr/src/app
0.674 > next build
0.674
1.363 Attention: Next.js now collects completely anonymous telemetry regarding usage.
1.363 This information is used to shape Next.js' roadmap and prioritize features.
1.363 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
1.363 https://nextjs.org/telemetry
1.363
1.419   ▲ Next.js 14.2.1
1.419
1.475    Creating an optimized production build ...
1.810 warn  - It seems like you don't have a global error handler set up. It is recommended that you add a global-error.js file with Sentry instrumentation so that React rendering errors are reported to Sentry. Read more: https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#react-render-errors-in-app-router
38.00 Failed to compile.
38.00
38.00 Sentry CLI Plugin: Command failed: /usr/src/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@sentry/cli/sentry-cli releases new VRbevAbU_2mYJxqEuyKqu
38.00 error: API request failed
38.00   caused by: [60] SSL peer certificate or SSH remote key was not OK (SSL certificate problem: unable to get local issuer certificate)
38.00
38.00 Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
38.00 Please attach the full debug log to all bug reports.
38.00
38.00 Sentry CLI Plugin: Command failed: /usr/src/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@sentry/cli/sentry-cli releases new VRbevAbU_2mYJxqEuyKqu
38.00 error: API request failed
38.00   caused by: [60] SSL peer certificate or SSH remote key was not OK (SSL certificate problem: unable to get local issuer certificate)
38.00
38.00 Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
38.00 Please attach the full debug log to all bug reports.
38.00
38.01
38.01 > Build failed because of webpack errors
38.22  ELIFECYCLE  Command failed with exit code 1.
------
Dockerfile:18
--------------------
  16 |
  17 |     # Build the application for production
  18 | >>> RUN pnpm build
  19 |
  20 |     # ---- Production Stage ----
--------------------
ERROR: failed to solve: process "/bin/sh -c pnpm build" did not complete successfully: exit code: 1

Expected behavior
The docker build should finish without error
Deployment

  • [ x ] Docker
  • Vercel
  • Server

Desktop (please complete the following information):

  • OS: Ubuntu 23.10
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]
tolgayan added a commit to tolgayan/chat-llamaindex that referenced this issue Apr 20, 2024
Add installation for ca-certificates.
marcusschiesser pushed a commit that referenced this issue Apr 22, 2024
Add installation for ca-certificates.
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

1 participant