• Resolved Ajay

    (@ajay)


    I have been using MainWP to manage 6 sites. This site and the managed sites all sit on the same server.

    Almost daily, at least one and usually two of the sites disconnect from the Manager. I have to manually login and then hit Reconnect one by one to connect them.

    Is there a way to figure out why this disconnects and prevent it from happening?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Bogdan Rapaic

    (@bogdanrapaic)

    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.

    Plugin Support Bogdan Rapaic

    (@bogdanrapaic)

    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?

    Plugin Support Bogdan Rapaic

    (@bogdanrapaic)

    Hi @ajay,

    please check the mainwp_cronstats_action cron job.

    Here is an example:

    
    Cron: hourly: (crontab schedule: 0 * * * *)
    wget -O /dev/null https://yourdashboard.com/wp-content/plugins/mainwp/cron/stats.php > /dev/null 2>&1
    
    • This reply was modified 3 years, 4 months ago by Bogdan Rapaic.
    Plugin Author mainwp

    (@mainwp)

    If any additional help is needed with the reported problem, feel free to open a helpdesk ticket.

    Thread Starter Ajay

    (@ajay)

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Sites keep disconnecting’ is closed to new replies.