Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Json-rpc excepction | 'running_env' has not be set

By
Alejandro
on 3/28/14, 5:07 AM 2,057 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

0
Alejandro
On 3/28/14, 8:46 AM

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

It seems that you are using the module server_environment?

Med Said BARA
on 3/28/14, 9:02 AM

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

Alejandro
on 3/28/14, 9:11 AM

Good news.

Med Said BARA
on 3/28/14, 9:16 AM
0

Med Said BARA

--Med Said BARA--
2664
| 5 5 7
Algeria
--Med Said BARA--
Med Said BARA
On 3/28/14, 5:56 AM

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

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

Alejandro
on 3/28/14, 6:12 AM

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

Med Said BARA
on 3/28/14, 6:54 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/28/14, 5:07 AM
Seen: 2057 times
Last updated: 3/16/15, 8:10 AM