Odoo 中文社区

    • 注册
    • 登录
    • 搜索
    • 版块
    • 标签
    • 热门
    • 用户
    • 群组

    Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

    由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

    本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

    开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

    如果您登录系统碰到问题,请在微信公众号留言:

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

    Odoo 开发与实施交流
    4
    9
    4169
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • R
      royoyhs 最后由 编辑

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

      1 条回复 最后回复 回复 引用 0
      • wjfonhand
        wjfonhand 最后由 编辑

        看日志

        GoodERP -- Odoo China fork

        1 条回复 最后回复 回复 引用 0
        • R
          royoyhs 最后由 编辑

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

          1 条回复 最后回复 回复 引用 0
          • mrshelly
            mrshelly 最后由 编辑

            这是 odoo 的日志吗?

            odoo 日志 + 系统日志...

            1 条回复 最后回复 回复 引用 0
            • R
              royoyhs 最后由 编辑

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

              1 条回复 最后回复 回复 引用 0
              • mrshelly
                mrshelly 最后由 编辑

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

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

                1 条回复 最后回复 回复 引用 0
                • R
                  royoyhs 最后由 编辑

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

                  谢谢!!

                  1 条回复 最后回复 回复 引用 0
                  • D
                    d_yang 最后由 编辑

                    我也有一个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
                    • First post
                      Last post