Hello, I have 2 servers set up following ubuntu 20.04 perfect server conf ISPC3.2.2 My second server was mirror server of server1 to ensure bind secondary server. I set back that second server (server2) to "normal" operating eg not mirror but still node in my conf. I did that with web interface. Next I run a script API SOAP (tested and working) to set up a site on server 2. It is impossible to create a site by that way... in my conf server still stay server 1 instead of 2 in web interface and some field are empty : see below pictures. Moreover from API SOAP, I obtain with function 'sites_web_domain_get' --> In black strange input... correlated (or not) with web interface output I assume a bug somewhere ? Running it via web interface it works... Array ( [domain_id] => 7 [sys_userid] => 1 [sys_groupid] => 1 [sys_perm_user] => riud [sys_perm_group] => ru [sys_perm_other] => [server_id] => 2 [ip_address] => * [ipv6_address] => [domain] => serv2.domain.tld [type] => vhost [parent_domain_id] => 0 [vhost_type] => name [document_root] => - [web_folder] => [system_user] => - [system_group] => - [hd_quota] => -1 [traffic_quota] => -1 [cgi] => n [ssi] => n [suexec] => n [errordocs] => 1 [is_subdomainwww] => 1 [subdomain] => none php] => php-fpm ( [ removed to avoid php in [] effect on forum !) [ruby] => n [python] => n [perl] => n [redirect_type] => [redirect_path] => [seo_redirect] => www_to_non_www [rewrite_to_https] => y [ssl] => y [ssl_letsencrypt] => y [ssl_letsencrypt_exclude] => n [ssl_state] => [ssl_locality] => [ssl_organisation] => [ssl_organisation_unit] => [ssl_country] => [ssl_domain] => [ssl_request] => [ssl_cert] => [ssl_bundle] => [ssl_key] => [ssl_action] => [stats_password] => [stats_type] => awstats [allow_override] => All [apache_directives] => (removed) [nginx_directives] => [php_fpm_use_socket] => y [php_fpm_chroot] => n [pm] => ondemand [pm_max_children] => 10 [pm_start_servers] => 2 [pm_min_spare_servers] => 1 [pm_max_spare_servers] => 5 [pm_process_idle_timeout] => 10 [pm_max_requests] => 0 [php_open_basedir] => [custom_php_ini] => [backup_interval] => none [backup_copies] => 1 [backup_format_web] => default [backup_format_db] => gzip [backup_encrypt] => n [backup_password] => [backup_excludes] => [active] => y [traffic_quota_lock] => n [proxy_directives] => [last_quota_notification] => [rewrite_rules] => [added_date] => [added_by] => [directive_snippets_id] => 0 [enable_pagespeed] => n [http_port] => 80 [https_port] => 443 [folder_directive_snippets] => [log_retention] => 5 [proxy_protocol] => y [server_php_id] => 0 [jailkit_chroot_app_sections] => [jailkit_chroot_app_programs] => [delete_unused_jailkit] => n [last_jailkit_update] => [last_jailkit_hash] => ) For info, function 'sites_web_domain_add' is with $params = array( 'server_id' => 2, 'ip_address' => '*', 'domain' => $CONFIG['domain'], 'type' => 'vhost', 'parent_domain_id' => 0, 'vhost_type' => 'name', 'hd_quota' => -1, 'traffic_quota' => -1, 'cgi' => 'n', 'ssi' => 'n', 'ruby' => 'n', 'python' => 'n', 'perl' => 'n', 'suexec' => 'n', 'errordocs' => 1, 'is_subdomainwww' => 1, 'subdomain' => 'none', 'php' => 'php-fpm', 'redirect_type' => '', 'redirect_path' => '', 'seo_redirect' => 'www_to_non_www', 'rewrite_to_https' => 'y', 'ssl' => 'y', 'ssl_letsencrypt' => 'y', 'ssl_letsencrypt_exclude' => 'n', 'ssl_state' => '', 'ssl_locality' => '', 'ssl_organisation' => '', 'ssl_organisation_unit' => '', 'ssl_country' => '', 'ssl_domain' => '', 'ssl_request' => '', 'ssl_key' => '', 'ssl_cert' => '', 'ssl_bundle' => '', 'ssl_action' => '', 'stats_password' => 'removed', 'stats_type' => 'awstats', 'allow_override' => 'All', 'apache_directives' => 'removed', 'php_fpm_use_socket' => 'y', 'php_fpm_chroot' => 'n', 'pm' => 'ondemand', 'pm_max_children' => 10, 'pm_start_servers' => 2, 'pm_min_spare_servers' => 1, 'pm_max_spare_servers' => 5, 'pm_process_idle_timeout' => 10, 'pm_max_requests' => 0, 'pm_max_requests' => 0, 'custom_php_ini' => '', 'backup_interval' => 'none', 'backup_copies' => 1, 'backup_format_web' => 'default', 'backup_format_db' => 'gzip', 'backup_encrypt' => 'n', 'backup_password' => '' , 'backup_excludes' => '', 'active' => 'y', 'traffic_quota_lock' => 'n', 'http_port' => '80', 'https_port' => '443', 'log_retention' => 5 , 'proxy_protocol' => 'y' ); Sorry for that so long thread...
Sorry, my mistake in wording. I set server2 as mirror of server1. I still keep server2 as node of my conf, but, no more mirror. This is what I call "normal". I edit my above thread.
Ok, that's something different. But you have already websites on that system (master) that were mirrored to the slave node? Because the mirrored state can only be changed safely if it's master and the mirror are empty, if you change it at a later stage, then all kind of issues can happen as the state of the two systems is basically undefined and the slave node database contains remnants of the master database etc. One might try to clena up the databases and modiyf their contents manually, but that might be a lot of work depending on how big your sites are and requires in-depth knowlege of ISPConfig. In my opinion, the cleanest way is to remove the slave node after you deleted all items that you might have added in that slave node trough ispconfig gui, then reinstall it as new slave node.
Understood. That's why, it doesn't work... I'll organize differently ! Thanks a lot for the quick answer