Coder Social home page Coder Social logo

2 Issues... about scaleway-whmcs HOT 6 OPEN

caffedrine avatar caffedrine commented on August 22, 2024
2 Issues...

from scaleway-whmcs.

Comments (6)

hosseinebr avatar hosseinebr commented on August 22, 2024

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.

from scaleway-whmcs.

caffedrine avatar caffedrine commented on August 22, 2024

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:

  1. A file with public key (no extension) - content this should be also on server
  2. A file with private key (.ppk) - the one you posted above - this should be kept secret

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

from scaleway-whmcs.

hosseinebr avatar hosseinebr commented on August 22, 2024

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.

from scaleway-whmcs.

caffedrine avatar caffedrine commented on August 22, 2024

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!

from scaleway-whmcs.

hosseinebr avatar hosseinebr commented on August 22, 2024

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

Thanks again.

from scaleway-whmcs.

caffedrine avatar caffedrine commented on August 22, 2024

I just tested it today and worked for me. I will look closer at this and will come back with an answer.

from scaleway-whmcs.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.