|
|||||||||||
For most of open source product, I would know you should be very lucky to build and install the package at first trial. Same applied to free5GC (at least to me). Even though I think it went smoother than any other open source product, I failed to manage to work it out completely. Good news was that at least some critical components (e.g, free5GC and gtp) seems to be installed successfully, but mongodb and webconsole does not seems to be installed properly as of Jan 31 2022. Nevertheless, I decided to write some note about this before I forget what I have done. It will be very appreciated if there is anybody who can help me with some problems that I faces. You may email me or send me message via my linkedIn. ==> With the great help from Chlosta, Merlin, I got both mongodb and webconsole working now (Feb 23 2022).
Where to get it ?You can download the source code from github here. My Test SetupAccording to this document, it is said to be tested against ubuntu 18.04. Installation document says about Ubuntu Server 20.04 and I used Ubuntu Server 20.04.3 LTS which I could download from Ubuntu distribution site on Jan 29 2022. Image file name is ubuntu-20.04.3-live-server-amd64.iso. Following is the environment that I used in writing this note. If you use different Ubuntu distribution or different source code release you may get different result. Directory StructureThe directory structure that I have after I installed all the component described in Installation document. (I don't think mongodb is properly installed and there may be some other directory if it is installed properly) Installation ProcessI followed the procedure described in the Installation document available on Jan 29 2022. Since the document may get updated and you may see the different description at the time of your installation, I want to write down the procedure that I followed.
Golang Installation
Control Plane Supporting PackagesI tried the followings but mongodb installation was unsuccessful at the time of Jan 29 2022. I also tried with this document, but it didn't work either.
User Plane Supporting PackagesI tried this and no problem with this process.
Linux Host Network SettingsI tried this and no problem with this process.
Clone the free5GC repositoryI tried the followings but it didn't work at the second line. I modified it to [git clone --recursive https://github.com/free5gc/free5gc.git]
Compile network function services in free5gcI tried this and no problem with this process.
Retrieve the 5G GTP-U kernel module using git and build itI tried this and had problem with the first line and the last line. I modified the first line to make it work : [git clone https://github.com/free5gc/gtp5g.git ] on Jan 29 2022 Before the last like (after make), I manually copied gtp5g.ko to the required directory printed in the error message.
Troubleshoot - Mongodb InstallationAs mentioned above, my attempt to install mongodb was not successful and I tried to fix it myself with a lot of googling but none of those attempt worked. Finally an expert sent me an email offering help with this. The expert is Chlosta, Merlin and he guided me through step by step. Also he kindly allowed me to share the troubleshooting process here in my note.
Check any existing mongodb componentsMy previous attempt to install mongodb failed in the middle of the installation. so it is likely that there are some components already installed even if the full installation failed. First check which of the components are already installed with following command.
Remove the existing componentsThen remove all the mongodb related components using following commands. Without removing the existing components, most of the instructions / tips you can google may not work. It may come across another problem in the middle.
Step 1 : Find out all the remaining mongodb components by running $ find . -name mongo* Step 2 : Remove all the unwanted components
Download and Install mongodbRun each of the following line to download and install mongodb.
# su
Confirm that mongodb is runningIf everything went well, you would see mongodb running as shown below.
|
|||||||||||