Localhost de repente se torna 'loS'?

1

Estou executando um aplicativo de nó em um Rasperry Pi (Raspian) e vi esse erro acontecer duas vezes agora. De aparentemente em nenhum lugar, veremos os logs de erros com o seguinte:

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)

Quando conectado via SSH a esse dispositivo (quando chegar a esse estado), se eu digitar o seguinte:

mysql -uhub_user -p

Ele tentará se conectar como 'hub_user' @ 'loS'. Se eu especificar 'hub_user' @ 'localhost', ele irá anexar o 'loS' após o localhost.

Alguém tem alguma idéia de onde isso está vindo?

    
por Nicholas Kreidberg 23.01.2017 / 21:16

0 respostas