I installed plone before after a lot of issues. This time I tried again to reinstall the plone using packages and again I am not able to install it.
post_gen_project hook script didn't exit successfully
Running sanity checks
- Python: ✓
- Node: ✓
- yo: ✓
- Docker: ✓
- git: ✓
Summary:
- Plone version: 6.0.3
- Volto version: 16.18.0
- Volto Generator version: 6.3.0
- Output folder: /Users/flekenstine/Desktop/work/plone/plone/project-title
Frontend codebase:
- Installing @plone/generator-volto@6.3.0
- Generate frontend application with @plone/volto 16.18.0
There was an error, see /Users/flekenstine/Desktop/work/plone/plone/plone_starter_error.log for details
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 1)
Anyone who can guide me ?
Which node JS version is it?
Is it winodws? Try checking the file /Users/flekenstine/Desktop/work/plone/plone/plone_starter_error.log of your system. You might find some useful info there. And moreover I think this is an error in a library that volto uses. Tho I am no expert in this, so I can be wrong too. This is all I could help.
Try installing not in /Users/flekenstine/Desktop
because that is a protected directory by macOS. Instead try /Users/flekenstine/projects/my-awesome-project-name-with-hot-sauce
.
1 Like
Are you trying to execute frontend or backend code on your local. Or are you installing plone as an application?
What do you mean by an application? I am using the package method to install it. I suppose we have two methods one is docker containers and the other is the package method.
Let me know if we have any other.
Concluding: I am still not able to install with
cookiecutter gh:collective/cookiecutter-plone-starter
the error that is in the log file is
Error: EACCES: permission denied, open '/Users/flekenstine/projects/bookus/frontend/package.json'
at Object.openSync (node:fs:585:3)
at Object.writeFileSync (node:fs:2153:35)
at write (/Users/flekenstine/.nvm/versions/node/v16.13.0/lib/node_modules/@plone/generator-volto/node_modules/mem-fs-editor/lib/actions/commit.js:15:6)
at DestroyableTransform._transform (/Users/flekenstine/.nvm/versions/node/v16.13.0/lib/node_modules/@plone/generator-volto/node_modules/mem-fs-editor/lib/actions/commit.js:49:7)
at DestroyableTransform.Transform._read (/Users/flekenstine/.nvm/versions/node/v16.13.0/lib/node_modules/@plone/generator-volto/node_modules/readable-stream/lib/_stream_transform.js:166:10)
at DestroyableTransform.Transform._write (/Users/flekenstine/.nvm/versions/node/v16.13.0/lib/node_modules/@plone/generator-volto/node_modules/readable-stream/lib/_stream_transform.js:155:83)
at doWrite (/Users/flekenstine/.nvm/versions/node/v16.13.0/lib/node_modules/@plone/generator-volto/node_modules/readable-stream/lib/_stream_writable.js:390:139)
at writeOrBuffer (/Users/flekenstine/.nvm/versions/node/v16.13.0/lib/node_modules/@plone/generator-volto/node_modules/readable-stream/lib/_stream_writable.js:381:5)
at DestroyableTransform.Writable.write (/Users/flekenstine/.nvm/versions/node/v16.13.0/lib/node_modules/@plone/generator-volto/node_modules/readable-stream/lib/_stream_writable.js:302:11)
at DestroyableTransform.ondata (/Users/flekenstine/.nvm/versions/node/v16.13.0/lib/node_modules/@plone/generator-volto/node_modules/readable-stream/lib/_stream_readable.js:629:20) {
errno: -13,
syscall: 'open',
code: 'EACCES',
It can be a problem with my cookiecutter
maybe it does not have permission to get the code from any URL.
Last month I did was cloned the cookiecutter existing repo in my local pc and then used the command cookiecutter .
this worked same and I was able to install.
What I messed up this time?
My docker was not running and when I once again tried cookiecutter .
the local method it showed me an error and, unfortunately, I did not check the error log @rahilhastu thanks for pointing this out.
now I went and checked the error
docker: Cannot connect to the Docker daemon at unix:///Users/flekenstine/.docker/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
make: *** [format] Error 125
Started the docker and used the same local method cookiecutter .
and things went smoothly like last time.
Hi - I'm trying to install Plone6 on Debian 12 and got the same error plus a missing script (I got the same error on ubuntu 20.04. The Docker is running. Node v20.11.1. Pre.installation check is successful. All installations on root. I followed the whole official installation documentary on Plone site.
Does anybody have a solution? I'm getting made of this repeating failure...
Error while running yo @plone/volto frontend --description 'training' --skip-install --no-interactive --volto=18.0.0-alpha.20 --canary --defaultAddonName volto-jeplone:
node:internal/modules/cjs/loader:1147
throw err;
^
Error: Cannot find module 'is-ci'
Require stack:
- /root/.nvm/versions/node/v20.11.1/lib/node_modules/yo/node_modules/update-notifier/index.js
- /root/.nvm/versions/node/v20.11.1/lib/node_modules/yo/lib/cli.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at lazy (/root/.nvm/versions/node/v20.11.1/lib/node_modules/yo/node_modules/import-lazy/index.js:2:51)
at /root/.nvm/versions/node/v20.11.1/lib/node_modules/yo/node_modules/import-lazy/index.js:10:11
at new UpdateNotifier (/root/.nvm/versions/node/v20.11.1/lib/node_modules/yo/node_modules/update-notifier/index.js:46:4)
at module.exports (/root/.nvm/versions/node/v20.11.1/lib/node_modules/yo/node_modules/update-notifier/index.js:183:25)
at updateCheck (/root/.nvm/versions/node/v20.11.1/lib/node_modules/yo/lib/cli.js:54:20)
at Object. (/root/.nvm/versions/node/v20.11.1/lib/node_modules/yo/lib/cli.js:190:1) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/root/.nvm/versions/node/v20.11.1/lib/node_modules/yo/node_modules/update-notifier/index.js',
'/root/.nvm/versions/node/v20.11.1/lib/node_modules/yo/lib/cli.js'
]
}
Node.js v20.11.1
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 1)
I also did the following due to missing module 'is-ci':
npm install root
npm update root
rm -rf node_modules
rm -f package-lock.json
npm cache clean --force
npm install
cd .nvm/versions/node/v20.11.1/lib/node_modules/yo/node_modules
ls -a
npm install is-ci --save
I didn't worked out. I still can't run the Plone6 installation....
another try - it wanted to run the python post_gen_project.py but I got this error....
root@debian-2gb-hel1-1:~# python3 /root/.cookiecutters/cookiecutter-plone-starter/hooks/post_gen_project.py
Traceback (most recent call last):
File "/root/.cookiecutters/cookiecutter-plone-starter/hooks/post_gen_project.py", line 9, in
from cookiecutter.utils import rmtree
ModuleNotFoundError: No module named 'cookiecutter'
Bu there ist the module - or am I totally wrong...?!
root@debian-2gb-hel1-1:~# ls -a
. .bashrc .cookiecutter_replay .lesshst node_modules package.json .pyenv
.. .cache .cookiecutters .local .npm package-lock.json snap
.bash_history .cloud-locale-test.skip install-docker.sh my_project .nvm .profile .ssh
root@debian-2gb-hel1-1:~# cd .cookiecutters
root@debian-2gb-hel1-1:~/.cookiecutters# ls -a
. .. cookiecutter-plone-starter
root@debian-2gb-hel1-1:~/.cookiecutters# cd cookiecutter-plone-starter
root@debian-2gb-hel1-1:~/.cookiecutters/cookiecutter-plone-starter# ls -a
. '{{ cookiecutter.project_slug }}' .github LICENSE pyproject.toml tests
.. .editorconfig .gitignore local_extensions README.md .vscode
cookiecutter.json .git hooks Makefile requirements.txt
root@debian-2gb-hel1-1:~/.cookiecutters/cookiecutter-plone-starter# cd hooks
root@debian-2gb-hel1-1:~/.cookiecutters/cookiecutter-plone-starter/hooks# ls -a
. .. post_gen_project.py pre_gen_project.py pre_prompt.py
root@debian-2gb-hel1-1:~/.cookiecutters/cookiecutter-plone-starter/hooks#