本地主机突然变成“loS”?

本地主机突然变成“loS”?

我正在 Rasperry Pi (Raspian) 上运行节点应用程序,并且我已经看到此错误发生两次。我们会突然看到错误日志充满以下内容:

You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'hub_user'@'loS' (using password: YES)
    at Handshake.Sequence._packetToError (/opt/data/Hub/node_modules/mysql/lib/protocol/sequences/Sequence.js:$
    at Handshake.ErrorPacket (/opt/data/Hub/node_modules/mysql/lib/protocol/sequences/Handshake.js:103:18)
    at Protocol._parsePacket (/opt/data/Hub/node_modules/mysql/lib/protocol/Protocol.js:280:23)
    at Parser.write (/opt/data/Hub/node_modules/mysql/lib/protocol/Parser.js:74:12)
    at Protocol.write (/opt/data/Hub/node_modules/mysql/lib/protocol/Protocol.js:39:16)
    at Socket.<anonymous> (/opt/data/Hub/node_modules/mysql/lib/Connection.js:109:28)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:153:18)
    at Socket.Readable.push (_stream_readable.js:111:10)
    at TCP.onread (net.js:537:20)
    --------------------
    at Protocol._enqueue (/opt/data/Hub/node_modules/mysql/lib/protocol/Protocol.js:141:48)
    at Protocol.handshake (/opt/data/Hub/node_modules/mysql/lib/protocol/Protocol.js:52:41)
    at Connection.connect (/opt/data/Hub/node_modules/mysql/lib/Connection.js:136:18)
    at /opt/data/Hub/node_modules/knex/lib/dialects/mysql/index.js:106:18
    at Promise._execute (/opt/data/Hub/node_modules/knex/node_modules/bluebird/js/release/debuggability.js:300$
    at Promise._resolveFromExecutor (/opt/data/Hub/node_modules/knex/node_modules/bluebird/js/release/promise.$
    at new Promise (/opt/data/Hub/node_modules/knex/node_modules/bluebird/js/release/promise.js:77:14)
    at Client_MySQL.acquireRawConnection (/opt/data/Hub/node_modules/knex/lib/dialects/mysql/index.js:104:12)
    at Object.create (/opt/data/Hub/node_modules/knex/lib/client.js:231:16)
    at Pool._createResource (/opt/data/Hub/node_modules/knex/node_modules/generic-pool/lib/generic-pool.js:326$
    at Pool.dispense [as _dispense] (/opt/data/Hub/node_modules/knex/node_modules/generic-pool/lib/generic-poo$
    at Pool.acquire (/opt/data/Hub/node_modules/knex/node_modules/generic-pool/lib/generic-pool.js:392:8)
    at /opt/data/Hub/node_modules/knex/lib/client.js:281:19
    at Promise._execute (/opt/data/Hub/node_modules/knex/node_modules/bluebird/js/release/debuggability.js:300$
    at Promise._resolveFromExecutor (/opt/data/Hub/node_modules/knex/node_modules/bluebird/js/release/promise.$
    at new Promise (/opt/data/Hub/node_modules/knex/node_modules/bluebird/js/release/promise.js:77:14)

当通过 SSH 连接到该设备时(当它进入此状态时),如果我键入以下内容:

mysql -uhub_user -p

它将尝试以“hub_user”@“loS”进行连接。如果我指定“hub_user”@“localhost”,它将在 localhost 之后附加“loS”。

有人知道这是从哪里来的吗?

相关内容