Summary | convert_datatree_shares_to_sql.php does not run to completion |
Queue | Kronolith |
Queue Version | 2.2-RC3 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | chuck (at) horde (dot) org |
Requester | morgan (at) orst (dot) edu |
Created | 05/21/2008 (6258 days ago) |
Due | |
Updated | 05/23/2008 (6256 days ago) |
Assigned | 05/22/2008 (6257 days ago) |
Resolved | 05/23/2008 (6256 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
and whups. Thanks for testing!
State ⇒ Assigned
know). I'll merge and port to other apps.
New Attachment: convert_datatree_shares_to_sql.php.patch
processes 1 row and exits. :)
See the attached patch for a simple fix. It runs to completion for me.
State ⇒ Feedback
Assigned to Chuck Hagenbuch
http://cvs.horde.org/kronolith/scripts/upgrades/convert_datatree_shares_to_sql.php
I changed it not to load all of the datatree rows into memory and to
free/unset some resources after each iteration, since my guess is that
you're hitting memory issues (either just resource exhaustion or an
actual memory limit). If this works for you we can merge the changes
and copy the modifications to the other versions of this script in
other apps.
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ convert_datatree_shares_to_sql.php does not run to completion
Queue ⇒ Kronolith
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
convert_datatree_shares_to_sql.php in order to migrate to the new SQL
Shares driver, the script runs for around 1 minute, then stops
executing and exits. No error messages are output on the console. If
I run the script again, it picks up where it left off and migrates
more datatree entries. I'm pretty sure the migration will finish if I
run the script enough times...
I tried setting max_execution_time=0 in the CLI php.ini file, but
there was no difference.
The last few lines of output (this time) are:
[ INFO ] Migrating share data for share_id: 60516
[ INFO ] DELETING datatree data for share_id: 60516
[ INFO ] Migrating share data for share_id: 60519
I have also seen it end with "DELETING" as the last line.