Skip to Content
Menu
This question has been flagged
3 Replies
3489 Views

While attempting to rebuild instance with new module added, the install log has the following:

2023-03-15 15:34:31,359 4 INFO xxxxx-from-master-7610128 odoo.service.server: 937 post-tests in 2567.13s, 997354 queries
2023-03-15 15:34:31,359 4 ERROR xxxxx-from-master-7610128 odoo.tests.runner: 0 failed, 1 error(s) of 2517 tests when loading database 'xxxxx-from-master-7610128'
2023-03-15 15:34:31,363 4 INFO xxxxxx-from-master-7610128 odoo.service.server: Initiating shutdown
2023-03-15 15:34:31,363 4 INFO xxxxx-from-master-7610128 odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.
2023-03-15 15:34:31,865 4 INFO xxxxx-from-master-7610128 odoo.sql_db: ConnectionPool(used=0/count=0/max=16): Closed 5 connections
odoo-bin process returned error code 1. Please check install.log
 

If zero tests failed, yet there was an error, what is the error?  It is certainly not in the install.log.  Is there some other place errors are logged by the tests?

This is in a development branch that has been cloned down from our master that runs fine absent this module.


Avatar
Discard
Author

I guess I should note that I am running with the settings:
Install only my modules (does not include submodules)
Validate the test suite on new builds.
Presumably, I could disable the test suite, but that doesn't seem like a good idea.

Author

Well that's interesting. Even though the "Branches" display comes up and says "Test Failed", I can still connect to it and my module is installed and the various elements from the models in the module are in place.
Could it be the problem is in the Odoo.sh interface and no tests have actually failed?

Author Best Answer

Still very frustrating, but I was eventually able to capture a log that allowed me to find the problem.

Avatar
Discard
Best Answer

I ran into a similar issue a while back—"Test Failed" showing even though everything seemed to be working fine on the surface. In my case, it turned out the test error was triggered by an unhandled exception inside a related dependency that wasn’t even part of the module I was updating. Odoo.sh can sometimes be unclear with how it logs those. If you're just looking to rule things out, try isolating that module in a clean build with all logging levels enabled (including --log-level=test) to catch anything that might slip by.

Also random side note while digging through logs this morning—I took a short break and came across this fun little word puzzle game: 1word4pics.com

Avatar
Discard
Best Answer

1. Try this code in odoo.conf file 

addons-path=path.../addons,path..../custom-addonsExample:addons_path = /home/cybrosys/odoo-17.0/addons,/home/cybrosys/odoo-17.0/custom_app


2. Add Parameters ; -c odoo.conf -u custom_module_name

Avatar
Discard

My module is installed, and the different components from the models in the module are in their proper places, even if the "Branches" display indicates "Test Failed" when I connect to it. https://slice-master.io

Related Posts Replies Views Activity
3
Jul 24
5791
1
Dec 22
3113
0
Oct 22
2504
0
Mar 21
3357
1
Oct 24
1345