<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>convert_datatree_shares_to_sql.php does not run to completion</title> 
  <pubDate>Fri, 10 Apr 2026 09:21:10 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6740</link> 
  <atom:link rel="self" type="application/rss+xml" title="convert_datatree_shares_to_sql.php does not run to completion" href="https://bugs.horde.org/ticket/6740/rss" /> 
  <description>convert_datatree_shares_to_sql.php does not run to completion</description> 
 
   
   
  <item> 
   <title>I have a very large datatree.  When I run convert_datatree_s</title> 
   <description>I have a very large datatree.  When I run 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&#039;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 &quot;DELETING&quot; as the last line.</description> 
   <pubDate>Wed, 21 May 2008 19:56:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6740#t45446</link> 
  </item> 
   
  <item> 
   <title>Can you try rev 1.3 of the script from here:

http://cvs.hor</title> 
   <description>Can you try rev 1.3 of the script from here:

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&#039;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.</description> 
   <pubDate>Thu, 22 May 2008 21:10:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6740#t45475</link> 
  </item> 
   
  <item> 
   <title>&gt; Can you try rev 1.3 of the script from here:

&gt; http://cvs</title> 
   <description>&gt; Can you try rev 1.3 of the script from here:

&gt; http://cvs.horde.org/kronolith/scripts/upgrades/convert_datatree_shares_to_sql.php

&gt;

&gt; I changed it not to load all of the datatree rows into memory and to 

&gt; free/unset some resources after each iteration, since my guess is 

&gt; that you&#039;re hitting memory issues (either just resource exhaustion or 

&gt; an actual memory limit). If this works for you we can merge the 

&gt; changes and copy the modifications to the other versions of this 

&gt; script in other apps.



Close!  The $result variable was re-used so this version only processes 1 row and exits.  :)



See the attached patch for a simple fix.  It runs to completion for me.</description> 
   <pubDate>Thu, 22 May 2008 21:36:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6740#t45476</link> 
  </item> 
   
  <item> 
   <title>Ah, thanks. Sorry, I meant to test this but got distracted (</title> 
   <description>Ah, thanks. Sorry, I meant to test this but got distracted (baby, you know). I&#039;ll merge and port to other apps.</description> 
   <pubDate>Thu, 22 May 2008 21:47:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6740#t45477</link> 
  </item> 
   
  <item> 
   <title>Changes have been merged and ported to genie, ingo, mnemo, n</title> 
   <description>Changes have been merged and ported to genie, ingo, mnemo, nag, turba, and whups. Thanks for testing!</description> 
   <pubDate>Fri, 23 May 2008 02:45:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6740#t45480</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
