Open hosseinebr opened 7 years ago
Also, once the error message "unable to establish SSH2 connection" appear, "Update stats" command will not work on both WHMCS admin and clientarea. (Scaleway key is added and server creation/terminate commands are working fine).
Thanks again.
1. I just updated the the module. Now it have all packages provided by Scaleway and better error handling. Download latest version!
2. Putty SSH key looks good. It should work. When you try to update stats, first it check if the root password was set or not. If root password was not set, module attempt to set password using provided putty key. To avoid this, uncheck from Client >> Product >> "Root password updated". Once this is checked, module won't verify every time if root password is not set.
Have you tested that key? Can you connect via putty to server using that key? Have you set public key to scaleway account? Usually, if you used PuTTYgen, you should have two files on your PC:
To make sure you use the right keys, login to server you just created and check if public key is or not on server. To do this, login to your server as as normally (as root) and run this: cat /root/.ssh/authorized_keys Can you find the content of first ^ file? If not, then you use wrong key. Post exact error you get after you get new version of module!
For more details. This is the library used for ssh: https://github.com/pear/Net_SSH2/blob/master/Net/SSH2.php
Hi Caffedrine, Thanks so much for your time and detailed explanation. I just updated the module and there seems to be an issue with it, every time I run "create" command, it returns: "Failed to create server! Scaleway API - Error 400: bad request. Maybe there is missing a required parameter?" by downgrading the module to previous version, the error disappeared. which means all API settings, token key on Scaleway and WHMCS are configured correctly. the new module is able to retrieve image lists from scaleway (so there is no issue with API connection). All the fields and settings are configured correctly as it was working fine with the previous version of the module.
Can you have a look please?
Regards.
Got it! There were some issues when parsing commercial types! It now should work like a charm! Please let me know if it works now! Also check Utilities >> Logs >> Module Logs in case of failure!
Thanks mate it fixed the issue. however, the issue with setting root password is still there :( I've configured the module and it creates the server successfully, also the SSH key is added to Scaleway and the same key in PKK format added to product config on WHMCS. Even I can login to the server manually via my SSH key, and I see the key is added to /root/.ssh/authorized_keys . Here is the error log I receive when the module is trying to set the password:
Thanks again.
I just tested it today and worked for me. I will look closer at this and will come back with an answer.
Hi Caffedrine, Thanks so much for the module. I've got two issues here: 1- Scaleway has a few new plans for their Virtual Cloud server line (not baremetal servers): https://www.scaleway.com/pricing/ 2- I've been trying to setup the module to set a new password after server creation but I always get "unable to establish connection" error, I followed your instruction and added SSH key to ScaleWay account and a Putty format key on WHMCS product config, but the module is still unable to connect via SSH2!, here is the key I added to product config tab:
PuTTY-User-Key-File-2: ssh-rsa Encryption: none Comment: ScaleWay Public-Lines: 6 AAAAB3NzaC1yc2EAAAABJQAAAQEA+c3QSpYqlhCgvekigpmRr5S06azJcAdkwdPN bIkkAoI2VBSGr3/6VU7JkiQ8EDSK2UsdnQpXnzXl080FMy4yW+bLu86WCqf0uMp7 rww7uQDiITsmnNDj1EfZ848xHjf/Q2qnRnkBNdaNx3zTBinf82kVCnegyZmI8h6K iSbiHFh8VcLvPDvYkMxQIHiVNT0hz3BgHYH6gBU8QKIGcdt3zqrRIQWVy/vqIzhG A6ypX+bTxA8JGGVjZe7yXM1B3B23y7IDr2AmhVwNPNlaRfEOChHc2Yt641YmQWy0 i8QN6o5RQ5qc/0SNUGVRksweaQJ+J6In/yGnd57b/zCAfMgrBQ== Private-Lines: 14 AAABAQDYC/JqBVVDhACkP0Bw84Tq4Xne2qBg48zDT2WOTRg5hV9rUAXIN1ULgmkk cl11zJPC2S5eTiJEgaQszP2UDEc6ucT1dGYXDcy7frAosKJa0FTeeFi++dnMWdFB WT88us7uMrovHIts1TxZgLaB3wbgWuHD3RVwFhWTIVU4WProE3fQkqI+Fmv4tgMv I1KXE/Nzf99gzAGKnH2+pe62yEy2zzkbJbUkXIvBZoa+tuODLPshD76NjO+X8APV prQEwfavywmTJAy5Wk+6QDKIjLuGCZJNfWamD8Exu/1YRtvVXWZJ69dd1geaHa/I lzOOtgId+Li9Y2644TO3p6IBw9ctAAAAgQD/zCsfKCtMEmGEgX6nnb36A955cWGh HvRe5JcbbGEo4ZJUEPIDL1Q91aEagL/EY+CLempxDrwJGsyTxHkz7VOXIP0lmJW3 Jah/blrh9AS9RFVNMlXDPzY6h8ZG5DIu1g2mVAlXO2vDQrct0WcpKrZYrOmojYVl 3OX5MY4PLBpIywAAAIEA+gBuRHxGn6bYV/B5FhjQFk4GDGQ0d5jb6/ebDwIitjm4 4wiv+SqcqrX4n7ZpbexaRetqY7X+ZUN02ilLTclJ229yGwSowKljIZ8kPeQJl/LB fn2cuPQdtFglELl/8OXMrKoYlL9ZUUN70IF2IaFJswgQ6dahSZT0fwFInf6jcW8A AACAdfkuAnq262hv3Auj7nPSpwYNsYOtHpTh8mRkgFj51pXjxKioHB8Bf7aj1oVB WjADj5C+uNgTNLRqpm5I94Zoo5xwlV+VxOmIAEEsWkQ3mqlOPH+mUGnAtlTrrCCB l2t9CAkdjWLlXx0DopBlKKhR5WnbBNBZGk/rGO89cxbJ5+A= Private-MAC: 21d19a7b6a978c421b05c8156a03b0cf168dbfbe
Server creation/terminate and other stuff is working fine.
Regards, Hossein