IOError: [Errno 30] Read-only file system: web2py/web2py.log

410 views
Skip to first unread message

Krishna Bavandlapally

unread,
Mar 8, 2016, 1:33:29 PM3/8/16
to web2py-users
Not able to run GAE dev_server

$ python working/google_appengine/dev_appserver.py working/web2py/
INFO     2016-03-08 04:58:36,097 api_server.py:205] Starting API server at: http://localhost:46588
INFO     2016-03-08 04:58:36,113 dispatcher.py:197] Starting module "default" running at: http://localhost:8080
INFO     2016-03-08 04:58:36,114 admin_server.py:118] Starting admin server at: http://localhost:8000
ERROR    2016-03-08 04:58:41,003 wsgi.py:263]
Traceback (most recent call last):
  File "/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
    handler, path, err = LoadObject(self._handler)
  File "/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
    obj = __import__(path[0])
  File "/web2py/gaehandler.py", line 62, in <module>
    import gluon.main
  File "/web2py/gluon/main.py", line 85, in <module>
    logging.config.fileConfig(abspath("logging.conf"))
  File "/usr/lib/python2.7/logging/config.py", line 85, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "/usr/lib/python2.7/logging/config.py", line 163, in _install_handlers
    h = klass(*args)
  File "/usr/lib/python2.7/logging/handlers.py", line 117, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.7/logging/handlers.py", line 64, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.7/logging/__init__.py", line 903, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/__init__.py", line 928, in _open
    stream = open(self.baseFilename, self.mode)
  File "/google_appengine/google/appengine/tools/devappserver2/python/stubs.py", line 247, in __init__
    raise IOError(errno.EROFS, 'Read-only file system', filename)
IOError: [Errno 30] Read-only file system: '/web2py/web2py.log'
INFO     2016-03-08 04:58:41,008 module.py:809] default: "GET / HTTP/1.1" 500 -




Niphlod

unread,
Mar 8, 2016, 2:49:42 PM3/8/16
to web2py-users
just remove logging.conf alltogether or remove the handler that writes to a file. GAE has not a writable FS
Reply all
Reply to author
Forward
0 new messages