Navigation

    Odoo 中文社区

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

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

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

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

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

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

    [已解决]创建帐套出现错误

    Odoo 安装指南
    4
    8
    7519
    Loading More Posts
    • 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.
    • V
      vincent last edited by

      [2009-12-24 16:57:02,092] INFO:dbpool:Connecting to template1
      [2009-12-24 16:57:02,155] INFO:dbpool:Closing all connections to template1
      [2009-12-24 16:57:02,171] INFO:dbpool:Connecting to template1
      [2009-12-24 16:57:10,530] INFO:dbpool:Closing all connections to template1
      [2009-12-24 16:57:10,530] INFO:web-services:CREATE DATABASE: mingyi
      [2009-12-24 16:57:10,530] INFO:dbpool:Connecting to mingyi
      [2009-12-24 16:57:10,625] WARNING:init:module base: module not found
      [2009-12-24 16:57:10,717] ERROR:web-services:[01]:
      [2009-12-24 16:57:10,717] ERROR:web-services:[02]: Environment Information :
      [2009-12-24 16:57:10,717] ERROR:web-services:[03]: System : Windows-XP-5.1.2600-SP2
      [2009-12-24 16:57:10,717] ERROR:web-services:[04]: OS Name : nt
      [2009-12-24 16:57:10,717] ERROR:web-services:[05]: Operating System Release : XP
      [2009-12-24 16:57:10,717] ERROR:web-services:[06]: Operating System Version : 5.1.2600
      [2009-12-24 16:57:10,717] ERROR:web-services:[07]: Operating System Architecture : 32bit
      [2009-12-24 16:57:10,717] ERROR:web-services:[08]: Operating System Locale : zh_CN.cp936
      [2009-12-24 16:57:10,717] ERROR:web-services:[09]: Python Version : 2.5.2
      [2009-12-24 16:57:10,717] ERROR:web-services:[10]: OpenERP-Server Version : 5.0.6
      [2009-12-24 16:57:10,733] ERROR:web-services:[11]: Last revision No. & ID :
      [2009-12-24 16:57:10,733] ERROR:web-services:[12]: CREATE DATABASE
      [2009-12-24 16:57:10,733] ERROR:web-services:[13]: Traceback (most recent call last):
      [2009-12-24 16:57:10,733] ERROR:web-services:[14]: File "serviceweb_services.pyo", line 89, in call
      [2009-12-24 16:57:10,733] ERROR:web-services:[15]: File "toolsmisc.pyo", line 47, in init_db
      [2009-12-24 16:57:10,733] ERROR:web-services:[16]: File "toolsmisc.pyo", line 181, in file_open
      [2009-12-24 16:57:10,733] ERROR:web-services:[17]: AttributeError: 'bool' object has no attribute 'replace'

      以上openerp_server.log里面的信息,下面是我新建帐套时候提示的错误,

      [attach]256[/attach]

      帐套 “mingyi” 的数据库创建成功,因为在pgAdmin里面可以看到数据库mingyi。
      但里面是空的,没有一张表成功创建,数据库没有被初始化。

      之前是装OpenERP AllInOne的,也出现过这个错误;现在把PostgreSQL、Client、server分开来装,同样出现这样的错误

      openerp-server.conf文件如下

      [options]
      without_demo = False
      netport = 8070
      secure = False
      demo = {}
      syslog = False
      cache_timeout = 100000
      port = 8069
      reportgz = False
      secure_pkey_file = server.pkey
      netinterface =
      log_level = info
      admin_passwd = admin
      smtp_port = 25
      smtp_server = localhost
      db_user = postgres
      price_accuracy = 2
      login_message = False
      import_partial =
      soap = False
      pidfile = False
      db_maxconn = 64
      smtp_password = False
      xmlrpc = True
      db_port = 5432
      debug_mode = False
      netrpc = True
      secure_cert_file = server.cert
      interface =
      logfile = D:OpenERP AllInOne\Server\openerp-server.log
      csv_internal_sep = ,
      pg_path = D:OpenERP AllInOne\PostgreSQL\bin
      translate_modules = ['all']
      stop_after_init = True
      root_path = D:OpenERP AllInOneServer
      smtp_user = False
      db_password = openpg
      db_name = False
      db_host = 127.0.0.1
      assert_exit_level = warn
      email_from = False
      addons_path = D:OpenERP AllInOneServeraddons

      请大家帮我看看是什么问题吧。。。谢谢!

      [[i] 本帖最后由 vincent 于 2009-12-25 09:51 编辑 [/i]]

      1 Reply Last reply Reply Quote 0
      • mrshelly
        mrshelly last edited by

        确认你的 D:OpenERP AllInOneServeraddonsbasebase.sql 文件存在.

        确认你启动的是 D:OpenERP AllInOne 下面的 Server....

        :lol
        1 Reply Last reply Reply Quote 0
        • mrshelly
          mrshelly last edited by

          如果是NTFS系统,确认一下base.sql 文件有 Server 启动用户的读写权限...

          1 Reply Last reply Reply Quote 0
          • digitalsatori
            digitalsatori 管理员 last edited by

            [quote][2009-12-24 16:57:10,625] WARNING:init:module base: module not found[/quote]

            addons-path不正确. 输入:

            openerp-server.exe --addons-path=Your Addons' Path -s
            
            1 Reply Last reply Reply Quote 0
            • mrshelly
              mrshelly last edited by

              建议手工在 PostgreSQL 中执行一下那个 base.sql 文件.

              然后再重启一下 server 再连连看...

              1 Reply Last reply Reply Quote 0
              • N
                NewZN last edited by

                从你说的现象来看,数据库连接应该是好的,多半问题出在service 或者base 模块,但就这个日志,还看不出来哪里出错。
                将你的配置文件中的log级别改成debug_rpc,这会打印出最详细的日志信息,这样也许看得出哪里出错了。
                即 log_level = info --> log_level = debug_rpc

                1 Reply Last reply Reply Quote 0
                • V
                  vincent last edited by

                  问题已解决;

                  原来是openerp-server.conf配置文件问题,

                  原因是如果用AllInOne安装OpenERP Server的文件目录名默认为"Server",

                  而如果独立装OpenERP Server,文件目录名默认为"OpenERP Server".

                  而在openerp-server.conf配置文件中,有关OpenERP Server的路径我全用了OpenERP AllInOneServer;
                  有关数据库的配置没有错误,因此程序可以创建数据库,找不到Server的文件目录入口从而找不到数据库的初始化文件。

                  问题解决了,谢谢大家~~

                  [[i] 本帖最后由 vincent 于 2009-12-25 09:50 编辑 [/i]]

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post