-
Notifications
You must be signed in to change notification settings - Fork 156
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
Initial Registration failed [PLMN_NOT_ALLOWED] #295
Comments
I would recommend to do docker compose -f sa-deploy.yaml down and stop all remaining containers and then deploy again. It looks like you are running multiple containers of ueransim gnb |
Hi, I used following commands. when I checked the docker ps, it is showing me two containers. one for UE and one for GNB. I also tried running the command in single container but getting the same error. I checked the /open5gs/install/etc/open5gs/amf.yml file in amf container. the mcc and mcc are correct. sbi: global: amf: |
You are getting the following log because you are running multiple instances of the same services and ports are not free. So I would advice not to run in detach mode (-d) rather in multiple terminal tab/windows but before that ensure no services are running by bringing down all containers
|
Hi, I did some changes in the sa-deploy.yaml file and rearranged the ports. I think it kind of worked. but I am not sure. ##################### for gnb I am getting following logs. I think the issue is solved right? |
Your issue is still the same Cant access this file. Unless its absolutely necessary it is not required to modify sa-deploy.yaml other than what is mentioned in README |
This is the file. So in this case I just changed the ports of containers which are exposed to port 7777. I will run a single container in two different terminal and check again. |
May I know why you are publishing the ports and also changing the ports? This is usually not required |
This is one of the suggestion I got from online. Also I have made some changes in the .env file because there were some subnet overlapping. What I should do? |
I would suggest to not to do any chance other than what is mentioned in README. |
Hi, I made some progress. Right now I am getting the authentication error. I have also rebuild each containers, and followed each step without changing anything. |
If you are getting authentication error I would look at whether you provisioned the Ki, OP/Opc value correctly in open5gs WebUI or not. NOTE: Choose correctly whether you are using OP/OPc in open5gs WebUI as they are two different things |
Hello,
I am deploying standalone 5g network which is running ueransim. I have configured nr-ue.yaml and nr-gnb.yaml and used ./nr-gnb and ./nr-ue to apply that configuration files. There is not issue with gnb but I am facing issue with ue.
root@2c971847f054:/UERANSIM/build# ./nr-gnb -c open5gs-gnb.yaml
UERANSIM v3.2.6
[2024-03-31 14:56:32.404] [rls-udp] [error] RLS failure [Socket bind failed: Address already in use]
[2024-03-31 14:56:32.404] [sctp] [info] Trying to establish SCTP connection... (172.30.0.10:38412)
[2024-03-31 14:56:32.404] [gtp] [error] GTP/UDP task could not be created. Socket bind failed: Address already in use
[2024-03-31 14:56:32.412] [sctp] [info] SCTP connection established (172.30.0.10:38412)
[2024-03-31 14:56:32.412] [sctp] [debug] SCTP association setup ascId[43423]
[2024-03-31 14:56:32.412] [ngap] [debug] Sending NG Setup Request
[2024-03-31 14:56:32.413] [ngap] [debug] NG Setup Response received
[2024-03-31 14:56:32.413] [ngap] [info] NG Setup procedure is successful
[2024-03-31 14:59:23.702] [rrc] [debug] UE[1] new signal detected
[2024-03-31 14:59:23.703] [rrc] [info] RRC Setup for UE[1]
[2024-03-31 14:59:23.704] [ngap] [debug] Initial NAS message received from UE[1]
[2024-03-31 14:59:23.709] [ngap] [debug] UE Context Release Command received
[2024-03-31 14:59:23.709] [rrc] [info] Releasing RRC connection for UE[1]
[2024-03-31 14:59:24.710] [rrc] [debug] UE[2] new signal detected
[2024-03-31 14:59:26.313] [rls] [debug] UE[1] signal lost
################################################
root@fb009dd0602a:/UERANSIM/build# ./nr-ue -c open5gs-ue.yml
UERANSIM v3.2.6
[2024-03-31 14:59:23.701] [nas] [info] UE switches to state [MM-DEREGISTERED/PLMN-SEARCH]
[2024-03-31 14:59:23.702] [rrc] [debug] New signal detected for cell[1], total [1] cells in coverage
[2024-03-31 14:59:23.702] [nas] [info] Selected plmn[001/01]
[2024-03-31 14:59:23.702] [rrc] [info] Selected cell plmn[001/01] tac[1] category[SUITABLE]
[2024-03-31 14:59:23.702] [nas] [info] UE switches to state [MM-DEREGISTERED/PS]
[2024-03-31 14:59:23.703] [nas] [info] UE switches to state [MM-DEREGISTERED/NORMAL-SERVICE]
[2024-03-31 14:59:23.703] [nas] [debug] Initial registration required due to [MM-DEREG-NORMAL-SERVICE]
[2024-03-31 14:59:23.703] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig]
[2024-03-31 14:59:23.703] [nas] [debug] Sending Initial Registration
[2024-03-31 14:59:23.703] [nas] [info] UE switches to state [MM-REGISTER-INITIATED]
[2024-03-31 14:59:23.703] [rrc] [debug] Sending RRC Setup Request
[2024-03-31 14:59:23.703] [rrc] [info] RRC connection established
[2024-03-31 14:59:23.704] [rrc] [info] UE switches to state [RRC-CONNECTED]
[2024-03-31 14:59:23.704] [nas] [info] UE switches to state [CM-CONNECTED]
[2024-03-31 14:59:23.709] [rrc] [debug] RRC Release received
[2024-03-31 14:59:23.709] [nas] [error] Initial Registration failed [PLMN_NOT_ALLOWED]
[2024-03-31 14:59:23.709] [nas] [info] UE switches to state [5U3-ROAMING-NOT-ALLOWED]
[2024-03-31 14:59:23.709] [nas] [info] Performing local release of NAS connection
[2024-03-31 14:59:23.709] [nas] [info] UE switches to state [MM-DEREGISTERED/PLMN-SEARCH]
[2024-03-31 14:59:23.709] [nas] [info] UE switches to state [CM-IDLE]
[2024-03-31 14:59:23.709] [rrc] [info] UE switches to state [RRC-IDLE]
[2024-03-31 14:59:29.206] [nas] [info] UE switches to state [MM-DEREGISTERED/NO-CELL-AVAILABLE]
can someone tell me what is wrong with my configuration?
open5gs-ue.txt
UERANSIM_working_open5gs-gnb.txt
The text was updated successfully, but these errors were encountered: