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

could not to run website #13

Open
chaofanx opened this issue Mar 27, 2023 · 0 comments
Open

could not to run website #13

chaofanx opened this issue Mar 27, 2023 · 0 comments

Comments

@chaofanx
Copy link

chaofanx commented Mar 27, 2023

this is container logs:

 Variables:
	- UID=1000
	- GID=1000
	- AUTO_UPDATE=true
	- WEBSITE_NAME=doc
	- TEMPLATE=classic
	- RUN_MODE=development
/* Register a new cron job for auto updating... */
/* Successfully registered. */
/* Install docusaurus... */
npm ERR! code EAI_AGAIN
npm ERR! syscall getaddrinfo
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/@docusaurus%2finit failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-03-27T07_42_55_373Z-debug-0.log
ln: /docusaurus/website: File exists
/* Installing node modules... */
/init.sh: line 54: cd: /docusaurus/aquila-doc: No such file or directory
yarn install v1.22.19
warning You don't appear to have an internet connection. Try the --offline flag to use the cache for registry queries.
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.14s.
/* Start supervisord to start Docusaurus... */
2023-03-27 07:44:22,208 INFO Set uid to user 0 succeeded
2023-03-27 07:44:22,214 INFO supervisord started with pid 47
2023-03-27 07:44:23,222 INFO spawned: 'docusaurus' with pid 48
supervisor: couldn't chdir to /docusaurus/website: ENOENT
supervisor: child process was not spawned
2023-03-27 07:44:23,230 INFO exited: docusaurus (exit status 127; not expected)
2023-03-27 07:44:23,231 INFO gave up: docusaurus entered FATAL state, too many start retries too quickly

and this is my folder:

$ ls doc
babel.config.js  docs  docusaurus.config.js  package.json  package-lock.json  README.md  sidebars.js  src  static  tsconfig.json

docker command:

docker run -d --name docusaurus -p 80:80 -v doc:/docusaurus -e TARGET_UID=1000 -e TARGET_GID=1000 -e AUTO_UPDATE=true -e WEBSITE_NAME="doc" -e TEMPLATE=classic awesometic/docusaurus
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