This is a short list of frequently encountered errors and diagnostics.
You can also participate in improving this page through the Help forum.
Fatal: Couldn't open configuration file xxx
lxr.conf does not exist or cannot be accessed.
The file described by parameter 'filetypeconf'
does not exist or cannot be accessed.
'filetypeconf'
file.
Fatal: Single tree operation requested
and x trees found in configuration file
Parameter 'routing'
is set to 'single'
and lxr.conf describes several trees.
Fatal: Can't find config for xxx
The value of the --url=
option must match
one of the 'host_names'/'virtroot'
combinations,
'baseurl'
or 'baseurl_aliases'
parameters
in lxr.conf.
The value of the --tree=
option must eventually be
equal to the 'treename'
parameter of one of the trees.
genxref
line
or of your parameters.
Fatal: No file type mapping in xxx
Fatal: No file script interpreter mapping in xxx
lxr.conf and the 'filetypeconf'
optional file do not contain
'filetype'
or 'interpreters'
parameters.
Fatal: Couldn't make directory xxx
LXR tries to create directories described by parameters
'tmpdir'
,
'glimpsedir'
or 'glimpsedirbase'
and
'swishdir'
or 'swishdirbase'
if they do not exist.
Fatal: Both Glimpse and Swish-e have been specified in xxx
Fatal: Neither Glimpse nor Swish-e have been specified in xxx
Both parameters 'glimpsebin'
and 'swishbin'
have been defined.
LXR cannot fancy which one to use for this tree.
Alternatively, none of these parameters have been defined for
a tree stored in plain files.
Fatal: Cant't find database xxx
Parameter 'dbname'
incorrectly describes the database
(either unsupported storage engine or no storage engine).
Fatal: Cant't open connection to database xxx
Database connection is opened with values taken from parameters
'dbname'
, 'dbuser'
and 'dbpass'
.
Fatal: Can't create Index xxx
Usually preceded by another error,
such as Can't open connection to database yyy
or by an OS error about a lock or a socket
(if it does not print on screen, check the web server log).
Fatal: Disconnect failed: xxx
An error occurred when disconnecting from the database. It usually means some transactions are still active.
Fatal: Can't create file access object xxx
This should not happen.
If your tree is stored in a Subversion repository,
check first the svn
binary can be accessed.
Fatal: xxx subprocess died unexpectedly
The task requested from Git, Mercurial (hg
)
or Subversion (svn
) errored out.
Fatal: Error executing "xxx"; rcs not installed?
(CVS)
Checking out a file from CVS repository failed.
Warning: Oops! Out of sync!
(CVS)
CVS differences information need to be reprocessed to attribute each line to the correct revision. LXR lost its marks while analysing a file.
No matching configuration xxx
No 'sourceroot' for xxx
A tree description in lxr.conf has no 'sourceroot'
parameter.
Variable 'v' needed to define versions xxx
A tree description in lxr.conf has no 'v'
(version) parameter.
No version to index
An explicit indexation request with --version=xxx
could nout be satisfied.
The preceding message explains why.
No corresponding directory xxx in source root
'v'
but does not exist in the source tree directory.
Version xxx not listed in lxr.conf,
but a directory exists in source root
'v'
but its directory exists in the sources.
'v'
in lxr.conf
or add its directory into the source directory.
A free-text search engine is installed but the source-tree is not scanned.
'glimpsedir'
, nor 'glimpsedirbase'
have been defined.
Fix lxr.conf.
Can't create xxx/.glimpse_exclude
(glimpse)
genxref
translates the 'ignoredirs'
directory exclusion list
into a format usable by glimpse.
This is only possible if the permissions on the
'glimpsedir'
or 'glimpsedirbase'
directory allow write access.
'glimpsedir'
or 'glimpsedirbase'
directory permissions.
Can't open xxx/filenames for writing
(swish-e)
genxref
creates a file
where swish-e can store the names of the files making up the tree.
This is only possible if the permissions on the
'swishdir'
or 'swishdirbase'
directory allow write access.
'swishdir'
or 'swishdirbase'
directory permissions.
Couldn't exec xxx
An error prevented successful launch of the free-text indexer.
'glimpseindex'
or 'glimpsebin'
correctly point to the free-text indexer binary.
err: No unique words indexed
(swish-e)
swish-e could not find any text to index and this is its weird way to say "File not found".
'sourceroot'
directory contains
subdirectories with names equal to version names.
In the case where you want to cross-reference
a single version,
you must anyway store it in a subdirectory,
however artificial it may seem.
Can't run ctags
An error prevented successful launch of ctags.
'ectagsbin'
correctly point to the file parser.
ctags: No files specified. Try "ctags --help"
genxref
extracts the correct version of the file from the
repository into a temporary file.
This copy is only possible if the permissions on the
'tmpdir'
directory allow write access.
'tmpdir'
directory permissions.
commit ineffective with AutoCommit enabled at
lib/LXR/Indexyyy line zzz.
Results from a change in managing strategy for the LXR database.
LXR blew out even before HTTP initialisation was completed. This usually results from bad web server configuration.
The web server was unable to route the URL to LXR, because this URL does not translate to any known LXR service.
Internal Server Error
(HTTP Error 500 with Apache)
Apache access control changed a lot between releases 2.2 and 2.4 introducing backward incompatibility. Your installed version does not match the configuration you made.
Warning: Template file xxx does not exist
Warning: Template xxx is not defined
Many browsing actions need a template to lay out their results. In the first case, the relevant configuration parameter is set to point to a non-existent file, while in the second case the parameter is not set at all.
The directory/file xxx does not exist
If the directory or file does not exist in this version;
then, this is not an error.
If the directory or file really exists,
it may be banned by an exclusion rule
(such as a directory excluded by the
'ignoredirs'
configuration array parameters
or the –still– undocumented filter function).
Otherwise, it means LXR cannot access it.
xxx cannot be displayed from this browser
You clicked on a graphic file hyperlink.
'graphicfile'
).
Fatal: Identifier search not available without 'htmlident' template
Search results are shown through a lay-out defined by template 'htmlident'
.
Without it, nothing can be done.
'htmlident'
in lxr.conf
and make it point to a valid template file.
Fatal: *** Diff subprocess died unexpectedly
An error occurred during diff GNU utility processing.
Warning: Free-text search disabled by configuration file!
Warning: Free-text search not available with VCSs!
Either you configured LXR to run without free-text search, or your source tree is stored in a version control system.
genxref
.
Warning: Free-text search engine required for file search, and no freetext search engine is configured
Some parameter needed for free-text search processing has not been set correctly:
'glimpsebin'
, 'glimpsedir'
or 'glimpsedirbase'
or 'swishbin'
, 'swishdir'
or 'swishdirbase'
.
Fatal: Free-text search not available without 'htmlsearch' template
Search results are shown through a lay-out defined by template 'htmlsearch'
.
Without it, nothing can be done.
'htmlsearch'
in lxr.conf
and make it point to a valid template file.
Warning: Version xxx has not been indexed and is unavailable for searching
LXR tried to open some search engine internal cache file
which appears to be missing.
This happens if you add another version to the tree
after genxref
indexing.
genxref
to index the requested version
(or, alternatively, re-index all versions).
Search failed
You attempted a free-text search. The subsequent line is the error message issued by the search engine.
Fatal: Glimpse subprocess died unexpectedly
An error occurred during Glimpse free-text search query.
'glimpsebin'
is accessible.
If you do not find why, report it as a bug.
Unexpected return value x from Glimpse
Glimpse was unable to complete the free-text search query.
'glimpsedir'
or 'glimpsedirbase'
configuration parameters.
Fatal: Can't display configuration without 'htmlconfig' template
Configuration settings are shown through a lay-out defined by template 'htmlconfig'
.
Without it, nothing can be done.
'htmlconfig'
in lxr.conf
and make it point to a valid template file.
Fatal: Unable to load xxx Lang class
File type mapping in parameter 'filetype'
associates
file extensions to language parsers in the Lang/ subdirectory.
None was found for the given language.
'filetype'
(or, equivalently, file templates/filetype.conf),
edit your changes or write the missing parser.
Otherwise, report it as a bug.
Fatal: Unable to create xxx Lang object
A preceding message gives the cause of the failure.
Fatal: Can't open <generic.conf actual name>
(generic parser)
Configuration for the generic parser is stored in file
generic.conf
(or whatever name you gave in parameter 'genericconf'
).
The generic parser cannot run without it.
'genericconf'
tells it is
and that location can be read by everyone.
Fatal: No langid for language xxx
(generic parser)
The langid is used to access the relevant keywords and symbols in the database. It is essential to keep things tidy.
Before release 2.0, the web server log was the only source of debugging information. Starting with release 2.0, errors are still entered into the log but they are also displayed on screen, which is more user-friendly.
There are however two kinds of errors which still require log reading:
The most notable errors you may encounter are:
Fatal: sequence (?|...) not recognised in regex
This is a Perl syntax error.
The regex (regular expression) dealing with the
#include
construct and its equivalent in other languages
uses a special feature introduced in Perl 5.10.
If your Perl interpreter has a lower version,
the regex is considered erroneous.
Usually caused by an incorrect label on LXR root directory when not installed in /var/www/cgi-bin/.
genxref
and LXR error out
when trying to access the git repository.
You can navigate inside your tree which is located in a VCS repository. But you get errors when you try to use the free-text search feature.