-
-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install package with default version in debian 10 (buster) #282
Comments
@strimpak it has nothing todo with #204, because that issue was about when starting the instance that it couldnt find OpenSSL 3 (probably having OpenSSL 4 installed) this issue is about your requested version combination i assume that you request the default version |
Hi @hasezoey adding this in package.json: "config": {
"mongodbMemoryServer": {
"version": "latest"
}
}, fixes this issue even in 6.3.3 but I stack in getConnectionString(): let mongoServer: MongoMemoryServer;
async function initializeMongo(): Promise<string> {
mongoServer = new MongoMemoryServer();
return await mongoServer.getConnectionString();
} |
@strimpak yes could you provide the debug log? (https://github.com/nodkz/mongodb-memory-server#enable-debug-mode) |
(node:1011) [changeLevelName_deprecation] Warning: The changeLevelName option is deprecated and will be removed in v7. Use levelKey instead.
2020-03-12T11:45:31.260Z MongoMS:MongoMemoryServer Called MongoMemoryServer.ensureInstance() method:
2020-03-12T11:45:31.261Z MongoMS:MongoMemoryServer - no running instance, call `start()` command
2020-03-12T11:45:31.261Z MongoMS:MongoMemoryServer Called MongoMemoryServer.start() method
{"Severity":"info","Timestamp":"2020-03-12T11:45:31.269Z","Category":"Application","Message":"Cache connected to: 127.0.0.1","v":1}
{"Severity":"info","Timestamp":"2020-03-12T11:45:31.270Z","Category":"Application","Message":"Cache ready","v":1}
2020-03-12T11:45:31.274Z MongoMS:MongoMemoryServer Starting MongoDB instance with following options: {"port":43167,"dbName":"5e6b3bd3-2c0f-4b16-86d7-4308edb76331","ip":"127.0.0.1","storageEngine":"ephemeralForTest","dbPath":"/tmp/mongo-mem-1011SDuuMfBIpcEZ","tmpDir":{"name":"/tmp/mongo-mem-1011SDuuMfBIpcEZ"},"uri":"mongodb://127.0.0.1:43167/5e6b3bd3-2c0f-4b16-86d7-4308edb76331?"}
2020-03-12T11:45:31.279Z MongoMS:MongoBinary MongoBinary options: {"downloadDir":"/app/node_modules/.cache/mongodb-memory-server/mongodb-binaries","platform":"linux","arch":"x64","version":"latest"}
2020-03-12T11:45:31.290Z MongoMS:MongoBinary MongoBinary: Mongod binary path: /app/node_modules/.cache/mongodb-memory-server/mongodb-binaries/latest/mongod
2020-03-12T11:45:32.439Z MongoMS:MongoInstance Mongo[43167]: Called MongoInstance._launchKiller(parent: 1011, child: 1022):
2020-03-12T11:45:32.454Z MongoMS:MongoBinary MongoBinary: Download lock removed
2020-03-12T11:45:32.464Z MongoMS:MongoInstance Mongo[43167]: STDERR: /app/node_modules/.cache/mongodb-memory-server/mongodb-binaries/latest/mongod: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
2020-03-12T11:45:32.466Z MongoMS:MongoInstance Mongo[43167]: CLOSE: 127
2020-03-12T11:45:37.641Z MongoMS:MongoInstance Mongo[43167]: [MongoKiller]: exit - [0,null] |
running |
@hasezoey you made me feel worried about Before installing: root@061f42c5387c:/# dpkg -l | grep libcurl
ii libcurl3-gnutls:amd64 7.64.0-4+deb10u1 amd64 easy-to-use client-side URL transfer library (GnuTLS flavour)
root@061f42c5387c:/# After installing the libcurl4: root@4ffaf5073597:/app# dpkg -l | grep libcurl
ii libcurl3-gnutls:amd64 7.64.0-4+deb10u1 amd64 easy-to-use client-side URL transfer library (GnuTLS flavour)
ii libcurl4:amd64 7.64.0-4+deb10u1 amd64 easy-to-use client-side URL transfer library (OpenSSL flavour) @hasezoey on your question we had a mocha timeout on 10 secs which returned, otherwise it would run infinitely. |
thanks for letting me know, i still try to pin down where this "infinitely running" issue is |
@hasezoey could you please elaborate a bit more on your statement |
@strimpak i had the problem where i had an application that needed libcurl4, and mongodb wanted libcurl3, and i couldnt have them installed at the same time (maybe i just took the wrong bin of mongodb at that time) |
This problem is easily reproduced in the docker image |
closing because original issue got solved (4.0.3 not available for debian10) -> in next major version it will be changed to latest / at least an newer version |
Versions
package: mongo-memory-server
What is the Problem?
Code Example
mongo-memory-server: 6.3.3
A note above is that a typo above exist in word
dosnt
mongo-memory-server: 6.3.2
mongo-memory-server: 6.3.1
mongo-memory-server: 6.3.0
Also npm install does not exit with error code to identify that an issue exist.
Is there any relation with: #204
Do you know why it happenes?
no
The text was updated successfully, but these errors were encountered: