Skip to content
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

Error: UNKNOWN_CODE_PLEASE_REPORT: Connection was killed #2350

Open
Apollon77 opened this issue May 3, 2020 · 3 comments
Open

Error: UNKNOWN_CODE_PLEASE_REPORT: Connection was killed #2350

Apollon77 opened this issue May 3, 2020 · 3 comments

Comments

@Apollon77
Copy link

https://sentry.iobroker.net/share/issue/bfbf00157f54442ea5e04695ae4cf661/

Error: UNKNOWN_CODE_PLEASE_REPORT: Connection was killed
  File "/opt/iobroker/node_modules/mysql/lib/protocol/sequences/Sequence.js", line 47, col 14, in Quit.Sequence._packetToError
    var err  = new Error(code + ': ' + packet.message);
  File "/opt/iobroker/node_modules/mysql/lib/protocol/sequences/Sequence.js", line 96, col 17, in Quit.Sequence.ErrorPacket
    this.end(this._packetToError(packet));
  File "/opt/iobroker/node_modules/mysql/lib/protocol/Protocol.js", line 291, col 23, in Protocol._parsePacket
    sequence[packetName](packet);
  File "/opt/iobroker/node_modules/mysql/lib/protocol/Parser.js", line 433, col 10, in Parser._parsePacket
    this._onPacket(packetHeader);
  File "/opt/iobroker/node_modules/mysql/lib/protocol/Parser.js", line 43, col 10, in Parser.write
    this._parsePacket(packetHeader);
  File "/opt/iobroker/node_modules/mysql/lib/protocol/Protocol.js", line 38, col 16, in Protocol.write
    this._parser.write(buffer);
  File "/opt/iobroker/node_modules/mysql/lib/Connection.js", line 88, col 28, in Socket.<anonymous>
    connection._protocol.write(data);
  File "/opt/iobroker/node_modules/mysql/lib/Connection.js", line 526, col 10, in Socket.<anonymous>
    fn.apply(this, arguments);
  File "events.js", line 198, col 13, in Socket.emit
  File "domain.js", line 448, col 20, in Socket.EventEmitter.emit
  File "    --------------------", in null.<anonymous>
  File "/opt/iobroker/node_modules/mysql/lib/protocol/Protocol.js", line 144, col 48, in Protocol._enqueue
    sequence._callSite = sequence._callSite || new Error();
  File "/opt/iobroker/node_modules/mysql/lib/protocol/Protocol.js", line 91, col 23, in Protocol.quit
    var sequence = this._enqueue(new Sequences.Quit(options, callback));
  File "/opt/iobroker/node_modules/mysql/lib/Connection.js", line 239, col 18, in Connection.end
    this._protocol.quit(opts, wrapCallbackInDomain(this, cb));
  File "/opt/iobroker/node_modules/sql-client/lib/connection-factory.js", line 22, col 20, in MySQLConnectionFactory.close_connection
    connection.end();
  File "/opt/iobroker/node_modules/sql-client/lib/sql-client.js", line 51, col 29, in SQLClient.disconnect
    return this.factory.close_connection(this.connection, (err) => {
  File "/opt/iobroker/node_modules/sql-client/lib/sql-client-pool.js", line 42, col 25, in MySQLClientPool.destroy
    return client.disconnect(callback);
  File "/opt/iobroker/node_modules/sql-client/lib/sql-client-pool.js", line 234, col 31, in passivate
    return this.destroy(client, callback);
  File "/opt/iobroker/node_modules/sql-client/lib/sql-client-pool.js", line 37, col 16, in MySQLClientPool.passivate
    return callback(null, client);
  File "/opt/iobroker/node_modules/sql-client/lib/sql-client-pool.js", line 227, col 25, in MySQLClientPool.return
    return this.passivate(client, (err, client) => {
  File "/opt/iobroker/node_modules/iobroker.sql/main.js", line 246, col 43, in returnClientToPool
    return clientPool && clientPool.return(client);
@ARitz-Cracker
Copy link

Which server are you using this for?

@Apollon77
Copy link
Author

To be honest I have no idea. It is not an error from my system andf it was also not reported by the affected user. We just got that report via our automated Sentry crash reporting. Sorry that I can not provide more information.

@ARitz-Cracker
Copy link

I see, well, I ask because I submitted a pull requests that adds all the MySQL 8 error codes to this library, but MariaDB has their own extended codes that MySQL itself does not have. So I'm wondering if this issue can be closed when my PR is approved or if it should stay open until MariaDB's codes are (eventually) added, or if it was just some custom MySQL server entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants