An unrecoverable error has occurred

tuxguy - April 22, 2008 - 15:44
Project:Drupal
Version:6.14
Component:update system
Category:support request
Priority:critical
Assigned:Unassigned
Status:active
Issue tags:HTTP error 0, update.php
Description

When I review the updates that are pending in "select versions", I can see that the proper updates are selected (and older versions are in the system table). When I click "update" the progress bar start scrolling, but it never starts an update count. It just sticks at "starting updates". The database doesn't get touched. I can see what is supposed to be happening on one of my other drupal sites, but something seems out of sync in the database in question. Can someone tell me where to look for issues? I am Drupal 6.1 and I am unable to get to 6.2 until update.php will process correctly.

Ideas?

#1

dww - April 22, 2008 - 16:33
Component:update.module» update system
Category:bug report» support request
Priority:critical» normal
Status:active» postponed (maintainer needs more info)

I know it's confusing, but "update.module" is for the new part of 6.x core that checks for available updates to your modules and themes. You're talking about update.php, which is the "update system" component...

Also, given that update.php is working fine for thousands of sites, I'm guessing this is something peculiar with your site, DB and/or browser, not a critical bug in update.php itself. If you want someone to be able to help you solve this, you'll need to provide details about exactly what versions of everything you're using, including the version of your browser. It sounds like some kind of jQuery/JS problem, so the browser, version, and configuration will be important to whomever can actually help you.

Good luck,
-Derek

#2

tuxguy - April 22, 2008 - 17:28

Thank you and sorry for the confusion / misclassification.

I am running firefox on a mac... I have used safari as well. Firefox works fine with my other site, so I don't think it is the browser. I have disabled javascript and run update.php and it acts about the same (without a scrollbar)...

I have disabled all but the "standard" modules. I am not sure where to look next, but I am personally leaning toward something in the system table is not in an expected state. But it is just a hunch.

#3

tuxguy - April 22, 2008 - 18:56
Status:postponed (maintainer needs more info)» active

my batch table was full of attempts... I exported it off (saved a copy) and ran update.php with an empty batch table.

This record appeared: (batch field of the batch table)

a:8:{s:4:"sets";a:1:{i:0;a:10:{s:7:"sandbox";a:0:{}s:7:"results";a:0:{}s:7:"success";b:0;s:10:"operations";a:5:{i:0;a:2:{i:0;s:13:"update_do_one";i:1;a:2:{i:0;s:6:"system";i:1;s:4:"6047";}}i:1;a:2:{i:0;s:13:"update_do_one";i:1;a:2:{i:0;s:8:"pathauto";i:1;s:1:"4";}}i:2;a:2:{i:0;s:13:"update_do_one";i:1;a:2:{i:0;s:5:"token";i:1;s:1:"1";}}i:3;a:2:{i:0;s:13:"update_do_one";i:1;a:2:{i:0;s:7:"comment";i:1;s:4:"6003";}}i:4;a:2:{i:0;s:13:"update_do_one";i:1;a:2:{i:0;s:6:"update";i:1;s:4:"6000";}}}s:5:"title";s:8:"Updating";s:12:"init_message";s:27:"Starting updates
 ";s:13:"error_message";s:131:"An unrecoverable error has occurred. You can find the error message below. It is advised to copy it to the clipboard for reference.";s:8:"finished";s:15:"update_finished";s:16:"progress_message";s:31:"Remaining @remaining of @total.";s:5:"total";i:5;}}s:11:"current_set";i:0;s:11:"progressive";b:1;s:3:"url";s:30:"http://xxxxxxxxxx.com/update.php";s:11:"source_page";s:4:"node";s:8:"redirect";s:41:"http://boobblog.com/update.php?op=results";s:2:"id";s:1:"1";s:13:"error_message";s:99:"Please continue to the error page";}

Isn't this supposed to process?

#4

ainigma32 - December 3, 2008 - 09:39
Status:active» postponed (maintainer needs more info)

@tuxguy: It's been a while... did you ever find out what was/is causing this issue?

- Arie

#5

ainigma32 - December 17, 2008 - 11:11
Status:postponed (maintainer needs more info)» fixed

Looks like tuxguy won't be posting any feedback. Setting this to fixed.

Feel free to reopen if you think that is wrong.

- Arie

#6

dantw - December 18, 2008 - 01:56
Version:6.1» 6.6
Priority:normal» critical

People like us are still encountering the same problem. Please see my posting http://drupal.org/node/348336 and the other poor guy's story http://drupal.org/node/320477.

We had been evaluating Drupal 5 for months and tried upgrades several times by running the same process without any issues. Recently we did a fresh Drupal 6.6 installation for rolling out our project and then the first time we tried to upgrade a module we hit the wall and we have not even tried to upgrade the core module. Maybe we would have been better off sticking with Drupal 5.

Any suggestions? Thanks a lot.

#7

dantw - December 18, 2008 - 14:50
Status:fixed» active

Re-opening this issue.

#8

zvikico - December 28, 2008 - 14:07

I'm having the same issue after updating to 6.8 (I think it started before, though).

Everything looks OK until I start the update. It get's stuck on "Starting Update" and never ends.
I tried to clear the batch table, but it's not use.

I did notice a JavaScript error on the page while running with Firefox w/Firebug: Access to restricted URI denied" code: "1012
This was in a jQuery file.
I tried on Safari and it breaks, too.

Any ideas?

#9

zvikico - January 5, 2009 - 05:57

Anyone?

#10

urwen - February 4, 2009 - 09:34

same problem trying to update some of the modules. The "updating" message stays allways and nothing happens...

#11

dantw - February 13, 2009 - 14:56
Version:6.6» 6.9

I finally got my problem solved. In my case it seemed to me at some point during update Drupal was trying to show a different progress bar image file. I have Clean Url enabled (using IIRF on IIS) and in my rewrite rules all files were passed to index.php for processing. But for this particular file the rewrite rule was not able to find it. Instead of throwing a more specific 'file not found' error, the Batch API simply returned the 'An unrecoverable error has occurred' message (see http://drupal.org/node/363911). Once I added the following rewrite rule my update ran smoothly.

# Do not pass to drupal if the file or directory exists
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

Hope this can help some people.

#12

ainigma32 - February 16, 2009 - 13:25
Status:active» postponed (maintainer needs more info)

@dantw: Thanks for sharing the solution!
@zvikico, @urwen: Can you confirm this fixes the problem on your end too?

- Arie

#13

ainigma32 - March 3, 2009 - 12:55
Status:postponed (maintainer needs more info)» fixed

Looks like zvikico and urewen won't be posting any feedback so I'm setting this to fixed.

Feel free to reopen if you think that is wrong.

- Arie

#14

System Message - March 17, 2009 - 13:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#15

messenger - April 10, 2009 - 18:08

edited to remove. i can't be sure this solved my problem.

#16

manoloka - May 1, 2009 - 17:46

Once I added the following rewrite rule my update ran smoothly.

# Do not pass to drupal if the file or directory exists
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

It worked for me too :-) thanks

I must say that I had to flash the cache too.

#17

plnolan - July 4, 2009 - 06:30

I am running drupal 6.12 on a Linux server using firefox 3 and had the same problem Update.php would start but never finish.

dantw's solution worked for me:

"Once I added the following rewrite rule my update ran smoothly.

# Do not pass to drupal if the file or directory exists
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L] "

#18

giorgio79 - September 11, 2009 - 04:53
Status:closed» reviewed & tested by the community

I am getting this as well.

This should be committed to .htaccess it seems, as several people are getting it.

#19

Gábor Hojtsy - September 15, 2009 - 11:04
Version:6.9» 7.x-dev
Status:reviewed & tested by the community» needs review

Hum, first of all, how is the update looking for a different progress bar image? Why? Second, if the given .htaccess snippet solves it, then why is the browser not finding that image (it is an existing file, so it should not jump on the index.php snippet already in .htaccess which checks for existing files)?

Last, bugs are fixed first in Drupal 7, so let's get this there first. This is to ensure that we introduce no regressions.

#20

TallDavid - September 19, 2009 - 20:00

I'm experiencing similar behavior on one site while attempting a 6.13 => 6.14 update.

In IE8 I get the endless progress bar problem described above, but, in FireFox 3.53 I get:
"An HTTP error 0 occurred." and on the error page:
"The update process was aborted prematurely while running update #____ in _____.module." (The update # and module can vary).

The .htaccess patch (described above) makes no difference on this site.

If Javascript is disabled in the browser, the "Updating" screen is displayed and no message is ever returned to the user.

Further info: I manually installed database updates such that no further updates need to be executed. Now, when I run update.php, I get:

"warning: array_pop() [function.array-pop]: The argument should be an array in /home/talldave/public_html/<sitename>/update.php on line 314." and
"The update process was aborted prematurely while running update # in .module."

I find it curious that I get the "running update # in .module" message. Hopefully this additional information will provide a clue for those that better understand the update process.

[Note to self: T-H.com]

#21

TallDavid - September 19, 2009 - 20:00
Status:needs review» active

#22

Scorpio26 - September 22, 2009 - 09:03

I'm experiencing similar behavior on one site while attempting a 6.13 => 6.14 update.
I'm using Firefox 3.0.14

I have this message in Error Consol:

"Problema di sicurezza: i contenuti in http://www.mysite.com/update.php?op=start&id=17 non possono caricare dati da http://mysite.com/update.php?id=17&op=do."

"Security problem: the contents in http://www.mysite.com/update.php?op=start&id=17 cannot load data from http://mysite.com/update.php?id=17&op=do."

I use the following rewrite rule in the .htaccess

# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^mysite\.com$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301]

# Do not pass to drupal if the file or directory exists
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

#23

Scorpio26 - September 22, 2009 - 09:11

Strange !

In .htaccess if I use this rewrite rules :

RewriteCond %{HTTP_HOST} ^mysite\.com$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301]

the update process don't finish. Instead if I use this rules:

RewriteCond %{HTTP_HOST} ^www\.mysite\.com$ [NC]
RewriteRule ^(.*)$ http://mysite.com/$1 [L,R=301]

it worked for me.

#24

DraeZ - October 8, 2009 - 04:18

scorpio in my settings.php I commented out the baseurl line by adding "//" before it. That fixed my problem and now even with htaccess forcing link to use www, my update.php still works.

(adding www to your baseurl also works, assuming you are forcing www with your htaccess)

#25

TallDavid - October 21, 2009 - 00:36

I have now experienced this issue on two sites:
1) Update Drupal 6.13 to 6.14 [see comment #20 above] and
2) on an existing Drupal 6.14 site while attempting to update 2 modules (boost & quotes).

Both sites use the .htaccess rewrite rules to redirect to a URL without "www".

In both cases, I have been able to work-around the issue by commenting-out the baseurl line in the settings.php file (as described by DraeZ in comment #24 above), running update.php, and then changing my settings.php file back to its original configuration.

Lets hope that this additional info helps the Code Gods isolate/fix the problem while allowing fellow mortals to work around the issue. ;-)

[Note to self: 1) T-H.com, 2) FBD.com]

#26

topnetwork - October 30, 2009 - 07:06
Title:update.php never does anything» An unrecoverable error has occurred
Version:7.x-dev» 6.14

I also have this problem on two sites:
- Update 6.13 to 6.14
- Update 5.20 to 6.14 (performed update from 5.13 to 5.20 without problem)

No error is logged within Drupal or PHP. All that is returned is the Updating page with the following:

"An unrecoverable error has occurred. You can find the error message below. It is advised to copy it to the clipboard for reference. Please continue to the error page"

This is followed by the source code of an HTML page contained within a red background table cell.

Running on IIS. Have disabled Clean URLs, disabled all cached and cleared cache. Problem still exists.

Perhaps the Core team can look at what is fundamentally different between updates preformed by 5.x and 6.x. Obviously, code that is working well in 5.x Update.php is not working in 6.x Update.php.

 
 

Drupal is a registered trademark of Dries Buytaert.