FS#8858 - Beagle's install script does not set the ownership to beaglidx for crawl dir /var/cache/beagle

Attached to Project: Arch Linux
Opened by Riri (chicha) - Thursday, 06 December 2007, 20:36 GMT
Last edited by Varun Acharya (ganja_guru) - Monday, 10 December 2007, 18:38 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Varun Acharya (ganja_guru)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Beagle crawl system failes because of wrong permissions for directory /var/cache/beagle.
The directory belongs to root instead of beaglidx. This should be set in the install script.

Additional info:

* package version(s)

beagle 0.3.0-2

* config and/or log files etc.

21:26 root ~]# /etc/cron.daily/beagle-crawl-system
/etc/cron.daily/beagle-crawl-system: Processing files in /etc/beagle...
/etc/cron.daily/beagle-crawl-system: Processing /etc/beagle/crawl-applications...
Error: Unhandled exception thrown. Exiting immediately.
System.TypeInitializationException: An exception was thrown by the type initializer for Beagle.Util.Conf ---> System.UnauthorizedAccessException: Access to the path "/var/cache/beagle/indexes/applications" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000]
at System.IO.Directory.CreateDirectory (System.String path) [0x00000]
at System.IO.DirectoryInfo.Create () [0x00000]
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000]
at System.IO.Directory.CreateDirectory (System.String path) [0x00000]
at Beagle.Util.Conf..cctor () [0x00000] --- End of inner exception stack trace ---

at <0x00000> <unknown method>
at Beagle.Daemon.BuildIndex.DoMain (System.String[] args) [0x00000]
at Beagle.Daemon.BuildIndex.Main (System.String[] args) [0x00000]
/etc/cron.daily/beagle-crawl-system: Finished processing /etc/beagle/crawl-applications.
/etc/cron.daily/beagle-crawl-system: Processing files in /etc/beagle...
/etc/cron.daily/beagle-crawl-system: Processing /etc/beagle/crawl-documentation...
Error: Unhandled exception thrown. Exiting immediately.
System.TypeInitializationException: An exception was thrown by the type initializer for Beagle.Util.Conf ---> System.UnauthorizedAccessException: Access to the path "/var/cache/beagle/indexes/documentation" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000]
at System.IO.Directory.CreateDirectory (System.String path) [0x00000]
at System.IO.DirectoryInfo.Create () [0x00000]
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000]
at System.IO.Directory.CreateDirectory (System.String path) [0x00000]
at Beagle.Util.Conf..cctor () [0x00000] --- End of inner exception stack trace ---

at <0x00000> <unknown method>
at Beagle.Daemon.BuildIndex.DoMain (System.String[] args) [0x00000]
at Beagle.Daemon.BuildIndex.Main (System.String[] args) [0x00000]
/etc/cron.daily/beagle-crawl-system: Finished processing /etc/beagle/crawl-documentation.
/etc/cron.daily/beagle-crawl-system: Processing files in /etc/beagle...
/etc/cron.daily/beagle-crawl-system: Processing /etc/beagle/crawl-windows...
Error: Unhandled exception thrown. Exiting immediately.
System.TypeInitializationException: An exception was thrown by the type initializer for Beagle.Util.Conf ---> System.UnauthorizedAccessException: Access to the path "/var/cache/beagle/indexes/windows" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000]
at System.IO.Directory.CreateDirectory (System.String path) [0x00000]
at System.IO.DirectoryInfo.Create () [0x00000]
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000]
at System.IO.Directory.CreateDirectory (System.String path) [0x00000]
at Beagle.Util.Conf..cctor () [0x00000] --- End of inner exception stack trace ---

at <0x00000> <unknown method>
at Beagle.Daemon.BuildIndex.DoMain (System.String[] args) [0x00000]
at Beagle.Daemon.BuildIndex.Main (System.String[] args) [0x00000]
/etc/cron.daily/beagle-crawl-system: Finished processing /etc/beagle/crawl-windows.


Steps to reproduce:

Set the DEBUG variable to 1 in file /etc/cron.daily/beagle-crawl-system.
Then run /etc/cron.daily/beagle-crawl-system as root.

This issue is very easy to fix :
chown -R beaglidx:beaglidx /var/cache/beagle

This should also be fixed in the PKGBUILD / install script.

I hope it helped !
Thank you to the devs for packaging this great tool :-)
Cheers,

Chicha
This task depends upon

Closed by  Varun Acharya (ganja_guru)
Monday, 10 December 2007, 18:38 GMT
Reason for closing:  Fixed
Comment by Varun Acharya (ganja_guru) - Monday, 10 December 2007, 18:38 GMT
Thanks for the heads up, fixed. Also, if you've been using beagle for a while, you might want to look at this:

http://beagle-project.org/Known_Issues

Loading...