Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: DangerD2 on March 05, 2023, 07:49:16 PM

Title: Migration CWP -> CWP doesn't work...
Post by: DangerD2 on March 05, 2023, 07:49:16 PM
I'm receving error thap api key doesn't have something enabled (used CWP-CWP button to enable needed permissions) but that failed. so i decided to enable everything, but unfortunatelly that didn't worked also...
(https://i.ibb.co/YXyTp8y/image.png) (https://ibb.co/cwCXDtC)
(https://i.ibb.co/bBKq2M5/image.png) (https://ibb.co/YkLYyFB)
any ideas?

Migrating from cwp6.pro to cwp7
Title: Re: Migration CWP -> CWP doesn't work...
Post by: PakPos on March 06, 2023, 01:56:26 AM
https://i.vgy.me/c832kA.png (https://i.vgy.me/c832kA.png)

is this domain name or ip ?
Title: Re: Migration CWP -> CWP doesn't work...
Post by: overseer on March 06, 2023, 06:38:46 AM
For a successful CWP -> CWP Migration, you have to stand on your head, pat your belly, and rub your feet at the same time in order to make it work. But actually, I just had the opportunity to do a CWP -> CWP migration, so here was my solution to the various unhelpful errors (such as for API TOKEN):
Disable the firewall (CSF & LDF) on both servers.
On both servers, reset the r00t password to be 8 characters or fewer.
In
Code: [Select]
/etc/ssh/sshd_config set:
Code: [Select]
PermitRootLogin yes
StrictModes no
Restart sshd:
Code: [Select]
service sshd restartOn the source server, set up the API key (CWP Settings > API Manager) for CWP Migration using the default CWP template.
On the receiving server, use the interface in User Accounts > CWP->CWP Migration.
After successfully migrating the accounts, revert all changes to your SSH configuration, restart the ssh daemon, reset the r00t passphrases to strong ones, and re-enable the firewalls.
Title: Re: Migration CWP -> CWP doesn't work...
Post by: DangerD2 on March 06, 2023, 06:33:36 PM
https://i.vgy.me/c832kA.png (https://i.vgy.me/c832kA.png)

is this domain name or ip ?

domain
Title: Re: Migration CWP -> CWP doesn't work...
Post by: DangerD2 on March 06, 2023, 07:30:13 PM
For a successful CWP -> CWP Migration, you have to stand on your head, pat your belly, and rub your feet at the same time in order to make it work. But actually, I just had the opportunity to do a CWP -> CWP migration, so here was my solution to the various unhelpful errors (such as for API TOKEN):
Disable the firewall (CSF & LDF) on both servers.
On both servers, reset the r00t password to be 8 characters or fewer.
In
Code: [Select]
/etc/ssh/sshd_config set:
Code: [Select]
PermitRootLogin yes
StrictModes no
Restart sshd:
Code: [Select]
service sshd restartOn the source server, set up the API key (CWP Settings > API Manager) for CWP Migration using the default CWP template.
On the receiving server, use the interface in User Accounts > CWP->CWP Migration.
After successfully migrating the accounts, revert all changes to your SSH configuration, restart the ssh daemon, reset the r00t passphrases to strong ones, and re-enable the firewalls.
Same issue, maybe i need to buy CWP Pro for second server?
Title: Re: Migration CWP -> CWP doesn't work...
Post by: DangerD2 on March 06, 2023, 07:41:50 PM
Figured out, i had to add IP to API key
Title: Re: Migration CWP -> CWP doesn't work...
Post by: overseer on March 07, 2023, 03:24:56 AM
Sometimes the little things are the ones that get you! Stumped by some niggling detail until you realize what you missed, after staring at it for far too long!