[horde] Horde-alarms problem

Jan Schneider jan at horde.org
Mon Mar 12 12:33:27 UTC 2012


Zitat von Jens Grüntjes <jens.gruentjes at ebira.de>:

> Zitat von Jan Schneider <jan at horde.org>:
>
>> Zitat von Jens Grüntjes <jens.gruentjes at ebira.de>:
>>
>>> Zitat von Jan Schneider <jan at horde.org>:
>>>
>>>> Zitat von Jens Grüntjes <jens.gruentjes at ebira.de>:
>>>>
>>>>> Zitat von Jan Schneider <jan at horde.org>:
>>>>>
>>>>>> Zitat von Jens Gruentjes <jens.gruentjes at ebira.de>:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> I have a problem with the horde alarm system. My problem is  
>>>>>>> quite similar to the problem that was already discussed on  
>>>>>>> this list (I attached the conversation below). Unfortunately  
>>>>>>> for me there was no "solution" offered as information was  
>>>>>>> missing. I can say that the user www-data in my case has no  
>>>>>>> local pear configuration. I installed horde the standard way  
>>>>>>> (no separate PEAR installation).
>>>>>>>
>>>>>>> Is it recommended to run the alarm-script as root user or is a  
>>>>>>> non-priviledged-user preferred? What can I do to run the  
>>>>>>> script as user www-data?
>>>>>>>
>>>>>>> I'm using Horde Groupware Webmail Edition 4.0.6
>>>>>>> turba-3.0.12
>>>>>>> nag-3.0.7
>>>>>>> ingo-2.0.7
>>>>>>> horde-4.0.14
>>>>>>> kronolith-3.0.15
>>>>>>> mnemo-3.0.5
>>>>>>> imp-5.0.19
>>>>>>
>>>>>> Is your problem just "quite similar" or do you get the same  
>>>>>> error messages?
>>>>>>
>>>>>
>>>>> The error messages are the same:
>>>>>
>>>>> www-data at xxxxxx:~$ LC_ALL=C horde-alarms
>>>>> PHP Warning:   
>>>>> require_once(/usr/share/php/www/horde/lib/Application.php):  
>>>>> failed to open stream: No such file or directory in  
>>>>> /usr/bin/horde-alarms on line 18
>>>>> PHP Fatal error:  require_once(): Failed opening required  
>>>>> '/usr/share/php/www/horde/lib/Application.php'  
>>>>> (include_path='.:/usr/share/php:/usr/share/pear') in  
>>>>> /usr/bin/horde-alarms on line 18
>>>>
>>>> Unless /usr/share/php/www/ is your webroot, this means that your  
>>>> horde_dir PEAR setting is wrong. This setting is supposed to be  
>>>> set by running the Horde_Role postinstall script.
>>>> But you can also set it manually:
>>>> pear config-set -c horde horde_dir /path/to/horde
>>>>
>>>
>>> My webroot (for horde) is /var/www/, i.e. horde is installed at  
>>> /var/www/horde.
>>>
>>> Is it possible that the horde_dir is set for the user that runs  
>>> the Horde_Role script? In my case it was run by root, so root can  
>>> execute the horde-alarms correctly. Is it recommended to run the  
>>> horde-installation as the user who runs the webserver (in my case  
>>> www-data)?
>>>
>>> Running your command gives the following result:
>>>
>>> www-data at xxxxxx:~$ pear config-set -c horde horde_dir /var/www/horde
>>> config-set (horde_dir, /var/www/horde, user) failed, channel pear.horde.org
>>
>> PEAR should really be a bit more verbose with the error message.  
>> Anyways, does:
>>
>> pear config-set -c horde horde_dir /var/www/horde system
>>
>> executed as root work?
>
> Yes, it does:
>
> root at xxxxx ~ # pear config-set -c horde horde_dir /var/www/horde system
> config-set succeeded

And does it actually make the cron job work?

>>>>>>>> On Tue, 2011-06-07 at 09:46 +0200, Jan Schneider wrote:
>>>>>>>
>>>>>>>>> Zitat von Ole Wolf <ole at naturloven.dk>:
>>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> I'm not sure whether this is a bug or just me not having  
>>>>>>>>>> configured my
>>>>>>>>>> server correctly, but hopefully someone can help me out. :)
>>>>>>>>>>
>>>>>>>>>> I'm calling horde-alarms via a cron job as the user www-data:
>>>>>>>>>>
>>>>>>>>>> */5 * * * *	www-data	/usr/bin/horde-alarms
>>>>>>>>>>
>>>>>>>>>> At first, it gave the following error:
>>>>>>>>>>
>>>>>>>>>> PHP Warning:
>>>>>>>>>> require_once(/usr/share/php/www/horde/lib/Application.php):  
>>>>>>>>>> failed to
>>>>>>>>>> open stream: No such file or directory in  
>>>>>>>>>> /usr/bin/horde-alarms on line
>>>>>>>>>> 18
>>>>>>>>>> PHP Fatal error:  require_once(): Failed opening required
>>>>>>>>>> '/usr/share/php/www/horde/lib/Application.php'  > >  
>>>>>>>>>> (include_path='.:/usr/share/php:/usr/share/pear') in  > >  
>>>>>>>>>> /usr/bin/horde-alarms on line 18
>>>>>>>>>>
>>>>>>>>>> This seems reasonable enough, since on my server, Horde  
>>>>>>>>>> isn't installed
>>>>>>>>>> in /usr/share/php/www/horde, but in /var/www/webmail.
>>>>>>>>>>
>>>>>>>>>> I hacked my way around it by creating the directory  
>>>>>>>>>> /usr/share/php/www
>>>>>>>>>> and from there making a symlink to /var/www/webmail (that is, ln
>>>>>>>>>> -s /var/www/webmail /usr/share/php/www/horde), but this  
>>>>>>>>>> isn't an overly
>>>>>>>>>> elegant solution.
>>>>>>>>>>
>>>>>>>>>> Is there an obvious way to make the horde-alarms and  
>>>>>>>>>> probably also the
>>>>>>>>>> horde-agenda commands look for the horde installation in the right
>>>>>>>>>> place, such as via an .ini file, or with an environment variable?
>>>>>>>>>> Make sure that the user that is running the cron job,  
>>>>>>>>>> doesn't have a  > local pear configuration in $HOME that  
>>>>>>>>>> overwrites the horde_dir path.
>>>>>>>
>>>>>>>
>>>>>>> -- 
>>>>>>> Horde mailing list
>>>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>>>
>>>>>> -- 
>>>>>> The Horde Project
>>>>>> http://www.horde.org/
>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> Horde mailing list
>>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Horde mailing list
>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>
>>>> -- 
>>>> The Horde Project
>>>> http://www.horde.org/
>>>>
>>>>
>>>> -- 
>>>> Horde mailing list
>>>> Frequently Asked Questions: http://horde.org/faq/
>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>
>>>
>>>
>>> -- 
>>> Horde mailing list
>>> Frequently Asked Questions: http://horde.org/faq/
>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>
>> -- 
>> The Horde Project
>> http://www.horde.org/
>>
>>
>> -- 
>> Horde mailing list
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
>
>
> -- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org

-- 
The Horde Project
http://www.horde.org/




More information about the horde mailing list