ibmdb / node-ibm_db

IBM DB2 and IBM Informix bindings for node
MIT License
188 stars 151 forks source link

Bug Report: Can't install it on MacOS (Permission denied on driver's dylibs) #902

Closed guilherme-gm closed 1 year ago

guilherme-gm commented 1 year ago

npm ERR! A complete log of this run can be found in: npm ERR! /Users/guilhermemenaldo/.npm/_logs/2023-01-31T15_03_32_052Z-debug-0.log



Steps to Reproduce:
1.  `mkdir test_ibmdb`
2. `cd test_ibmdb`
3. `npm init -y`
4. `npm i ibm_db`
5. receive this error.

Some extra info:
1. If I follow the download link, download it myself and extract somewhere and use `IBM_DB_HOME` during `npm i`, it does pass the installation process (MacOS will then start complaining about being downloaded from the internet and etc, but it passes this first issue).
2. Running it on Linux through a container with RHEL works fine.
3. When it fails, `node_modules` doesn't get an `ibm_db` folder.
4. It was working fine until last week

Me and other 2 co-workers are experiencing the same issue.

I will update here if I find something else. Let me know if I can help with additional information.
mariwade commented 1 year ago

The squad I am working on has hit this issue this morning. Notice that driver that the package downloads was updated at 6 am this morning. I am guessing the permissions are not correct?

This is impacting development and tight schedules.

mariwade commented 1 year ago

Squad found this: https://www.ibm.com/support/pages/why-does-ibmdb-npm-module-fail-download-db2-odbc-cli-driver

palebluepixel commented 1 year ago

I was able to work around this by setting the env var IBM_DB_INSTALLER_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/v11.1.4 (an older version of all the drivers from august) and then doing npm i normally

bimalkjha commented 1 year ago

I am looking into it and will update driver today. Thanks.

bimalkjha commented 1 year ago

@guilherme-gm @mariwade @palebluepixel Permission issue with the driver has been fixed now. Thanks.