User Tools

Site Tools


troubleshooting:problems_with_the_catalog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
troubleshooting:problems_with_the_catalog [2008/12/02 23:21] – format long line dbstroubleshooting:problems_with_the_catalog [2022/02/10 13:34] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +======Troubleshooting problems with the catalog======
 +
 +=====Problem: Search runs forever=====
 +There are a number of reasons that can cause searches to never return results.
 +
 +====autogen.sh has not been run recently====
 +Every time you change your org_unit hierarchy, you have to run ''autogen.sh'' to regenerate the JavaScript representation of the hierarchy for the catalog. If you forget to do this, it can prevent searches from working properly.
 +
 +====Check your org unit hierarchy====
 +Run the following query in ''psql'' against your Evergreen database to display the depths of each org_unit in the hierarchy:<code sql>
 +SELECT aou.id, aou.parent_ou, aou.shortname, aout.depth, aout.name
 +FROM actor.org_unit aou 
 +INNER JOIN actor.org_unit_type aout 
 +ON (aou.ou_type = aout.id)
 +ORDER BY aout.depth;
 +</code>
 +
 +**Sample output**<code>
 + id | parent_ou | shortname  | depth |        name        
 +----+-----------+------------+-------+--------------------
 +  1 |           | CONIFER    |     0 | Consortium
 +  2 |         1 | LUSYS      |     1 | System
 +  3 |         2 | JND        |     1 | Branch
 +</code>
 +
 +If you meant for your hierarchy to look like this:<code>
 +Consortium (CONIFER)
 +   |
 +   |->System (LUSYS)
 +        |
 +        |-> Branch (JND)
 +</code>, then in the sample output the value of the ''depth'' column for the actor.org_unit_type database entry for Branch should be ''2'' instead of the current value of ''1''.
 +=====XMLENT XML Parse Error in Apache error logs=====
 +If your Apache error log contains the following line, you probably have ''mod_deflate'' enabled in your Apache configuration:
 +<code>
 +XMLENT XML Parse Error: not well-formed (invalid token) at line 1:
 +  parsing /openils/var/web/conify/global/admin.html: data \x1f\x8b\b, 
 +  referer: http://localhost/</code>
 +You need to disable ''mod_deflate''. To disable ''mod_deflate'', issue the following command as **root**:<code bash>
 +a2dismod deflate</code>
  

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.