View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: mythweb errors
PostPosted: Sun Jan 22, 2006 9:33 pm 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
I get these errors on mythweb.


Warning at /usr/share/mythtv/mythweb/includes/init.php, line 151:
unlink(image_cache/2031_20060112213000_20060112220000.nuv.png): Operation not permitted Warning at /usr/share/mythtv/mythweb/includes/init.php, line 151:
unlink(image_cache/2011_20060112210000_20060112213000.nuv.png): Operation not permitted Warning at /usr/share/mythtv/mythweb/includes/init.php, line 151:
unlink(image_cache/2031_20060107223000_20060107230000.nuv.png): Operation not permitted Warning at /usr/share/mythtv/mythweb/includes/init.php, line 151:
unlink(image_cache/2031_20060111213000_20060111220000.nuv.png): Operation not permitted Warning at /usr/share/mythtv/mythweb/includes/init.php, line 151:
unlink(image_cache/2031_20060110233000_20060111000000.nuv.png): Operation not permitted Warning at /usr/share/mythtv/mythweb/includes/init.php, line 151:
unlink(image_cache/2031_20060109233000_20060110000000.nuv.png): Operation not permitted Warning at /usr/share/mythtv/mythweb/includes/init.php, line 151:
unlink(image_cache/2034_20060109020000_20060109030000.nuv.png): Operation not permitted Warning at /usr/share/mythtv/mythweb/includes/init.php, line 151:
unlink(image_cache/2011_20060108210000_20060108213000.nuv.png): Operation not permitted Warning at /usr/share/mythtv/mythweb/includes/init.php, line 151:
unlink(image_cache/2015_20060108190100_20060108193000.nuv.png): Operation not permitted Warning at /usr/share/mythtv/mythweb/themes/Default/theme.php, line 16:
Cannot modify header information - headers already sent by (output started at /usr/share/mythtv/mythweb/includes/errors.php:68)


I changed from apache to lighttpd (seems much faster) and now i get these errors. I know the simple answer is switch back but that would be too easy. :)

This is the section of init.php in question


// Clean out stale thumbnails
if (is_dir(image_cache)) {
if ($dir = opendir(image_cache)) {
while (($file = readdir($dir))) {
if (!preg_match('/\\.(png|jpg|gif)$/', $file) || !is_file(image_cache.'/'.$file))
continue;
// Delete files older than the last week.
if (filemtime(image_cache.'/'.$file) < time() - 7 * 24 * 60 * 60)
unlink(image_cache.'/'.$file);
}
closedir($dir);
clearstatcache();
}
}

It appears to have something to do with deleting thumbnails and is a permissions problem (I think) any thoughts on how to solve trouble shoot this further?

Thanks

Craig


*Edit*
So I commented out the whole section about cleaning out stale thumbnails and that has gotten rid of the errors. Going out on the limb I will assume that that section was in there for a reason, so I am still looking for suggestions as to how i might further troubleshoot this.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 22, 2006 10:36 pm 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
I had this too, a couple of days ago. Started with a few, then the next day it was complaining about all of them. May have been a permissions problem? I just whacked them (the files in the cache) and it was ok. If it happens again, I'll pay more attention to the file permissions. I may have run something as root once, thus making the resulting thumbs hard to delete? Just a theory.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 22, 2006 10:43 pm 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
my /cache/image_cache/ directory is empty? am I looking in the wrong place?

Craig


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 23, 2006 12:55 am 
Offline
Joined: Tue Nov 22, 2005 7:57 pm
Posts: 295
Location: Auckland, New Zealand
I think you want /myth/image_cache. All my files in that directory are owned by www-data:www-data (still using apache)...

_________________
HP VL400 (PIII 866), Skystar2 2.6D, PVR350, Nvidia FX5200, 384MB, 200GB, KnoppMyth R5.5


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 23, 2006 11:11 am 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
Okay the plot thickens. Thanks for the push to the correct directory.

What I find is most images are owned by www-data Permissions 666

But I have 8 images owned by mythtv Permissions 644

These would seem to be the ones causing the errors. (I switched back to apache and got the same errors.) Most of these images were made on the same day, (7 on the 14th 1 on the 8th of Jan). All images since then are owned by www-data. I am going to delete the mythtv images but am still curious how they get generated with two different owners.

Craig


Top
 Profile  
 
 Post subject: mythweb errors
PostPosted: Fri Jan 27, 2006 9:03 am 
Offline
Joined: Tue Jun 15, 2004 8:25 am
Posts: 11
Also having the same issue. Deleting the ones it complains about, does get rid of the messages. I'll monitor this thread for future development!

Thanks guys!

_________________
ECS K7VMM+
AMD Athlon 1600+(1.4Ghz) CPU
nVidia MX 440 w/TV-out AGP
KWorld PCI-Xpert Tuner
512MB PC100
80GB Seagate


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu