6.0.0-alpha14
6/19/25

[#5111] Keeps asking for maintenance
Summary Keeps asking for maintenance
Queue Horde Base
Queue Version HEAD
Type Bug
State Resolved
Priority 3. High
Owners chuck (at) horde (dot) org
Requester franke (at) bethzur (dot) com
Created 03/13/2007 (6673 days ago)
Due
Updated 08/05/2007 (6528 days ago)
Assigned 04/18/2007 (6637 days ago)
Resolved 08/05/2007 (6528 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/05/2007 10:53:25 PM Chuck Hagenbuch Comment #13
Assigned to Chuck Hagenbuch
Taken from Horde DevelopersHorde Developers
Taken from Michael Slusarz
State ⇒ Resolved
Reply to this comment
Like several other PHP 4-only problems, this turned out to be a 
reference issue. It's fixed now.
08/04/2007 07:55:25 AM mi (dot) braun (at) onlinehome (dot) de Comment #12 Reply to this comment
Hi,



I had once the same problem and it resolved for me to open IMP 
preferences and to resave them. This also fixed some odd errors where 
php complained about missing keys anywhere to me.



Maybe you want to give it a try?



Michael
07/18/2007 12:14:17 AM Michael Slusarz Comment #11 Reply to this comment
I'm running PHP4 on my server.
Yes - but are you willing to trace the code to determine where in the 
code it is failing in PHP 4 (vs. PHP 5)?  That was what I was asking - 
and my question was directed more towards the other devs.
07/18/2007 12:06:30 AM franke (at) bethzur (dot) com Comment #10 Reply to this comment
Does anybody have PHP 4 setup?  I also haven't touched the
maintenance code in at least 2 years so none of this looks familiar
to me.
I'm running PHP4 on my server.
07/17/2007 07:42:16 AM Michael Slusarz Comment #9 Reply to this comment
Does anybody have PHP 4 setup?  I also haven't touched the maintenance 
code in at least 2 years so none of this looks familiar to me.
07/03/2007 10:38:43 PM Michael Slusarz Assigned to Horde DevelopersHorde Developers
 
06/26/2007 10:06:05 AM Jan Schneider Priority ⇒ 3. High
 
06/26/2007 09:58:09 AM Jan Schneider Comment #8
Version ⇒ HEAD
Queue ⇒ Horde Base
Reply to this comment
This is only happening with PHP 4.
04/18/2007 10:15:31 PM Jan Schneider State ⇒ Assigned
Assigned to Michael Slusarz
 
04/11/2007 02:46:12 PM franke (at) bethzur (dot) com Comment #7 Reply to this comment
Re bug report 5111, it's back. IMP keeps wanting to purge old 
attachments every time I log in. I checked the last_maintenance value 
for my user, and it is NOT changing when maintenance is performed. So, 
it keeps asking. Previously, I removed all values from horde_prefs 
where pref_name = last_maintenance, and that fixed it for 30 days. 
However, 30 days later, it seems to be back. Any idea why the 
last_maintenance is never updated only inserted?



A little more information. /usr/share/php/Horde/Maintenance.php, which 
is where framework/Maintenance/Maintenance.php gets installed, has a 
function _doMaintenanceTasks(). In there, it seems that 
count($this->_tasklist->getList()) is never zero. The 
delete_attachments_monthly element in the array is never removed. This 
is because if ($val['newpage']) is true (1), and it breaks out of the 
loop without removing the entry.



I have no idea what this should be doing, but that's what's happening.



If I either purge this attribute from horde_prefs or modify the source 
to always update the date (basically assume all tasks compelted), then 
it doesn't keep asking. Somehow it doesn't think the maintenance task 
completed.



This happens in every browser (IE, FF and Safari).
03/21/2007 03:30:05 AM Chuck Hagenbuch Comment #6
State ⇒ Resolved
Reply to this comment
Probably a bad value had gotten into the last_maintenance pref and 
that prevented it from updating correctly. I'm not entirely sure why 
this would happen, but it makes sense that just resetting the values 
would fix it.
03/21/2007 12:50:25 AM franke (at) bethzur (dot) com Comment #5 Reply to this comment
I'm not sure why this worked, but I did this in mysql and it seems to 
have fixed it:



delete from horde_prefs where pref_name='last_maintenance';


03/20/2007 06:24:32 PM franke (at) bethzur (dot) com Comment #4 Reply to this comment
Anything further I can check to track down this problem? How does it 
decide when it needs to pop up this question?
03/15/2007 05:00:04 PM franke (at) bethzur (dot) com Comment #3 Reply to this comment
Yes, I have a preferences backend via MySQL. I have verified that the 
horde_prefs table exists and contains data. This problem didn't happen 
until a few weeks ago when I updated to the latest from CVS. I 
experience this problem whether or not the user has a 
delete_attachments_monthly value or not.



I also have a vfs setup via the database as well.
03/14/2007 03:35:02 AM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
Do you have a preferences backend set up?
03/13/2007 10:28:55 PM franke (at) bethzur (dot) com Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Queue ⇒ IMP
Summary ⇒ Keeps asking for maintenance
Type ⇒ Bug
Reply to this comment
My users have been reporting, and I verified with my account, that 
every time I log in (via IMP to a SMTP server), it wants to do 
maintanance, spepcifically, "all old attachments more than 6 months 
old will be deleted." It keeps showing up no matter how many times I 
click "Perform Maintenance Operations".



Oddly, if I put some bogus code in delete_attachments_monthly.php in 
doMaintenance(), it never seems to get an error. Maybe it's not being 
called?

Saved Queries