Hey everyone
after successfully launching my new site I have been recieving these strange cron errors which have never occurred until site activity.
any ideas ?
#1-
Warning: fopen(/home/voiceart/public_html/cache_public/sitemap_profiles_0.xml): failed to open stream: Permission denied in /home/voiceart/public_html/inc/classes/BxDolSiteMaps.php on line 192
#2 -
Warning: fopen(/home/voiceart/public_html/cache/user49.php): failed to open stream: Permission denied in /home/voiceart/public_html/inc/profiles.inc.php on line 244
#3 -
Warning: fopen(/home/voiceart/public_html/cache/user195.php): failed to open stream: Permission denied in /home/voiceart/public_html/inc/profiles.inc.php on line 244
im recieving different variations of number 2 and oats puzzling me.
i hope I can stop these soon.
chris
All for one and one for all....ah sod it who am i kidding! |
They are all access denied errors in one of the cache folders.
Check the folder permissions of the cache, cache_public and tmp folders. They all need writable permissions. Mode 777.
If all are good then manually clear the contents of those folders except for any .htaccess file in those folders.
https://www.deanbassett.com |
Also. Go into admin then tools then host tools. Make sure everything checks out on the Audit and Permissions tabs.
https://www.deanbassett.com |
Thanks for your fast response deano!
i have verified that all 3 folders set to 777 ( do the files also need to be 777? )
The audit in host tools is also fine ad all permissions are correct!
hmm confusing
All for one and one for all....ah sod it who am i kidding! |
No. The files in those folders are created by the script so they are owned by the script. So they only need owner write access. How ever if any of those files were restored from a backup or transferred from another server it can mess up the ownership.
That's why i left a second suggestion to remove those files if the folder permissions are correct as the second suggestion would correct any ownership problems caused by that. https://www.deanbassett.com |
I didn't think so - thought I would double check though.
yes the install was transferred from a sub domain to the public_html so that could be the issue.
however I have cleared the folder manually a few times and it doesn't seem to have helped.
would it be better to delete the folders and recreate them inc the htaccess file and permissions ?
All for one and one for all....ah sod it who am i kidding! |
Yes. Try deleting those 3 folders and create new ones.
https://www.deanbassett.com |
Ok done !
lets see if the terrors stop.
thanks for your advice again deano.
All for one and one for all....ah sod it who am i kidding! |
Well no issues so far and it's been more than 12 hours I do believe.
seems to have fixed the problem ... Thanks again deano !
bte would this have caused audio to not display on profile pages after upload because the temp files were not accessible?
Chris
All for one and one for all....ah sod it who am i kidding! |
Spoke too soon.
just recieved this email.
Warning: fopen(/home/voiceart/public_html/cache/db_sys_menu_top_a06f07cea549ec07d79830b90bd045be.php): failed to open stream: Permission denied in /home/voiceart/public_html/inc/classes/BxDolCacheFile.php on line 55
All for one and one for all....ah sod it who am i kidding! |
How often now?
You should ignore any messages that come in about this for at least 48 hours or so. Mail is not always delivered immediately after it is sent. Unless your still getting a lot of them i would wait for a couple of days.
https://www.deanbassett.com |
im recieving them in the site cron emails as well as occassionally by themselves in their own email from the website almost like a cron error.
its starting to annoy me now....i just want this bloody website to work as it should!
All for one and one for all....ah sod it who am i kidding! |
I did a search http://www.boonex.com/googlesearch/search?q=failed+to+open+stream%3A+Permission+denied&gse_filter=googlesearch
And found way to many topics.
Most of those who have had these errors with the cache files solved it by clearing the folders. I do remember one that did not. I was trying to find it to see if a solution was found. But with all of the search results i could not locate it.
https://www.deanbassett.com |
But for now you may want to shut off caching.
Oh, i should also ask, are you using any sort of caching engine? Memcache, or something. You may want to switch caching types of you are. Back to the default file caching.
https://www.deanbassett.com |
Hmm doesnt sound good if there are that many topics for this issue?
But yes i can see the logic in clearing the folder manually to fix the problem.
however its still not working.
it originally was on File caching and i did have JS Caching on but the JS scripts on the website stopped working regularly with the caching on so i have now had this turned off, and then recieved these errors.
I changed the caching to APC and it seemed to stop it , but the errors are now back.
I have again cleared the cache manually and set the caching back to file.
All for one and one for all....ah sod it who am i kidding! |
Try to add the following line in inc/classes/BxDolSiteMaps.php file (near ~200 line):
fclose($f); @chmod (self::$BASE_PATH . $sFileName, 0666); $aFiles[] = $sFileName;
I suspect that it maybe a problem when webserver is running under different user than cron. So, files generated form cron - can't be deleted from the browser, and vice versa.
Please report back if this helps, then I will include the fix in Dolphin.
Rules → http://www.boonex.com/terms |
Hi Alex
i have added this to my file, lets see how it goes over the next couple of days and i will report back.
thanks
chris
All for one and one for all....ah sod it who am i kidding! |