Unknown error caught in API - "Model 'RegistryContractsDocuments' has no field named 'description
2 times seen error on prod env
Oct 13, 2021 @ 11:52:50
kubernetes.namespace | kubernetes.container.image | ||
---|---|---|---|
Oct 13, 2021 @ 11:52:50.796 | prozorro-prod | registry-gitlab.prozorro.sale/prozorro-sale/prozorro-registry:v3-14-1 |
Oct 13, 2021 @ 11:52:50.000 haproxy_year:2021 haproxy_milliseconds:784 captured_response_cookie:- log.source.address:127.0.0.1:6479 message:haproxy[68982]: 94.131.247.235:47353 [13/Oct/2021:11:52:50.784] HaProxy80 KUBER/master-node-3-prod 0/0/1/12/13 500 522 15014 - - ---- 330/156/148/17/0 0/0 procedure.prozorro.sale "" "PATCH /api/registry/objects/60e3013785283bdb852c30d1/contracts/5ee31a805cab40a69dbb85b99145fb34?acc_token=xxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.0" "f22e5a3d3857c1e7da845213d3c7dff0" client_port:47353 haproxy_second:50 time_duration:13 ecs.version:1.1.0 srv_queue:0 haproxy_month:Oct haproxy_monthday:13 tags:filebeat, prod-haproxy, beats_input_codec_plain_applied, lb-logs haproxy_hour:11 time_request:0 program:haproxy time_backend_response:12 termination_state:---- beconn:148 haproxy_time:11:52:50 time_backend_connect:1 input.type:syslog @timestamp:Oct 13, 2021 @ 11:52:50.000 syslog.priority:150 syslog.facility:18 syslog.severity_label:Informational syslog.facility_label:local2 frontend_name:HaProxy80 bytes_read:522 server_name:master-node-3-prod haproxy_minute:52 feconn:156 http_version:1.0 pid:68982 captured_request_cookie:- actconn:330 retries:0 backend_queue:0 client_ip:94.131.247.235 time_queue:0 agent.ephemeral_id:0c728bf8-651c-4dc0-8b2f-6f8c5670b935 agent.id:84734d7a-cbaa-47e3-b0dc-215e804d6c75 agent.version:7.5.1 agent.type:filebeat agent.hostname:lb2-prod bytes_uploaded:15,014 type:haproxy http_verb:PATCH @version:1 http_status_code:500 backend_name:KUBER http_request:/api/registry/objects/60e3013785283bdb852c30d1/contracts/5ee31a805cab40a69dbb85b99145fb34?acc_token=xxxxxxxxxxxxxxxxxxxxxxxxxxx srvconn:17 domain_name:procedure.prozorro.sale event.severity:6 accept_date:13/Oct/2021:11:52:50.784 _id:WlDaeHwBRoMW68u-sx2A _type:_doc _index:lb-prod-2021.41 _score: -
traceback
Oct 13, 2021 @ 11:52:50.796 message:[2021-10-13T08:52:50.795Z] | prozorro_sale.registry.errors | ERROR - Unknown error caught in API - "Model 'RegistryContractsDocuments' has no field named 'description'" | X-Request-ID: f22e5a3d3857c1e7da845213d3c7dff0 Traceback (most recent call last): File "/registry/prozorro_sale/registry/errors.py", line 59, in request_errors_middleware return await handler(request) File "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 114, in context_middleware return await handler(request) File "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 121, in access_middleware return await check_access(handler)(request) File "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 134, in handler return await func(request, *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 81, in retry_on_concurrency_error_middleware return await handler(request) File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 65, in handler return await func(request, *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 43, in request_unpack_params return await handler(request, **request.match_info) File "/registry/prozorro_sale/registry/api.py", line 434, in update_contract registry_obj.update_contract(contract_id, data, request._context) File "/registry/prozorro_sale/registry/models/base.py", line 405, in update_contract self.get_contract_by_id(contract_id).import_data(data, role='owner') File "/registry/prozorro_sale/registry/models/utils.py", line 9, in import_data import_data = super().import_data(raw_data, role=role, **kwargs) File "/registry/prozorro_sale/registry/models/base.py", line 25, in import_data super().import_data(raw_data, role, **kwargs) File "/usr/local/lib/python3.9/site-packages/schematics/models.py", line 173, in import_data return convert(self.__class__, self, raw_data, role=role, **kwargs) File "/usr/local/lib/python3.9/site-packages/schematics/transforms.py", line 461, in convert return import_loop(cls, mutable, raw_data, validation_converter, **kwargs) File "/usr/local/lib/python3.9/site-packages/schematics/transforms.py", line 200, in import_loop setattr(mutable, field_name, value) File "/usr/local/lib/python3.9/site-packages/schematics/models.py", line 34, in _setter getattr(self, pre_set_callback_name)(value) File "/registry/prozorro_sale/registry/models/utils.py", line 34, in _on_documents_set if current_doc == doc: File "/registry/prozorro_sale/registry/models/base.py", line 306, in __eq__ if self[field] != value: File "/usr/local/lib/python3.9/site-packages/schematics/models.py", line 153, in __getitem__ raise UnknownFieldError(self, x) schematics.exceptions.UnknownFieldError: "Model 'RegistryContractsDocuments' has no field named 'description'" agent.version:7.5.1 agent.id:f2f7ab65-b489-42f8-8377-10e564c98443 agent.type:filebeat agent.ephemeral_id:e91b2353-f000-4733-bfc3-015c033a7413 agent.hostname:worker-node-4-prod log.file.path:/var/log/containers/prozorro-prod-registry-api-6dbd4c6984-2pk7b_prozorro-prod_prozorro-prod-registry-api-86d6db66d0eaee8d2e7acd31a17ab9044418de4ae477a38787c64f3f21aac84c.log log.flags:multiline log.offset:14,086,578 type:kubernetes @version:1 ecs.version:1.1.0 input.type:container @timestamp:Oct 13, 2021 @ 11:52:50.796 stream:stdout host.hostname:worker-node-4-prod host.architecture:x86_64 host.name:worker-node-4-prod host.os.codename:Core host.os.platform:centos host.os.version:7 (Core) host.os.family:redhat host.os.kernel:5.3.11-1.el7.elrepo.x86_64 host.os.name:CentOS Linux host.containerized:false tags:beats_input_codec_plain_applied kubernetes.node.name:worker-node-4-prod kubernetes.container.name:prozorro-prod-registry-api kubernetes.container.image:registry-gitlab.prozorro.sale/prozorro-sale/prozorro-registry:v3-14-1 kubernetes.labels.app_kubernetes_io/version:v3.14.1 kubernetes.labels.app_kubernetes_io/part-of:registry kubernetes.labels.app_kubernetes_io/environment:prod kubernetes.labels.helm_sh/chart:registry-v3.14.1 kubernetes.labels.app_kubernetes_io/managed-by:Helm kubernetes.labels.app_kubernetes_io/component:api kubernetes.labels.app_kubernetes_io/instance:prozorro-prod kubernetes.labels.pod-template-hash:6dbd4c6984 kubernetes.labels.app_kubernetes_io/name:registry-api kubernetes.namespace:prozorro-prod kubernetes.pod.name:prozorro-prod-registry-api-6dbd4c6984-2pk7b kubernetes.pod.uid:dbeb5c19-47e4-4d29-8ba1-839b09c7c513 kubernetes.replicaset.name:prozorro-prod-registry-api-6dbd4c6984 _id:-lDaeHwBRoMW68u-tx18 _type:_doc _index:kuber-prod-2021.41 _score: -