LinHES Forums
http://forums.linhes.org/

mythweb errors
http://forums.linhes.org/viewtopic.php?f=14&t=8046
Page 1 of 1

Author:  iscraigh [ Sun Jan 22, 2006 9:33 pm ]
Post subject:  mythweb errors

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.

Author:  thornsoft [ Sun Jan 22, 2006 10:36 pm ]
Post subject: 

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.

Author:  iscraigh [ Sun Jan 22, 2006 10:43 pm ]
Post subject: 

my /cache/image_cache/ directory is empty? am I looking in the wrong place?

Craig

Author:  nickread [ Mon Jan 23, 2006 12:55 am ]
Post subject: 

I think you want /myth/image_cache. All my files in that directory are owned by www-data:www-data (still using apache)...

Author:  iscraigh [ Mon Jan 23, 2006 11:11 am ]
Post subject: 

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

Author:  bluetone [ Fri Jan 27, 2006 9:03 am ]
Post subject:  mythweb errors

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!

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/