There is no indication in your log file that indicates that the ZEO is not running. The clearly
shows you that clients are connecting and disconnecting - nothing more, nothing lese. Your ZEO server
is running
Hi Habib - along with the zeoserver, there should also be an instance running. Look in the bin directory for a script called instance, or client (may also have a number with it). Start that in the foreground to make sure you don't get errors:
$ bin/instance fg
If that runs to the point where you get 'INFO Zope ready to handle requests', then hit ctrl+c, and restart the script this way:
$ bin/instance start
Otherwise if you get errors when starting it in the foreground, you'll need to take care of whatever causes the error.
Check the logs of your instance and see if the application starts up correctly or if you see the instance restarting regularly. Then run instance in foreground as @cdw9 indicated. I have seen various cases where the Zope app server was starting fine in foreground but failing to start in daemon mode for a variety of reasons.
from plone.protect.interfaces import IDisableCSRFProtection
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/data/hiding/parts/instance/etc/site.zcml", line 16.2-16.23
ZopeXMLConfigurationError: File "/data/hiding/buildout-cache/eggs/Products.EasyNewsletter-2.6.15-py2.7.egg/Products/EasyNewsletter/configure.zcml", line 18.2-18.32
ZopeXMLConfigurationError: File "/data/hiding/buildout-cache/eggs/Products.EasyNewsletter-2.6.15-py2.7.egg/Products/EasyNewsletter/browser/configure.zcml", line 50.2-55.32
ImportError: cannot import name IDisableCSRFProtection
EasyNewsletter may be expecting a certain version of plone.protect. I'm guessing you may not have the plone4.csrffixes security fix installed. Follow the instructions here to set it up: https://pypi.org/project/plone4.csrffixes/
Actually site was working a day ago.
There were issues with python environment, everything (almost) was working with python 2.7.6 on ubuntu then it was upgraded to 2.7.12; things started to happen bad; and this night i revert back, rebuild again python 2.7.6 based virtualenv.
This is why I feel csrffixes may not be the cause of the issue here.
Did you run buildout after upgrading python? What likely happened is that a buildout run picked up newer versions of the products you had installed if they were not pinned. You were probably using an older version of Easynewsletter before.
Thanks aj,
/data/hiding/buildout-cache/eggs contains this directory plone.protect-2.0.2-py2.7.egg
Do I still need to install plone.protect as you suggested?
(You might have got the idea that I am new with Plone.. Therefore many thanks for your support)
If thats the case which section of buildout.cfg should I add?
eggs =
Plone
Pillow
plone.app.dexterity
plone.directives.dexterity plone.protect
..
You need a newer version of plone.protect. You don't need to add it to eggs, since it's already installed. Your buildout.cfg should have a [versions] section, or you may have a versions.cfg where you can pin product versions. I still recommend installing plone4.csrffixes, in which the instructions have you pin a newer version of plone.protect. https://pypi.org/project/plone4.csrffixes/
What exactly the string (name plus version) should I add here?
To install csrffixes
Do I just need to do: pip install plone4-csrffixes
will this be enough? and should I do sudo pip install machine level or better only for my virtualenv?
Also, Plone uses buildout. If you install things with pip, you'll probably break stuff worse if you're doing it into the same python that plone is using--version conflicts. Plone uses buildout to manage versions/depenedencies, build config, etc.
vangheem based on what you suggest I better downgrade?
I told you the problem was caused because the virtualenv was created for python 2.7.6 in mind and it was point to /bin/python which was also 2.7.6 but mistakenly (or not) was updated to 2.7.12 and then the plone inside the virtualenv started to break - I did number of pip installs - which was wrong of me to do; as I just learned that either use buildout.cfg or pip to be cleaner.
Now I have downgraded the virtualenv of plone to 2.7.6 by having another python bins under home with version 2.7.6 while /bin/python is still 2.7.12
I need to decide now shall I look to downgrade EasyNewsletter (somehow) or follow steps to update csrffixes.
What you guys would suggest now?