WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Update Network - what does it do? (7 posts)

  1. jkhongusc
    Member
    Posted 5 years ago #

    I auto-updated our site from 3.0.5 to 3.1.2 on a test system. The upgrade process worked, but our site is not working properly. I will be opening another thread for that issue. After the upgrade process, I am asked to 'Update Network' I will leave the details out but our system is configured so that it cannot make an http/https to itself.

    So my questions are:
    1) What networks are updated? Is this one call for each and every blog on the system? What is the url - http://<host>/wp-admin/upgrade.php?step=upgrade_db
    2) What does 'Update Network' do? Is it required? What happens if we didnt do it - because at the moment it cannot work?

    We have a possible work around, but need to know what hosts will be called. I am thinking all of them.

    James

  2. Tim Moore

    Posted 5 years ago #

    Each site is called to fire the upgrade script. The upgrade script will get fired the first time someone logs into the Dashboard of a site, anyway, so nothing to really worry about. It would be more consistent to allow the Update Network call to work, but it isn't necessarily required.

  3. jkhongusc
    Member
    Posted 5 years ago #

    The upgrade script will get fired the first time someone logs into the Dashboard of a site, anyway, so nothing to really worry about.

    I read that in the documentation. But how does the upgrade script get called when someone visits the Dashboard? In our case, if it kicks off another http/https call then it will not work.

    It sounds like all the blogs would function properly (serving content) even without calling the upgrade script.

    Thanks.

    James

  4. Tim Moore

    Posted 5 years ago #

    When you use "Update Network", a script is run that connects to the Dashboard of each site that fires the upgrade script.

    When a user logs in to a Dashboard, the upgrade script is fired WITHOUT the need for the server to connect to itself.

    There is a check of the database version number when people log in. If it is different, some code is run to do updates.

  5. jkhongusc
    Member
    Posted 5 years ago #

    Thanks again, exactly the information I was looking for.

    James

  6. All it does is any required DB changes for that blog's tables *only*. If there weren't any db changes in the last upgrade, then it not firing is a non-issue.

  7. jkhongusc
    Member
    Posted 5 years ago #

    When a user logs in to a Dashboard, the upgrade script is fired WITHOUT the need for the server to connect to itself.

    I am not sure this is correct. I just found out why I am having problems after the 3.0.5 to 3.1.2 upgrade. When I access the wp-admin, every request takes a couple of mins. Now I know why - it makes a https call to itself. I added some extra logging in wp-includes/http.php. I see this call every time I access a /wp-admin/ page -

    https://<host>/wp-admin/upgrade.php?step=1

    Looks like I need to get my sys admins to fix the "loop back" issue.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.