ngsdn-tutorial icon indicating copy to clipboard operation
ngsdn-tutorial copied to clipboard

Problem running the onos-cli in Excercise 3

Open sinaebrahimi opened this issue 3 years ago • 6 comments
trafficstars

After restarting mininet and onos at the beginning of the exercise, when I want to make onos-cli, I get the following error: image

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?

sinaebrahimi avatar Jun 18 '22 07:06 sinaebrahimi

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,

ederollora avatar Jun 18 '22 11:06 ederollora

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: image

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.

sinaebrahimi avatar Jun 19 '22 07:06 sinaebrahimi

Hi @sinaebrahimi , I got the same problem too. Is there any advice until now?

phunghaduong99 avatar Feb 01 '23 16:02 phunghaduong99

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!

sinaebrahimi avatar Feb 02 '23 10:02 sinaebrahimi

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"

URIB4u avatar May 21 '23 12:05 URIB4u

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.

sinaebrahimi avatar Jun 26 '23 14:06 sinaebrahimi