kezhenxu94 commented on issue #12038: URL: https://github.com/apache/skywalking/issues/12038#issuecomment-2026550121
``` { message: 'Error installing plugin mongodb *', level: 'error', file: '/usr/src/app/node_modules/skywalking-backend-js/lib/core/PluginInstaller.js' } ``` Failing to install `mongodb` plugin is harmless because you are using mongoose, and I can still get access to MongoDB via mongoose, please check your code whether works without skywalking. I can successfully manipulate the MongoDB server with mongoose even the error occurs. # Start MongoDB Server ```shell docker run -it --rm -p 27017:27017 mongo:6 ``` # Start SkyWalking OAP ```shell docker run --name oap -p 11800:11800 apache/skywalking-oap-server:9.7.0 ``` # Create npm project ```shell mkdir repro && cd repro cat <<EOF > package.json { "name": "mongo", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "dev": "node index.js" }, "author": "", "license": "ISC", "dependencies": { "mongoose": "^8.2.4", "skywalking-backend-js": "^0.7.0" } } EOF cat <<EOF > index.js const { default: agent } = require('skywalking-backend-js'); const mongoose = require('mongoose'); agent.start(); main().catch(err => console.log(err)); async function main() { await mongoose.connect('mongodb://127.0.0.1:27017/test'); const kittySchema = new mongoose.Schema({ name: String }); const Cat = mongoose.model('Cat', { name: String }); const kitty = new Cat({ name: 'Zildjian' }); kitty.save().then(() => console.log('meow')); } EOF ``` # Run the app ```shell yarn run dev ``` And you'll see `meow` is printed, if you query the mongodb server directly `db.cats.find()`, you'll see the record is saved into mongodb. If you want to report further issue, please, provide detailed reproducible steps like what you see above. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@skywalking.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org