This question has been flagged
2 Replies
6116 Views

V8 Ubuntu When I try to upgrade a module I got this error :

2014-03-28 08:00:13,297 24289 CRITICAL gestion openerp.modules.module: Couldn't load module server_environment 2014-03-28 08:00:13,297 24289 CRITICAL gestion openerp.modules.module: The parameter 'running_env' has not be set neither in base config file option -c or in openerprc. We strongly recommend against using the rc file but instead use an explicit config file with this content: [options] running_env = dev 2014-03-28 08:00:13,298 24289 ERROR gestion openerp.http: JSON-RPC Exception in /web/dataset/call_button. Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/openerp/http.py", line 434, in dispatch response["result"] = self._call_function(*self.params) File "/usr/lib/pymodules/python2.7/openerp/http.py", line 295, in _call_function return checked_call(self.db, *args, *kwargs) File "/usr/lib/pymodules/python2.7/openerp/service/model.py", line 113, in wrapper return f(dbname, args, *kwargs) File "/usr/lib/pymodules/python2.7/openerp/http.py", line 292, in checked_call return self.endpoint(a, *kw) File "/usr/lib/pymodules/python2.7/openerp/http.py", line 635, in __call__ return self.method(args, *kw) File "/usr/lib/pymodules/python2.7/openerp/http.py", line 338, in response_wrap response = f(args, *kw) File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1230, in call_button action = self._call_kw(model, method, args, {}) File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1218, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, args, *kwargs) File "/usr/lib/pymodules/python2.7/openerp/addons/base/module/wizard/base_module_upgrade.py", line 90, in upgrade_module openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 262, in new openerp.modules.load_modules(registry.db, force_demo, status, update_module) File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 339, in load_modules loaded_modules, update_module) File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 243, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 149, in load_module_graph load_openerp_module(package.name) File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 264, in load_openerp_module __import__('openerp.addons.' + module_name) File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 72, in load_module mod = imp.load_module('openerp.addons.' + module_part, f, path, descr) File "/usr/lib/pymodules/python2.7/openerp/addons/server_environment/__init__.py", line 21, in <module> from .serv_config import serv_config, setboolean File "/usr/lib/pymodules/python2.7/openerp/addons/server_environment/serv_config.py", line 40, in <module> "The parameter 'running_env' has not be set neither in base config " Exception: The parameter 'running_env' has not be set neither in base config file option -c or in openerprc. We strongly recommend against using the rc file but instead use an explicit config file with this content: [options] running_env = dev

Avatar
Discard
Best Answer

Hi;

Probably, you are trying to run OpenERP without openerp-server.conf file.

Instead of -c /etc/openerp-server.conf, put the full path -c /usr/lib/pymodules/python2.7/openerp/addons/server_environment_files/dev / prod / etc

It seems that you are using the module server_environment?

In this case don't forget the module server_environment_files and to read the doc carefully

Avatar
Discard
Author

Yes, but when I put -c /etc/openerp-server.conf I got this other error, and the folders exists and has the correct rights.Exception: Provided server environment does not exist, please add a folder /usr/lib/pymodules/python2.7/openerp/addons/server_environment_files/dev / prod / etc

Instead of -c /etc/openerp-server.conf, put the full path -c /usr/lib/pymodules/python2.7/openerp/addons/server_environment_files/dev / prod / etc

Author Best Answer

After that, this is the error :

OpenERP Server Error

Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/openerp/http.py", line 434, in dispatch response["result"] = self._call_function(*self.params) File "/usr/lib/pymodules/python2.7/openerp/http.py", line 295, in _call_function return checked_call(self.db, *args, *kwargs) File "/usr/lib/pymodules/python2.7/openerp/service/model.py", line 113, in wrapper return f(dbname, args, *kwargs) File "/usr/lib/pymodules/python2.7/openerp/http.py", line 292, in checked_call return self.endpoint(a, *kw) File "/usr/lib/pymodules/python2.7/openerp/http.py", line 635, in __call__ return self.method(args, *kw) File "/usr/lib/pymodules/python2.7/openerp/http.py", line 338, in response_wrap response = f(args, *kw) File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1230, in call_button action = self._call_kw(model, method, args, {}) File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1218, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, args, *kwargs) File "/usr/lib/pymodules/python2.7/openerp/addons/base/module/wizard/base_module_upgrade.py", line 90, in upgrade_module openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 262, in new openerp.modules.load_modules(registry.db, force_demo, status, update_module) File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 339, in load_modules loaded_modules, update_module) File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 243, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 149, in load_module_graph load_openerp_module(package.name) File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 264, in load_openerp_module __import__('openerp.addons.' + module_name) File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 72, in load_module mod = imp.load_module('openerp.addons.' + module_part, f, path, descr) File "/usr/lib/pymodules/python2.7/openerp/addons/server_environment/__init__.py", line 21, in <module> from .serv_config import serv_config, setboolean File "/usr/lib/pymodules/python2.7/openerp/addons/server_environment/serv_config.py", line 40, in <module> "The parameter 'running_env' has not be set neither in base config " Exception: The parameter 'running_env' has not be set neither in base config file option -c or in openerprc. We strongly recommend against using the rc file but instead use an explicit config file with this content: [options] running_env = dev

Avatar
Discard

It seems that you are using the module server_environment?

Author

Problem solved after I removed the server_enviroment of the modules pending to upgrade,

Good news.