I really have a serious problem on my site and i fixed some of those. Recently i encountered this error
We’re sorry, but there seems to be an error…
Here is the full error message:
Display traceback as text
Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 47, in call_object
Module Products.CMFFormController.FSControllerPythonScript, line 105, in __call__
Module Products.CMFFormController.Script, line 145, in __call__
Module Products.CMFCore.FSPythonScript, line 130, in __call__
Module Shared.DC.Scripts.Bindings, line 324, in __call__
Module Products.PloneHotfix20121106.python_scripts, line 63, in _patched_bindAndExec
Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 344, in _exec
Module script, line 42, in content_status_modify
<FSControllerPythonScript at /clkmis/content_status_modify used for /clkmis/news/news-archive/anti-child-labor-portal-advocates-real-time-monitoring-1>
Line 42
Module Products.CMFCore.WorkflowTool, line 244, in doActionFor
Module Products.CMFCore.WorkflowTool, line 573, in _invokeWithNotification
Module zope.event, line 23, in notify
Module zope.component.event, line 24, in dispatch
Module zope.component._api, line 136, in subscribers
Module zope.component.registry, line 321, in subscribers
Module zope.interface.adapter, line 575, in subscribers
Module plone.app.contentrules.handlers, line 189, in workflow_action
Module plone.app.contentrules.handlers, line 132, in execute_rules
Module plone.app.contentrules.handlers, line 99, in execute
Module plone.contentrules.engine.executor, line 27, in __call__
Module plone.contentrules.rule.rule, line 48, in __call__
Module collective.contentrules.mailtolocalrole.actions.mail, line 178, in __call__
Module zope.deprecation.deprecation, line 152, in deprecated_method
Module Products.CMFPlone.patches.securemailhost, line 95, in secureSend
Module Products.MailHost.MailHost, line 342, in _send
Module Products.CMFPlone.patches.sendmail, line 11, in _catch
Module zope.sendmail.mailer, line 46, in send
Module smtplib, line 239, in __init__
Module smtplib, line 295, in connect
Module smtplib, line 273, in _get_socket
Module socket, line 561, in create_connection
error: [Errno 111] Connection refused
Upon figuring out i found out that i had an ownership problem on /var/log/exim4 and /var/spool/exim4
i fixed this error thru chown -Rv Debian-exim /var/log/exim4 and chown -Rv Debian-exim /var/spool/exim4
Now i was able to send emails thru CLI, but the remaining problem is my plone, i have a content rule that sends email to users if the state of the item is changed and i got the error above, i tried removing the content rule and the changing of state was successful, i really think it's about ownership and permission error since the ownership of /var folder was accidentally altered...
Solution:
Changed the owner of /var/log/exim4/ and /var/spool/exim4 to Debian-exim
chown chown -Rv Debian-exim.Debian-exim /var/log/exim4 chown chown -Rv Debian-exim.Debian-exim /var/spool/exim4