[horde] Data dir error after php upgrade

Simon Wilson simon at simonandkate.net
Sat Jul 27 08:45:29 UTC 2019


>>> I've upgraded php on a CentOS 6.10 server running Horde 5.2.21  
>>> from 5.4.45 to 5.6.40 (Remi) which appears to have gone OK. All  
>>> pear and pecl updates completed, and Horde / Imp etc all working  
>>> as intended using PHP 5.6.40. Progress! :)
>>>
>>> Only one issue albeit without obvious impact:
>>>
>>> - when going to Horde config page, I get "Database migration files  
>>> not found. Please check PEAR's data_dir configuration setting"
>>>
>>> [root at emp06 pear-data]# pear config-get data_dir
>>> /usr/share/pear-data
>>> [root at emp06 pear-data]# sudo -u apache pear config-get data_dir
>>> /usr/share/pear-data
>>> [root at emp06 pear-data]# pear config-get -c horde data_dir
>>> /usr/share/pear-data
>>>
>>> [root at emp06 pear-data]# pwd; ll
>>> /usr/share/pear-data
>>> total 4
>>> drwxr-xr-x 2 root root 4096 Jul 14 11:37 PEAR
>>>
>>> All of the required Horde data appears to be located in  
>>> /usr/share/pear/data/:
>>>
>>> /usr/share/pear/data
>>> total 244
>>> drwxr-xr-x 3 root root 4096 Jan 29  2013 Cache
>>> drwxr-xr-x 3 root root 4096 Jan 29  2013 Date_Holidays
>>> drwxr-xr-x 2 root root 4096 Jan 29  2013 File_Fstab
>>> drwxr-xr-x 3 root root 4096 Jan 29  2013 horde
>>> drwxr-xr-x 4 root root 4096 Jan 29  2013 Horde_ActiveSync
>>> drwxr-xr-x 4 root root 4096 Jan 29  2013 Horde_Alarm
>>> {snip}
>>> drwxr-xr-x 4 root root 4096 Jan 29  2013 Horde_Vfs
>>> drwxr-xr-x 2 root root 4096 Apr 11  2018 HTTP2
>>> drwxr-xr-x 2 root root 4096 Apr  8  2016 HTTP_Request2
>>> drwxr-xr-x 2 root root 4096 Jan 29  2013 HTTP_WebDAV_Server
>>> drwxr-xr-x 2 root root 4096 Jan 29  2013 MDB2
>>> drwxr-xr-x 2 root root 4096 Feb 17  2013 Net_DNSBL
>>> drwxr-xr-x 2 root root 4096 May 14  2015 Net_FTP
>>> drwxr-xr-x 2 root root 4096 Apr  4  2014 Net_IMAP
>>> drwxr-xr-x 3 root root 4096 Feb 17  2013 Services_Weather
>>> drwxr-xr-x 3 root root 4096 Jan 29  2013 Text_Figlet
>>> drwxr-xr-x 2 root root 4096 Apr 19  2017 Text_LanguageDetect
>>> drwxr-xr-x 3 root root 4096 Jan 29  2013 turba
>>> drwxr-xr-x 2 root root 4096 Aug  4  2018 XML_RPC2
>>> drwxr-xr-x 2 root root 4096 Jan 29  2013 XML_SVG
>>>
>>> Earlier list emails indicates a horde-db-migrate, however this  
>>> appears to complete without error, and nothing changes.  
>>> Reinstalling a Horde application from Pear (e.g. pear install -f  
>>> horde/Horde_Service_Weather) places a new folder in the new  
>>> location.
>>>
>>> What is the recommended way to correct this?
>>>
>>> Simon.
>>>
>>> --
>>
>> From Remi's website - notification of the change of Pear layout  
>> that appears to have triggered this:
>>
>> "4. Data
>> Extensions data are stored  in /usr/share/pear/data.
>>
>> This directory is moved to /usr/share/pear-data (value of  
>> %{pear_datadir} macro).
>>
>> No impact on old packages or manually installed extensions, in  
>> fact, this value is evaluated during RPM build, or manual  
>> installation of an extension and result is harcoded in the scripts.  
>> Of course, existing content is preserved. A rebuild is also  
>> preferred."
>>
>> As it appears that that "move" did not happen, is a move of all of  
>> the content from /usr/share/pear/data to /usr/share/pear-data all  
>> that is required?
>>
>>
>> Simon.
>>
> In absence of suggestions otherwise I have copied contents of the  
> /usr/share/pear/data folder to /usr/share/pear-data, i.e. what the  
> pear version change said it was going to do. This appears to have  
> resolved Horde's concern about not being able to see its data dir  
> contents.
>
> So at this stage everything seems to be pointing to  
> /usr/share/pear-data, including pear upgrades as they happen...  
> hopefully this has resolved it - if anyone is aware that this is  
> going to break something else please let me know!
>
> Simon.
>
> -- 

Can anyone validate or confirm this as the appropriate fix?

Thanks.


-- 
Simon Wilson
M: 0400 12 11 16



More information about the horde mailing list