Closed pau-alef closed 3 months ago
Hi @pau-alef, I suspect it has something to do with the way that you added the subscriber.
This lines right here are telling you that there is some issue regarding the sqn:
udr | 06/17 08:40:38.271: [dbi] ERROR: mongoc_collection_update() failure: Cannot apply $inc to a value of non-numeric type. {_id: ObjectId('666fe78d0c20b6175ba26a13')} has the field 'sqn' of non-numeric type string (../lib/dbi/subscription.c:272)
udr | 06/17 08:40:38.271: [udr] FATAL: [imsi-001011234567891] Cannot increment SQN (../src/udr/nudr-handler.c:216)
udm | 06/17 08:40:38.272: [udm] ERROR: [suci-0-001-01-0000-0-0-1234567891] HTTP response error [500] (../src/udm/nudr-handler.c:282)
ausf | 06/17 08:40:38.273: [ausf] ERROR: [suci-0-001-01-0000-0-0-1234567891] HTTP response error [500] (../src/ausf/ue-sm.c:160)
amf | 06/17 08:40:38.274: [gmm] ERROR: [suci-0-001-01-0000-0-0-1234567891] HTTP response error [500] (../src/amf/gmm-sm.c:1826)
amf | 06/17 08:40:38.274: [amf] WARNING: [suci-0-001-01-0000-0-0-1234567891] Registration reject [9] (../src/amf/nas-path.c:205)
Checking my subscriber data with open5gs-dbctl
gives me the following output:
[
{
_id: ObjectId("663cbc9d2a35e770557cbb86"),
schema_version: 1,
imsi: '001011234567891',
msisdn: [],
imeisv: '1110000000000000',
mme_host: [],
mm_realm: [],
purge_flag: [],
slice: [
{
_id: ObjectId("663cbc9d2a35e770557cbb88"),
sst: 1,
sd: '000001',
default_indicator: true,
session: [
{
qos: { arp: [Object], index: 9 },
ambr: { downlink: [Object], uplink: [Object] },
_id: ObjectId("663cbc9d2a35e770557cbb87"),
name: 'internet',
type: 3,
pcc_rule: []
}
]
},
{
_id: ObjectId("6643769567bfb10012bb88a9"),
sst: 1,
sd: '000002',
session: [
{
qos: { arp: [Object], index: 5 },
ambr: { downlink: [Object], uplink: [Object] },
_id: ObjectId("6643769567bfb10012bb88aa"),
name: 'internet',
type: 3,
pcc_rule: []
}
]
}
],
security: {
k: '00000000000000000000000000000000',
op: null,
opc: '00000000000000000000000000000000',
amf: '8000',
sqn: Long("1505")
},
ambr: {
downlink: { value: 1000000000, unit: 0 },
uplink: { value: 1000000000, unit: 0 }
},
access_restriction_data: 32,
network_access_mode: 0,
subscribed_rau_tau_timer: 12,
__v: 0,
operator_determined_barring: 0,
subscriber_status: 0
}
]
I can see that the field sqn: Long("1505")
is missing in your schema. I don't know if you are running an outdated version of the open5gs-dbctl
script utility or if that is my case.
I suggest you to remove all the data from the database with:
# substitute {imsi} with your data
./open5gs-dbctl remove {imsi}
Then, download the latest version of the script from the Open5GS repository and add the subscribers again. Then repeat the test to see the output.
And a small tip: You can use the open5gs-dbctl
command without specifying the --db_uri=mongodb://localhost:27017, it uses localhost and port 27017 as default
Closing due to inactivity. I hope the problem was fixed and if not, please open a new issue.
I was trying your project with packetrusher. I'm able to build and run without major issues:
After adding the subscribed into the DB,
and restarting packetrusher, this is what I get:
Thanks for your time on this