Hello all,
I am presently trying to install free5gc,I got an error while performing at this step
OS:Ubuntu 18.04
C. Install User Plane Function (UPF)
Step 1 : uname -r
5.0.0-23-generic
Step 2: ~/go/src/free5gc $ git clone https://github.com/PrinzOwO/gtp5g.git
Step 3:~/go/src/free5gc/gtp5g $ make
make -C /usr/src/linux-headers-5.0.0-23-generic/ M=/home/crrao-aimscs/go/src/free5gc/gtp5g modules
make[1]: Entering directory ‘/usr/src/linux-headers-5.0.0-23-generic’
CC [M] /home/crrao-aimscs/go/src/free5gc/gtp5g/gtp5g.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/crrao-aimscs/go/src/free5gc/gtp5g/gtp5g.mod.o
LD [M] /home/crrao-aimscs/go/src/free5gc/gtp5g/gtp5g.ko
make[1]: Leaving directory ‘/usr/src/linux-headers-5.0.0-23-generic’
Step 4:~/go/src/free5gc/gtp5g $ sudo make install
modprobe udp_tunnel
insmod gtp5g.ko
insmod: ERROR: could not insert module gtp5g.ko: Operation not permitted
Makefile:15: recipe for target ‘install’ failed
make: *** [install] Error 1
Please Help
Mkishore1:
Operation not permitted
You can try sudo -l to check the sudo permission is use on your host.
Step 5: sudo -l
Matching Defaults entries for crrao-aimscs on crrao:
env_reset, mail_badpass,
secure_path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
User crrao-aimscs may run the following commands on crrao:
(ALL : ALL) ALL
This is the output after I ran this command
After this command sudo make install, What did you get using dmesg. ?
Some Long ouptut I got.
Since It is exceeding the limit if the post i am attaching the file.
Please HelpQuery.txt (56.2 KB)
It seems to be the result of:
Lockdown: insmod: Loading of unsigned module is restricted; see man kernel_lockdown.7
You can try the link below and keep us posted on your finding’s.
Thank a lot!! It got Resolved.
Query_v1.txt (56.6 KB)
After that I have run the command
~/go/src/free5gc$ ./run.sh
Output of the Above command in terminal is attached in the filefree5gc_run.txt (48.7 KB)
Please Help.
After Step 5 I tried to build the entire network using build and i got this error
step 6: ./run.sh
Cannot find device "upfgtp0"
INFO[2020-06-09T14:06:38+05:30] Set log level: info UPF=Util
ERRO[2020-06-09T14:06:38+05:30] /home/crrao-aimscs/go/src/free5gc/src/upf/lib/utlt/src/utlt_mq.c:29 MQCreate() Error creating message queue: Too many open files UPF=Util
ERRO[2020-06-09T14:06:38+05:30] /home/crrao-aimscs/go/src/free5gc/src/upf/src/upf_init.c:170 UpfInit() UPF - Event Queue error when UPF initializes UPF=Util
ERRO[2020-06-09T14:06:38+05:30] /home/crrao-aimscs/go/src/free5gc/src/upf/src/upf.c:28 main() UPF failed to initialize UPF=Util
ERRO[2020-06-09T14:06:38+05:30] /home/crrao-aimscs/go/src/free5gc/src/upf/src/up/up_path.c:233 BufferServerTerminate() epoll deregister error UPF=Util
ERRO[2020-06-09T14:06:38+05:30] /home/crrao-aimscs/go/src/free5gc/src/upf/src/upf_init.c:183 UpfTerm() UPF - Buffer Server error when UPF terminates UPF=Util
ERRO[2020-06-09T14:06:38+05:30] /home/crrao-aimscs/go/src/free5gc/src/upf/src/upf.c:36 main() UPF terminate error UPF=Util
nssf
INFO[2020-06-09T14:06:38+05:30]/src/nssf/nssf.go:37 main.main() NSSF version: 2020-03-31-01 NSSF=app
CommonConfig file: config/free5GC.conf
INFO[2020-06-09T14:06:38+05:30]/lib/nas/logger/logger.go:58 free5gc/lib/nas/logger.SetLogLevel() set log level : info NAS=message
INFO[2020-06-09T14:06:38+05:30]/lib/nas/logger/logger.go:63 free5gc/lib/nas/logger.SetReportCaller() set report call : true NAS=message
INFO[2020-06-09T14:06:38+05:30]/lib/fsm/logger/logger.go:56 free5gc/lib/fsm/logger.SetLogLevel() set log level : info fsm=fsm
smf
INFO[2020-06-09T14:06:38+05:30]/lib/fsm/logger/logger.go:61 free5gc/lib/fsm/logger.SetReportCaller() set report call : true fsm=fsm
INFO[2020-06-09T14:06:38+05:30]/lib/ngap/logger/logger.go:56 free5gc/lib/ngap/logger.SetLogLevel() set log level : info NGAP=NGAP
INFO[2020-06-09T14:06:38+05:30]/lib/ngap/logger/logger.go:61 free5gc/lib/ngap/logger.SetReportCaller() set report call : true NGAP=NGAP
INFO[2020-06-09T14:06:38+05:30]/src/smf/smf.go:35 main.main() SMF version: 2020-03-xx-xx SMF=app
CommonConfig file: config/free5GC.conf
INFO[2020-06-09T14:06:38+05:30]/lib/openapi/Namf_Communication/logger/logger.go:57 free5gc/lib/openapi/Namf_Communication/logger.SetLogLevel() set log level : info Namf=Comm
INFO[2020-06-09T14:06:38+05:30]/lib/openapi/Namf_Communication/logger/logger.go:62 free5gc/lib/openapi/Namf_Communication/logger.SetReportCaller() set report call : true Namf=Comm
INFO[2020-06-09T14:06:38+05:30]/lib/openapi/Namf_EventExposure/logger/logger.go:57 free5gc/lib/openapi/Namf_EventExposure/logger.SetLogLevel() set log level : info Namf=Event
INFO[2020-06-09T14:06:38+05:30]/lib/openapi/Namf_EventExposure/logger/logger.go:62 free5gc/lib/openapi/Namf_EventExposure/logger.SetReportCaller() set report call : true Namf=Event
INFO[2020-06-09T14:06:38+05:30]/lib/openapi/Nsmf_PDUSession/logger/logger.go:57 free5gc/lib/openapi/Nsmf_PDUSession/logger.SetLogLevel() set log level : info Nsmf=PDUSession
INFO[2020-06-09T14:06:38+05:30]/lib/openapi/Nsmf_PDUSession/logger/logger.go:62 free5gc/lib/openapi/Nsmf_PDUSession/logger.SetReportCaller() set report call : true Nsmf=PDUSession
INFO[2020-06-09T14:06:38+05:30]/lib/openapi/Nudr_DataRepository/logger/logger.go:57 free5gc/lib/openapi/Nudr_DataRepository/logger.SetLogLevel() set log level : info Nudr=datarepository
INFO[2020-06-09T14:06:38+05:30]/lib/openapi/Nudr_DataRepository/logger/logger.go:62 free5gc/lib/openapi/Nudr_DataRepository/logger.SetReportCaller() set report call : true Nudr=datarepository
INFO[2020-06-09T14:06:38+05:30]/lib/openapi/logger/logger.go:57 free5gc/lib/openapi/logger.SetLogLevel() set log level : info OpenApi=OpenApi
INFO[2020-06-09T14:06:38+05:30]/lib/nas/logger/logger.go:58 free5gc/lib/nas/logger.SetLogLevel() set log level : info NAS=message
INFO[2020-06-09T14:06:38+05:30]/lib/openapi/logger/logger.go:62 free5gc/lib/openapi/logger.SetReportCaller() set report call : true OpenApi=OpenApi
INFO[2020-06-09T14:06:38+05:30]/lib/nas/logger/logger.go:63 free5gc/lib/nas/logger.SetReportCaller() set report call : true NAS=message
INFO[2020-06-09T14:06:38+05:30] set log level : info aper=aper
INFO[2020-06-09T14:06:38+05:30] set report call : true aper=aper
INFO[2020-06-09T14:06:38+05:30]/lib/fsm/logger/logger.go:56 free5gc/lib/fsm/logger.SetLogLevel() set log level : info fsm=fsm
INFO[2020-06-09T14:06:38+05:30]/lib/CommonConsumerTestData/logger/logger.go:60 free5gc/lib/CommonConsumerTestData/logger.SetLogLevel() set log level : info CommonTest=comm
INFO[2020-06-09T14:06:38+05:30]/lib/fsm/logger/logger.go:61 free5gc/lib/fsm/logger.SetReportCaller() set report call : true fsm=fsm
INFO[2020-06-09T14:06:38+05:30]/lib/CommonConsumerTestData/logger/logger.go:65 free5gc/lib/CommonConsumerTestData/logger.SetReportCaller() set report call : true CommonTest=comm
INFO[2020-06-09T14:06:38+05:30]/lib/ngap/logger/logger.go:56 free5gc/lib/ngap/logger.SetLogLevel() set log level : info NGAP=NGAP
INFO[2020-06-09T14:06:38+05:30]/lib/ngap/logger/logger.go:61 free5gc/lib/ngap/logger.SetReportCaller() set report call : true NGAP=NGAP
Dear,
While trying to build the network components am getting an error as
~/go/src/free5gc$ sudo ./build.sh Start build amf....
./build.sh: line 7: go: command not found
Start build ausf....
./build.sh: line 7: go: command not found
Start build nrf....
./build.sh: line 7: go: command not found
Start build nssf....
./build.sh: line 7: go: command not found
Start build pcf....
./build.sh: line 7: go: command not found
Start build smf....
./build.sh: line 7: go: command not found
Start build udm....
./build.sh: line 7: go: command not found
Start build udr....
./build.sh: line 7: go: command not found
Start build n3iwf....
./build.sh: line 7: go: command not found
Start build UPF.... CMake Error: The source directory "/home/crrao-aimscs/go/src/free5gc/src/upf" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. make: *** No targets specified and no makefile found. Stop.
When I try to run the ./build.sh to build all the network components
~/go/src/free5gc$ ./build.sh
Start build amf....
WORK=/tmp/go-build427937608
Start build ausf....
WORK=/tmp/go-build241642048
Start build nrf....
WORK=/tmp/go-build305171803
Start build nssf....
WORK=/tmp/go-build370141379
Start build pcf....
WORK=/tmp/go-build541670596
Start build smf....
WORK=/tmp/go-build039288191
Start build udm....
WORK=/tmp/go-build252582690
Start build udr....
WORK=/tmp/go-build251603445
Start build n3iwf....
WORK=/tmp/go-build233167431
~/go/src/free5gc$ ./build.sh
Start build amf....
WORK=/tmp/go-build427937608
Start build ausf....
WORK=/tmp/go-build241642048
Start build nrf....
WORK=/tmp/go-build305171803
Start build nssf....
WORK=/tmp/go-build370141379
Start build pcf....
WORK=/tmp/go-build541670596
Start build smf....
WORK=/tmp/go-build039288191
Start build udm....
WORK=/tmp/go-build252582690
Start build udr....
WORK=/tmp/go-build251603445
Start build n3iwf....
WORK=/tmp/go-build233167431
Start build UPF....
CMake Error: The source directory "/home/crrao-aimscs/go/src/free5gc/src/upf" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found. Stop.
~/go/src/free5gc$ ./build.sh
Start build amf....
WORK=/tmp/go-build427937608
Start build ausf....
WORK=/tmp/go-build241642048
Start build nrf....
WORK=/tmp/go-build305171803
Start build nssf....
WORK=/tmp/go-build370141379
Start build pcf....
WORK=/tmp/go-build541670596
Start build smf....
WORK=/tmp/go-build039288191
Start build udm....
WORK=/tmp/go-build252582690
Start build udr....
WORK=/tmp/go-build251603445
Start build n3iwf....
WORK=/tmp/go-build233167431
Start build UPF....
CMake Error: The source directory "/home/crrao-aimscs/go/src/free5gc/src/upf" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found. Stop.
~/go/src/free5gc$ ./build.sh
Start build amf....
WORK=/tmp/go-build427937608
Start build ausf....
WORK=/tmp/go-build241642048
Start build nrf....
WORK=/tmp/go-build305171803
Start build nssf....
WORK=/tmp/go-build370141379
Start build pcf....
WORK=/tmp/go-build541670596
Start build smf....
WORK=/tmp/go-build039288191
Start build udm....
WORK=/tmp/go-build252582690
Start build udr....
WORK=/tmp/go-build251603445
Start build n3iwf....
WORK=/tmp/go-build233167431
Start build UPF....~/go/src/free5gc$ ./build.sh
Start build amf....
WORK=/tmp/go-build427937608
Start build ausf....
WORK=/tmp/go-build241642048
Start build nrf....
WORK=/tmp/go-build305171803
Start build nssf....
WORK=/tmp/go-build370141379
Start build pcf....
WORK=/tmp/go-build541670596
Start build smf....
WORK=/tmp/go-build039288191
Start build udm....
WORK=/tmp/go-build252582690
Start build udr....
WORK=/tmp/go-build251603445
Start build n3iwf....
WORK=/tmp/go-build233167431
Start build UPF....
CMake Error: The source directory "/home/crrao-aimscs/go/src/free5gc/src/upf" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found. Stop.
CMake Error: The source directory "/home/crrao-aimscs/go/src/free5gc/src/upf" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found. Stop.
Start build UPF....
CMake Error: The source directory "/home/crrao-aimscs/go/src/free5gc/src/upf" does not appear to contain CMakeLists.txt
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no make file found. Stop.
CMake Error: The source directory "/home/crrao-aimscs/go/src/free5gc/src/upf" does not appear to contain CMakeLists.txt
Dear @Mkishore1 ,
I will please refer you to check the README and wiki on our GitHub page, or try to google and find out your error issues first to save more time, because most of the questions from you are address before. With regards to the your last question, you can please follow the instructions below on our GitHub README
cd $GOPATH/src/free5gc
git checkout master
git submodule sync
git submodule update --init --jobs `nproc`
git submodule foreach git checkout master
git submodule foreach git pull --jobs `nproc`
We frequently deal with many questions on daily bases due to the scarce nature of our resources we mostly give response’s based on priority (i.e. quick response is offer to those who sign-up for our members). If you want to be part of our urgent priority list, you are mostly welcome to consider joining our membership .
Thank you!
Please check if manual installation of UPF is successful or not.
Open source 5G core network based on 3GPP R15