[horde] weather and metar problem

Polleke polleke at dsv.nl
Mon Mar 8 12:57:11 PST 2004


I have similar problems when configuring metar weather:

when accessing portal horde.log gives:

HORDE [debug] [] User  does not have READ permission for horde [on line 637 of "/usr/share/pear/Horde/Registry.php

no solution yet...


On Sun, 7 Mar 2004 17:39:46 -0500
Ilya <mail at krel.org> wrote:

Ilya> I traced the failure to this line:
Ilya> Horde::logMessage("IN CACHE1 $cacheType $cacheOptions[cache_dir] ", __FILE__,
Ilya> __LINE__, PEAR_LOG_ERR);
Ilya>         @$cache = new Cache($cacheType, $cacheOptions);
Ilya> Horde::logMessage("IN CACHE2", __FILE__, __LINE__, PEAR_LOG_ERR);
Ilya> 
Ilya> never gets to second print. so it fails when create Cache object. the prints of
Ilya> cacheType returns "file" , and cacheOptions returns /tmp correctly.
Ilya> 
Ilya> do you know which Cache.php is used for this? there are 3 on my system :
Ilya> ./HTTP/Header/Cache.php
Ilya> ./Horde/Cache.php
Ilya> ./Horde/IMAP/Cache.php
Ilya> 
Ilya> moving all of them away does not cause a failure of this line:
Ilya> @include_once "Cache.php";
Ilya> 
Ilya> so i am not sure what is being loaded here.
Ilya> 
Ilya> 
Ilya> On Thu, Mar 04, 2004 at 10:38:10AM -0500, Rick Emery wrote:
Ilya> > This got rejected the first time I tried to send it, so I'm trying again.
Ilya> > 
Ilya> > A post by someone else got my attention, too. I wonder if the pear cache
Ilya> > package could be causing a problem (the comments in the Services_Weather code
Ilya> > indicate that there is no error handling in the cache package). You might try
Ilya> > making sure you have the latest pear cache package installed; maybe there was
Ilya> > a bug that was fixed.
Ilya> > 
Ilya> > hth,
Ilya> > Rick
Ilya> > 
Ilya> > ----- Forwarded message from rick at emery.homelinux.net -----
Ilya> >     Date: Thu,  4 Mar 2004 08:49:16 -0500
Ilya> >     From: Rick Emery <rick at emery.homelinux.net>
Ilya> > Reply-To: Rick Emery <rick at emery.homelinux.net>
Ilya> >  Subject: Re: [horde] weather and metar problem
Ilya> >       To: mail at krel.org
Ilya> > 
Ilya> > Quoting Ilya <mail at krel.org>:
Ilya> > 
Ilya> > > commenting out these lines, allows the weather to show up, am I breaking
Ilya> > > something?
Ilya> > >
Ilya> > >    $weatherDotCom->setCache("file",
Ilya> > >                 array("cache_dir" => ($cacheDir . '/')));
Ilya> > 
Ilya> > The caching is pretty important. weather.com has very strict rules about how
Ilya> > often a user can poll the site for weather info; using Services_Weather's
Ilya> > caching routines obeys these rules. It would probably be better to try to
Ilya> > figure out why caching in the temporary directory is failing than to run
Ilya> > without it.
Ilya> > 
Ilya> > > this is what i have in conf.php:
Ilya> > > $conf['cache']['default_lifetime'] = 1800;
Ilya> > > $conf['cache']['params']['dir'] = Horde::getTempDir();
Ilya> > > $conf['cache']['driver'] = 'file';
Ilya> > 
Ilya> > This looks like mine, except I have a directory explicitly listed (instead of
Ilya> > Horde::getTempDir()).
Ilya> > 
Ilya> > > I tried to set dir to /tmp or /var/tmp, didnt work. Printing out the
Ilya> > > cache dir
Ilya> > > from the weatherdotcom.php always shows /tmp.
Ilya> > 
Ilya> > Does the user your web server runs as have permission to write to the /tmp
Ilya> > directory? (I think it's the user your web server runs as that has to have
Ilya> > write permission. I'm cc'ing the horde list for the archives, so I hope
Ilya> > someone will correct me if I'm wrong).
Ilya> > 
Ilya> > Thanks,
Ilya> > Rick
Ilya> > 
Ilya> > --
Ilya> > Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
Ilya> > Frequently Asked Questions: http://horde.org/faq/
Ilya> > To unsubscribe, mail: horde-unsubscribe at lists.horde.org
Ilya> > 
Ilya> > ----- End forwarded message -----
Ilya> > 
Ilya> > 
Ilya> > --
Ilya> > Rick Emery
Ilya> > 
Ilya> > "When once you have tasted flight, you will forever walk the Earth
Ilya> >  with your eyes turned skyward, for there you have been, and there
Ilya> >  you will always long to return"
Ilya> >                                               -- Leonardo Da Vinci
Ilya> > 
Ilya> -- 
Ilya> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
Ilya> Frequently Asked Questions: http://horde.org/faq/
Ilya> To unsubscribe, mail: horde-unsubscribe at lists.horde.org



Greetings from Polleke...

Homepage: http://www.casema.net/~polleke
Email: polleke at casema.net       ICQ: 4265701

Any sufficiently advanced technology is indistinguishable from magic.
	- Arthur C. Clarke




More information about the horde mailing list