TestRegistration Failed

OK.
I’ll send to you the file by mail later.

Thanks.

Dear,
Even i am also getting the same error. any help is appreciated.

Thanks
Vikash

This issue is similar to GitHub issue #67.

we are working on reproducing it at our environment. If i may ask, is there any environment setting at your host?

No. We all followed the instruction.

My environment:

Ubuntu 18.04
Memory: 4GB
Processors: 4
Hard Disk: 32GB

Do you need any information to check? Maybe we can help about that.

How about try replacing git.cs.nctu.edu.tw/calee/sctp to github.com/ishidawataru/sctp in free5GC.

Sorry. Still failed on test.sh. It can’t work.
Or maybe I can send you the vm image?

It might be less helpful sending us your vm image, because we cannot reproduce it on our own here.

My other point of concern is the bug might be cause by the hardware. Can you please cross check your hardware specification and see whether it might have been the leading caused.

Dear,
if your problem get resolved, please do update us. we are also waiting for the solution of the same problem. :smiley:
Thanks
vikash

Sure, we’re still working on it any new development we will update it on the forum. Thanks to @ouyang for supporting with his VM for our team to work on reproducing the error.

1 Like

Hi @ouyang,

We found out that you are not using the latest version of free5gc (v3.0.2).

You might try checking-out on v3.0.2 and test again, probably v3.0.2 default is using H2C in SBI. Finally try using this command mongo --eval "db.NfProfile.drop()" free5gc to flash the data in db

Hi @vikash,

what version are you currently using?

We found the root cause of the issue.

Based on our finding we observer that, after running TestNon3GPP, the test script will trigger a modification on ngaplpList. Although the script will auto recover the amf config file but when the test is terminated manually the ngaplpList will not be recovered. Therefore, if tried with other test for instance, (TestRegistration) the sctp will bind to an IP’s that are not existing which might result to failure.

To our conclusion, the issue might not be related to version difference. Please refer to the troubleshooting instructions below for more detail.

Refer to the trouble shooting:

Dear,
I am using the latest version i.e, v3.0.2 .

This will help us a lot. Thanks for all your support.

Thanks
vikash

Sorry, but I don’t have the file which named amfcfg.conf.bak.

How should I do?

You can try to use the original amf config file.

I also got the same error on 2022/3/14. Any help is appreciated~

Here is my error code
=== RUN TestRegistration
registration_test.go:50:
Error Trace: registration_test.go:50
Error: Expected nil, but got: 0x6f
Test: TestRegistration
— FAIL: TestRegistration (0.01s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xda72d7]

I also got the same error.
I’ve been following the YouTube videos, but haven’t made it past Video 10: Testing free5GC due to failing “./test.sh TestRegistration”.

Modification point:

configuration:
amfName: AMF # the name of this AMF
ngapIpList: # the IP list of N2 interfaces on this AMF
- 127.0.0.1 #127.0.0.18

completed~