Thread: [Lxr-general] Problem installing: "The directory / does not exist"
Brought to you by:
ajlittoz
From: Tommi H. <to...@dr...> - 2009-10-17 07:51:22
|
Hi! I've installed LXR 0.9.6 on Centos 5.3. Using aAache2, mySQL, Swhish-e I've followed all the installation instructions and (hopefully) have remembered to execute all the steps. http://myip/lxr/source/ displays the portal fine, but doesn't show any source code. It says "The directory / does not exist." LXR is in /usr/local/lxr/ The source code itself is in /home/admin/indexed-src, which has been configured to lxr.conf. (src is Symbian C++, please don't let that affect= :) Swish-e has written 3 files in /home/admin/swish-e/ The mySQL DB was configured by initdb-mysql and genxref has written into it. Right now I'm running out of ideas what to check next. Please ask more details about my environment / setup, the above probably doesn't have all the needed info. Thanks for any help! -Tommi |
From: Malcolm B. <mal...@gm...> - 2009-10-17 15:28:39
|
It sounds like there's some misconfiguration in the lxr.conf file. Can you post the file? And don't worry, LXR works fine with Symbian C++ (since I used to work for Symbian!) M On Sat, Oct 17, 2009 at 8:31 AM, Tommi Halonen <to...@dr...> wrote: > Hi! > > I've installed LXR 0.9.6 on Centos 5.3. > Using aAache2, mySQL, Swhish-e > > I've followed all the installation instructions and (hopefully) have > remembered to execute all the steps. > > http://myip/lxr/source/ displays the portal fine, but doesn't show any > source code. It says "The directory / does not exist." > > LXR is in /usr/local/lxr/ > The source code itself is in /home/admin/indexed-src, which has been > configured to lxr.conf. (src is Symbian C++, please don't let that > affect= > :) > Swish-e has written 3 files in /home/admin/swish-e/ > The mySQL DB was configured by initdb-mysql and genxref has written into > it. > > > Right now I'm running out of ideas what to check next. Please ask more > details about my environment / setup, the above probably doesn't have > all > the needed info. > > Thanks for any help! > > -Tommi > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Lxr-general mailing list > Lxr...@li... > https://lists.sourceforge.net/lists/listinfo/lxr-general > |
From: Tommi H. <to...@dr...> - 2009-10-19 08:07:30
Attachments:
lxr.conf
|
Here the file, attached. -Tommi On Sat, 17 Oct 2009 16:28:06 +0100, Malcolm Box <mal...@gm...> wrote: > It sounds like there's some misconfiguration in the lxr.conf file. > Can you post the file? > > And don't worry, LXR works fine with Symbian C++ (since I used to work > for Symbian!) > > M > > On Sat, Oct 17, 2009 at 8:31 AM, Tommi Halonen <to...@dr...> wrote: >> Hi! >> >> I've installed LXR 0.9.6 on Centos 5.3. >> Using aAache2, mySQL, Swhish-e >> >> I've followed all the installation instructions and (hopefully) have >> remembered to execute all the steps. >> >> http://myip/lxr/source/ displays the portal fine, but doesn't show any >> source code. It says "The directory / does not exist." >> >> LXR is in /usr/local/lxr/ >> The source code itself is in /home/admin/indexed-src, which has been >> configured to lxr.conf. (src is Symbian C++, please don't let that >> affect= >> :) >> Swish-e has written 3 files in /home/admin/swish-e/ >> The mySQL DB was configured by initdb-mysql and genxref has written into >> it. >> >> >> Right now I'm running out of ideas what to check next. Please ask more >> details about my environment / setup, the above probably doesn't have >> all >> the needed info. >> >> Thanks for any help! >> >> -Tommi >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Lxr-general mailing list >> Lxr...@li... >> https://lists.sourceforge.net/lists/listinfo/lxr-general >> > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Lxr-general mailing list > Lxr...@li... > https://lists.sourceforge.net/lists/listinfo/lxr-general |
From: Malcolm B. <mal...@gm...> - 2009-10-19 18:09:03
|
On Mon, Oct 19, 2009 at 9:07 AM, Tommi Halonen <to...@dr...> wrote: > Here the file, attached. > > -Tommi Looking at the config file, your source code should be in the directory: /home/admin/indexed-src/SW_200936/ does this directory exist? The general pattern is that the source code lives in $sourceroot/$version/ where $version is one of the versions configured for $v in the lxr.conf file. Hope this helps! Malcolm |
From: Tommi H. <to...@dr...> - 2009-10-20 14:40:56
|
On Mon, 19 Oct 2009 19:08:25 +0100, Malcolm Box <mal...@gm...> wrote: > > Looking at the config file, your source code should be in the directory: > > /home/admin/indexed-src/SW_200936/ > > does this directory exist? Yes it does. It and its sub directories also all have read and execute rights for u/g/o (which might not be a good idea, but I wanted to make sure it's not causing problems). Is Apache looking for the source files directly from there or from the DB? -Tommi |
From: Malcolm B. <mal...@gm...> - 2009-10-21 09:21:53
|
On Tue, Oct 20, 2009 at 3:40 PM, Tommi Halonen <to...@dr...> wrote: > On Mon, 19 Oct 2009 19:08:25 +0100, Malcolm Box <mal...@gm...> > wrote: >> >> Looking at the config file, your source code should be in the directory: >> >> /home/admin/indexed-src/SW_200936/ >> >> does this directory exist? > > Yes it does. It and its sub directories also all have read and execute > rights for u/g/o (which might not be a good idea, but I wanted to make sure > it's not causing problems). Is Apache looking for the source files directly > from there or from the DB? LXR loads the source files directly from there, they are not saved in the database. This is puzzling - as far as I can see the configuration is correct and you should be seeing the source files. Can you confirm that genxref has successfully put data in the database - ie you saw a log of each file processed when you ran genxref, and the database has contents? If that's the case then LXR can definitely find the code. When you say the portal displays fine at http://myip/lxr/source/, do you mean you see the LXR header etc but where you would expect to see a listing of the top level directory of the source code you see "The directory / does not exist"? If none of those provide a eureka moment then could you try adding some debug prints to LXR to see what's going wrong? - At around line 150 of source, where it reads: 151 @nodes = $files->getdir($dir, $releaseid); 152 unless (@nodes) { 153 print( "<p align=\"center\">\n<i>The directory " . $dir 154 . " does not exist.</i>\n"); Can you add a print of $releaseid and $files Then in lib/LXR/Files/Plain.pm at line 99 99 sub getdir { 100 my ($self, $pathname, $releaseid) = @_; 101 my ($dir, $node, @dirs, @files); Add a print of $pathname, $releaseid, and at line 108 107 $dir = $self->toreal($pathname, $releaseid); 108 opendir(DIR, $dir) || return (); add a print of $dir which will show what directory LXR is trying to open. Hopefully one of these will reveal what's going wrong! Cheers, Malcolm |
From: Tommi H. <to...@dr...> - 2009-11-03 07:51:12
|
Back in the business after a while... DrRoessi continued our effort to get LXR running and got already some new info. Could you please post the current situation here. Big thanks Malcolm for your support! -Tommi On Wed, 21 Oct 2009 10:21:23 +0100, Malcolm Box <mal...@gm...> wrote: > On Tue, Oct 20, 2009 at 3:40 PM, Tommi Halonen <to...@dr...> wrote: >> On Mon, 19 Oct 2009 19:08:25 +0100, Malcolm Box <mal...@gm...> >> wrote: >>> >>> Looking at the config file, your source code should be in the directory: >>> >>> /home/admin/indexed-src/SW_200936/ >>> >>> does this directory exist? >> >> Yes it does. It and its sub directories also all have read and execute >> rights for u/g/o (which might not be a good idea, but I wanted to make >> sure >> it's not causing problems). Is Apache looking for the source files >> directly >> from there or from the DB? > > LXR loads the source files directly from there, they are not saved in > the database. > > This is puzzling - as far as I can see the configuration is correct > and you should be seeing the source files. > > Can you confirm that genxref has successfully put data in the database > - ie you saw a log of each file processed when you ran genxref, and > the database has contents? If that's the case then LXR can definitely > find the code. > > When you say the portal displays fine at http://myip/lxr/source/, do > you mean you see the LXR header etc but where you would expect to see > a listing of the top level directory of the source code you see "The > directory / does not exist"? > > If none of those provide a eureka moment then could you try adding > some debug prints to LXR to see what's going wrong? > > - At around line 150 of source, where it reads: > 151 @nodes = $files->getdir($dir, $releaseid); > 152 unless (@nodes) { > 153 print( "<p align=\"center\">\n<i>The directory " . $dir > 154 . " does not exist.</i>\n"); > > Can you add a print of $releaseid and $files > > Then in lib/LXR/Files/Plain.pm at line 99 > 99 sub getdir { > 100 my ($self, $pathname, $releaseid) = @_; > 101 my ($dir, $node, @dirs, @files); > > Add a print of $pathname, $releaseid, and at line 108 > 107 $dir = $self->toreal($pathname, $releaseid); > 108 opendir(DIR, $dir) || return (); > > add a print of $dir which will show what directory LXR is trying to open. > > Hopefully one of these will reveal what's going wrong! > > Cheers, > > Malcolm > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Lxr-general mailing list > Lxr...@li... > https://lists.sourceforge.net/lists/listinfo/lxr-general |
From: Dr R. <drr...@gm...> - 2009-11-03 11:36:01
|
Hi, Old issues are solved now, but substituted by new ones. Here's current situation. By moving sources from "/home/admin/indexed-src/SW_200936/" to "/testFolder/SW_200936/" solved most of the problems. Currenly sources can be browsed via web interface and identifier search works ok. Remaining problem is general search. Even if I search text that is included in indexed files for sure, I get reply "0 files found." and error "*Version 'SW_200936' has not been indexed and is unavailable for searching.*" There seems to be one reported bug that is related to this same issue with " *Version 'XXXXXXX' has not been indexed and is unavailable for searching.*". I wonder is this fixed into lxr version lxr-0.9.6 or fixed at all. https://bugs.maemo.org/show_bug.cgi?id=406 Br, Heikki > > On Tue, Nov 3, 2009 at 9:50 AM, Tommi Halonen <to...@dr...> wrote: > >> Back in the business after a while... >> DrRoessi continued our effort to get LXR running and got already some new >> info. Could you please post the current situation here. >> >> Big thanks Malcolm for your support! >> >> -Tommi >> >> >> On Wed, 21 Oct 2009 10:21:23 +0100, Malcolm Box <mal...@gm...> >> wrote: >> > On Tue, Oct 20, 2009 at 3:40 PM, Tommi Halonen <to...@dr...> wrote: >> >> On Mon, 19 Oct 2009 19:08:25 +0100, Malcolm Box <mal...@gm... >> > >> >> wrote: >> >>> >> >>> Looking at the config file, your source code should be in the >> directory: >> >>> >> >>> /home/admin/indexed-src/SW_200936/ >> >>> >> >>> does this directory exist? >> >> >> >> Yes it does. It and its sub directories also all have read and execute >> >> rights for u/g/o (which might not be a good idea, but I wanted to make >> >> sure >> >> it's not causing problems). Is Apache looking for the source files >> >> directly >> >> from there or from the DB? >> > >> > LXR loads the source files directly from there, they are not saved in >> > the database. >> > >> > This is puzzling - as far as I can see the configuration is correct >> > and you should be seeing the source files. >> > >> > Can you confirm that genxref has successfully put data in the database >> > - ie you saw a log of each file processed when you ran genxref, and >> > the database has contents? If that's the case then LXR can definitely >> > find the code. >> > >> > When you say the portal displays fine at http://myip/lxr/source/, do >> > you mean you see the LXR header etc but where you would expect to see >> > a listing of the top level directory of the source code you see "The >> > directory / does not exist"? >> > >> > If none of those provide a eureka moment then could you try adding >> > some debug prints to LXR to see what's going wrong? >> > >> > - At around line 150 of source, where it reads: >> > 151 @nodes = $files->getdir($dir, $releaseid); >> > 152 unless (@nodes) { >> > 153 print( "<p align=\"center\">\n<i>The directory " >> . $dir >> > 154 . " does not exist.</i>\n"); >> > >> > Can you add a print of $releaseid and $files >> > >> > Then in lib/LXR/Files/Plain.pm at line 99 >> > 99 sub getdir { >> > 100 my ($self, $pathname, $releaseid) = @_; >> > 101 my ($dir, $node, @dirs, @files); >> > >> > Add a print of $pathname, $releaseid, and at line 108 >> > 107 $dir = $self->toreal($pathname, $releaseid); >> > 108 opendir(DIR, $dir) || return (); >> > >> > add a print of $dir which will show what directory LXR is trying to >> open. >> > >> > Hopefully one of these will reveal what's going wrong! >> > >> > Cheers, >> > >> > Malcolm >> > >> > >> >> ------------------------------------------------------------------------------ >> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> > is the only developer event you need to attend this year. Jumpstart your >> > developing skills, take BlackBerry mobile applications to market and >> stay >> >> > ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> > http://p.sf.net/sfu/devconference >> > _______________________________________________ >> > Lxr-general mailing list >> > Lxr...@li... >> > https://lists.sourceforge.net/lists/listinfo/lxr-general >> > > |
From: Malcolm B. <mal...@gm...> - 2009-11-03 13:43:49
|
On Tue, Nov 3, 2009 at 11:35 AM, Dr Roessi <drr...@gm...> wrote: > By moving sources from "/home/admin/indexed-src/SW_200936/" to > "/testFolder/SW_200936/" solved most of the problems. That would suggest that /home/admin/indexed-src was not readable by the user that apache is running as. A simple test of this is to configure /home/admin/indexed-src as a normal Apache document directory and see if it can be read. > Currently sources can > be browsed via web interface and identifier search works ok. Good! > Remaining problem is general search. Even if I search text that is included in indexed > files for sure, I get reply "0 files found." and error "Version 'SW_200936' > has not been indexed and is unavailable for searching." Possibly the same problem? Things to check: - Did genxref generate swish-e index files in $swishdir? - Using swish-e from the command line, can you search using the indexes created? - Can the user that apache is running as access those indexes? Malcolm |
From: Dr R. <drr...@gm...> - 2009-11-04 07:32:28
|
Hi, At the moment this root is just fine place to keep our sources, so I'll leave that fighting with Apache later. - Did genxref generate swish-e index files in $swishdir? Yes. Folder /home/admin/swish-e contains following files: -rw-r--r-- 1 root root 0 Nov 3 12:54 testFolder.filenames -rw-r--r-- 1 root root 4 Nov 3 12:54 testFolder.index.prop.temp -rw-r--r-- 1 root root 802160 Nov 3 12:54 testFolder.index.temp I just created new index from new folder and I got only myFileName.filenames file. Point is that indexing seems to do something, and I get at least .filenames file. - Using swish-e from the command line, can you search using the indexes created? Looks like command line search is trying to use wrong index file, because I get error: "err: Index file error: Could not open the index file 'index.swish-e': No such file or directory" I can not find any parameters that could be used to search using my own testFolder.* -indexes. I have set variable: swishdir=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/admin/bin:/home/admin/swish-e, like described in installation instructions. - Can the user that apache is running as access those indexes? I don't have answer for this yet. Might be the problem as well, and I am investigating this. -Heikki On Tue, Nov 3, 2009 at 3:43 PM, Malcolm Box <mal...@gm...> wrote: > > On Tue, Nov 3, 2009 at 11:35 AM, Dr Roessi <drr...@gm...> wrote: > > By moving sources from "/home/admin/indexed-src/SW_200936/" to > > "/testFolder/SW_200936/" solved most of the problems. > > That would suggest that /home/admin/indexed-src was not readable by > the user that apache is running as. > > A simple test of this is to configure /home/admin/indexed-src as a > normal Apache document directory and see if it can be read. > > > Currently sources can > > be browsed via web interface and identifier search works ok. > > Good! > > > Remaining problem is general search. Even if I search text that is included in indexed > > files for sure, I get reply "0 files found." and error "Version 'SW_200936' > > has not been indexed and is unavailable for searching." > > Possibly the same problem? > Things to check: > > - Did genxref generate swish-e index files in $swishdir? > - Using swish-e from the command line, can you search using the indexes created? > - Can the user that apache is running as access those indexes? > > Malcolm > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Lxr-general mailing list > Lxr...@li... > https://lists.sourceforge.net/lists/listinfo/lxr-general |
From: Dr R. <drr...@gm...> - 2009-11-04 09:36:46
|
Hi, Every problem we experienced were caused because lack of access rights. Last problem was caused because search (general search) was unable to open index files from /home/admin/swish-e. Index files can be accessed from folder under root (e.g. /some_folder). Thank you for your help and quick replies Malcolm. -Heikki On Wed, Nov 4, 2009 at 9:32 AM, Dr Roessi <drr...@gm...> wrote: > Hi, > > At the moment this root is just fine place to keep our sources, so > I'll leave that fighting with Apache later. > > - Did genxref generate swish-e index files in $swishdir? > > Yes. Folder /home/admin/swish-e contains following files: > -rw-r--r-- 1 root root 0 Nov 3 12:54 testFolder.filenames > -rw-r--r-- 1 root root 4 Nov 3 12:54 testFolder.index.prop.temp > -rw-r--r-- 1 root root 802160 Nov 3 12:54 testFolder.index.temp > > I just created new index from new folder and I got only > myFileName.filenames file. Point is that indexing seems to do > something, and I get at least .filenames file. > > - Using swish-e from the command line, can you search using the indexes created? > > Looks like command line search is trying to use wrong index file, > because I get error: > "err: Index file error: Could not open the index file 'index.swish-e': > No such file or directory" > I can not find any parameters that could be used to search using my > own testFolder.* -indexes. I have set variable: > swishdir=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/admin/bin:/home/admin/swish-e, > like described in installation instructions. > > - Can the user that apache is running as access those indexes? > > I don't have answer for this yet. Might be the problem as well, and I > am investigating this. > > -Heikki > > On Tue, Nov 3, 2009 at 3:43 PM, Malcolm Box <mal...@gm...> wrote: >> >> On Tue, Nov 3, 2009 at 11:35 AM, Dr Roessi <drr...@gm...> wrote: >> > By moving sources from "/home/admin/indexed-src/SW_200936/" to >> > "/testFolder/SW_200936/" solved most of the problems. >> >> That would suggest that /home/admin/indexed-src was not readable by >> the user that apache is running as. >> >> A simple test of this is to configure /home/admin/indexed-src as a >> normal Apache document directory and see if it can be read. >> >> > Currently sources can >> > be browsed via web interface and identifier search works ok. >> >> Good! >> >> > Remaining problem is general search. Even if I search text that is included in indexed >> > files for sure, I get reply "0 files found." and error "Version 'SW_200936' >> > has not been indexed and is unavailable for searching." >> >> Possibly the same problem? >> Things to check: >> >> - Did genxref generate swish-e index files in $swishdir? >> - Using swish-e from the command line, can you search using the indexes created? >> - Can the user that apache is running as access those indexes? >> >> Malcolm >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Lxr-general mailing list >> Lxr...@li... >> https://lists.sourceforge.net/lists/listinfo/lxr-general > |
From: Malcolm B. <mal...@gm...> - 2009-11-04 11:04:55
|
On Wed, Nov 4, 2009 at 9:36 AM, Dr Roessi <drr...@gm...> wrote: > Every problem we experienced were caused because lack of access > rights. Last problem was caused because search (general search) was > unable to open index files from /home/admin/swish-e. Index files can > be accessed from folder under root (e.g. /some_folder). > > Thank you for your help and quick replies Malcolm. You're welcome, glad you got it working. Happy LXR-ing. Malcolm |