GreenOpenERP -- 绿色版 OpenERP for windows/linux , 源码运行 解压即用
-
[quote author=xiaoxu125634 link=topic=5811.msg27707#msg27707 date=1395230332]
求助,我在linux下运行遇到问题了,在centos 64服务器上下载解压了GreenOpenERP 7.0,然后通过IP:8069访问就数据库连接不上的错误
[quote] File "/home/openerp/GreenOpenERP-7.0-latest-linux-x64/python/lib/python2.7/site-packages/psycopg2/init.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
OperationalError: could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?[/quote]
我把iptables服务关了也没用。
没有用root用户运行,因为提示不要用的,所以建了一个openerp用户,来运行的。
帮忙看看,谢谢!
[/quote]
[b]好吧,没人回复,自己找解决办法了,把解决的过程说下:[/b]
遇到上面的问题后,查看postgresql.log,里面提到的错误是“FATAL: could not create semaphores: No space left on device DETAIL: Failed system call was semget(5432001, 17, 03600). ....”,还有一大段没贴出来,意思就是要么减少链接数要么调整内核的设置,想着内核的东西还是不要动的好,所以在conf里面修改了连接数,从100降到20,用openerp用户运行了,sh start.sh后,访问 域名:8069 后,还是一样的错误。
实在没办法,只能参考了安装分区的另一篇文章,准备老老实实一个个安装配置,可是又出现问题了,在service postgresql-9.3 initdb 这一步的时候,提示failed,查看/var/lib/pgsql/9.3/pgstartup.log文件,又见到了和上面一样的错误,这时候才意识到,原来不是因为软件是绿色的问题,搜“DETAIL: Failed system call was semget(1, 17, 03600)” 文章,找到一篇中文文章,http://my.oschina.net/Kenyon/blog/120355,讲解很详细,英语的文章也不一定有这么详细。关键还是里面的内容帮助我解决了问题,简单说下解决办法:
[root@goodyard tmp]# cat /proc/sys/kernel/sem
250 32000 32 128
[root@goodyard tmp]# sysctl -w kernel.sem="500 64000 50 150"
kernel.sem = 500 64000 50 150
[root@goodyard tmp]# cat /proc/sys/kernel/sem
500 64000 50 150
再去“service postgresql-9.3 initdb”的时候已经可以成功了,然后又返回到绿色版去,su - openerp -c"sh /home/openerp/GreenOpenERP-7.0-latest-linux-x64/start.sh",也成功了。
希望对大家有帮助! -
[quote author=matrowang link=topic=5811.msg27712#msg27712 date=1395279786]
8可以做成服务自动启动,不错的。
7我貌似有问题。
Ubuntu 12.04
[/quote]
同求,怎么把7.0做成服务。
8.0怎么做的呀? -
感谢楼主,已经下载GreenOpenERP-Win-X86-trunk,解压启动能用,不过发现有以下问题:
一:建好销售订单后,点打印就出错:
OpenERP 客户端错误
Uncaught SyntaxError: Unexpected end of input
http://localhost:8069/web#id=1&view_type=form&model=sale.order&menu_id=256&action=306:0 br />
二:在IE8里面登陆后就进不去系统了.
不知道是否是openerp8本身的问题,因我是繁体的win7系统,有空在简体里再试试了.... -
我測試2014-04-20下的v8綠色版本在xp、win7及linux上都還可用,但之後下載更新的版本就無法用了(至5-13),流灠器打開都只有一片空白(http://127.0.0.1:8069/web/database/manager),也沒報錯,但上官方的測試站v8都是可用的,樓主可有辦法解決?謝謝!
-
安装财务模块时的错误:
OpenERP Server Error
Client Traceback (most recent call last):
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\addons\web\http.py", line 204, in dispatch
response["result"] = method(self, **self.params)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\addons\web\controllers\main.py", line 1132, in call_button
action = self._call_kw(req, model, method, args, {})
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\addons\web\controllers\main.py", line 1120, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\addons\web\session.py", line 42, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\addons\web\session.py", line 30, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\addons\web\session.py", line 103, in send
raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)
Server Traceback (most recent call last):
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\addons\web\session.py", line 89, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\netsvc.py", line 296, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\service\web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\osv\osv.py", line 190, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\osv\osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\osv\osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\osv\osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\addons\base\module\module.py", line 426, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\addons\base\module\module.py", line 473, in _button_immediate_function
_, pool = pooler.restart_pool(cr.dbname, update_module=True)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\pooler.py", line 39, in restart_pool
registry = RegistryManager.new(db_name, force_demo, status, update_module)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\modules\registry.py", line 233, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\modules\loading.py", line 354, in load_modules
loaded_modules, update_module)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\modules\loading.py", line 256, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\modules\loading.py", line 188, in load_module_graph
load_data(module_name, idref, mode)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\modules\loading.py", line 76, in <lambda>
load_data = lambda *args: _load_data(cr, *args, kind='data')
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\modules\loading.py", line 122, in _load_data
tools.convert_yaml_import(cr, module_name, fp, kind, idref, mode, noupdate, report)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\tools\yaml_import.py", line 928, in yaml_import
yaml_interpreter.process(yaml_string)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\tools\yaml_import.py", line 864, in process
self._process_node(node)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\tools\yaml_import.py", line 877, in _process_node
self.process_python(node)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\openerp\tools\yaml_import.py", line 550, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "D:\OpenERP\GreenOdoo-7.0-win32\GreenOdoo-7.0-win32\source\addons\account\account_pre_install.yml", line 7, in <module>
wiz = wizards.browse(cr, uid, ref('account.account_configuration_installer_todo'))
AttributeError: 'bool' object has no attribute 'lower' -
启动正常, 输入http://localhost:8069/ 之后, 报错如下, 请问谁遇到过没? 怎么处理?
我使用的是windows 8, 64位的。
2014-07-16 16:56:18,859 22252 [1;32m[1;49mINFO[0m ? openerp.service.server: H
TTP service (werkzeug) running on 0.0.0.0:8069
2014-07-16 16:56:52,049 22252 [1;32m[1;49mINFO[0m ? werkzeug: 127.0.0.1 - - [
16/Jul/2014 16:56:52] "GET / HTTP/1.1" 500 -
2014-07-16 16:56:52,065 22252 [1;31m[1;49mERROR[0m ? openerp.service.server:
Exception happened during processing of request from ('127.0.0.1', 62962)
Traceback (most recent call last):
File "D:\work\电商项目\GreenOdoo-8.0-win32\runtime\python\lib\SocketServer.py"
, line 582, in process_request_thread
self.finish_request(request, client_address)
File "D:\work\电商项目\GreenOdoo-8.0-win32\runtime\python\lib\SocketServer.py"
, line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "D:\work\电商项目\GreenOdoo-8.0-win32\runtime\python\lib\SocketServer.py"
, line 638, in init
self.handle()
File "D:\work\电商项目\GreenOdoo-8.0-win32\runtime\python\lib\site-packages\we
rkzeug-0.8.3-py2.7.egg\werkzeug\serving.py", line 182, in handle
rv = BaseHTTPRequestHandler.handle(self)
File "D:\work\电商项目\GreenOdoo-8.0-win32\runtime\python\lib\BaseHTTPServer.p
y", line 340, in handle
self.handle_one_request()
File "D:\work\电商项目\GreenOdoo-8.0-win32\runtime\python\lib\site-packages\we
rkzeug-0.8.3-py2.7.egg\werkzeug\serving.py", line 217, in handle_one_request
return self.run_wsgi()
File "D:\work\电商项目\GreenOdoo-8.0-win32\runtime\python\lib\site-packages\we
rkzeug-0.8.3-py2.7.egg\werkzeug\serving.py", line 176, in run_wsgi
traceback.plaintext)
File "D:\work\电商项目\GreenOdoo-8.0-win32\runtime\python\lib\site-packages\we
rkzeug-0.8.3-py2.7.egg\werkzeug\utils.py", line 77, in get
value = self.func(obj)
File "D:\work\电商项目\GreenOdoo-8.0-win32\runtime\python\lib\site-packages\we
rkzeug-0.8.3-py2.7.egg\werkzeug\debug\tbtools.py", line 332, in plaintext
return u'\n'.join(self.generate_plaintext_traceback())
File "D:\work\电商项目\GreenOdoo-8.0-win32\runtime\python\lib\site-packages\we
rkzeug-0.8.3-py2.7.egg\werkzeug\debug\tbtools.py", line 326, in generate_plainte
xt_traceback
frame.function_name
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb5 in position 8: ordinal
not in range(128) -
这个绿色版看起来很好,我在10月7日下载了使用,在ubuntu12.4.4中运行,解压完成,运行命令./start.sh后出现如下错误,不知何故?盼指导,谢谢!
./runtime/pgsql/bin/pg_ctl.bin: 1: ./runtime/pgsql/bin/pg_ctl.bin: Syntax error: "(" unexpected
./runtime/python/bin/.python2.7.bin: 3: ./runtime/python/bin/.python2.7.bin: Syntax error: Unterminated quoted string -
WIN7 64位可以使用,但是pgadmin 里的默认服务器要密码才能登录。
试过openpgpwd / admin 无效