跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • 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

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

  1. 主页
  2. 版块
  3. Odoo 开发与实施交流
  4. Oe7.0在windows 上安装,经常会停掉服务!是什么问题?

Oe7.0在windows 上安装,经常会停掉服务!是什么问题?

已定时 已固定 已锁定 已移动 Odoo 开发与实施交流
9 帖子 4 发布者 4.6k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • R 离线
    R 离线
    royoyhs
    写于 最后由 编辑
    #1

    oe7.0在windows 上安装,如果隔两三天不重启服务,就会断开!然后又要重新去去启动服务,很麻烦!求各位大神指教!谢谢!!!

    1 条回复 最后回复
    0
    • wjfonhandW 离线
      wjfonhandW 离线
      wjfonhand
      写于 最后由 编辑
      #2

      看日志

      GoodERP -- Odoo China fork

      1 条回复 最后回复
      0
      • R 离线
        R 离线
        royoyhs
        写于 最后由 编辑
        #3

        感谢Jeff的及时回复!日志是提示这个错误:HKT 日志:  在客户端连接上的已打开事务中出现意外 EOF
                                                          HKT 日志:  无法从客户端获得数据: No connection could be made because the target machine actively refused it.
        是什么问题?

        1 条回复 最后回复
        0
        • mrshellyM 离线
          mrshellyM 离线
          mrshelly
          写于 最后由 编辑
          #4

          这是 odoo 的日志吗?

          odoo 日志 + 系统日志...

          1 条回复 最后回复
          0
          • R 离线
            R 离线
            royoyhs
            写于 最后由 编辑
            #5

            感谢mrshelly的回复!
            是的,那是odoo的日志,系统日志是提示的错误,请看附件!

            1 条回复 最后回复
            0
            • mrshellyM 离线
              mrshellyM 离线
              mrshelly
              写于 最后由 编辑
              #6

              看系统日志. 好象是由 lxml python 扩展引起的..
              所以, 检查一下是不是系统有相关的 view xml 错误 造成了 odoo 进程退出...

              可以使用标准的 odoo 模块. 不要附加与修改官网现有的 view xml  report xml 等....

              1 条回复 最后回复
              0
              • R 离线
                R 离线
                royoyhs
                写于 最后由 编辑
                #7

                感谢mrshelly的建议!
                我自己写个小程序,设定一个固定的时间去检查一次,如果检查到服务停止了,就自动去开启oe服务!

                谢谢!!

                1 条回复 最后回复
                0
                • D 离线
                  D 离线
                  d_yang
                  写于 最后由 编辑
                  #8

                  我也有一个windows平台下的(apache+mod_python),供大家参考吧。

                  # -*- coding: utf-8 -*-<br /><br />import os, sys, time<br />from datetime import datetime<br />import requests, logging<br /><br />logging.captureWarnings(True)<br /><br />def _go():<br />&nbsp; &nbsp; os.system(&quot;sc stop Apache2.4&quot;)<br />&nbsp; &nbsp; os.system(&quot;sc start Apache2.4&quot;)<br />&nbsp; &nbsp; time.sleep(5)<br />&nbsp; &nbsp; print &#039;start Apache2 at %s&#039; % datetime.now()<br /><br />print &#039;Apache2 monitor started...&#039;<br /><br />while True:<br />&nbsp; &nbsp; time.sleep(30)<br />&nbsp; &nbsp; try:<br />&nbsp; &nbsp; &nbsp; &nbsp; print &#039;pinging web server at %s.&#039; % datetime.now()<br />&nbsp; &nbsp; &nbsp; &nbsp; r = requests.get(&#039;https://xxxxxxxxxxx&#039;, verify=False, timeout=5) #place a real url here.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; if r.status_code != requests.codes.ok:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print &#039;server is dead at %s. restart it.&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _go()<br />&nbsp; &nbsp; &nbsp; &nbsp; else:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print &#039;Nothing new. Go on.&#039;<br />&nbsp; &nbsp; except Exception, e:<br />&nbsp; &nbsp; &nbsp; &nbsp; print &#039;Exception at %s, message is %s&#039; % ( datetime.now(), e.message)<br />&nbsp; &nbsp; &nbsp; &nbsp; print &#039;try to start Apache2.&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; _go()<br /><br />print &#039;Apache2 monitor ended...&#039;
                  
                  1 条回复 最后回复
                  0

                  • 登录

                  • 没有帐号? 注册

                  • 登录或注册以进行搜索。
                  • 第一个帖子
                    最后一个帖子
                  0
                  • 版块
                  • 标签
                  • 热门
                  • 用户
                  • 群组