Skip to content
English
  • There are no suggestions because the search field is empty.

ServerLink Replication issues when using custom HTTP port

Original Question or Issue:

ServerLink replication is failing when custom HTTPS or HTTP port is used.


Environment:

  • Product - FileCloud Server
  • Version - Any
  • Platform - Windows, Linux

Steps to Reproduce:

 


Error or Log Message:

SYNCFROMSERVER: FAILED OUTPUT. IS LOCAL SERVER URL REACHABLE?


Defect or Enhancement Number:

 


Cause:

ServerLink replication is invoked by SLCRON on https://127.0.0.1, if Server URL value is https.

If the HTTPS port is changed, ServerLink cron will fail.


Resolution or Workaround:

Need to add the below configuration to cloudconfig.php with the custom port value, here 8083 as example.

define("TONIDOCLOUD_APACHE_PORT", "8083");

Configuration file path:
Windows: xampp\htdocs\config\cloudconfig.php 
Linux: /var/www/html/config/cloudconfig.php


Notes:

Issue will also arise in other conditions, ie if HTTPS is disabled on application server but server url is set to https or if Apache is binded to specific IP etc. In this case, below configuration flags should be used. 

define("TONIDOCLOUD_APACHE_BIND_IP", "192.168.1.152");
define("TONIDOCLOUD_APACHE_SCHEME", "http");

It's also recommended to set a hosts file entry for the FileCloud URL used in each side ie Primary or DR side to 127.0.0.1.