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

Add features #12

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Add features #12

wants to merge 6 commits into from

Conversation

srault95
Copy link

Hi,

Please see and merge ? my pull request

Thank

@anton-malakhov
Copy link

I was running it and got the following:

HTTP server (sanic)
===================

Starting server...
  docker run --rm -t -p 25000:25000 -e UID=10710547 -e GID=22002 -v /localdisk/work/amalakho/vmbench/.cache:/var/lib/cache -v /localdisk/work/amalakho/vmbench/sockets:/tmp/sockets --name magicbench magic/benchmark vex bench python /usr/src/servers/sanic_http_server.py --addr=0.0.0.0:25000
Trying to connect to server at address 127.0.0.1:25000
Could not start server
----------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/logging/config.py", line 558, in configure
    handler = self.configure_handler(handlers[name])
  File "/usr/local/lib/python3.5/logging/config.py", line 731, in configure_handler
    result = factory(**kwargs)
  File "/usr/local/lib/python3.5/logging/handlers.py", line 202, in __init__
    BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay)
  File "/usr/local/lib/python3.5/logging/handlers.py", line 57, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/local/lib/python3.5/logging/__init__.py", line 1014, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/local/lib/python3.5/logging/__init__.py", line 1043, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/access.log'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/servers/sanic_http_server.py", line 8, in <module>
    app = Sanic(__name__)
  File "/usr/local/python-venvs/bench/lib/python3.5/site-packages/sanic/app.py", line 33, in __init__
    logging.config.dictConfig(log_config)
  File "/usr/local/lib/python3.5/logging/config.py", line 795, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/local/lib/python3.5/logging/config.py", line 566, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'accessTimedRotatingFile': [Errno 13] Permission denied: '/access.log'

@anton-malakhov
Copy link

anton-malakhov commented Oct 10, 2017

Doesn't the GOMAXPROCS defined here make Golang serial while you are comparing to multiprocessing http server?

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

Successfully merging this pull request may close these issues.

2 participants