[Xapian-discuss] "Exception: Couldn't read format template `query' (Permission denied)" - help?

The Dog's Bollix isxpro at yahoo.com
Thu Jun 30 20:08:20 BST 2011




	
	
	
	
	
	

HI there, 




I am running Fedora 15. I run
everything as SU by default. 




I am trying to get Xapian/Omega
installed and running. 




I installed verion 1.26 of xapian from
here: http://xapian.org/download



I followed the example listed here: 




http://trac.xapian.org/wiki/OmegaExample



I searched the archives and found a
reference with some questions from other users so I'll answer them
here: 




The exact error message: 




"Exception: Couldn't read format
template `query' (Permission denied)"



This is displayed in the browser when I
launch http://localhost/cgi-bin/omega.cgi
as indicated at the bottom of the OmegaExample page. 




The error message indicates a
permissions problem, but I've gone back and verified the permissions
on every file and they are all set to the values listed. 




[root at Eagle1 bin]# ls -ld /var /var/lib
/var/lib/omega
drwxrwxrwx. 21 root root 4096 Jun 30
14:46 /var
drwxrwxrwx. 56 root root 4096 May 18
07:33 /var/lib
drwxrwxrwx.  5 root root 4096 Jun 30
13:08 /var/lib/omega



I have further gone into each directory
and modified the permissions of each file to match the above. 




When I run omega from the command line
it outputs a page of html in the shell: 




[root at Eagle1 cgi-bin]# ./omega
'DB=default' 'P=test'
Content-Type: text/html; charset=utf-8






<html>




































<head>
<title>Omega Search: test</title>



<script type="text/javascript"
language="javascript"><!--
function f2(n) {return (n>9?"":"0")+n;}
function write_date(time_t) {
var d=new Date();d.setTi.......



<snipped>



<INPUT TYPE=submit NAME="["
VALUE="1" DISABLED=disabled>
<INPUT TYPE=submit NAME="["
VALUE="2">



<INPUT TYPE=submit NAME="&gt;"
VALUE="Next">






</center><br>
<INPUT TYPE=hidden NAME=DB
VALUE="default">






<INPUT TYPE=hidden NAME=FMT
VALUE="query">



<INPUT TYPE=hidden NAME=xP
VALUE="Ztest">
<INPUT TYPE=hidden NAME=xDB
VALUE="default">
<INPUT TYPE=hidden NAME=xFILTERS
VALUE="--O">












</FORM>
<hr><div
align=right><i><small><a
href="http://xapian.org/">Xapian - xapian-omega
1.2.6</a></small></i></div>
</body>
</html>






When I run this test a query log is
created in var/log/omega and the contents of the log: 




[30/Jun/2011:18:58:16
	+0000]	query	default	test	18




When I run the omega command as per the
OmegaExample page: 




[root at Eagle1 cgi-bin]# omindex --db
/var/lib/omega/data/test4 --url  /book  /var/www/book/
ci_var2.jpg: Skipping - Unknown
extension and unrecognised format
islander.gif: Skipping - Unknown
extension and unrecognised format
ci_til3.jpg: Skipping - Unknown
extension and unrecognised format
S_ci_opo1.jpg: Skipping - Unknown
extension an.......
<snipped>



The database test4 is created, but
there is no entry in query.log. 




I am sure this is some problem on my
end, and I'm hoping someone can point me in the right direction to
get it fixed. 




Thank you in advance for any
suggestions, 




Encee. 



More information about the Xapian-discuss mailing list