HomeEvergreen: Basic System Admin FunctionsErrorsmissing = in XML attribute

8.7. missing = in XML attribute

Background

This error is related to offline transactions.

When first encountering this error in Evergreen version 1.6.X series, the following portions may present in your error debug:

{
"message":"missing = in XML attribute",
"fileName":"http://[your opac IP]/opac/common/js/JSON_v1.js",
"lineNumber":14,

)@http://[ your opac IP]/xul/rel_1_6_0_0/server/main/JSAN.js:232\nmy_init()@http://208.119.0.200/xul/rel_1_6_0_0/server/admin/offline_manage_xacts.xul:22\nonload(
[
object Event
]
)@http://[ your opac IP]/xul/rel_1_6_0_0/server/admin/offline_manage_xacts.xul:1\n",
"name":"SyntaxError"
}

Recreate The Issue

First, recreate the issue and look for the above parameters. If they present, then the offline interface cannot connect to the database for processing. The reason must now be discovered.

Retain your timestamp of the error, and match it in the ap_error.log with the following:

grep hh:mm ap_error.log

You could also tail the file with:

tail -50 ap_error.log

Look for this:

DBI connect('host=[some IP};dbname=[your DB];port=5432','[DB user]',...) failed: could not connect to server: No route to host,

Verify The Offline DB IP

Open /openils/conf/opensrf.xml in a text editor and scroll to the database settings. Verify the IP of the database, and write it down.

Compare To Offline Settings

In /openils/conf, you should also find a file called offline-config.pl. It might appear as such:

$main::config{base_dir} = '/openils/var/data/offline/';
$main::config{bootstrap} = '/openils/conf/opensrf_core.xml';
$main::config{dsn} = 'dbi:Pg:host=[ wrong IP address for DB];dbname=[your DB name];port=5432';
$main::config{usr} = '[ your DB user]';
$main::config{pw} = '[ your DB user's password]';

If Not Resolved, or Errors Are Extensive

If any of these settings are wrong, correct them, and go forth merry.This will have effect immediately, and will NOT require a restart of any kind.

If this does not resolve the issue, then check on your database server for pg_hba.conf.

It will appear similar to the below:

# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD

# "local" is for Unix domain socket connections only
local   all         all                               trust
# IPv4 local connections:
host    all         all         127.0.0.1/32          trust
# IPv6 local connections:
host    all         all         ::1/128               trust

# Foo test (Your servers)
host    [dbname]        [dbuser]        [foo's IP]/[foo's netmask]       md5

If your IP is not listed, along with your database name (e.g. evergreen) and your database user (usually evergreen), then add it and save with your favorite text editor.

This may require a database restart.

 

Another instance of this error is when the offline-config.pl file in /opensrf/conf/ is missing or misconfigured. A copy of this file is attached in the Downloads.

Downloads

This page was: Helpful | Not Helpful