You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/10/09 02:59:17 UTC
[GitHub] [skywalking] chzhuo opened a new issue #7879: [Nodejs][Bug] Getting error log "Error installing plugin mysql2 *" when start agent
chzhuo opened a new issue #7879:
URL: https://github.com/apache/skywalking/issues/7879
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
### Apache SkyWalking Component
NodeJS Server Side Agent (apache/skywalking-nodejs)
### What happened
Getting error log "Error installing plugin mysql2 *" when run `start()`
### What you expected to happen
no error log
### How to reproduce
I have only two files
package.json
```json
{
"name": "mynode",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"mysql2": "^2.3.0",
"skywalking-backend-js": "^0.3.0"
}
}
```
index.js
```js
const { default: agent } = require('skywalking-backend-js');
agent.start({
serviceName: 'boblog',
serviceInstance: 'boblog-1',
collectorAddress: '10.0.5.198:12800',
});
```
Then run command `node index.js`
nodejs version: v14.16.1
### Anything else
I traced the error and found throwing from this line

https://github.com/apache/skywalking-nodejs/blob/master/src/core/PluginInstaller.ts#L65
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] chzhuo commented on issue #7879: [Nodejs][Bug] Getting error log "Error installing plugin mysql2 *" when start agent
Posted by GitBox <gi...@apache.org>.
chzhuo commented on issue #7879:
URL: https://github.com/apache/skywalking/issues/7879#issuecomment-939240994
I get the same error log in an online app that connects the Mysql server by `mysql2`, so I use this demo to reproduce this error.
I think mysql2-plugin did not work well when getting this error log.
--
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-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] kezhenxu94 commented on issue #7879: [Nodejs][Bug] Getting error log "Error installing plugin mysql2 *" when start agent
Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #7879:
URL: https://github.com/apache/skywalking/issues/7879#issuecomment-939216626
Hi @chzhuo thanks for reporting! First of all, failing to install a plugin does no harm if you're not using that library, but your demo application `index.js` is also meaningless and it exits immediately even if the mysql2 plugin succeeded to install because you don't have any real server running.
--
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-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] kezhenxu94 closed issue #7879: [Nodejs][Bug] Getting error log "Error installing plugin mysql2 *" when start agent
Posted by GitBox <gi...@apache.org>.
kezhenxu94 closed issue #7879:
URL: https://github.com/apache/skywalking/issues/7879
--
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-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] kezhenxu94 commented on issue #7879: [Nodejs][Bug] Getting error log "Error installing plugin mysql2 *" when start agent
Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #7879:
URL: https://github.com/apache/skywalking/issues/7879#issuecomment-939242066
> I get the same error log in an online app that connects the Mysql server by `mysql2`, so I use this demo to reproduce this error.
> I think mysql2-plugin did not work well when getting this error log.
Yes, `mysql2-plugin` breaks after `mysql2` uses the `exports` in `package.json`, we need to adjust our plugin due to this.
--
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-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org