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"가 추가됩니다.
이게 어디서 나오는지 아는 사람 있나요?