Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make check/run_tests.sh fails in Opensuse Leap 42.2 without sudo #210

Open
danielhb opened this issue Mar 15, 2017 · 1 comment
Open

make check/run_tests.sh fails in Opensuse Leap 42.2 without sudo #210

danielhb opened this issue Mar 15, 2017 · 1 comment
Labels

Comments

@danielhb
Copy link
Contributor

ERROR: setUpModule (test_api)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_api.py", line 40, in setUpModule
    test_server = utils.run_server(test_mode=True)
  File "utils.py", line 102, in run_server
    s = wok.server.Server(args)
  File "/home/danielhb/wok/src/wok/server.py", line 149, in __init__
    self.reqLogger = RequestLogger()
  File "/home/danielhb/wok/src/wok/reqlogger.py", line 130, in __init__
    h = logging.handlers.WatchedFileHandler(log, 'a')
  File "/usr/lib64/python2.7/logging/handlers.py", line 391, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python2.7/logging/__init__.py", line 913, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.7/logging/__init__.py", line 943, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/danielhb/wok/data/user-requests.data'

======================================================================
ERROR: setUpModule (test_authorization)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_authorization.py", line 33, in setUpModule
    test_server = run_server(test_mode=True)
  File "/home/danielhb/wok/tests/utils.py", line 102, in run_server
    s = wok.server.Server(args)
  File "/home/danielhb/wok/src/wok/server.py", line 149, in __init__
    self.reqLogger = RequestLogger()
  File "/home/danielhb/wok/src/wok/reqlogger.py", line 130, in __init__
    h = logging.handlers.WatchedFileHandler(log, 'a')
  File "/usr/lib64/python2.7/logging/handlers.py", line 391, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python2.7/logging/__init__.py", line 913, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.7/logging/__init__.py", line 943, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/danielhb/wok/data/user-requests.data'

======================================================================
ERROR: test_development_env (test_exception.ExceptionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_exception.py", line 78, in test_development_env
    setup_server()
  File "test_exception.py", line 36, in setup_server
    test_server = run_server(test_mode=True, environment=environment)
  File "utils.py", line 102, in run_server
    s = wok.server.Server(args)
  File "/home/danielhb/wok/src/wok/server.py", line 149, in __init__
    self.reqLogger = RequestLogger()
  File "/home/danielhb/wok/src/wok/reqlogger.py", line 130, in __init__
    h = logging.handlers.WatchedFileHandler(log, 'a')
  File "/usr/lib64/python2.7/logging/handlers.py", line 391, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python2.7/logging/__init__.py", line 913, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.7/logging/__init__.py", line 943, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/danielhb/wok/data/user-requests.data'

======================================================================
ERROR: test_development_env (test_exception.ExceptionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_exception.py", line 41, in tearDown
    test_server.stop()
AttributeError: 'NoneType' object has no attribute 'stop'

======================================================================
ERROR: test_production_env (test_exception.ExceptionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_exception.py", line 47, in test_production_env
    setup_server('production')
  File "test_exception.py", line 36, in setup_server
    test_server = run_server(test_mode=True, environment=environment)
  File "utils.py", line 102, in run_server
    s = wok.server.Server(args)
  File "/home/danielhb/wok/src/wok/server.py", line 149, in __init__
    self.reqLogger = RequestLogger()
  File "/home/danielhb/wok/src/wok/reqlogger.py", line 130, in __init__
    h = logging.handlers.WatchedFileHandler(log, 'a')
  File "/usr/lib64/python2.7/logging/handlers.py", line 391, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python2.7/logging/__init__.py", line 913, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.7/logging/__init__.py", line 943, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/danielhb/wok/data/user-requests.data'

======================================================================
ERROR: test_production_env (test_exception.ExceptionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_exception.py", line 41, in tearDown
    test_server.stop()
AttributeError: 'NoneType' object has no attribute 'stop'

======================================================================
ERROR: setUpModule (test_plugin)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_plugin.py", line 39, in setUpModule
    test_server = utils.run_server(test_mode=True)
  File "utils.py", line 102, in run_server
    s = wok.server.Server(args)
  File "/home/danielhb/wok/src/wok/server.py", line 149, in __init__
    self.reqLogger = RequestLogger()
  File "/home/danielhb/wok/src/wok/reqlogger.py", line 130, in __init__
    h = logging.handlers.WatchedFileHandler(log, 'a')
  File "/usr/lib64/python2.7/logging/handlers.py", line 391, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python2.7/logging/__init__.py", line 913, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.7/logging/__init__.py", line 943, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/danielhb/wok/data/user-requests.data'

======================================================================
ERROR: setUpModule (test_server)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_server.py", line 45, in setUpModule
    test_server = utils.run_server(test_mode=True)
  File "utils.py", line 102, in run_server
    s = wok.server.Server(args)
  File "/home/danielhb/wok/src/wok/server.py", line 149, in __init__
    self.reqLogger = RequestLogger()
  File "/home/danielhb/wok/src/wok/reqlogger.py", line 130, in __init__
    h = logging.handlers.WatchedFileHandler(log, 'a')
  File "/usr/lib64/python2.7/logging/handlers.py", line 391, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python2.7/logging/__init__.py", line 913, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.7/logging/__init__.py", line 943, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/danielhb/wok/data/user-requests.data'

======================================================================
ERROR: test_development_env (test_server_root.ServerRootTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_server_root.py", line 59, in test_development_env
    setup_server(server_root=server_root)
  File "test_server_root.py", line 35, in setup_server
    server_root=server_root)
  File "utils.py", line 102, in run_server
    s = wok.server.Server(args)
  File "/home/danielhb/wok/src/wok/server.py", line 149, in __init__
    self.reqLogger = RequestLogger()
  File "/home/danielhb/wok/src/wok/reqlogger.py", line 130, in __init__
    h = logging.handlers.WatchedFileHandler(log, 'a')
  File "/usr/lib64/python2.7/logging/handlers.py", line 391, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python2.7/logging/__init__.py", line 913, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.7/logging/__init__.py", line 943, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/danielhb/wok/data/user-requests.data'

======================================================================
ERROR: test_development_env (test_server_root.ServerRootTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_server_root.py", line 40, in tearDown
    test_server.stop()
AttributeError: 'NoneType' object has no attribute 'stop'

======================================================================
ERROR: test_production_env (test_server_root.ServerRootTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_server_root.py", line 47, in test_production_env
    setup_server('production', server_root)
  File "test_server_root.py", line 35, in setup_server
    server_root=server_root)
  File "utils.py", line 102, in run_server
    s = wok.server.Server(args)
  File "/home/danielhb/wok/src/wok/server.py", line 149, in __init__
    self.reqLogger = RequestLogger()
  File "/home/danielhb/wok/src/wok/reqlogger.py", line 130, in __init__
    h = logging.handlers.WatchedFileHandler(log, 'a')
  File "/usr/lib64/python2.7/logging/handlers.py", line 391, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python2.7/logging/__init__.py", line 913, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.7/logging/__init__.py", line 943, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/danielhb/wok/data/user-requests.data'

======================================================================
ERROR: test_production_env (test_server_root.ServerRootTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_server_root.py", line 40, in tearDown
    test_server.stop()
AttributeError: 'NoneType' object has no attribute 'stop'

plus the same error reported at #209

@danielhb danielhb added the bug label Mar 15, 2017
@lcorreia
Copy link
Member

lcorreia commented Mar 15, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants