Hello,
From wednesday i can’t go go to list objects in one type. Rendering list was broken.
log fragment
[2021-03-10 12:52:34][ERROR ] — Exception on /objects/ [GET] (app.py)
Traceback (most recent call last):
File “flask/app.py”, line 2447, in wsgi_app
File “flask/app.py”, line 1952, in full_dispatch_request
File “flask_cors/extension.py”, line 165, in wrapped_function
File “flask/app.py”, line 1821, in handle_user_exception
File “flask/_compat.py”, line 39, in reraise
File “flask/app.py”, line 1950, in full_dispatch_request
File “flask/app.py”, line 1936, in dispatch_request
File “cmdb/interface/blueprint.py”, line 80, in _decorate
File “cmdb/interface/blueprint.py”, line 155, in _decorate
File “cmdb/interface/route_utils.py”, line 149, in get_request_user
File “cmdb/interface/rest_api/framework_routes/object_routes.py”, line 89, in get_objects
File “cmdb/utils/wraps.py”, line 121, in wrap
File “cmdb/framework/cmdb_render.py”, line 371, in render_result_list
File “cmdb/framework/cmdb_render.py”, line 136, in result
File “cmdb/framework/cmdb_render.py”, line 143, in _generate_result
File “cmdb/framework/cmdb_render.py”, line 204, in __set_fields
File “cmdb/framework/cmdb_render.py”, line 224, in __merge_fields_value
KeyError: ‘value’
[2021-03-10 12:52:36][ERROR ] — Exception on /objects/ [GET] (app.py)
Traceback (most recent call last):
File “flask/app.py”, line 2447, in wsgi_app
File “flask/app.py”, line 1952, in full_dispatch_request
File “flask_cors/extension.py”, line 165, in wrapped_function
File “flask/app.py”, line 1821, in handle_user_exception
File “flask/_compat.py”, line 39, in reraise
File “flask/app.py”, line 1950, in full_dispatch_request
File “flask/app.py”, line 1936, in dispatch_request
File “cmdb/interface/blueprint.py”, line 80, in _decorate
File “cmdb/interface/blueprint.py”, line 155, in _decorate
File “cmdb/interface/route_utils.py”, line 149, in get_request_user
File “cmdb/interface/rest_api/framework_routes/object_routes.py”, line 89, in get_objects
File “cmdb/utils/wraps.py”, line 121, in wrap
File “cmdb/framework/cmdb_render.py”, line 371, in render_result_list
File “cmdb/framework/cmdb_render.py”, line 136, in result
File “cmdb/framework/cmdb_render.py”, line 143, in _generate_result
File “cmdb/framework/cmdb_render.py”, line 204, in __set_fields
File “cmdb/framework/cmdb_render.py”, line 224, in __merge_fields_value
KeyError: ‘value’
in /var/log/messages show also:
/var/log/messages
Mar 10 14:20:03 server datagerry[2713234]: [2021-03-10 14:20:03][DEBUG ] — RenderList took 28.823375701904297 MS (wraps.py)
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/route_utils.py:83: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/rest_api/framework_routes/object_routes.py:353: DeprecationWarning: Call to deprecated function make_response.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/route_utils.py:83: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/rest_api/framework_routes/object_routes.py:353: DeprecationWarning: Call to deprecated function make_response.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/route_utils.py:83: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/rest_api/framework_routes/object_routes.py:353: DeprecationWarning: Call to deprecated function make_response.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/route_utils.py:83: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/rest_api/framework_routes/object_routes.py:353: DeprecationWarning: Call to deprecated function make_response.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/route_utils.py:83: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/rest_api/framework_routes/object_routes.py:353: DeprecationWarning: Call to deprecated function make_response.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/route_utils.py:83: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/rest_api/framework_routes/object_routes.py:353: DeprecationWarning: Call to deprecated function make_response.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/route_utils.py:83: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/rest_api/framework_routes/object_routes.py:353: DeprecationWarning: Call to deprecated function make_response.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/route_utils.py:83: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/rest_api/framework_routes/object_routes.py:353: DeprecationWarning: Call to deprecated function make_response.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/route_utils.py:83: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/rest_api/framework_routes/object_routes.py:353: DeprecationWarning: Call to deprecated function make_response.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/route_utils.py:83: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/rest_api/framework_routes/object_routes.py:353: DeprecationWarning: Call to deprecated function make_response.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/route_utils.py:83: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/rest_api/framework_routes/object_routes.py:353: DeprecationWarning: Call to deprecated function make_response.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/route_utils.py:83: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/rest_api/framework_routes/object_routes.py:353: DeprecationWarning: Call to deprecated function make_response.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/route_utils.py:83: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/rest_api/framework_routes/object_routes.py:353: DeprecationWarning: Call to deprecated function make_response.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/blueprint.py:46: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:366: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:255: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/interface/blueprint.py:46: DeprecationWarning: Call to deprecated function auth_is_valid.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:366: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:255: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:366: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:255: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:366: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:255: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:366: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:255: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:366: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:255: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:366: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:255: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:366: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:255: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:366: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:255: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:366: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:255: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:366: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:255: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:03 server datagerry[2713234]: [2021-03-10 14:20:03][DEBUG ] — RenderList took 31.594514846801758 MS (wraps.py)
Mar 10 14:20:12 server datagerry[2713234]: [2021-03-10 14:20:12][DEBUG ] — event received: cmdb.exportd.run_manual (service.py)
Mar 10 14:20:18 server datagerry[2713234]: /tmp/_MEIJnHDUc/cmdb/framework/cmdb_render.py:366: DeprecationWarning: Call to deprecated function get_type.
Mar 10 14:20:18 server datagerry[2713234]: [2021-03-10 14:20:18][ERROR ] — ‘value’ (service.py)
and also:
and this ERROR
Mar 10 14:14:59 server datagerry[2634557]: [2021-03-10 14:14:59][ERROR ] — ‘value’ (service.py)
Mar 10 14:15:00 server datagerry[2634557]: [2021-03-10 14:15:00][ERROR ] — ‘value’ (service.py)
Mar 10 14:15:01 server datagerry[2634557]: [2021-03-10 14:15:01][ERROR ] — ‘value’ (service.py)
by debugging and searching it turned out that some user want copied object, and change values in many fields. when he want saved. application show this bugs upper “log fragment”.
We found this object and turned out that application during save object doing bugs. from his object disappeard parameter “values”:
For 2 fields in t
{ "name": "rola", },
…
{ "name": "notatki" }
we update this object values from mongod
after our update object had name and value arguments with values
{ "name": "notatki", "value": null }
then it works again.
What is interesting
He after our repair crash app again and it was wired.
In different object in different field.
Again he copied from some object.
during the conversation and detailing how he does it, it turned out that every field he does not fill out is marked by him by clicking (Default:)
What is interesting next, fields which was filling caused which crash in app was “text fields”.
You have to check your application because it is not simple to find and repair that’s bugs
P.S.
What is interesting next when field was required and some user clicked pencil field was filling up “No reference set” and could save object.