I have successfully installed the Plone 6 training backend on my local machine, but I am encountering an error when attempting to run it. Below is the traceback I receive:
Hello @kartikaydev1 – your post does not seem to include the traceback.
Please also provide the commands you were running at the time.
Which training? Please include the URL to it.
Only the trainings presented at PloneConf 2024 are current. If it is an old training, the instructions may be out of date. See also All trainings should use official installation instructions for either developing a project or core software · Issue #829 · plone/training · GitHub.
Traceback (most recent call last):
File "/Users/kartikaybhardwaj/training/backend/env/bin/./runwsgi", line 8, in <module>
sys.exit(main())
File "/Users/kartikaybhardwaj/training/backend/env/lib/python3.10/site-packages/Zope2/Startup/serve.py", line 251, in main
return command.run()
File "/Users/kartikaybhardwaj/training/backend/env/lib/python3.10/site-packages/Zope2/Startup/serve.py", line 182, in run
server = self.loadserver(server_spec, name=server_name,
File "/Users/kartikaybhardwaj/training/backend/env/lib/python3.10/site-packages/Zope2/Startup/serve.py", line 223, in loadserver
return loadserver(
File "/Users/kartikaybhardwaj/training/backend/env/lib/python3.10/site-packages/paste/deploy/loadwsgi.py", line 254, in loadserver
return loadobj(SERVER, uri, name=name, **kw)
File "/Users/kartikaybhardwaj/training/backend/env/lib/python3.10/site-packages/paste/deploy/loadwsgi.py", line 268, in loadobj
context = loadcontext(
File "/Users/kartikaybhardwaj/training/backend/env/lib/python3.10/site-packages/paste/deploy/loadwsgi.py", line 293, in loadcontext
return _loaders[scheme](
File "/Users/kartikaybhardwaj/training/backend/env/lib/python3.10/site-packages/paste/deploy/loadwsgi.py", line 321, in _loadconfig
loader = ConfigLoader(path)
File "/Users/kartikaybhardwaj/training/backend/env/lib/python3.10/site-packages/paste/deploy/loadwsgi.py", line 389, in __init__
with open(filename) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/kartikaybhardwaj/training/backend/env/bin/../instance/etc/zope.ini' From the traceback, it seems the zope.ini file, which is expected at /Users/kartikaybhardwaj/training/backend/env/bin/../instance/etc/, is missing.
Steps Taken: 1.Installed Plone 6 training backend following the official documentation.
2.Attempted to start the backend using the command in the Makefile (venv/bin/runwsgi -d instance/etc/zope.ini).
Issue: The error indicates that the zope.ini file is not found at the specified location. I am not sure if the file was supposed to be generated during setup or if there is a missing step. Could someone guide me on how to resolve this issue? Is there a way to regenerate the zope.ini file or specify an alternative configuration file?
Hello sir,
I previously attempted to set up the Plone 6 training backend but ran into issues because I followed multiple resources for installation. This resulted in an incomplete or missing configuration, specifically the zope.ini file in the backend. I believe this is why the backend is not functioning properly on my local machine.
Now, I want to start fresh and correctly install the complete Plone 6 main codebase, including both the frontend (Volto) and the backend, on my system. Could you kindly provide me with a reliable and up-to-date guide or steps to achieve this?
I appreciate any pointers or documentation you can share to help me set up Plone 6 properly this time.
I assume you are following the training Mastering Plone 6 development — Plone Training 2024 documentation.
Please follow the steps of installation in 5. Installation – Mastering Plone 6 development — Plone Training 2024 documentation
This includes the step of building (make build
) The training text explains what is done in this step. among other things, it generates the configuration file for Zope zope.ini
.
Please try this and feel free to come back, if you still cannot start up the backend with make start
.
Which URL?
Thank you for your assistance. I have successfully set up the Plone 6 backend and frontend, and both are running perfectly on the server. However, when accessing the site locally, it prompts me to create a new Plone site. During this process, it requires a username and password for sign-in. Could you please guide me on where I can find these credentials?
Please read the text of the training carefully and you will find login and password!
Thank you for pointing that out. Upon reviewing the training material more carefully, I found the login and password details within the instance.yaml file. I appreciate your guidance!
I wrapped your stack trace with ```
test
test