Can't start runbot unless you manually create the directory "run"

Bug #1124116 reported by Numérigraphe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Tools
Fix Released
Undecided
Unassigned

Bug Description

When starting the runbot for the first time, I met the error below simply because the directory "run" does not exist in the branch.
It can't even be created within the --init procedure because no command work unless you manually create this directory.

When initializing, the script seems to need the "run" directory only for logging, so probably the logging should be left to the caller altogether (I usually prefer to log events through syslog for example).

Traceback (most recent call last):
  File "./openerp-runbot", line 10, in <module>
    import openerprunbot
  File "/home/ls/Sources/openerp/openerp-tools/openerp-runbot/openerprunbot/__init__.py", line 7, in <module>
    from . import core
  File "/home/ls/Sources/openerp/openerp-tools/openerp-runbot/openerprunbot/core.py", line 19, in <module>
    from openerprunbot.misc import *
  File "/home/ls/Sources/openerp/openerp-tools/openerp-runbot/openerprunbot/misc.py", line 23, in <module>
    _log_handler = logging.handlers.TimedRotatingFileHandler('run/runbot.log', 'D', 1, 30)
  File "/usr/lib/python2.7/logging/handlers.py", line 171, in __init__
    BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay)
  File "/usr/lib/python2.7/logging/handlers.py", line 65, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.7/logging/__init__.py", line 897, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/__init__.py", line 916, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/home/ls/Sources/openerp/openerp-tools/openerp-runbot/run/runbot.log'

Lionel Sausin.

Related branches

summary: - Can't start runbot unless you manually create rht directory "run"
+ Can't start runbot unless you manually create the directory "run"
Revision history for this message
Lionel Sausin - Initiatives/Numérigraphe (ls-initiatives) wrote :

Didn't meet this bug this time, so I guess it's fixed!

Changed in openerp-tools:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.