The default site works fine just as it's supposed to, but my second site shows this in the logs:

"unlink(/tmp/browscap.csv): No such file or directory in /var/www/localhost/htdocs/modules/browscap/browscap.module on line 193."

It however *does* import the browscap file and load the database with the correct information.

My third site however... Doesn't appear to do anything at all? The cron jobs show in the logs, but it doesn't import anything or even try to. Both the other sites import on the same cron job which show in the logs:

"New version of browscap imported: 2005-08-28 17:42:40 UTC"

Obviously identical... Other than the error message I said about above for the second site.

The only thing I can think of that is 'upsetting' it could be that all my crons are scheduled to run together on the hour, every hour. Therefore I can understand maybe the error from the second site as maybe the first sites cron deleted it before the second could access it - but the third one not doing anything at all is puzzling? Especially as it seems to have updated the 'timestamp' in settings/browscap - just added nothing to the database or written anything to the log.

If this is simply a case of "you shouldn't run all your crons together at the same time" maybe someone should add this to the README file? Else, hopefully something could be done to the code to avoid multiple sites conflicting over the same files? Maybe instead of naming the temporary file browscap.csv or whatever it's called, it could be named after the sites name? Then it'd be individual to *that* site and would be no conflict? Just a thought...

Pobster

Comments

Merlin Abraxas’s picture

Please check your site settings regarding the "/tmp" folder.
You'll run into problems with other modules as well if you don't assign every site a seperate "tmp" folder.
I hope this hint helps.

pobster’s picture

Good plan! :o)

I've altered it so that every site now uses it's own /files folder +/tmp so yep, that'll avoid any conflicts. I'm still concerned that the third site didn't even bother to try and update anything at all other than the timestamp but I guess I won't know if it's fixed until the browscap site gets updated again!

Thank you

Pobster

mikeryan’s picture

Assigned: Unassigned » mikeryan
Category: bug » task

What Nico said, but it wouldn't hurt any if I gave the downloaded file a unique name anyway.

To force a clean import, you can delete the browscap_version and browscap_imported variables.

mikeryan’s picture

Status: Active » Fixed
mikeryan’s picture

Status: Fixed » Closed (fixed)