Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

I have a sybase 17 db file. When i am trying to connect to it in node.js is ok. but when i am trying to connect to it in Docker " docker run " I ma getting error. "Error: Code: -2004 Msg: Can't initialize DBCAPI"

asked 25 Jun '19, 05:36

salwa's gravatar image

salwa
25557
accept rate: 0%

what dependencies to do you have in the container? Are all of them met. Is the architecture of the image & libraries correct? What is the connection string?

(25 Jun '19, 08:29) Vlad
2

This error is reported when the DBCAPI library cannot be loaded by the sqlany_initialize_interface method. The library is dbcapi.dll on Windows and libdbcapi or libdbcapi_r on other platforms (with the suitable library extension for the platform). Optionally, the path to the library can be supplied to the method. Otherwise, the location is resolved with the SQLANY_API_DLL environment variable or using the OS path. Make sure that Docker is configured so that the DBCAPI library can be found.

(25 Jun '19, 10:05) Chris Keating
Replies hidden
Comment Text Removed

thank you Chris, How can i the Docker configured?. i hasnot viel experience with the docker

(26 Jun '19, 05:54) salwa
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×119

question asked: 25 Jun '19, 05:36

question was seen: 1,042 times

last updated: 26 Jun '19, 05:54