I was tried to install the "Force move attachments to DB storage(ir_attachment_force_storage)" Module. This module was installed successfully. Currently, I am facing post-installation issues.
KeyError: 'last_path_node' - - -
Here is my complete Traceback:
2021-04-16 09:37:09,168 3087 ERROR odoo_force_storage odoo.sql_db: bad query:
SELECT max(id)
FROM ir_attachment
WHERE create_uid = 1
AND url like '/web/content/%-07d31d8/web.assets_backend.css'
GROUP BY name
ORDER BY name
ERROR: current transaction is aborted, commands ignored until end of transaction block
2021-04-16 09:37:09,169 3087 ERROR odoo_force_storage odoo.sql_db: bad query: SELECT "res_lang".id FROM "res_lang" WHERE ("res_lang"."active" = true) ORDER BY COALESCE("res_lang"."active", false) DESC,"res_lang"."name"
ERROR: current transaction is aborted, commands ignored until end of transaction block
2021-04-16 09:37:09,171 3087 INFO odoo_force_storage werkzeug: 127.0.0.1 - - [16/Apr/2021 09:37:09] "GET /web HTTP/1.1" 500 - 192 0.144 0.855
2021-04-16 09:37:09,182 3087 ERROR odoo_force_storage werkzeug: Error on request:
Traceback (most recent call last):
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/http.py", line 805, in dispatch
r = self._call_function(**self.params)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/http.py", line 358, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/http.py", line 349, in checked_call
result.flatten()
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/http.py", line 1241, in flatten
self.response.append(self.render())
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/http.py", line 1234, in render
return env["ir.ui.view"]._render_template(self.template, self.qcontext)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/addons/base/models/ir_ui_view.py", line 1694, in _render_template
return self.browse(self.get_view_id(template))._render(values, engine)
File "/root/PycharmProjects/dev/trail-web/odoo/addons/web_editor/models/ir_ui_view.py", line 28, in _render
return super(IrUiView, self)._render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/addons/base/models/ir_ui_view.py", line 1702, in _render
return self.env[engine]._render(self.id, qcontext)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/addons/base/models/ir_qweb.py", line 55, in _render
result = super(IrQWeb, self)._render(id_or_xml_id, values=values, **context)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/addons/base/models/qweb.py", line 258, in _render
self.compile(template, options)(self, body.append, values or {})
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/addons/base/models/qweb.py", line 336, in _compiled_fn
element, document = self.get_template(template, options)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/addons/base/models/qweb.py", line 362, in get_template
path = options['last_path_node']
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/werkzeug/serving.py", line 323, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python3.8/dist-packages/werkzeug/serving.py", line 312, in execute
application_iter = app(environ, start_response)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/service/server.py", line 440, in app
return self.app(e, s)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/service/wsgi_server.py", line 136, in application
return application_unproxied(environ, start_response)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/service/wsgi_server.py", line 104, in application_unproxied
result = odoo.http.root(environ, start_response)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/http.py", line 1294, in __call__
return self.dispatch(environ, start_response)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/http.py", line 1262, in __call__
return self.app(environ, start_wrapped)
File "/usr/local/lib/python3.8/dist-packages/werkzeug/middleware/shared_data.py", line 260, in __call__
return self.app(environ, start_response)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/http.py", line 1464, in dispatch
result = ir_http._dispatch()
File "/root/PycharmProjects/dev/trail-web/odoo/addons/web_editor/models/ir_http.py", line 21, in _dispatch
return super(IrHttp, cls)._dispatch()
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/addons/base/models/ir_http.py", line 241, in _dispatch
return cls._handle_exception(e)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/addons/base/models/ir_http.py", line 209, in _handle_exception
return request._handle_exception(exception)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/http.py", line 743, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/root/PycharmProjects/dev/trail-web/odoo/odoo/http.py", line 314, in _handle_exception
raise exception.with_traceback(None) from new_cause
KeyError: 'last_path_node' - - -
Kindly help me to find out this issue
Thanks!