No subject


Tue Jun 7 22:28:46 EDT 2011


a subfield 'a'. The script should protect against those cases.
=20
> I use command history to only edit out the "startid"  switch above -=20
> then I run the command below and now get "FATAL:  password=20
> authentication failed for user" type errors
>=20
> 	perl marc2bre.pl --db_user <myuser> --db_host localhost --db_pw=20
> <my_pw> --db_name evergreen bibliographic-nrcan.004.mrc > import.bre
>=20
> Question: why do I get an authentication error when the authentication
params are the same as previous statement (only removed "--startid
8227550"=20

Because without --startid, the script needs to connect to the database
to find a safe starting ID value for new bibs in the biblio.record_entry
database.
=20
> Also, if I attempt to deal with my duplicate TCN value errors by using
the "used_tcn_file" option:
>=20
> 	perl marc2bre.pl --db_user <myuser> --db_host localhost --db_pw=20
> <my_pw> --db_name evergreen  used_tcn_file tcnvalues --startid 8227550

> bibliographic-nrcan.004.mrc > import.bre

>=20
> The result is no errors to screen, and import.bre is written out
empty. If I take out the startid option then I get back to
authentication error.
>=20
> Am I goofing up the syntax somewhere?

You need the hypens in --used_tcn_file; otherwise I think marc2bre.pl is
trying to read from two files, "used_tcn_file" and "tcnvalues".
=20
> Errors 1:
> Use of uninitialized value $value in substitution (s///) at
/home/opensrf/Evergreen-ILS-2.1.1/Open-ILS/src/extras/import/marc2bre.pl
line 391.
> 150     29.3359108144772
> !!! TCN  is already in use, using TCN (s8227698) derived from System
ID.
> (followed by more TCN already in use errors)
>=20


More information about the Open-ils-dev mailing list