Skip to content
  • Categories
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse

Odoo 中文社区

  1. Home
  2. Categories
  3. Odoo 培训
  4. Odoo 错误:Exception("bus.Bus unavailable") 是什么鬼?

Odoo 错误:Exception("bus.Bus unavailable") 是什么鬼?

Scheduled Pinned Locked Moved Odoo 培训
odoo技术odoo exception
2 Posts 2 Posters 3.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    digitalsatori
    管理员
    wrote on last edited by
    #1

    我们在测试或部署Odoo的时候会经常在log中看到标题中的这个错误:

    Exception("bus.Bus unavailable")
    

    到底这是一个什么鬼呢?看起来似乎也不大影响操作。
    bus.Bus主要用于即时消息通知,所以如果只是用于测试,你完全可以无视这个错误。如果想眼睛清静,你可以不要用“多进程”的模式测试,就是那个workers的启动参数设为零,即:workers=0就可以了。这样Odoo就工作在“线程”模式下了。线程模式下的消息通知,不使用多进程模式下的长连接的方式。

    如果你因为性能要求,需要在Odoo部署中使用“多进程模式”,也就是workers不为0的情况。那你就需要设置反向代理,比如使用nginx并作这样的设置:

    location /longpolling {
        proxy_pass http://127.0.0.1:8072;
    }
    location / {
        proxy_pass http://127.0.0.1:8069;
    }
    

    【上海先安科技】(tony AT openerp.cn)

    H 1 Reply Last reply
    0
    • D digitalsatori

      我们在测试或部署Odoo的时候会经常在log中看到标题中的这个错误:

      Exception("bus.Bus unavailable")
      

      到底这是一个什么鬼呢?看起来似乎也不大影响操作。
      bus.Bus主要用于即时消息通知,所以如果只是用于测试,你完全可以无视这个错误。如果想眼睛清静,你可以不要用“多进程”的模式测试,就是那个workers的启动参数设为零,即:workers=0就可以了。这样Odoo就工作在“线程”模式下了。线程模式下的消息通知,不使用多进程模式下的长连接的方式。

      如果你因为性能要求,需要在Odoo部署中使用“多进程模式”,也就是workers不为0的情况。那你就需要设置反向代理,比如使用nginx并作这样的设置:

      location /longpolling {
          proxy_pass http://127.0.0.1:8072;
      }
      location / {
          proxy_pass http://127.0.0.1:8069;
      }
      
      H Offline
      H Offline
      hui
      wrote on last edited by
      #2

      @digitalsatori 我就本地测试的话,不用nginx,有办法处理掉这个错误吗?

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Tags
      • Popular
      • Users
      • Groups