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"
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?
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.
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?
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.
thank you Chris, How can i the Docker configured?. i hasnot viel experience with the docker