Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The orion-ld suddenly dies without an error message (https destination in the subscription) #1495

Closed
FR-ADDIX opened this issue Dec 11, 2023 · 32 comments

Comments

@FR-ADDIX
Copy link

Kubernetes v1.26.9
ORION-LD fiware/orion-ld:1.4.0

Args:                                                                                                                                                                                                                                     
  -dbhost                                                                                                                                                                                                                                 
  mongodb-headless.fiware.svc.cluster.local:27017/                                                                                                                                                                                        
  -logLevel                                                                                                                                                                                                                               
  DEBUG                                                                                                                                                                                                                                   
  -ctxTimeout                                                                                                                                                                                                                             
  10000                                                                                                                                                                                                                                   
  -mongocOnly                                                                                                                                                                                                                             
  -lmtmp 

3 ORION-LD Pods an a Replicaset for Mongo bitnami/mongodb:6.0.4-debian-11-r14

Loglevel DEBUG
Log:
time=Monday 11 Dec 16:21:47 2023.062Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionld.cpp[1110]:main | msg=Orion Context Broker is running
time=Monday 11 Dec 16:21:47 2023.065Z | lvl=WARN | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongocInit.cpp[58]:mongocLog | msg=MONGOC[mongoc]: Falling back to malloc for counters.
time=Monday 11 Dec 16:21:47 2023.790Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionld.cpp[1302]:main | msg=Startup completed

the curl to die the Broker:

curl --location 'https://apis.captn.addix.io/ngsi-ld/v1/entityOperations/upsert?options=update' \ --header 'Content-Type: application/json' \ --header 'NGSILD-Tenant: captn' \ --header 'Accept: application/ld+json' \ --header 'Authorization: Bearer <TOKEN>' \ --data-raw '[ { "id": "urn:ngsi-ld:WeatherObserved:ADDIX:owm:5419982", "type": "WeatherObserved", "dateObserved": { "type": "Property", "value": { "@type": "DateTime", "@value": "2023-12-11T15:45:45.000Z" } }, "atmosphericPressure": { "type": "Property", "value": 996 }, "relativeHumidity": { "type": "Property", "value": 98 }, "feelLikesTemperature": { "type": "Property", "value": 3.6 }, "temperature": { "type": "Property", "value": 6.82 }, "visibility": { "type": "Property", "value": 10000 }, "windDirection": { "type": "Property", "value": 349 }, "windSpeed": { "type": "Property", "value": 5.02 }, "gustSpeed": { "type": "Property", "value": 7.97 }, "weatherType": { "type": "Property", "value": "Rain" }, "source": { "type": "Property", "value": "https://openweathermap.org" } } ] '

@FR-ADDIX
Copy link
Author

There seems to be a problem with 2 subscriptions, we are currently investigating this further. Once these have been deleted, Orion-LD will run again.

@kzangeli
Copy link
Collaborator

ok!
That explains why I haven't been able to reproduce the error.
Could you post the subscriptions here, please?
Always interesting to fix crashes ...

@ibordach
Copy link

The problem appears to be with HTTPS notifications rather than HTTP notifications. Our ingress supports at minimum TLS 1.2. Could that be the problem?

@kzangeli
Copy link
Collaborator

Could that be the problem?

Not a clue, but, sure, anything could trigger a crash ...
Post more info here and I will try to reproduce the crash.

@FR-ADDIX
Copy link
Author

Orion dies with a https:// end point
with a http:// endpoint the Orion works

Orion dies

    {
        "id": "urn:ngsi-ld:subscription:d6652902-99cd-11ee-9314-76803a887299",
        "type": "Subscription",
        "subscriptionName": "Sub:Vehicle:AIS",
        "description": "NGSILD-Proxy Subscription for Vehicle:AIS",
        "entities": [
            {
                "idPattern": "AIS",
                "type": "Vehicle"
            }
        ],
        "status": "active",
        "isActive": true,
        "notification": {
            "format": "keyValues",
            "endpoint": {
                "uri": "https://xxx.io/ngsild-proxy/notifications",
                "accept": "application/json"
            },
...
        },
        "origin": "cache"
    }

Orion stays alive

    {
        "id": "urn:ngsi-ld:subscription:d6652902-99cd-11ee-9314-76803a887299",
        "type": "Subscription",
        "subscriptionName": "Sub:Vehicle:AIS",
        "description": "NGSILD-Proxy Subscription for Vehicle:AIS",
        "entities": [
            {
                "idPattern": "AIS",
                "type": "Vehicle"
            }
        ],
        "status": "active",
        "isActive": true,
        "notification": {
            "format": "keyValues",
            "endpoint": {
                "uri": "http://xxx.yyy.svc:8088/ngsild-proxy/notifications",
                "accept": "application/json"
            },
            "status": "ok",
            "timesSent": 505969,
            "lastNotification": "2023-12-14T14:02:26.149Z",
            "lastFailure": "2023-12-14T14:01:40.553Z",
            "lastSuccess": "2023-12-14T14:02:26.149Z"
        },
        "origin": "cache"
    }

@kzangeli
Copy link
Collaborator

ok, I'll implement a functest with an https subscription using keyValues, as close as possible to your "https subscription".

If I'm not able to reproduce the error, I'll be back asking for more info

@ibordach
Copy link

Test with orion-ld:1.5.0-PRE-1551-debug

(gdb) bt
#0  0x0000000000525906 in httpsNotify(CachedSubscription*, iovec*, int, double, void**) ()
#1  0x79636c783262794a in ?? ()
[...]
#100 0x0000000000000000 in ?? ()
(gdb)

@kzangeli
Copy link
Collaborator

Please have a look at the functest and propose modifications, see if I can reproduce the error.
To fix the issue, I need to be able to reproduce it.

@FR-ADDIX
Copy link
Author

If I understand the script of the function test correctly, it should be able to trigger the crash.

It doesn't matter where the notification is sent to, as long as it is a valid https endpoint.

It doesn't matter which data is sent there, the subscription must be triggered and the destination must be https.

This causes the Orion LD to crash immediately.

@kzangeli
Copy link
Collaborator

ok. interesting.
My functest works just fine, so, something must be different.
I need that input.
Add some HTTP headers perhaps?

@FR-ADDIX
Copy link
Author

you can also simply have it sent against https://httpbin.org/post, if the subscription is triggered, the Orion-LD crashes

{
	"description": "Test Vehicle AIS",
	"type": "Subscription",
	"name": "Kill den ORION-LD",
	"entities": [{
        "idPattern": "AIS",
        "type": "Vehicle"
	}],
	"watchedAttributes": [
		"dateObserved"
	],
	"isActive": true,
	"notification": {
		"format": "keyValues",
		"endpoint": {
			"uri": "https://httpbin.org/post",
			"accept": "application/json"
		}
	}
}

It doesn't matter what is triggered.
Some simple subscription against https and that's it.

@kzangeli
Copy link
Collaborator

I tried the https://httpbin.org/post. Unfortunately, that worked. Notification sent and the broker is just fine ... :(

@FR-ADDIX
Copy link
Author

Ok, once again my procedure

Create a subscription

curl --location 'https://xxxxxxxxxxxxxxxx/ngsi-ld/v1/subscriptions/' \
--header 'NGSILD-Tenant: captn' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <TOKEN>' \
--data '{
	"description": "Test Vehicle AIS",
	"type": "Subscription",
	"name": "Kill den ORION-LD",
	"entities": [{
        "idPattern": "AIS",
        "type": "Vehicle"
	}],
	"watchedAttributes": [
		"dateObserved"
	],
	"isActive": true,
	"notification": {
		"format": "keyValues",
		"endpoint": {
			"uri": "https://httpbin.org/post",
			"accept": "application/json"
		}
	}
}'

Get this subscription

{
    "id": "urn:ngsi-ld:subscription:7a4863ae-9f32-11ee-a373-1aca18d25f2d",
    "type": "Subscription",
    "subscriptionName": "Kill den ORION-LD",
    "description": "Test Vehicle AIS",
    "entities": [
        {
            "idPattern": "AIS",
            "type": "Vehicle"
        }
    ],
    "watchedAttributes": [
        "dateObserved"
    ],
    "status": "active",
    "isActive": true,
    "notification": {
        "format": "keyValues",
        "endpoint": {
            "uri": "https://httpbin.org/post",
            "accept": "application/json"
        },
        "status": "ok"
    },
    "origin": "cache",
    "jsonldContext": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
}

Trigger the subscription

curl --location 'https://xxxxxxxxxxxxxxxx/ngsi-ld/v1/entityOperations/upsert?options=update' \
--header 'Content-Type: application/json' \
--header 'NGSILD-Tenant: captn' \
--header 'Accept: application/ld+json' \
--header 'Authorization: Bearer <TOKEN>' \
--data-raw '[
    {
        "id": "urn:ngsi-ld:Vehicle:AIS:211891460",
        "type": "Vehicle",
        "dateObserved": {
            "type": "Property",
            "value": {
                "@type": "DateTime",
                "@value": "2023-12-20T11:48:59.485Z"
            }
        }
    }
]'

The log to the crash:

time=Wednesday 20 Dec 12:32:48 2023.212Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=alteration.cpp[73]:alteration | msg=Added alteration for entity 'urn:ngsi-ld:Vehicle:AIS:
211891460'                                                                                                                                                                                                               
time=Wednesday 20 Dec 12:32:48 2023.220Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldAlterationsTreat.cpp[474]:orionldAlterationsTreat | msg= Alteration 0:            
time=Wednesday 20 Dec 12:32:48 2023.220Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldAlterationsTreat.cpp[475]:orionldAlterationsTreat | msg=   Entity In:      0x7f459
0ff3ecc                                                                                                                                                                                                                  
time=Wednesday 20 Dec 12:32:48 2023.220Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldAlterationsTreat.cpp[476]:orionldAlterationsTreat | msg=   CompleteEntity: 0x7f456
4019173                                                                                                                                                                                                                  
time=Wednesday 20 Dec 12:32:48 2023.220Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldAlterationsTreat.cpp[477]:orionldAlterationsTreat | msg=   Entity Id:      urn:ngs
i-ld:Vehicle:AIS:211891460                                                                                                                                                                                               
time=Wednesday 20 Dec 12:32:48 2023.220Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldAlterationsTreat.cpp[478]:orionldAlterationsTreat | msg=   Entity Type:    https:/
/uri.etsi.org/ngsi-ld/default-context/Vehicle                                                                                                                                                                            
time=Wednesday 20 Dec 12:32:48 2023.221Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldAlterationsTreat.cpp[479]:orionldAlterationsTreat | msg=   Attributes:     0      
time=Wednesday 20 Dec 12:32:48 2023.221Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldAlterationsTreat.cpp[487]:orionldAlterationsTreat | msg=ALT:   inEntityP: {"id":"u
rn:ngsi-ld:Vehicle:AIS:211891460","type":"https://uri.etsi.org/ngsi-ld/default-context/Vehicle","https://uri.etsi.org/ngsi-ld/default-context/dateObserved":{"type":"Property","value":{"@type":"DateTime","@value":"2023
-12-20T11:49:59.485Z"}}}                                                                                                                                                                                                 
time=Wednesday 20 Dec 12:32:48 2023.221Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldAlterationsTreat.cpp[490]:orionldAlterationsTreat | msg= 1 Alterations present    
time=Wednesday 20 Dec 12:32:48 2023.221Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldAlterationsTreat.cpp[512]:orionldAlterationsTreat | msg=4 items in matchList:     
time=Wednesday 20 Dec 12:32:48 2023.221Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldAlterationsTreat.cpp[522]:orionldAlterationsTreat | msg=o 1/4 Subscription 'urn:ng
si-ld:subscription:7a4863ae-9f32-11ee-a373-1aca18d25f2d'                                                                                                                                                                 
time=Wednesday 20 Dec 12:32:48 2023.222Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldAlterationsTreat.cpp[522]:orionldAlterationsTreat | msg=o 2/4 Subscription 'urn:ng
si-ld:subscription:1c76ca76-9e75-11ee-b7a4-faa63988783c'                                                                                                                                                                 
time=Wednesday 20 Dec 12:32:48 2023.222Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldAlterationsTreat.cpp[522]:orionldAlterationsTreat | msg=o 3/4 Subscription 'urn:ng
si-ld:subscription:78353a2a-9e4b-11ee-9f66-06ece17749ed'                                                                                                                                                                 
time=Wednesday 20 Dec 12:32:48 2023.222Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldAlterationsTreat.cpp[522]:orionldAlterationsTreat | msg=o 4/4 Subscription 'urn:ng
si-ld:subscription:0aee4ade-9e4a-11ee-a16b-06ece17749ed'                                                                                                                                                                 
time=Wednesday 20 Dec 12:32:48 2023.222Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=notificationSend.cpp[646]:notificationSend | msg=AlterationMatch 0x7f4564019933          
time=Wednesday 20 Dec 12:32:48 2023.222Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=notificationSend.cpp[647]:notificationSend | msg=  Subscription     urn:ngsi-ld:subscript
ion:7a4863ae-9f32-11ee-a373-1aca18d25f2d                                                                                                                                                                                 
time=Wednesday 20 Dec 12:32:48 2023.223Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=notificationSend.cpp[648]:notificationSend | msg=  Entity:          urn:ngsi-ld:Vehicle:A
IS:211891460                                                                                                                                                                                                             
time=Wednesday 20 Dec 12:32:48 2023.223Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=notificationSend.cpp[649]:notificationSend | msg=  inEntityP:       0x7f4590ff3ecc       
time=Wednesday 20 Dec 12:32:48 2023.223Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=notificationSend.cpp[650]:notificationSend | msg=  finalApiEntityP: 0x7f4564019173       
time=Wednesday 20 Dec 12:32:48 2023.223Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=notificationSend.cpp[651]:notificationSend | msg=- - - - - -                             
Stream closed EOF for fiware/orion-ld-deployment-646d56475-78clc (orion-ld)

I can crash the Orion when I trigger the subscription and it comes back immediately.

@FR-ADDIX FR-ADDIX changed the title The orion-ld suddenly dies without an error message The orion-ld suddenly dies without an error message (https destination in the subscription) Dec 20, 2023
@kzangeli
Copy link
Collaborator

ok, perfect, I'll try that.
My test was without tenant and auth.
I'll use your data 100% as is.

@kzangeli
Copy link
Collaborator

So, tried that too. Still no crash. All good :(
New functest uploaded to the "PR": ngsild_issue_1495-II.test

Please have a look and let me know if I should change anything in the functest.
I believe it's a 100% copy of the issue comment.

@FR-ADDIX
Copy link
Author

OK, what does your test environment look like?
Is it a Docker with Orion-LD and MongoDB?
Which version of MongoDB?
-mongocOnly ?

In the cluster, the Orion-LD dies reproducibly with an https target

I am ready to set up a Docker to test this.

@kzangeli
Copy link
Collaborator

I run the broker natively, on Ubuntu 22.04, and mongo 4.4 in a docker container.
And yes, with -mongocOnly.

It would be great for me to be able to reproduce this.
Once I can reproduce it, I can easily fix it.

Only, it seems like there are two different issues ...

@ibordach
Copy link

Does your mongodb has a password for orion access?

Currently we have two setups (-mongocOnly):

  1. orion 1.4.0 with mongodb 3.6 (without password) : no crash
  2. orion >=1.4.0 with mongodb 6 or mongodb 7 (with password): crash

We are investigating deeper in the differences between these setups

@kzangeli
Copy link
Collaborator

No password. I'm just testing stuff locally ...
I can run this functest with mongo 6 and 7.
And then of course, add a password, see if that's what's causing the crash

@kzangeli
Copy link
Collaborator

All OK against mongo v6.0 and v7.0.
Now I need to figure out how to run mongo with a password ...

@FR-ADDIX
Copy link
Author

Okay, Doker local with the following docker-compose still works cleanly.

So either password or ReplikaSet

version: "3.5"
services:
  orion:
    image: fiware/orion-ld
    hostname: orion
    container_name: fiware-orion
    expose:
      - "1026"
    ports:
      - "1026:1026"
    depends_on:
      - mongo-db
    command: -dbhost mongo-db -mongocOnly -logLevel DEBUG -reqMutexPolicy none

  mongo-db:
    image: mongo:7.0.4
    hostname: mongo-db
    container_name: db-mongo
    ports:
      - "27017:27017"
    networks:
      - default
    volumes:
      - mongo-db:/data

volumes:
  mongo-db: ~

Merry Christmas, see you next week

@kzangeli
Copy link
Collaborator

ok, I'm about to give up for today as well. Too much to be done for Christmas ...
I'll be back the 27th.

Merry Christmas!!!

kzangeli added a commit that referenced this issue Dec 28, 2023
@ibordach
Copy link

ibordach commented Jan 9, 2024

When triggering a http subscription, we can see a connection on the network interface:

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ens192, link-type EN10MB (Ethernet), capture size 262144 bytes

17:20:01.203357 IP 172.18.20.13.35179 > 62-80-162-69.static.reverse.lstn.net.http: Flags [S], seq 3142790502, win 64800, options [mss 1440,sackOK,TS val 1472673409 ecr 0,nop,wscale 7], length 0
17:20:01.331481 IP 172.18.20.13.35179 > 62-80-162-69.static.reverse.lstn.net.http: Flags [.], ack 690121074, win 64800, length 0
17:20:01.331530 IP 172.18.20.13.35179 > 62-80-162-69.static.reverse.lstn.net.http: Flags [P.], seq 0:2576, ack 1, win 64800, length 2576: HTTP: POST /post?subscriptionId=urn:ngsi-ld:subscription:d948fbec-af0a-11ee-809c-b2a1d33265dc HTTP/1.1
17:20:01.464659 IP 172.18.20.13.35179 > 62-80-162-69.static.reverse.lstn.net.http: Flags [.], ack 366, win 64435, length 0
17:20:01.486459 IP 172.18.20.13.35179 > 62-80-162-69.static.reverse.lstn.net.http: Flags [F.], seq 2576, ack 367, win 64434, length 0

When triggering the same subscription with https, nothing arrives on the network interface. So the crash of the orion will be before sending the notification.

  • orion 1.4.0

@ibordach
Copy link

ibordach commented Jan 9, 2024

We can reproduce the crash. :-) The problem ist the bearer token. How to reproduce:

fresh setup

docker-compose.yaml:

version: "3.5"
services:
  orion:
    image: fiware/orion-ld
    hostname: orion
    container_name: fiware-orion
    expose:
      - "1026"
    ports:
      - "1026:1026"
    depends_on:
      - mongo-db
    command: -dbhost mongo-db -mongocOnly -logLevel DEBUG -reqMutexPolicy none 
  mongo-db:
    image: mongo:7.0.4
    hostname: mongo-db
    container_name: db-mongo
    ports:
      - "27017:27017"
    networks:
      - default
    volumes:
      - mongo-db:/data

volumes:
  mongo-db: ~

starting the services:
# docker compose up -d

inserting subscription:

curl --location 'localhost:1026/ngsi-ld/v1/subscriptions/' \
--header 'NGSILD-Tenant: captn' \
--header 'Content-Type: application/json' \
--data '{
	"description": "Test Vehicle AIS",
	"type": "Subscription",
	"name": "Kill den ORION-LD",
	"entities": [{
        "type": "Vehicle"
	}],
	"watchedAttributes": [
		"dateObserved"
	],
	"isActive": true,
	"notification": {
		"format": "keyValues",
		"endpoint": {
			"uri": "https://httpbin.org/post",
			"accept": "application/json"
		}
	}
}'

checking subscription:

curl --location 'localhost:1026/ngsi-ld/v1/subscriptions?limit=100&options=count' \
--header 'NGSILD-Tenant: captn'

trigger without crash:

curl --location 'localhost:1026/ngsi-ld/v1/entityOperations/upsert?options=update' \
--header 'NGSILD-Tenant: captn' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "id": "urn:ngsi-ld:Vehicle:TIER:1a8e47ff-230a-4f56-ab38-8d67d2ec8908",
        "type": "Vehicle",
        "dateObserved": {
            "type": "Property",
            "value": {
                "@type": "DateTime",
                "@value": "2024-01-09T12:38:36.000Z"
            }
        }
    }
]'

trigger with crash:

curl --location 'localhost:1026/ngsi-ld/v1/entityOperations/upsert?options=update' \
--header 'NGSILD-Tenant: captn' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPbWpOY21GRmgwTjV6Wlg1eHg5Zk9mbE0xNFljTmY3WFlieG02OTJtczhBIn0.eyJleHAiOjE3MDQ5MzQxODcsImlhdCI6MTcwNDc5MDE4NywianRpIjoiM2E1MzM5YWUtYTI0NC00ZjBkLTliOTctNDMzZjc3YTE3YjNjIiwiaXNzIjoiaHR0cHM6Ly9hY2NvdW50cy5zdGFnLmtpZWxyZWdpb24uYWRkaXguaW8vcmVhbG1zL2luZm9wb3J0YWwiLCJhdWQiOlsiZ3JhZmFuYSIsIm5vZGVyZWQiLCJhY2NvdW50Il0sInN1YiI6IjRjNWE5ZGI2LTg1N2EtNDQxMy04MzEwLTdmYjIzMzQzNTAyNiIsInR5cCI6IkJlYXJlciIsImF6cCI6Im9yaW9uIiwic2Vzc2lvbl9zdGF0ZSI6IjgzOTBiNDYyLTFhOTUtNDA1YS04YzQwLTljZGJiN2IyNjQxZSIsImFjciI6IjEiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZGVmYXVsdC1yb2xlcy1pbmZvcG9ydGFsIiwib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7Im9yaW9uIjp7InJvbGVzIjpbImRhdGEtcHJvdmlkZXIiLCJkYXRhLWNvbnN1bWVyIl19LCJncmFmYW5hIjp7InJvbGVzIjpbImdyYWZhbmFhZG1pbiJdfSwibm9kZXJlZCI6eyJyb2xlcyI6WyJub2RlcmVkLXZpZXdlciIsIm5vZGVyZWQtYWRtaW4iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoiZ3JvdXBzIHJvbGVzIHByb2ZpbGUgZW1haWwiLCJzaWQiOiI4MzkwYjQ2Mi0xYTk1LTQwNWEtOGM0MC05Y2RiYjdiMjY0MWUiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwibmFtZSI6IkZyYW5rIFJhZHppbyIsImdyb3VwcyI6WyJHcmFmYW5hIEFkbWlucyIsIk5vZGUtUkVEIEFkbWluIEdyb3VwIiwiTm9kZS1SRUQgVmlld2VyIEdyb3VwIl0sInByZWZlcnJlZF91c2VybmFtZSI6ImZyMkBhZGRpeC5uZXQiLCJnaXZlbl9uYW1lIjoiRnJhbmsiLCJmYW1pbHlfbmFtZSI6YWlsIjoiZnIyQGFkZGl4Lm5ldCJ9.KqHZuhJ3VhurxjM15Eg3C4hW1s0CEOsiI8HRJjnE2KVXVFQwBGuXF5S4e79s3KZwVWY9iRcy9N7Ggd2LKOfUWqso--uuVIIcmuZdQ96W5NqKLq-8CHTggnpiZvu9ABRdYDJulZQOMpcQ72sD8IRfQd_GqxBlZdCpQNMl65Cg4M1F-axt6OazxoBZsGHOpzFu73mP4aGzOQMdFOfDSap7DZr2RCQDqtyfx_rN3Hxu28N1fFKTI_-qa9jDMzBbPdYi0i1BRAoBh9min-CvliJ2bVvwBEnIQtxdoYLUuh5F6Ih53r3m3JU7FjtMb_oMgZ9o5u6fvOIPKX4uSAgikfx0VQ' \
--data-raw '[
    {
        "id": "urn:ngsi-ld:Vehicle:TIER:1a8e47ff-230a-4f56-ab38-8d67d2ec8908",
        "type": "Vehicle",
        "dateObserved": {
            "type": "Property",
            "value": {
                "@type": "DateTime",
                "@value": "2024-01-09T12:38:36.000Z"
            }
        }
    }
]'

@ibordach
Copy link

ibordach commented Jan 9, 2024

It is the length of the token.

@kzangeli
Copy link
Collaborator

kzangeli commented Jan 9, 2024

ok!
I fixed that. Manifested in just a "token is cut at 512 chars". No crash.
That was ... last Friday :)
Only, I'm having some problems with github actions and the PR hasn't been merged yet.
This is the PR: #1526

I'll merge it as soon as I can ...

@kzangeli
Copy link
Collaborator

Github Actions problem solved and the PR is merged.
Here's the tag in dockerhub: 1.6.0-PRE-1559.
Please test and let me know.
With some luck it's gone

@kzangeli
Copy link
Collaborator

Actually no, that fix isn't gonna fix this one.
"That fix" is about the same Authorization header, but, for forwarded requests.
And, the problem was that the header was cut at 512 bytes. No crash.

You are having a related problem, but, for notifications and you see a crash.
Not the same thing.

Should be an easy fix though. I'll try to fix it right now

@kzangeli
Copy link
Collaborator

Found and fixed the STUPID bug.
Test suite running, PR today if we're lucky.
If not, tomorrow morning

kzangeli added a commit that referenced this issue Jan 11, 2024
kzangeli added a commit that referenced this issue Jan 11, 2024
@kzangeli
Copy link
Collaborator

PR merged

@ibordach
Copy link

1.6.0-PRE-1561 works fine. :-) THX => fixed

@kzangeli
Copy link
Collaborator

ok! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants