External Export
External Export
Introduction
Setup
reverse_proxy_httpd.config__
- Type the following as the sfxglb41 user.
cn
vi reverse_proxy_httpd.config__
- Add the following line for each instance (if it does not already exist):
export.cgiProxyPass /external_export/<instance> http://localhost:<local_apache_port>/<instance>/sfxadmin/external_export.cgi
- Restart the Apache server for the instance, using the Server Admin Utility.
- Type da to move to the admin directory.
- Type ./server_admin_util
- Type 1 Stop/Start services.
- Type 2 Proxy Apache stop, and after a few seconds type 1 Proxy Apache start.
local_httpd.conf
- Telnet to the SFX server and type the following as the instance user (for example, sfxlcl41)
|
cd /exlibris/sfx_ver/sfx4_1/<instance>/config (or use the shortcut cn)
vi local_httpd.config |
- Add the following script alias on one line to the local_httpd.config file. Replace <instance> with the actual instance name.
|
ScriptAlias /external_export/<instance> "/exlibris/sfx_ver/sfx4_1/<instance>/sfxadmin/external_export.cgi" |
- Restart the Apache server for the instance, using the Server Admin Utility.
- Type da to move to the admin directory.
- Type ./server_admin_util
- Type 1 Stop/Start services.
- Type 7 Instance Apache stop and and after a few seconds type 6 Instance Apache start.
external_export.config
|
#Section "<hostname>" # username "<user>" # password "<password>" # type "<secureinsecure>" # export "<yn>" #EndSection |
- Remove all # from the configuration file.
- Fill in the MetaLib server address, MetaLib FTP username, and password.
- Select the FTP method: secure (SFTP) or insecure (FTP).
- Choose Y to allow external export.
- Type da to move to the admin directory for the instance.
- Type: ./server_admin_util
- Type: 3 Change passwords then 4 Generate encrypted password for use in configuration files
|
Section "1.111.11.1" username "metalib_ftp" password "b616d7c7d65633535303236303" type "secure" export "Y" EndSection |
Toubleshooting
- Set up the external_export.config file on the SFX server to test an external export from the SFX server to the SFX server itself.
The file is located at: /exlibris/sfx_ver/sfx4_1/<instance_name>/config/external_export.config
- Remove the comment marks from each line.
- Fill in information about the SFX server and instance where you want to perform the test.
For example:
#Section "metalib.uni.edu"# username "metalib_ftp"# password "xxxxxx"# type "secure"# export "Y"#EndSectionSection "sfx.uni.edu"username "sfxlcl41"password "xxxxxxx"type "secure"export "Y"EndSection - Run the Check External Export tool:
- Log on to the SFX server as an instance user.
- Type da.
- Type ./server_admin_util and select 6 Diagnostics and 4 Check External Export.
- Specify the base URL of the instance that you are testing.
The following is displayed:
|
Diagnostics
1 Check for e-mail capabilities
2 Check for secure FTP capabilities
3 Check IP address
4 Check external export
5 Check Z3950 capabilities
Please select [1-5,q,m]: 4
Please enter the SFX Instance Base URL: http://sfx.uni.edu:9003/sfxlcl41
Making request. This may take a few moments...
External Export succeeded! The file that was created:
e-collection.03312004135818.xml-marc.gz
Target location of output file: HOME directory of 'sfxlcl41' at 'sfx.uni.edu'
|
| Error Message | Problem |
|---|---|
| Failed to contact the SFX Instance: Not Found (404) |
|
| External Export failed! The error that was returned: 10.1.2.231 not authorized to use external_export (Check external_export.config for a section named '10.1.2.231') | This message occurs if no information is specified in external_export.config. |
| External Export failed! The error that was returned: Could not instantiate Net::SFTP or could not establish secure connection to '10.1.2.231' with <user>. You should check the user's credentials or that the server's signature has not changed. |
|
| The file permissions in the scratch or scratch/e_collection_update directory are too restricted External Export failed! The error that was returned: Cannot open ../dbs/scratch/e-collection for writing | This message occurs in case the file permissions in the scratch or scratch/e_collection_update directory are too restricted. |
| External Export failed! The error that was returned: Could not upload../dbs/scratch/e-collection.03252004141754.xml-marc.gz into e-collection.03252004141754.xml-marc.gz. | This message occurs if the file permissions for the destination directory are too restricted. |