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

Running make docs-prod failing locally #1070

Open
kamilprz opened this issue Nov 26, 2024 · 1 comment
Open

Running make docs-prod failing locally #1070

kamilprz opened this issue Nov 26, 2024 · 1 comment
Assignees
Labels
area/documentation Improvements or additions to documentation good first issue Good for newcomers scope/S Change is Small

Comments

@kamilprz
Copy link
Contributor

Describe the bug

Running make docs-prod fails when running locally.

kamilp@kamilp-devbox:~/src/retina$ make docs-prod
docker run -i -p 3000:3000 -v /home/kamilp/src/retina:/retina -w /retina/ node:20-alpine npm install --prefix site && npm run build --prefix site

up to date, audited 1339 packages in 2s

346 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm notice
npm notice New minor version of npm available! 10.8.2 -> 10.9.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.1
npm notice To update run: npm install -g [email protected]
npm notice

> [email protected] build
> docusaurus build


   ------------------------------------------------------------------------------------------------------------------------------------------------------

                                                               Update available 3.6.1 → 3.6.3

                                     To upgrade Docusaurus packages with the latest version, run the following command:
       `npm i @docusaurus/core@latest @docusaurus/plugin-ideal-image@latest @docusaurus/preset-classic@latest @docusaurus/module-type-aliases@latest
                                                   @docusaurus/tsconfig@latest @docusaurus/types@latest`

   ------------------------------------------------------------------------------------------------------------------------------------------------------

[INFO] [en] Creating an optimized production build...

[ERROR] Error: Unable to build website for locale en.
    at tryToBuildLocale (/home/kamilp/src/retina/site/node_modules/@docusaurus/core/lib/commands/build/build.js:78:15)
    at async /home/kamilp/src/retina/site/node_modules/@docusaurus/core/lib/commands/build/build.js:34:9
    at async mapAsyncSequential (/home/kamilp/src/retina/site/node_modules/@docusaurus/utils/lib/jsUtils.js:21:24)
    at async Command.build (/home/kamilp/src/retina/site/node_modules/@docusaurus/core/lib/commands/build/build.js:33:5) {
  [cause]: [Error: EACCES: permission denied, open '/home/kamilp/src/retina/site/.docusaurus/docusaurus-lunr-search/default/__plugin.json'] {
    errno: -13,
    code: 'EACCES',
    syscall: 'open',
    path: '/home/kamilp/src/retina/site/.docusaurus/docusaurus-lunr-search/default/__plugin.json'
  }
}
[INFO] Docusaurus version: 3.6.1
Node version: v21.7.3
make: *** [Makefile:566: docs-prod] Error 1

To Reproduce
Steps to reproduce the behavior:

  1. Go to root directory
  2. Run make docs-prod

Expected behavior

kamilp@kamilp-devbox:~/src/retina$ make docs-prod
docker run -i -p 3000:3000 -v /home/kamilp/src/retina:/retina -w /retina/ node:20-alpine sh ./site/start-dev.sh

up to date, audited 1339 packages in 3s

346 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm notice
npm notice New minor version of npm available! 10.8.2 -> 10.9.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.1
npm notice To update run: npm install -g [email protected]
npm notice

> [email protected] build
> docusaurus build

[INFO] [en] Creating an optimized production build...
[webpackbar] ℹ Compiling Client
[webpackbar] ℹ Compiling Server
[webpackbar] ✔ Server: Compiled successfully in 13.74s
[webpackbar] ✔ Client: Compiled successfully in 21.10s
docusaurus-lunr-search:: Building search docs and lunr index file
docusaurus-lunr-search:: Start scanning documents in 8 threads
docusaurus-lunr-search:: Indexing time: 1.034s
docusaurus-lunr-search:: indexed 34 documents out of 34
docusaurus-lunr-search:: writing search-doc.json
docusaurus-lunr-search:: writing search-doc-1732620484224.json
docusaurus-lunr-search:: writing lunr-index.json
docusaurus-lunr-search:: writing lunr-index-1732620484224.json
docusaurus-lunr-search:: End of process
[SUCCESS] Generated static files in "build".
[INFO] Use `npm run serve` command to test your build locally.

Platform (please complete the following information):

  • OS: WSL2
  • Kubernetes Version: 1.31.2
  • Host: localhost
  • Retina Version: v0.0.18

Additional context

Somehow we are still deploying docs to prod though - need to investigate how the pipeline works.

@kamilprz kamilprz added area/documentation Improvements or additions to documentation good first issue Good for newcomers scope/S Change is Small labels Nov 26, 2024
@kamilprz kamilprz self-assigned this Nov 26, 2024
@kamilprz
Copy link
Contributor Author

Also just noticed that there is a typo in the Makefile:

.PHONY: docs-pod

Should be docs-prod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Improvements or additions to documentation good first issue Good for newcomers scope/S Change is Small
Projects
Status: No status
Development

No branches or pull requests

1 participant