Discussion:
Unable to open API library for device
(too old to reply)
linuxdba
2009-11-09 09:39:36 UTC
Permalink
Hi

While trying to load a dump file on sybase 12.5.3 i am
getting the following error on sun solaris.

Server Message: Number 3216, Severity 10
Server 'MYSERVER', Line 1:
Backup Server session id is: 13.
Use this value when executing the 'sp_volchanged'
system stored procedure after fulfilling any volume change
request from the Backup Server.
Server Message: Number 412402, Severity 2
Server 'MYSERVER_BS', Procedure 'bs_read_header', Line 0:
Backup Server: 4.124.2.1:
Archive API error for
device='compress::/data2/restore/mydump.bkp::00':
Vendor application name=<UNINIT>,
Library version=0, API routine=<UNINIT>,
Message=Unable to open API library for device
'compress::/data2/restore/mydump.bkp'.
Library path is
'/sybase//sybase/ASE-12_5/lib/libcompress.so'.
dlopen() returned: Code=0, Message=ld.so.1:
/sybase/ASE-12_5/bin/sybmultbuf:
fatal: /sybase//sybase/ASE-12_5/lib/libcompress.so: open
failed:
No such file or directory
Server Message: Number 8009, Severity 16
Server 'MYSERVER', Line 1:
Error encountered by Backup Server.
Please refer to Backup Server messages for details.

Anybody on whats the work around
Manish Negandhi [TeamSybase]
2009-11-09 11:31:27 UTC
Permalink
Post by linuxdba
Hi
While trying to load a dump file on sybase 12.5.3 i am
getting the following error on sun solaris.
Server Message:  Number  3216, Severity  10
Backup Server session id is:  13.
Use this value when executing the 'sp_volchanged'
system stored procedure after fulfilling any volume change
request from the Backup Server.
Server Message:  Number  412402, Severity  2
Archive API error for
 Vendor application name=<UNINIT>,
Library version=0, API routine=<UNINIT>,
Message=Unable to open API library for device
'compress::/data2/restore/mydump.bkp'.
Library path is
'/sybase//sybase/ASE-12_5/lib/libcompress.so'.
fatal: /sybase//sybase/ASE-12_5/lib/libcompress.so: open
 No such file or directory
Server Message:  Number  8009, Severity  16
Error encountered by Backup Server.
Please refer to Backup Server messages for details.
Anybody on whats the work around
What OS are you using ?

There are couple of CRs you might be intrested in

http://search.sybase.com/kbx/changerequests?bug_id=342030
http://search.sybase.com/kbx/changerequests?bug_id=363810

-HTH
Manish Negandhi
[TeamSybase]
Leonid Gvirtz
2009-11-09 12:23:27 UTC
Permalink
Hi

I see that your Sybase ASE is installed under /sybase, but ASE tries to
search libcompress.so under /sybase//sybase - and of course doesn't find
it. While I can't point to the cause of the problem precisely, the
problem is most probably related to environment variables. I would
recommend double-checking Sybase-related environment variables and
restart the MYSERVER_BS backup server. You need to load the dump
urgently, you may want to create a symbolic link under /sybase like
this: ln -s ../sybase sybase, maybe it will help the backup server to
find libcompress.so.

Hope it helps
Leonid Gvirtz
Post by linuxdba
Hi
While trying to load a dump file on sybase 12.5.3 i am
getting the following error on sun solaris.
Server Message: Number 3216, Severity 10
Backup Server session id is: 13.
Use this value when executing the 'sp_volchanged'
system stored procedure after fulfilling any volume change
request from the Backup Server.
Server Message: Number 412402, Severity 2
Archive API error for
Vendor application name=<UNINIT>,
Library version=0, API routine=<UNINIT>,
Message=Unable to open API library for device
'compress::/data2/restore/mydump.bkp'.
Library path is
'/sybase//sybase/ASE-12_5/lib/libcompress.so'.
fatal: /sybase//sybase/ASE-12_5/lib/libcompress.so: open
No such file or directory
Server Message: Number 8009, Severity 16
Error encountered by Backup Server.
Please refer to Backup Server messages for details.
Anybody on whats the work around
l***@coolgoose.com
2009-11-10 05:41:27 UTC
Permalink
Hi

Thank you very much for taking precious timeout and
responding to this thread.

Your observation and comments are correct and i managed to
rectify the environmental variables.

Now i am getting the following error
Server Message: Number 3216, Severity 10
Server 'myserver', Line 1:
Backup Server session id is: 13.
Use this value when executing the 'sp_volchanged'
system stored procedure after fulfilling
any volume change request from the Backup Server.
Server Message: Number 412402, Severity 2
Server 'myserver_BS', Procedure 'bs_read_header', Line 0:
Backup Server: 4.124.2.1: Archive API error
for device='compress::/data2/restore/my.bkp::00':
Vendor application name=<UNINIT>,
Library version=0, API routine=<UNINIT>,
Message=Unable to load API function 'syb_open()'
for device 'compress::/data2/restore/my.bkp'.
dlfind() returned: Code=0, Message=ld.so.1:
/sybase/ASE-12_5/bin/sybmultbuf:
fatal: syb_open: can't find symbol
Server Message: Number 8009, Severity 16
Server 'myserver', Line 1:
Error encountered by Backup Server.
Please refer to Backup Server messages for details.

I have checked and the file /sybase/ASE-12_5/bin/sybmultbuf
exists but i am not sure what the issue is or which
environmental variable is still a problem.

I tried doing a ldd on /sybase/ASE-12_5/bin/sybmultbuf and i
added /usr/lib to LD_LIBRARY_PATH and restarted the backup
and data servers still no luck.

Since i am on solaris I will try rebooting as some OS are
notorious for caching libraries not sure about solaris
though.

Any ideas are most welcome.

Loading...