TypeError occured when using "waitress-serve" command and "--unix-socket-perms" option. #50

tokibito opened this Issue Nov 30, 2013 · 2 comments


None yet

2 participants


I want to change the permissions on the socket file using the waitress-serve command but an error occurred.

$ waitress-serve --unix-socket=app.sock --unix-socket-perms=660 hello:app
Traceback (most recent call last):
  File "/home/tokibito/.virtualenvs/waitress-test/bin/waitress-serve", line 9, in <module>
    load_entry_point('waitress==0.8.7', 'console_scripts', 'waitress-serve')()
  File "/home/tokibito/.virtualenvs/waitress-test/local/lib/python2.7/site-packages/waitress/runner.py", line 216, in run
    _serve(app, **kw)
  File "/home/tokibito/.virtualenvs/waitress-test/local/lib/python2.7/site-packages/waitress/__init__.py", line 11, in serve
    server = _server(app, **kw)
  File "/home/tokibito/.virtualenvs/waitress-test/local/lib/python2.7/site-packages/waitress/server.py", line 39, in create_server
    adj = Adjustments(**kw)
  File "/home/tokibito/.virtualenvs/waitress-test/local/lib/python2.7/site-packages/waitress/adjustments.py", line 177, in __init__
    setattr(self, k, self._param_map[k](v))
  File "/home/tokibito/.virtualenvs/waitress-test/local/lib/python2.7/site-packages/waitress/adjustments.py", line 37, in asoctal
    return int(s, 8)
TypeError: int() can't convert non-string with explicit base
@mcdonc mcdonc added a commit that referenced this issue Nov 30, 2013
@mcdonc mcdonc - When the ``--unix-socket-perms`` option was used as an argument to
  ``waitress-serve``, a ``TypeError`` would be raised.  See

Closes #50.
@mcdonc mcdonc added a commit that closed this issue Nov 30, 2013
@mcdonc mcdonc - When the ``--unix-socket-perms`` option was used as an argument to
  ``waitress-serve``, a ``TypeError`` would be raised.  See

Closes #50.
@mcdonc mcdonc closed this in 8959cd9 Nov 30, 2013
mcdonc commented Nov 30, 2013

Thank you, Waitress 0.8.8 will have the fix in it.

mcdonc commented Nov 30, 2013

0.8.8 has been released.

@pcdude2143 pcdude2143 pushed a commit to pcdude2143/dotfiles that referenced this issue Dec 15, 2013
Michael Shepard Squashed '.vim/bundle/YouCompleteMe.vim/third_party/waitress/' change…
…s from 992dd54..1695585

1695585 update documentation version to 0.8.8 to catch up the package version
29f2475 prep for 0.8.8
8959cd9 - When the ``--unix-socket-perms`` option was used as an argument to   ``waitress-serve``, a ``TypeError`` would be raised.  See   Pylons/waitress#50.
e8d1419 - When waitress receives a ``Transfer-Encoding: chunked`` request, we no longer   send the ``TRANSFER_ENCODING`` nor the ``HTTP_TRANSFER_ENCODING`` value to   the application in the environment.  Instead, we pop this header.  Since we   cope with chunked requests by buffering the data in the server, we also know   when a chunked request has ended, and therefore we know the content length.   We set the content-length header in the environment, such that applications   effectively never know the original request was a T-E: chunked request; it   will appear to them as if the request is a non-chunked request with an   accurate content-length.
0110be2 Add a change note, fix test so it passes on Python versions without assertIn, add an NB: to the code.
567d98e Merge branch 'master' of github.com:domruf/waitress into domruf-master
735adb0 - When the ``url_prefix`` adjustment starts with more than one slash, all   slashes except one will be stripped from its beginning.  This differs from   older behavior where more than one leading slash would be preserved in   ``url_prefix``.
fdb9d3e restore py3 compat, coverage
34aa289 - Fix some cases where the creation of extremely large output buffers (greater   than 2GB, suspected to be buffers added via ``wsgi.file_wrapper``) might   cause an OverflowError on Python 2.  See   Pylons/waitress#47.
e9ca506 add test_preserve_header_value_order
b8d453d only sort the headers by key not by value

git-subtree-dir: .vim/bundle/YouCompleteMe.vim/third_party/waitress
git-subtree-split: 169558586d477f6f22402300422b90b5334b3654
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment