First of all I am a complete Drupal novice. Just a sysadmin given this to do.

I am trying to update Drupal from 7.38 to 7.50 using the drush command line by following the (minor) update instructions on this site.

Each attempt fails silently. It goes through the process, tells me that it has updated to 7.50 but listing the packages (drush pml) shows that core is still at 7.38. The owner is still being prompted to update. So far I have only risked this on a test server.

Details of the system are:
Ubuntu 14.04.4 LTS
kernel 3.13.0-85-generic
# php --version
PHP 5.5.9-1ubuntu4.17 (cli) (built: May 19 2016 19:05:57)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

I have briefly searched this forum for ideas but see nothing matching my problem. Any thoughts?

Comments

michael.lightfoot@csiro.au’s picture

System details were wrong:
Ubuntu 12.04.5 LTS
kernel 3.2.0-99-generic

# php --version
PHP 5.3.10-1ubuntu3.23 with Suhosin-Patch (cli) (built: May 19 2016 20:38:03)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

# mysql --version
mysql Ver 14.14 Distrib 5.5.50, for debian-linux-gnu (x86_64) using readline 6.2

onejam’s picture

Try this. run:

drush pm-releases drupal

This will show a list of drupal versions

then run

drush dl drupal-7.44

This wil force it to donwlaod that versoin and install it.

If i were you, i'll probably update to version 7.44 first.

7.50 is a big update but only contains mostly bugfixes and minor features, no security updates. So it can be done later once you have resolved updating the site. You will also have to deal with converting your DB to fully support UTF8mb4 for version 7.50 so update to 7.44 and worry about that after.

-----------------------------------------------------------------
We build engaging websites and intuitive designs that will benefit your business.
Duvien

michael.lightfoot@csiro.au’s picture

I followed your instructions but added the command:

drush up drupal-7.44

with this output:
# drush up drupal-7.44
Failed to get available update data for 8 projects. [error]
Checked available update data for 49 projects. [status]
Update information last refreshed: 25th July 2016

Update status information on all installed and enabled Drupal projects:
Name Installed version Proposed version Status
Views Bulk Operations (VBO) 7.x-3.3 7.x-3.3 Up to date
Address Field 7.x-1.1 7.x-1.2 Update available
Addressfield Autocomplete 7.x-1.0-beta5 7.x-1.0-beta5 Up to date
Administration menu 7.x-3.0-rc5 7.x-3.0-rc5 Up to date
Administration Views 7.x-1.5 7.x-1.5 Up to date
Adminimal Administration Menu 7.x-1.5 7.x-1.7 Update available
Backup and Migrate 7.x-3.1 7.x-3.1 Up to date
Bean 7.x-1.9 7.x-1.9 Up to date
Better Exposed Filters 7.x-3.2 7.x-3.2 Up to date
Better Formats 7.x-1.0-beta1 7.x-1.0-beta2 Update available
Drupal core 7.38 7.44 Specified version available
Browser class 7.x-1.7 7.x-1.7 Up to date
Custom Contextual Links 7.x-1.5 7.x-1.5 Up to date
Checklist API 7.x-1.2 7.x-1.2 Up to date
Chosen 7.x-2.0-beta4 7.x-2.0-beta5 Update available
Comment Notify 7.x-1.2 7.x-1.3 Update available
Context 7.x-3.6 7.x-3.7 Update available
Crumbs, the Breadcrumbs suite 7.x-2.3 7.x-2.5 Update available
Chaos tool suite (ctools) 7.x-1.7 7.x-1.9 SECURITY UPDATE available
Date 7.x-2.8 7.x-2.9 Update available
Devel 7.x-1.5 7.x-1.5 Up to date
Diff 7.x-3.2 7.x-3.2 Up to date
DraggableViews 7.x-2.1 7.x-2.1 Up to date
Display Suite 7.x-2.8 7.x-2.14 Update available
Elements 7.x-1.4 7.x-1.4 Up to date
Email Field 7.x-1.3 7.x-1.3 Up to date
Email Registration 7.x-1.2 7.x-1.3 Update available
Entity API 7.x-1.6 7.x-1.7 Update available
Entity To Text 7.x-1.0-alpha2 7.x-1.0-alpha3 Update available
Entity Rules 7.x-1.0-alpha4 7.x-1.0-alpha4 Up to date
Entity cache 7.x-1.2 7.x-1.5 Update available
Entityform 7.x-2.0-rc1 7.x-2.0-rc1 Up to date
Entity reference 7.x-1.1 7.x-1.1 Up to date
Entity Reference Autocomplete 7.x-1.8 7.x-1.11 Update available
Features 7.x-2.5 7.x-2.10 SECURITY UPDATE available
Field Group 7.x-1.4 7.x-1.5 SECURITY UPDATE available
Field placeholder 7.x-2.0-beta2 7.x-2.0-beta2 Up to date
FileField Sources 7.x-1.9 7.x-1.10 Update available
Float filter 7.x-1.2 7.x-1.2 Up to date
Flood control 7.x-1.0 7.x-1.0 Up to date
Free pager 7.x-2.x-dev 7.x-2.x-dev Up to date
Front Page 7.x-2.4 7.x-2.4 Up to date
Geocoder 7.x-1.2 7.x-1.3 Update available
Geofield 7.x-2.3 7.x-2.3 Up to date
geoPHP 7.x-1.7 7.x-1.7 Up to date
Global Redirect 7.x-1.5 7.x-1.5 Up to date
GMap Module 7.x-2.9 7.x-2.11 Update available
Google Analytics 7.x-2.1 7.x-2.2 Update available
Honeypot 7.x-1.17 7.x-1.22 Update available
HTML5 Tools 7.x-1.2+8-dev 7.x-1.3 Update available
Internationalization 7.x-1.13 7.x-1.13 Up to date
Image Link Formatter 7.x-1.0 7.x-1.1 Update available
Image Resize Filter 7.x-1.14 7.x-1.16 Update available
ImageField Focus 7.x-1.0 7.x-1.0 Up to date
IMCE 7.x-1.9 7.x-1.10 Update available
Insert 7.x-1.3 7.x-1.3 Up to date
jQuery Update 7.x-2.6 7.x-2.7 SECURITY UPDATE available
Legal 7.x-1.5 7.x-1.5 Up to date
Libraries API 7.x-2.2 7.x-2.3 Update available
Lightbox2 7.x-1.0-beta1 7.x-1.0-beta1 Up to date
Link 7.x-1.3 7.x-1.4 Update available
Link checker 7.x-1.2 7.x-1.2 Up to date
Linkit - Enriched linking experience 7.x-3.3 7.x-3.5 Update available
Linkit views 7.x-2.0 7.x-2.0 Up to date
Magic 7.x-2.2 7.x-2.2 Up to date
Mail System 7.x-2.34 7.x-2.34 Up to date
Masquerade 7.x-1.0-rc7 7.x-1.0-rc7 Up to date
Maxlength 7.x-3.2 7.x-3.2 Up to date
Menu attributes 7.x-1.0-rc3 7.x-1.0 Update available
Menu token 7.x-1.0-beta5 7.x-1.0-beta7 Update available
Metatag 7.x-1.4 7.x-1.17 Update available
Mime Mail 7.x-1.0-beta4 7.x-1.0-beta4 Up to date
Module Filter 7.x-2.0 7.x-2.0 Up to date
Multiple Node Menu 7.x-1.0-beta2 7.x-1.0-beta2 Up to date
Node Page Disable 7.x-1.0-rc2 7.x-1.0-rc2 Up to date
OAuth 7.x-3.2 7.x-3.2 Up to date
Pathauto 7.x-1.2 7.x-1.3 Update available
Pathauto Persistent State 7.x-1.3 7.x-1.4 Update available
Publish button 7.x-1.1 7.x-1.1 Up to date
Redirect 403 to User Login 7.x-1.8 7.x-1.8 Up to date
Redirect 7.x-1.0-rc1 7.x-1.0-rc3 Update available
Rules 7.x-2.9 7.x-2.9 Up to date
Scheduler 7.x-1.3 7.x-1.5 Update available
Search 404 7.x-1.3 7.x-1.4 Update available
Security Review 7.x-1.2 7.x-1.2 Up to date
SEO Checklist 7.x-4.1 7.x-4.1 Up to date
Site map 7.x-1.2 7.x-1.3 Update available
Site verification 7.x-1.1 7.x-1.1 Up to date
Special menu items 7.x-2.0 7.x-2.0 Up to date
Strongarm 7.x-2.0 7.x-2.0 Up to date
Superfish 7.x-1.9 7.x-1.9 Up to date
ThemeKey 7.x-3.3 7.x-3.4 Update available
Token 7.x-1.6 7.x-1.6 Up to date
Transliteration 7.x-3.2 7.x-3.2 Up to date
Universally Unique IDentifier 7.x-1.0-alpha6 7.x-1.0-beta1 Update available
UUID Features Integration 7.x-1.0-alpha4+60-dev 7.x-1.0-alpha4 Update available
Variable 7.x-2.5 7.x-2.5 Up to date
Variable Email 7.x-1.0-alpha1 7.x-1.0-alpha1 Up to date
Video Filter 7.x-3.1 7.x-3.4 Update available
Views 7.x-3.11 7.x-3.14 SECURITY UPDATE available
Wysiwyg 7.x-2.2+54-dev 7.x-2.2 Update available
XML sitemap 7.x-2.2 7.x-2.3 SECURITY UPDATE available
Adminimal - Responsive Administration Theme 7.x-1.21 7.x-1.24 Update available
(Drupal 8 ready!)
Zen 7.x-5.5 7.x-5.6 Update available

Code updates will be made to drupal core.
WARNING: Updating core will discard any modifications made to Drupal core files, most noteworthy among these are .htaccess and robots.txt. If you have made any modifications to these files, please back them up before updating so that you can re-create your modifications in the updated version of the file.
Note: Updating core can potentially break your site. It is NOT recommended to update production sites without prior testing.

Do you really want to continue? (y/n): y
Project drupal was updated successfully. Installed version is now 7.44.
Backups were saved into the directory /root/drush-backups/aspiretst_mysql/20160724221705/drupal. [ok]
Backups were restored successfully. [ok]
#

I then did

# drush pml
Package Name Type Status Version

(...)

Core Aggregator (aggregator) Module Not installed 7.38
Core Block (block) Module Enabled 7.38
Core Blog (blog) Module Not installed 7.38
Core Book (book) Module Not installed 7.38
Core Color (color) Module Not installed 7.38
Core Comment (comment) Module Enabled 7.38
Core Contact (contact) Module Not installed 7.38
Core Content translation (translation) Module Not installed 7.38
Core Contextual links (contextual) Module Enabled 7.38
Core Dashboard (dashboard) Module Enabled 7.38
Core Database logging (dblog) Module Enabled 7.38
Core Field (field) Module Enabled 7.38
Core Field SQL storage (field_sql_storage) Module Enabled 7.38
Core Field UI (field_ui) Module Enabled 7.38
Core File (file) Module Enabled 7.38
Core Filter (filter) Module Enabled 7.38
Core Forum (forum) Module Enabled 7.38
Core Help (help) Module Enabled 7.38
Core Image (image) Module Enabled 7.38
Core List (list) Module Enabled 7.38
Core Locale (locale) Module Enabled 7.38
Core Menu (menu) Module Enabled 7.38
Core Node (node) Module Enabled 7.38
Core Number (number) Module Enabled 7.38
Core OpenID (openid) Module Not installed 7.38
Core Options (options) Module Enabled 7.38
Core Overlay (overlay) Module Not installed 7.38
Core Path (path) Module Enabled 7.38
Core PHP filter (php) Module Not installed 7.38
Core Poll (poll) Module Not installed 7.38
Core RDF (rdf) Module Not installed 7.38
Core Search (search) Module Enabled 7.38
Core Shortcut (shortcut) Module Not installed 7.38
Core Statistics (statistics) Module Not installed 7.38
Core Syslog (syslog) Module Enabled 7.38
Core System (system) Module Enabled 7.38
Core Taxonomy (taxonomy) Module Enabled 7.38
Core Testing (simpletest) Module Not installed 7.38
Core Text (text) Module Enabled 7.38
Core Toolbar (toolbar) Module Not installed 7.38
Core Tracker (tracker) Module Not installed 7.38
Core Trigger (trigger) Module Enabled 7.38
Core Update manager (update) Module Enabled 7.38
Core User (user) Module Enabled 7.38

(...)

#

Which shows it didn't update even after assuring me it did.

A directory listing shows all the files except a large number of those in the site directory are dated with the time of the update. Is the update perhaps rolling back but not actually telling me so?

onejam’s picture

Don't use Drush up unless you want to update both core and modules.

Use:

drush pm-update projects drupal-7.44

to update only core. Once successful, you can then sort out your modules. Do each steps at a time.

What drush version are you using? have you tried to update drush to 8.x and then try again?

If all this fails, have you tried updating it manually instead?

-----------------------------------------------------------------
We build engaging websites and intuitive designs that will benefit your business.
Duvien

therobyouknow’s picture

I had 7.44

I tried

drush pm-update projects drupal-7.44

and although it reported successful, it wasn't: the code was still at 7.44.

So I did it manually: I downloaded the zip for 7.50 (by going via the definitive release page at: https://www.drupal.org/node/3060/release )

Then with the downloaded 750 .zip I used Beyond Compare, comparing the existing site source with the .zip to manually merge.

I did a drush updb to check and run any database updates (If I remember don't think there were any for 7.44 to 7.50 though)

I found this to work for me.