Comments (8)
Setting unsafe-perm config parameter in npm to true would solve the above problem.
This command is sudo npm config set unsafe-perm true
.
To install an older version of node.js client, C client version also has to be specified as
aerospike node.js client is dependent on C client. For 1.0.18, the corresponding C client version is 3.0.84
You can install [email protected] by setting AEROSPIKE_C_VERSION and DOWNLOAD environment variables. Setting DOWNLOAD=1 forces npm to download the C client and not use any older installations in the system. The command to install 1.0.18 is
$ AEROSPIKE_C_VERSION=3.0.84 DOWNLOAD=1 npm install [email protected]
We will analyze the performance degradation between the two versions of node.js client and fix the issue.
Thanks for identifying this.
from aerospike-client-nodejs.
Can you suggest a way to achieve this with package.json ?
from aerospike-client-nodejs.
Hey @GayathriKaliyamoorthy dont you think if v 1.0.18 is depends on aeroclient_c_version 3.0.84 then your aerospike-client-c.sh should explicitly added the AEROSPIKE_C_VERSION=3.0.84 instead of latest?
from aerospike-client-nodejs.
We will fix this dependency issue between nodejs and C client. But we cannot fix in the older versions, that is version below 1.0.21. In future releases, we will make this dependency explicit.
But for now, the option is using AEROSPIKE_C_VERSION to install [email protected].
$ AEROSPIKE_C_VERSION=3.0.84 DOWNLOAD=1 npm install [email protected]
from aerospike-client-nodejs.
Okeys i have fixed the issue at our end.
One more thing the latest aeroclient_c generates too many segfaults with amazon linux and debian distribution.
from aerospike-client-nodejs.
could you give your code snippet which generates the above mentioned segfaults.
Finally which version are you using?
from aerospike-client-nodejs.
OS : Amazon linux : 3.14.20-20.44.amzn1.x86_64
Aerospike nodejs v : 1.0.21
Nodejs v : 0.10.26
code:
var logObject = {
rid : '1234',
m:'model'
}
aeroclient.put({ns: "test", set: 'logs', key: logObject.rid}, logObject, {ttl: 38800, gen: 0}, function(err,result) {
if ( err.code != 0) {
console.log("error in aerospike : ", err.message);
}
});
error log in /var/log/messages
[ 2129.606301] show_signal_msg: 4 callbacks suppressed
Oct 28 19:28:49 ip-127.0.0.0 kernel: [ 2129.611787] node[6246]: segfault at 7fc25b871700 ip 00007fc45b5498bd sp 00007fff9ef51200 error 6 in libc-2.17.so[7fc45b4d2000+19b000]
Oct 28 19:28:49 ip-127.0.0.0 kernel: [ 2129.684492] node[6222]: segfault at 7fb15a9da6a0 ip 00007fb35a6b28bd sp 00007fff284adb50 error 6 in libc-2.17.so[7fb35a63b000+19b000]
Oct 28 19:28:50 ip-127.0.0.0 kernel: [ 2130.389814] node[6258]: segfault at 7ff7181ed750 ip 00007ff917ec58bd sp 00007fff0154dc30 error 6 in libc-2.17.so[7ff917e4e000+19b000]
Oct 28 19:28:50 ip-127.0.0.0 kernel: [ 2131.048587] node[6270]: segfault at 7f9c2588e720 ip 00007f9e255668bd sp 00007ffff17527d0 error 6 in libc-2.17.so[7f9e254ef000+19b000]
Oct 28 19:28:50 ip-127.0.0.0 kernel: [ 2131.189229] node[6256]: segfault at 7f2660b61a50 ip 00007f28608398bd sp 00007fffe27e7bf0 error 6 in libc-2.17.so[7f28607c2000+19b000]
Oct 28 19:28:51 ip-127.0.0.0 kernel: [ 2131.644109] node[6296]: segfault at 7fa2507c69c0 ip 00007fa45049e8bd sp 00007fff571bf870 error 6 in libc-2.17.so[7fa450427000+19b000]
Oct 28 19:28:51 ip-127.0.0.0 kernel: [ 2132.006046] node[6284]: segfault at 5a00000008 ip 00007f1e2cf35c19 sp 00007f1e2df7b400 error 4 in aerospike.node[7f1e2ceeb000+62000]
Oct 28 19:28:51 ip-127.0.0.0 kernel: [ 2132.196727] node[6306]: segfault at 7fee2cce0740 ip 00007fef2c9b88bd sp 00007fff883dc080 error 6 in libc-2.17.so[7fef2c941000+19b000]
Oct 28 19:28:52 ip-127.0.0.0 kernel: [ 2132.576433] node[6323]: segfault at 7f3e426ea760 ip 00007f3f423c28bd sp 00007fff4efd0e90 error 6 in libc-2.17.so[7f3f4234b000+19b000]
Oct 28 19:28:49 ip-127.0.0.0 kernel: [ 2129.611787] node[6246]: segfault at 7fc25b871700 ip 00007fc45b5498bd sp 00007fff9ef51200 error 6 in libc-2.17.so[7fc45b4d2000+19b000]
Oct 28 19:28:49 ip-127.0.0.0 kernel: [ 2129.684492] node[6222]: segfault at 7fb15a9da6a0 ip 00007fb35a6b28bd sp 00007fff284adb50 error 6 in libc-2.17.so[7fb35a63b000+19b000]
Oct 28 19:28:50 ip-127.0.0.0 kernel: [ 2130.389814] node[6258]: segfault at 7ff7181ed750 ip 00007ff917ec58bd sp 00007fff0154dc30 error 6 in libc-2.17.so[7ff917e4e000+19b000]
Oct 28 19:28:50 ip-127.0.0.0 kernel: [ 2131.048587] node[6270]: segfault at 7f9c2588e720 ip 00007f9e255668bd sp 00007ffff17527d0 error 6 in libc-2.17.so[7f9e254ef000+19b000]
Oct 28 19:28:50 ip-127.0.0.0 kernel: [ 2131.189229] node[6256]: segfault at 7f2660b61a50 ip 00007f28608398bd sp 00007fffe27e7bf0 error 6 in libc-2.17.so[7f28607c2000+19b000]
Oct 28 19:28:51 ip-127.0.0.0 kernel: [ 2131.644109] node[6296]: segfault at 7fa2507c69c0 ip 00007fa45049e8bd sp 00007fff571bf870 error 6 in libc-2.17.so[7fa450427000+19b000]
Oct 28 19:28:51 ip-127.0.0.0 kernel: [ 2132.006046] node[6284]: segfault at 5a00000008 ip 00007f1e2cf35c19 sp 00007f1e2df7b400 error 4 in aerospike.node[7f1e2ceeb000+62000]
Oct 28 19:28:51 ip-127.0.0.0 kernel: [ 2132.196727] node[6306]: segfault at 7fee2cce0740 ip 00007fef2c9b88bd sp 00007fff883dc080 error 6 in libc-2.17.so[7fef2c941000+19b000]
Oct 28 19:28:52 ip-127.0.0.0 kernel: [ 2132.576433] node[6323]: segfault at 7f3e426ea760 ip 00007f3f423c28bd sp 00007fff4efd0e90 error 6 in libc-2.17.so[7f3f4234b000+19b000]
Oct 28 19:28:53 ip-127.0.0.0 kernel: [ 2133.389344] node[6308]: segfault at 7f5516094740 ip 00007f5615d6c8bd sp 00007fff85930ed0 error 6 in libc-2.17.so[7f5615cf5000+19b000]
same code was running fine with v 1.0.18 of aerospike
from aerospike-client-nodejs.
I have able to deploy the 1.0.18 but when i tried to save data it shows
error in aerospike : AEROSPIKE_ERR_TIMEOUT
although this piece of code logged a sucessfull connection
var aerospike = require('aerospike');
var aeroclient = aerospike.client({
hosts: [ { addr: config.aeroHost1, port: 1234 },{ addr: config.aeroHost2, port: 1234 } ]
});
function connect_cb( err, client) {
if (err.code == 0) {
console.log("Aerospike Connection Success from post bid")
}
}
aeroclient.connect(connect_cb);
Aerospike Connection Success from post bid
Aerospike Connection Success from post bid
Aerospike Connection Success from post bid
Aerospike Connection Success from post bid
from aerospike-client-nodejs.
Related Issues (20)
- Docs: Broken "Client" doumentation HOT 1
- Version 5.1.1 breaks using Docker HOT 1
- Can't launch the library on macOS. HOT 3
- Error: Running aerospike client on Arm64(aarch) on MacOS HOT 7
- What is the latest version of Aerospike goes with Ubuntu 18.04 HOT 2
- error TS2304: Cannot find name 'Class' HOT 12
- Does aerospike-client-nodejs need python on runtime as well? HOT 1
- I cant install on windows 10 HOT 2
- Issue with using client.operate with policy exists: AS.policy.exists.CREATE HOT 1
- Serialized and blocking connection
- Unable to install aerospike with nexus3 HOT 16
- Unable to install v5.9.0 with yarn, published version requires "npm-run-all" HOT 3
- System's openssl version since static linking in v5.6.0 HOT 4
- Missing 'bool/AS_EXP_TYPE_BOOL' in exp bin type HOT 2
- Unable to use pnpm package manager because of preinstall script of the package HOT 2
- Client.close(true) does not release underlying event loop HOT 2
- Segmentation fault with secondary index query HOT 12
- Typescript build fails HOT 1
- Segmentation fault crash core dump with 5.11.0 HOT 3
- Can't install with node 22 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aerospike-client-nodejs.