1

我根据官方指南进行了 Kallithea 的安装(进入 virtualenv)。然后,我收到以下错误:

(metal)1:17:46 root@dervish mercurial paster serve my.ini
2015-04-26 01:17:49.003 INFO  [kallithea.model] initializing db for sqlite:////opt/scm/mercurial/kallithea.db?timeout=60
2015-04-26 01:17:49.003 INFO  [kallithea.lib.auth] getting information about all available permissions
Starting server in PID 12321.
Traceback (most recent call last):
  File "/opt/scm/mercurial/metal/bin/paster", line 9, in <module>
    load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
  File "/opt/scm/mercurial/metal/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
    invoke(command, command_name, options, args[1:])
  File "/opt/scm/mercurial/metal/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
    exit_code = runner.run(args)
  File "/opt/scm/mercurial/metal/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
    result = self.command()
  File "/opt/scm/mercurial/metal/lib/python2.7/site-packages/paste/script/serve.py", line 311, in command
    serve()
  File "/opt/scm/mercurial/metal/lib/python2.7/site-packages/paste/script/serve.py", line 295, in serve
    server(app)
  File "/opt/scm/mercurial/metal/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 189, in server_wrapper
    **context.local_conf)
  File "/opt/scm/mercurial/metal/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
    val = callable(*args, **kw)
  File "/opt/scm/mercurial/metal/lib/python2.7/site-packages/waitress/__init__.py", line 21, in serve_paste
    serve(app, **kw)
  File "/opt/scm/mercurial/metal/lib/python2.7/site-packages/waitress/__init__.py", line 11, in serve
    server = _server(app, **kw)
  File "/opt/scm/mercurial/metal/lib/python2.7/site-packages/waitress/server.py", line 39, in create_server
    adj = Adjustments(**kw)
  File "/opt/scm/mercurial/metal/lib/python2.7/site-packages/waitress/adjustments.py", line 176, in __init__
    raise ValueError('Unknown adjustment %r' % k)
ValueError: Unknown adjustment 'http'

PS:配置中只触及了几个选项。PPS:配置(my.ini)中的这个secrion对我来说不清楚:

[server:main]
## PASTE ##
# use = egg:Paste #http
## nr of worker threads to spawn
threadpool_workers = 3
## max request before thread respawn
threadpool_max_requests = 10
## option to use threads of process
use_threadpool = true

## WAITRESS ##
use = egg:waitress#main
## number of worker threads
threads = 5
## MAX BODY SIZE 100GB
max_request_body_size = 107374182400
## use poll instead of select, fixes fd limits, may not work on old
## windows systems.
#asyncore_use_poll = True

我试图注释掉use = egg:Paste没有运气。

4

1 回答 1

1

此部分允许您选择要使用的 HTTP 服务器并指定其选项。您一次只能选择 ( use =) 一个,并且您只需要指定它理解的那些选项(它们对于不同的 HTTP 服务器是不同的)。所以选择一个并配置它,注释掉其余的。

于 2015-09-21T20:31:49.977 回答