<?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>2006-04-18_add_creator_and_assignee_fields.php does not run to completion</title> 
  <pubDate>Fri, 10 Apr 2026 14:37:16 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8283</link> 
  <atom:link rel="self" type="application/rss+xml" title="2006-04-18_add_creator_and_assignee_fields.php does not run to completion" href="https://bugs.horde.org/ticket/8283/rss" /> 
  <description>2006-04-18_add_creator_and_assignee_fields.php does not run to completion</description> 
 
   
   
  <item> 
   <title>I&#039;m trying to upgrade horde webmail edition 1.0.8 to 1.2.3 
</title> 
   <description>I&#039;m trying to upgrade horde webmail edition 1.0.8 to 1.2.3 



/nag/scripts/upgrade/2006-04-18_add_creator_and_assignee_fields.php fails while storing task creators after being silently busy for a while: 



PHP Warning:  Nag_Driver::require_once(/var/www/html/horde/nag/lib/Driver/sql.php): failed to open stream: Too many open files in /var/www/html/horde/nag/lib/Driver.php on line 131

PHP Fatal error:  Nag_Driver::require_once(): Failed opening required &#039;/var/www/html/horde/nag/lib/Driver/sql.php&#039; (include_path=&#039;/var/www/html/horde/lib:/var/www/html/horde/lib/../pear&#039;) in /var/www/html/horde/nag/lib/Driver.php on line 131

&lt;&lt;&lt;&lt;

Storing task creators for johndoe ...

...



I tried to allow php to open more files with ulimit -n 64000, but the script wont process more than 1995 tasklists (~10%). 

</description> 
   <pubDate>Fri, 15 May 2009 09:52:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8283#t54174</link> 
  </item> 
   
  <item> 
   <title>I have no idea how this is supposed to be a Horde problem.</title> 
   <description>I have no idea how this is supposed to be a Horde problem.</description> 
   <pubDate>Fri, 15 May 2009 14:28:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8283#t54183</link> 
  </item> 
   
  <item> 
   <title>The Script nag/scripts/upgrades/2006-04-18_add_creator_and_a</title> 
   <description>The Script nag/scripts/upgrades/2006-04-18_add_creator_and_assignee_fields.php gets a list of all 22k shares from $nag_shares-&gt;listAllShares(); and then tries to get the actual tasks for each tasklist. $tasks = Nag::listTasks(null, null, null, $tasklist, 1); fails at the latest after 16382 calls (changed code to log into the horde.log file): 



May 18 10:37:33 HORDE [emergency] [nag] The Tasks backend is not currently available: DB Error: connect failed [pid 16275 on line 79 of &quot;/var/www/html/horde/nag/scripts/upgrades/2006-04-18_add_creator_and_assignee_fields.php&quot;]



It appears to me that for some reason db conncections are not closed correctly at some point as the number of processed tasklists is dependant on the maximal number of allowed open connections on the mysql server side. Unfortunately MySQL versions below 5.1.17 do not allow more than 16k connections by design, so the script fails before all shrares are processed. (see: http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_max_connections)



I run the script with various sql settings in hope to get less connections, mainly $GLOBALS[&#039;conf&#039;][&#039;sql&#039;][&#039;phptype&#039;]=mysql/mysqli 

$GLOBALS[&#039;conf&#039;][&#039;sql&#039;][&#039;phptype&#039;]=true/false



System is CentOS 5.3, MySQL 5.0.45, PHP 5.1.6, PEAR Modules shipped with Horde Webmail 1.2.3.

</description> 
   <pubDate>Mon, 18 May 2009 13:07:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8283#t54226</link> 
  </item> 
   
  <item> 
   <title>Horde opens just a single connection to the database server.</title> 
   <description>Horde opens just a single connection to the database server. If this doesn&#039;t work, then your PHP must be badly broken. You can try to workaround this by enable persistent connections in the DB configuration, at least while you run the script.</description> 
   <pubDate>Mon, 18 May 2009 15:23:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8283#t54228</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
