Hi!
At the moment I am using Nodewords 6.x-1.3-alpha2 (I know a rather old version, but because there were so many problems with the following versions, I decided to keep the old but working one for a while). Because Nodewords 6.x-1.11 seems to be rather stable, I now want to update to it.
1) Trying to update from Nodewords 6.x-1.3-alpha2 to 6.x-1.11 directly.
Somewhere in the middle, the update process hangs. After 60 minutes, I stopped the update process manually. The error message says:
"The update process was aborted prematurely while running update #6151 in nodewords.module."
The following queries were executed:
...
Update #6151
* No queries
2) Trying to update from Nodewords 6.x-1.3-alpha2 to 6.x-1.3
I made a database restore to Nodewords 6.x-1.3-alpha2 and tried a update to 6.x-1.3 first
Somewhere in the beginning, the update process hangs. After 60 minutes, I stopped the update process manually. The error message says:
"The update process was aborted prematurely while running update #6151 in nodewords.module."
The following queries were executed:
...
Update #6151
* No queries
My site only has about 400 nodes, so I think the update process can't take longer than some seconds / minutes. So there must be a problem somewhere.
Any ideas what the problem might be and how I can update?
Comments
Comment #1
avpadernoThanks for the report. I will look into that update function, and see if I can understand why it doesn't work.
What database are you using, and which version? I have seen updates failing on PostgreSQL, but working for MySQL. As I test the code on MySQL 5, it could be I have not problems but other users could have them.
Comment #2
SamDa commentedThanks for trying to help.
Here is some data about my system:
Debian ETCH
MySQL: 5.0.32-7etch11
PHP: 5.2.0-8+etch16
PHP memory limit: 256M
Apache: 2.2-common 2.2.3-4+etch11
Drupal: 6.15
Comment #3
avpadernoMay you also report here the content of the database table nodewords_custom?
Comment #4
avpadernoChange the function nodewords_update_6151() contained in nodewords.install to the following code:
This should report all the tables rows the code is changing. If the listed rows don't match with the rows effectively present in the table, then something is not working well.
Comment #5
SamDa commentedGood news: I finally got the update to 6.x-1.11 working.
I deleted the entries in the nodewords Other pages area ("admin/content/nodewords/meta-tags/other"). After that, the update to 6.x-1.11 showed no problems any more.
By the way, here is the information from a failed update you asked for (this is from the update I did before the working one). Perhaps it is helpful for others with similar problems:
Database structure nodewords_custom
Database data nodewords_custom
Error log
Update #6151
Comment #6
avpadernoI don't understand why the rows with pid between 11, and 19 where not updated. This seems really strange.
Comment #7
avpadernoI changed the code executed in the update function, and committed the new code in CVS.
Thanks for your report, and your help.
Comment #9
stella commentedThe fix committed in this patch introduces a critical bug. There is now a SQL error on line 972 of the install file as the "where" keyword appears twice.
cheers,
Stella
Comment #11
avpadernoThanks for pointing out this. I have fixed the query, and committed the new code in CVS.