YannickB / odoo-hosting

Other
64 stars 50 forks source link

New server added, but registry impossible to create #68

Closed pasgou closed 8 years ago

pasgou commented 8 years ago

This is the message i obtain when trying to create a registry container on a new server (my first one) : "Connect error!

We were not able to connect to your server. Please make sure you add the public key in the authorized_keys file of your root user on your server. If you were trying to connect to a container, a click on the 'reset key' button on the container record may resolve the problem. Target : 149.202.38.100 Error : [Errno 111] Connection refused"

What public key is it asking for? the one in the server object in clouder OR the one of the server with clouder on it? In the second case, which public key must to be use (which user's key)?

I have an other question : where can we find the complete requirements to use clouder on the clouder server and on the managed server.

ErrafayM commented 8 years ago

It is asking if you added your SSH key in your root/.ssh/authorized_keys in the target 149.202.38.100 which will host your Docker images & containers, have you done this step?

Follow the documentation

https://doc.goclouder.net/en/latest/

pasgou commented 8 years ago

Thanks Yes I did it. I follow this guide.

The key is the one that appear when creating the server object in clouder, isn't it ?

ErrafayM commented 8 years ago

Yes; the SSH Public KEY

pasgou commented 8 years ago

Yes. What I did exactly :

On the second VPS, my own ssh pub key to connect with my term AND the pub key which appear on the clouder page. After that, "enregistrer" the server. It creates all the folders and files on the clouder server, the key is in the file where it has to be. To test, "test connection" does not respond anything (the code does not say it has to do something if it's well done). I tried without having send the key, and an alert appear, which give me the confirmation that connection is made between servers (what I had tried with ssh in the console). But, when i try to create the registry container, as in the getting started guide, it returns me the given alert.

Did I miss something?

ErrafayM commented 8 years ago

Can you tell me if you're using debian or Ubuntu? because i had similar problem with Debian, and had to manually install sudo in my server. see #67 If your problem has nothing to do with sudo, check your odoo logs.

pasgou commented 8 years ago

I use UBUNTU When I test the connection : "2015-12-08 19:09:09,685 8224 INFO clouder openerp.addons.clouder.clouder_model: connect: ssh vpsxxxxxxxx.net 2015-12-08 19:09:11,335 8224 INFO ? paramiko.transport: Connected (version 2.0, client OpenSSH_6.6.1p1) 2015-12-08 19:09:11,445 8224 INFO ? paramiko.transport: Authentication (publickey) successful!"

After that, errors seem to come from an image of my service ...

Voir mon blog joint à ce mail. log_odoo.txt

I continue to search this way but it seems not to be the same bug as the "sudo" one in your report.

pasgou commented 8 years ago

What i found :

I suppose that my VM, on which I couldn't install linux-image-extra, isn't compatible at all with Docker. Did you have a similar experience?

ErrafayM commented 8 years ago

No , i have installed docker on a VPS by OVH too , works great.

pasgou commented 8 years ago

Question : Which version of VPS do you use? 2014 or 2016? cloud or classic?

pasgou commented 8 years ago

I found this and this It seems to me that OVH is the problem.

Tested right now : I have install a new VPS Cloud 2016, this time with Debian 8. And, Docker Hello-World works.

But, after having to upgrade paramiko, there is a trouble with the public key (added in the good file on he new server) and "ot a valid EC private key file".

ErrafayM commented 8 years ago

Have you fixed this issue?

AyoubZahid commented 8 years ago

There is a problem with docker in OVH Server, ( a dns problem). when you try to build the registry, docker try to pull the registry from docker site, and it can't resolve the dns and it gives a dns error, clouder doesn't tell you about that unless you check the odoo-sever log.

i did this and it worked.

Rebuild the registry img after that.

pasgou commented 8 years ago

With a VPS 2016, docker works well, and I can see the clouder's action with "docker events" on the remote server.

Is it normal that the creation of www-registry take a long (very long) time?

I have a problem with the configuration of Apache on my Clouder server. How do you configure Apache (or NGINX) to work with odoo v8? I configured Apache to work with OpenErp v6.1 a long time ago, but it doesn't work with odoo 8.

Find my little contrib :