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

"No handler found" message on established install

By
Richard Lundberg
on 3/20/13, 11:19 AM 3,177 views

Hi,

I have searched on this topic, but all threads seem to relate to installation problems. I have been running OpenERP 6.1 for 9 months without problem, then today I recieved firstly an error when trying to open invoices RuntimeError: maximum recursion depth exceeded while calling a Python object.

I performed a soft reboot of the system, and since then I cannot access anything, I simply get the message No handler found.

Any help would be appreciated, as this is a working system, and fundamental to my business!!

0
Richard Lundberg
On 3/20/13, 5:45 PM

No,

there were no upgrades or changes. Just out of nowhere the recursion messages, and then on reboot, the "No handler found" message. Its peturbing that a functioning system, running a core business process, can seem to fail.

Update 2 here is the NEW debug output

2013-03-21 12:35:06,607 21065 DEBUG ? openerp.netsvc: logger level set: "openerp.netsvc.rpc.request:INFO"
2013-03-21 12:35:06,608 21065 DEBUG ? openerp.netsvc: logger level set: "openerp.netsvc.rpc.response:INFO"
2013-03-21 12:35:06,608 21065 DEBUG ? openerp.netsvc: logger level set: "openerp.addons.web.common.http:INFO"
2013-03-21 12:35:06,608 21065 DEBUG ? openerp.netsvc: logger level set: "openerp.addons.web.common.openerplib:INFO"
2013-03-21 12:35:06,608 21065 DEBUG ? openerp.netsvc: logger level set: "openerp.sql_db:INFO"
2013-03-21 12:35:06,608 21065 DEBUG ? openerp.netsvc: logger level set: ":INFO"
2013-03-21 12:35:06,608 21065 DEBUG ? openerp.netsvc: logger level set: "openerp:DEBUG"
2013-03-21 12:35:06,608 21065 DEBUG ? openerp.netsvc: logger level set: ":INFO"
2013-03-21 12:35:06,608 21065 INFO ? openerp: OpenERP version 6.1-1
2013-03-21 12:35:06,608 21065 INFO ? openerp: addons paths: /usr/lib/pymodules/python2.7/openerp/addons
2013-03-21 12:35:06,608 21065 INFO ? openerp: database hostname: localhost
2013-03-21 12:35:06,608 21065 INFO ? openerp: database port: 5432
2013-03-21 12:35:06,608 21065 INFO ? openerp: database user: openerp
2013-03-21 12:35:06,608 21065 DEBUG ? openerp.netsvc: Registered an exported service: db
2013-03-21 12:35:06,608 21065 DEBUG ? openerp.netsvc: Registered an exported service: common
2013-03-21 12:35:06,608 21065 DEBUG ? openerp.netsvc: Registered an exported service: object
2013-03-21 12:35:06,608 21065 DEBUG ? openerp.netsvc: Registered an exported service: wizard
2013-03-21 12:35:06,608 21065 DEBUG ? openerp.netsvc: Registered an exported service: report
2013-03-21 12:35:06,608 21065 INFO ? openerp.service.netrpc_server: starting NET-RPC service on 0.0.0.0:8070
2013-03-21 12:35:06,609 21065 DEBUG ? openerp.cron: Master cron daemon started!
2013-03-21 12:35:06,609 21065 INFO ? openerp.netsvc: Starting 1 services
2013-03-21 12:35:06,609 21065 DEBUG ? openerp.cron: Going to sleep for 60s
2013-03-21 12:35:06,619 21065 INFO ? openerp.wsgi.core: HTTP service (werkzeug) running on 0.0.0.0:8069
2013-03-21 12:35:06,659 21065 INFO ? openerp.addons.web: embedded mode
2013-03-21 12:35:06,664 21065 DEBUG ? openerp.osv.fields: required=True is deprecated: making a float field `required` has no effect, as NULL values are automatically turned into 0.0.
2013-03-21 12:35:06,664 21065 DEBUG ? openerp.osv.fields: required=True is deprecated: making a float field `required` has no effect, as NULL values are automatically turned into 0.0.
2013-03-21 12:35:06,664 21065 DEBUG ? openerp.osv.fields: required=True is deprecated: making a float field `required` has no effect, as NULL values are automatically turned into 0.0.
2013-03-21 12:35:06,669 21065 DEBUG ? openerp.tools.translate: no translation language detected, skipping translation for "'Regarding '" 
2013-03-21 12:35:06,677 21065 CRITICAL ? openerp.modules.module: Couldn't load module web
2013-03-21 12:35:06,677 21065 CRITICAL ? openerp.modules.module: unindent does not match any outer indentation level (account_voucher.py, line 1019)
2013-03-21 12:35:06,677 21065 ERROR ? openerp: Failed to load server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
  File "/usr/bin/openerp-server", line 252, in <module>
    openerp.modules.module.load_openerp_module(m)
  File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 419, in load_openerp_module
    getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/__init__.py", line 29, in wsgi_postload
    app = common.http.Root(o)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 453, in __init__
    static_dirs = self._load_addons(openerp_addons_namespace)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 523, in _load_addons
    m = __import__('openerp.addons.' + module)
  File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 139, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/usr/lib/pymodules/python2.7/openerp/addons/account_voucher/__init__.py", line 22, in <module>
    import account_voucher
  File "/usr/lib/pymodules/python2.7/openerp/addons/account_voucher/account_voucher.py", line 1019
    continue
           ^
IndentationError: unindent does not match any outer indentation level
2013-03-21 12:35:06,677 21065 INFO ? openerp: OpenERP server is running, waiting for connections...

Here is the conf file

[options]
addons_path = /usr/lib/pymodules/python2.7/openerp/addons
admin_passwd = admin
assert_exit_level = error
cache_timeout = 100000
cpu_time_limit = 60
csv_internal_sep = ,
db_host = False
db_maxconn = 64
db_name = False
db_password = False
db_port = False
db_template = template0
db_user = openerp
dbfilter = .*
debug_mode = False
demo = {}
email_from = False
import_partial = 
list_db = True
log_handler = [':INFO']
log_level = info
logfile = None
login_message = False
logrotate = True
max_cron_threads = 4
netrpc = True
netrpc_interface = 
netrpc_port = 8070
osv_memory_age_limit = 1.0
osv_memory_count_limit = False
pg_path = None
pidfile = None
proxy_mode = False
reportgz = False
secure_cert_file = server.cert
secure_pkey_file = server.pkey
server_wide_modules = None
smtp_password = False
smtp_port = 25
smtp_server = localhost
smtp_ssl = False
smtp_user = False
static_http_document_root = None
static_http_enable = False
static_http_url_prefix = None
syslog = False
test_commit = False
test_disable = False
test_file = False
test_report_directory = False
timezone = False
translate_modules = ['all']
unaccent = False
virtual_memory_limit = 805306368
virtual_memory_reset = 671088640
without_demo = False
xmlrpc = True
xmlrpc_interface = 
xmlrpc_port = 8069
xmlrpcs = True
xmlrpcs_interface = 
xmlrpcs_port = 8071

The actual addons directory where all the files are is /usr/share/pyshared/openerp/addons /usr/lib/pymodules/python2.7/openerp/addons just contains directories with symlinks to the relevant files in the /usr/share.... location. Not sure why it is set up like this, this is how it installed itself. Thank you very much for taking the time to look at this for me.

Well : 1 - Do you check your logs? 2 - Do you have anything special in your logs? If not upgrade your log level to the debug level and retry

If I were you and If I had no extra config in my database, I'll do a backup and restore database and then reload all the modules in the RESTORED database. In order to do that, in the command line that starts the server, add this behind : -d the_restored_database_name -u module_name and replace module_name by all. Then check if everything still the same.

regards

Mind & Go, Mind And Go
on 3/20/13, 7:41 PM

Which logs? Could you point me in the right direction. /var/log/openerp-server.log has no entries since Novermber 12. There is nothing in the Postregsql log either.

Richard Lundberg
on 3/20/13, 7:53 PM

Well, actually you could add --log-level=debug --log-request --log-response --log-web --log-sql --log-file=path_to_the_log_file_you_created after the openerp-server command

Mind & Go, Mind And Go
on 3/20/13, 8:02 PM

very strange issue if nothing has changed. I think have more informations and to be sure of the real problem, you have to setup an addon path in your config file : Maybe you forgot to add those addons in your addons_path configuration. to create a config file : openerp-server -s -c myconf.conf then add the FULL path in the first lines The reused the same old command adding --config=path-to-your-conf And paste the result here

Mind & Go, Mind And Go
on 3/21/13, 8:52 AM

Thanks for your help, new output is above.

Richard Lundberg
on 3/21/13, 9:45 AM

Ok, now we will do another test: - Backup and restore the DB and then reload all the modules in the RESTORED database. In order to do that, in the command line that starts the server, add this behind : -d the_restored_database_name -u module_name and replace module_name by the word "all".

Mind & Go, Mind And Go
on 3/21/13, 12:00 PM

Anything better now?

Mind & Go, Mind And Go
on 3/22/13, 7:17 AM

Hy, If my help answered your problem, could you please vote for my answer and tag your issue as answered? Thanks

Mind & Go, Mind And Go
on 7/4/13, 4:26 PM
0
Mind And Go
On 3/20/13, 3:09 PM

Hy,

Did you checked your logs?

Actually, I already experiments this message

recursion depth exceeded while calling a Python object.

It was coming from a bad code in my personnal module. Did you do any upgrade, update or stuff like that?

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

2 follower(s)

Stats

Asked: 3/20/13, 11:19 AM
Seen: 3177 times
Last updated: 3/16/15, 8:10 AM