Support » Networking WordPress » Existing sub-domains would sometimes redirect to wp-signup.php

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    At a guess, try running a repair of your database. I would think it’s loosing it’s check on if ‘sitename’ is a site or not.

    Thread Starter DJBinary

    (@djbinary)

    Ran mysqlcheck and myisamcheck, no errors.

    I caught it again. It appears to be an issue with either lighttpd or wp-cron.php. I’ll update this posts once I figure it out.

    Thread Starter DJBinary

    (@djbinary)

    Disabled wp-cron.php. So far so good. *crosses fingers*

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    wp-cron.php shouldn’t have anything to do with that. That gets called when people visit your site and kicks off scheduled posts and such. Doesn’t mess with sites like that.

    Could be a conflict BETWEEN wp-cron and ligghttpd, but that would surprise me.

    Got any logs to look at to see if anything funky was going on at that time?

    Thread Starter DJBinary

    (@djbinary)

    Ipstenu: that’s the thing. I have a couple of web servers to balance the load. Each web server has it’s own DB but in read-only mode.

    Another thing, I’m using nginx and I’m only allowing GET & HEAD. This is the error:
    2011-05-22 00:16:29: (request.c.1141) POST-request, but content-length missing -> 411

    I disabled wp-cron.php and ran it manually on the master server. The master server (with wp-admin) can only be accessed via VPN. Never had a problem since.

    Call me paranoid but I sleep better at night with that setup.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I have a couple of web servers to balance the load. Each web server has it’s own DB but in read-only mode.

    Hmm. That actually strikes me as a lag in the data-replication between your servers. Like the sync is getting thrown off by cron being run twice. Which is possible.

    Thread Starter DJBinary

    (@djbinary)

    Surprisingly, there’s no lag 🙂 but it’s possible with the cron being run several times.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Not lag as in slowness, lag as in there’s a delay in the data replication. You write to server 1, it’s copied to server 2, right? Since I know WP doesn’t natively know ‘Write to two servers at once!’ So when DB #1 is updated, DB #2 gets the update on a sync or something?

    THAT delay, when Server #2 hits cron, is why things would go weird. Yeah, you should only run cron on ONE server, so you DO need to disable it on Server B. Since I don’t know exactly how your live-live setup was done, you did the best solution I can think of 😀

    Thread Starter DJBinary

    (@djbinary)

    You’re right, WP does not know how to write to two or more servers at once. That’s MySQL’s job with the help of HyperDB http://codex.wordpress.org/HyperDB

    Whoever wrote that is a genius!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    MichaelH 🙂 And yes, he is.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Existing sub-domains would sometimes redirect to wp-signup.php’ is closed to new replies.