Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4 Antwoorden
5809 Weergaven

Suddenly I am getting this error message after running the server.

Traceback (most recent call last):
  File "D:\odoo17_enterprise\server\odoo\http.py", line 2155, in __call__
    if self.get_static_file(httprequest.path):
  File "D:\odoo17_enterprise\server\odoo\http.py", line 2051, in get_static_file
    if (module not in self.statics or static != 'static' or not resource):
  File "D:\odoo17_enterprise\server\odoo\tools\func.py", line 28, in __get__
    value = self.fget(obj)
  File "D:\odoo17_enterprise\server\odoo\http.py", line 2021, in statics
    manifest = get_manifest(module)
  File "D:\odoo17_enterprise\server\odoo\modules\module.py", line 368, in get_manifest
    return copy.deepcopy(_get_manifest_cached(module, mod_path))
  File "D:\odoo17_enterprise\server\odoo\modules\module.py", line 372, in _get_manifest_cached
    return load_manifest(module, mod_path)
  File "D:\odoo17_enterprise\server\odoo\modules\module.py", line 319, in load_manifest
    manifest.update(ast.literal_eval(f.read()))
  File "D:\odoo17_enterprise\server\odoo\tools\_monkeypatches.py", line 65, in literal_eval
    return orig_literal_eval(expr)
  File "D:\odoo17_enterprise\python\lib\ast.py", line 64, in literal_eval
    node_or_string = parse(node_or_string.lstrip(" \t"), mode='eval')
  File "D:\odoo17_enterprise\python\lib\ast.py", line 50, in parse
    return compile(source, filename, mode, flags,
  File "", line 0
Avatar
Annuleer
Beste antwoord

Hard to say what could be wrong, probably some last changes in your code breaks it. 
Try to run it with new database. Without auto install all of your modules and then try to turn one by one and you will see what will brake it. I'm sorry but i didn't have better solution for you. 

Avatar
Annuleer
Auteur

Thanks for the advice. Had to remove the old database. Things are working now, so not sure what caused the problem.

Beste antwoord

Hi junaid, I hope you solved your problem with the testing DB. But in such a case where the server has not been responding, and addition to the steps recommended bellow . I strongly suggest reviewing the original code and make sure that your code has not been manipulated with and armed with good knowledge in any IDE of your choice the problem could be solved and tracked very well.

Avatar
Annuleer
Beste antwoord

Hi,
Most probably the error will be from some custom modules added in the server. You can do as follows.

If the error is raised in a development environment:
* remove the custom addons path from your configuration file
* run the odoo and see if it works smooth


If the odoo is running fine at this moment, you can confirm that the error is coming from the custom codes, then check for the recently added module to the path and cross check its manifest file.

Thanks

Avatar
Annuleer
Auteur

Thanks for the advice. I removed that db, couldn't figure out the cause.

Beste antwoord

Could you give us more context?
what was you doing? did you install a module? or modify some view?

Avatar
Annuleer
Auteur

I did modify views, they were working without trouble so I am not sure what caused this problem. Luckily it is just a testing db, I changed the db.

Gerelateerde posts Antwoorden Weergaven Activiteit
0
jan. 25
1043
6
apr. 24
23716
1
apr. 24
1665
0
okt. 22
2826
1
jun. 24
1826