1
ubuntu@ubuntu-02:/reddit/r2$ paster serve --reload example.ini http_port=8080Starting subprocess with file monitor
    /usr/local/lib/python2.6/dist-packages/Pylons-0.9.6.2-py2.6.egg/pylons/middleware.py:11: DeprecationWarning: The webhelpers.rails package is deprecated.
    - Please begin migrating to the new helpers in webhelpers.html,
      webhelpers.text, webhelpers.number, etc.  
    - Import url_for() directly from routes, and redirect_to() from
      pylons.controllers.util (if using Pylons) or from routes.
    - All Javascript support has been deprecated.  You can write link_to_remote()
      yourself or use one of the third-party Javascript libraries.
      from webhelpers.rails.asset_tag import javascript_path
    /reddit/r2/r2/lib/manager/tp_manager.py:22: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
      import pylons, sha
    Traceback (most recent call last):
      File "/usr/local/bin/paster", line 8, in <module>
        load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
      File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 84, in run
        invoke(command, command_name, options, args[1:])
      File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 123, in invoke
        exit_code = runner.run(args)
      File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 218, in run
        result = self.command()
      File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", line 276, in command
        relative_to=base, global_conf=vars)
      File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", line 313, in loadapp
        **kw)
      File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 203, in loadapp
        return loadobj(APP, uri, name=name, **kw)
      File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 224, in loadobj
        return context.create()
      File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create
        return self.object_type.invoke(self)
      File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 109, in invoke
        return fix_call(context.object, context.global_conf, **context.local_conf)
      File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call
        val = callable(*args, **kw)
      File "/reddit/r2/r2/config/middleware.py", line 558, in make_app
        load_environment(global_conf, app_conf)
      File "/reddit/r2/r2/config/environment.py", line 54, in load_environment
        config['pylons.g'] = app_globals.Globals(global_conf, app_conf, paths)
      File "/reddit/r2/r2/lib/app_globals.py", line 173, in __init__
        self.memcache = CMemcache(self.memcaches, num_clients = num_mc_clients)
      File "/reddit/r2/r2/lib/cache.py", line 108, in __init__
        client.behaviors.update(behaviors)
      File "build/bdist.linux-x86_64/egg/pylibmc.py", line 105, in update
      File "build/bdist.linux-x86_64/egg/pylibmc.py", line 172, in set_behaviors
    _pylibmc.MemcachedError: memcached_behavior_set returned 45

在运行 Web 服务方面,我绝对是个菜鸟,刚开始学习 Linux,只知道 T-SQL 和 ActionScript 2。所以,我只想说我在这里有点不够深入。

我知道各种版本的 python-webhelpers 存在问题,至少 libmemcached 存在问题,在这一点上,我很困惑。我不擅长 Linux,所以我永远不确定我安装了哪个版本的程序,我也不确定哪些版本是目前 git 存储库中的工作版本。我想做的是卸载 libmemcached 和 webhelpers,然后重新安装到正确的版本。我觉得这样做需要我重新做大部分过程,这很好,只要它有效。

任何有关如何解决此错误的帮助将不胜感激。我以前从这个网站上回答的问题中得到了很多帮助,我希望比我聪明得多的人能回答这个问题!

4

1 回答 1

0

我遇到了完全相同的问题,并降级以libmemcached-0.48修复它。

确保pylibmc在执行此操作后重建。

于 2011-08-14T22:28:26.337 回答