ngsdn-tutorial
ngsdn-tutorial copied to clipboard
Problem running the onos-cli in Excercise 3
After restarting mininet and onos at the beginning of the exercise, when I want to make onos-cli, I get the following error:

PS: I have waited very long and there were no more changes in the onos log. Also, the error is different than what was expected about the command in the instructions, although the error 255 is raised.
Do you have any idea about the problem?
Have you tried "make restart", and you got no errors? It seems that the CLI cannot be started.
If "make restart" does not work, try to manually removing the docker containers, then, deploy again the exercise.
There are also "make clean" and "make reset" in case those could help, but ont sure.
Cheers,
Thank you very much, Eder.
I tried all of the things you said. However, I got the same error on my Ubuntu 22.04 (I used make deps, etc., as the tutorial suggested). This is my 'make onos-log' output when I entered 'make onos-cli' and got the same error again:

I think it's something to do with my ssh key or something. I generated an ssh-rsa key, but it didn't help either.
PS: I just downloaded the pre-built VM (Ubuntu 16.04) and tried to run onos-cli. It works there, but I wanted it to run on Ubuntu 22.04.
Hi @sinaebrahimi , I got the same problem too. Is there any advice until now?
Hi @phunghaduong99 ,
I could not do it on Ubuntu 22.04 and tried it on the pre-built VM (Ubuntu 16.04). Sorry I can't help more!
Don't know if @sinaebrahimi @phunghaduong99 solved the problem or if someone else needed a solution. I encountered a similar problem. based on my observations is that key-exchange algorithm issue, but what I did was add the option of ssh- rsa option in the _onos-cli target in the ssh command. it solved my problem
-o "HostKeyAlgorithms=+ssh-rsa"
Don't know if @sinaebrahimi @phunghaduong99 solved the problem or if someone else needed a solution. I encountered a similar problem. based on my observations is that key-exchange algorithm issue, but what I did was add the option of ssh- rsa option in the _onos-cli target in the ssh command. it solved my problem
-o "HostKeyAlgorithms=+ssh-rsa"
Sorry, @URIB4u. I did not try that. I just used the pre-built VM.