lightedge / lightedge-upfservice

The LightEdge MEC Platform: UPF Service
http://lightedge.github.io/
0 stars 3 forks source link

Some problem when install lightedge-upfservice #1

Open wangguixian1999 opened 3 years ago

wangguixian1999 commented 3 years ago

Hello, We are building the Lightedge system through K8S. When we used kubectl logs upf upf to check the logs of upf, we found that error ./modes/upf/env_replace.sh: 16: ./modes/upf/env_replace.sh: ./modes/upf/install_vgtp.sh no search file Because we found that _installvgtp.sh was at '/' not '/modes/upf/', we changed the 16th line of _envreplace.sh form ./modes/upf/install_vdtp.sh into ./install_vgtp.sh and may solved this problem.

And then another problem appeared when installvgtp.sh running. fatal: Authentication failed for 'https://:@github.com/rriggio/upflib/' The problem seemed to be caused by the url not working. So we changed the url in install_vgtp.sh from https://$1:$2@github.com/rriggio/upflib to https://github.com/lightedge/upflib. And then it can install upflib_.

But another problem appeared when try to install lightedge-upfservice by _install_vgtp.sh_. Can't exec "gzcat": No such file or directory at /usr/local/bin/click-elem2man line 1316. Can't exec "gzcat": No such file or directory at /usr/local/bin/click-elem2man line 1316. Can't exec "gzcat": No such file or directory at /usr/local/bin/click-elem2man line 1316. click-elem2man: warning: unknown category shorthand 'general' in UPFRouter click-elem2man: warning: unknown category shorthand 'devices' in UMLSwitch We can't find a way to solve this problem. Can you help us? Thanks.

M-Hamza007 commented 2 years ago

Hi @wangguixian1999 Hope you're doing good

gzcat is used to view the content of the compressed file using “gzip” command. The contents can be viewed without un-compressing the zipped files. Instead of gzcat you can use zcat, the purpose of both gzcat and zcat is somehow same.

So, to solve this issue navigate to your /usr/local/bin/ path, and run the following command:

sed -i 's/gzcat/zcat/g' click-elem2man

This command will replace gzcat with zcat in the click-elem2man script, run your code again. Hopefully, this will resolve your issue.