Skip to content

Support for Linux - Azure WebApp linux #358

@grajesh690

Description

@grajesh690

I'm getting the below error when my code is being executed in Azure WebApp Linux instance. However it perfectly works fine in Mac / windows.
Do I need to install anything outside of this to support linux ?

Error: libodbc.so.2: cannot open shared object file: No such file or directory

at ../../src/utils/database/db.ts:3

1 | //@ts-ignore
2 | import { SqlClient } from "msnodesqlv8/types";

3 | const sql: SqlClient = require("msnodesqlv8");
| ^
4 |
5 |
6 | export default class dbConn {
at Module.patchedRequire (/agents/nodejs/node_modules/diagnostic-channel/dist/src/patchRequire.js:16:46)
at /node_modules/msnodesqlv8/lib/util.js:4:21
at Object. (/node_modules/msnodesqlv8/lib/util.js:34:3)
at Module.patchedRequire (/agents/nodejs/node_modules/diagnostic-channel/dist/src/patchRequire.js:16:46)
at Object. (/node_modules/msnodesqlv8/lib/table-column.js:4:20)
at Module.patchedRequire (/agents/nodejs/node_modules/diagnostic-channel/dist/src/patchRequire.js:16:46)
at /node_modules/msnodesqlv8/lib/table.js:21:27
at Object. (/node_modules/msnodesqlv8/lib/table.js:180:3)
at Module.patchedRequire (/agents/nodejs/node_modules/diagnostic-channel/dist/src/patchRequire.js:16:46)
at Object. (/node_modules/msnodesqlv8/lib/connection.js:11:25)
at Module.patchedRequire (/agents/nodejs/node_modules/diagnostic-channel/dist/src/patchRequire.js:16:46)
at Object. (/node_modules/msnodesqlv8/lib/sql-client.js:4:31)
at Module.patchedRequire (/agents/nodejs/node_modules/diagnostic-channel/dist/src/patchRequire.js:16:46)
at Object. (/node_modules/msnodesqlv8/lib/sql.js:22:12)
at Module.patchedRequire (/agents/nodejs/node_modules/diagnostic-channel/dist/src/patchRequire.js:16:46)
at Object. (/home/site/wwwroot/src/utils/database/db.ts:3:24)
at Module.patchedRequire (/agents/nodejs/node_modules/diagnostic-channel/dist/src/patchRequire.js:16:46)
at Object. (/home/site/wwwroot/src/utils/database/eomQueryResponse.ts:3:1)
at Module.patchedRequire (/agents/nodejs/node_modules/diagnostic-channel/dist/src/patchRequire.js:16:46)
at Object. (/home/site/wwwroot/tests/api/eom.spec.ts:1:1)
at Module.patchedRequire (/agents/nodejs/node_modules/diagnostic-channel/dist/src/patchRequire.js:16:46)
Error: No tests found.
Make sure that arguments are regular expressions matching test files.
You may need to escape symbols like "$" or "*" and quote the arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions