Hi @ajay,
do you have some security plugins active on the child site in the issue?
Thread Starter
Ajay
(@ajay)
No security plugins, but I do have Fail2Ban installed on the VPS as well as Cloudflare that sits in front of all the sites.
I was wondering if that was a case but the reconnect always works and the server IP is whitelisted.
Could this be some kind of timeout issue where it runs a check on the child sites which times out and so the plugin thinks it is disconnected?
Plugin Author
mainwp
(@mainwp)
Hi @ajay,
It could be that the child site server firewall is blocking requests.
Can you have your host support whitelist your dashboard IP in the server firewall settings?
Thread Starter
Ajay
(@ajay)
Is there a place I can see what the dashboard IP is? I have the server IP which is whitelisted.
Separately, is there a way I can run a reconnect (which I do manually) via a cron function? Because I can always connect by hitting the Reconnect link under the Connection Status widget in the dashboard.
Hi @ajay,
The Dashboard IP is the same as the Server IP of the server where you have your MainWP Dashboard installed.
By default, MainWP will try to reconnect disconnected sites once a day.
Thread Starter
Ajay
(@ajay)
@bogdanrapaic
Thanks. It’s whitelisted. Also I don’t always see it connect automatically.
Could you please let me know which function I can run so I can put it into the cron and get the connecting script to try every hour?
Hi @ajay,
please check the mainwp_cronstats_action cron job.
Here is an example:
Cron: hourly: (crontab schedule: 0 * * * *)
wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp/cron/stats.php > /dev/null 2>&1
Plugin Author
mainwp
(@mainwp)
If any additional help is needed with the reported problem, feel free to open a helpdesk ticket.