[ECODP-dev] Fwd: JIRA-OP (ODP-240) Unknown error from the cron once a day

John Glover john.glover at okfn.org
Thu May 2 12:56:30 UTC 2013


Hi Bert,

It looks like whatever user the cron is running as does not have permission
to write to the CKAN log file (and so it is failing). The cron user should
either be changed or given write access to /var/log/ckan/ecodp/ecodp.log.
Or of course the could change the log file directory to one that cron can
write to, but note that the web process will also need access to this
directory.

John


On 2 May 2013 14:45, Bert Van Nuffelen <bert.van.nuffelen at tenforce.com>wrote:

> Hi Darwin and John,
>
> do you have some feedback on this?
>
> Bert
>
> ---------- Forwarded message ----------
> From: ISOARD Olivier (JIRA) <NO-REPLY at publications.europa.eu>
> Date: 2013/5/2
> Subject: JIRA-OP (ODP-240) Unknown error from the cron once a day
> To: bert.van.nuffelen at tenforce.com
>
>
>         ISOARD Olivier<https://webgate.ec.europa.eu/publications/jira/secure/ViewProfile.jspa?name=isoarol>created [image:
> Bug] ODP-240<https://webgate.ec.europa.eu/publications/jira/browse/ODP-240>
>  *Unknown error from the cron once a day*<https://webgate.ec.europa.eu/publications/jira/browse/ODP-240>
>        *Issue Type:*  [image: Bug] Bug   *Affects Versions:*  00.08.04   *
> Assignee:*  VAN NUFFELEN Bert<https://webgate.ec.europa.eu/publications/jira/secure/ViewProfile.jspa?name=nuffebe>
> *Components:*  CKAN   *Created:*  02/05/13 14:42   *Description:*  Hello,
>
> For some time now we get an error from the cron once a day with the
> following content:
>
> Traceback (most recent call last):
>   File "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/bin/paster",
> line 8, in <module>
>     load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
>   File
> "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/lib/python2.6/site-packages/paste/script/command.py",
> line 84, in run
>     invoke(command, command_name, options, args[1:])
>   File
> "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/lib/python2.6/site-packages/paste/script/command.py",
> line 123, in invoke
>     exit_code = runner.run(args)
>   File
> "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/lib/python2.6/site-packages/paste/script/command.py",
> line 218, in run
>     result = self.command()
>   File
> "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/src/ckan/ckan/lib/cli.py",
> line 895, in command
>     self._load_config()
>   File
> "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/src/ckan/ckan/lib/cli.py",
> line 49, in _load_config
>     fileConfig(self.filename)
>   File
> "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/lib/python2.6/site-packages/paste/script/util/logging_config.py",
> line 85, in fileConfig
>     handlers = _install_handlers(cp, formatters)
>   File
> "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/lib/python2.6/site-packages/paste/script/util/logging_config.py",
> line 158, in _install_handlers
>     h = apply(klass, args)
>   File "/usr/lib64/python2.6/logging/handlers.py", line 112, in __init__
>     BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
>   File "/usr/lib64/python2.6/logging/handlers.py", line 64, in __init__
>     logging.FileHandler.__init__(self, filename, mode, encoding, delay)
>   File "/usr/lib64/python2.6/logging/__init__.py", line 827, in __init__
>     StreamHandler.__init__(self, self._open())
>   File "/usr/lib64/python2.6/logging/__init__.py", line 846, in _open
>     stream = open(self.baseFilename, self.mode)
> IOError: [Errno 13] Permission denied: '/var/log/ckan/ecodp/ecodp.log'
>
> There is no more info.
>
> Could you please have a look?
>
>   *Environment:*  PROD   *Project:*  Open Data Portal<https://webgate.ec.europa.eu/publications/jira/browse/ODP>
> *Priority:*  [image: Major] Major   *Reporter:*  ISOARD Olivier<https://webgate.ec.europa.eu/publications/jira/secure/ViewProfile.jspa?name=isoarol>       This
> message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA
> administrators<https://webgate.ec.europa.eu/publications/jira/secure/ContactAdministrators!default.jspa>
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>
> --
> Bert Van Nuffelen
>
> Semantic Technologies Software Architect at TenForce
> www.tenforce.be
>
> Bert.Van.Nuffelen at tenforce.com
> Office: +32 (0)16 31 48 60
> Mobile:+32 479 06 24 26
> skype: bert.van.nuffelen
>
> _______________________________________________
> Ecodp-dev mailing list
> Ecodp-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ecodp-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130502/e807cdbf/attachment.html>


More information about the ecodp-dev mailing list