iam4x / iam4x/bobarr

getaddrinfo ENOT FOUND

Open
#148 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.7k
Forks
89
PR merge metrics
No merged PRs in 30d

Description

Been unable to add any movie to my library. Firstly, it says "getaddrinfo ENOT FOUND" then "duplicate key value violates unique constraint "UQ_e67ea82f6973f5b9a6747fba346".
So, from what I understand, it faces problems to connect to Redis but somehow something is stored in the DB.
Transmission does not start any download.

And one note more: can't Dowload Tv shows, appears like a "forbiden" sign on the "Download" button.

Let me know if I can help

EDIT:
more info

bobarr-api | 2020-09-01 03:09:08.660 [info] LibraryService - track movie - {"tmdbId":338762}
bobarr-api | 2020-09-01 03:09:08.691 [info] JobsService - add download movie job - {"movieId":8}
bobarr-api | 2020-09-01 03:09:08.693 [error] ExceptionsHandler - getaddrinfo ENOTFOUND redis - {"trace":"Error: getaddrinfo ENOTFOUND redis\n at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)"}

and then that error persist

bobarr-api | at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)
bobarr-api | [ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis
bobarr-api | at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)
bobarr-api | [ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis
bobarr-api | at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)
bobarr-api | [ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis
bobarr-api | at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)
bobarr-api | [ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis
bobarr-api | at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)
bobarr-api | [ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis
bobarr-api | at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)
bobarr-api | [ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis
bobarr-api | at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)
bobarr-api | [ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis
bobarr-api | at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)

If I try to add the movie again:
bobarr-api | at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)
bobarr-api | 2020-09-01 03:10:29.888 [error] ExceptionsHandler - duplicate key value violates unique constraint "UQ_e67ea82f6973f5b9a6747fba346" - {"trace":"QueryFailedError: duplicate key value violates unique constraint \"UQ_e67ea82f6973f5b9a6747fba346\"\n at new QueryFailedError (/usr/src/app/node_modules/typeorm/error/QueryFailedError.js:11:28)\n at Query. (/usr/src/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:176:38)\n at Query.handleError (/usr/src/app/node_modules/pg/lib/query.js:139:19)\n at Client._handleErrorMessage (/usr/src/app/node_modules/pg/lib/client.js:326:17)\n at Connection.emit (events.js:315:20)\n at /usr/src/app/node_modules/pg/lib/connection.js:109:12\n at Parser.parse (/usr/src/app/node_modules/pg-protocol/dist/parser.js:40:17)\n at Socket. (/usr/src/app/node_modules/pg-protocol/dist/index.js:8:42)\n at Socket.emit (events.js:315:20)\n at addChunk (_stream_readable.js:295:12)\n at readableAddChunk (_stream_readable.js:271:9)\n at Socket.Readable.push (_stream_readable.js:212:10)\n at TCP.onStreamRead (internal/stream_base_commons.js:186:23)"}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the JobsService “add download movie job” entry point shown in the bobarr-api logs, then trace its Redis connection and PostgreSQL write. Reproduce the movie-add flow and determine what must be corrected so Redis resolves, repeated additions do not produce the unique-constraint error, and Transmission can start the download.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, postgresql, redis, typescript
Domain
backend, databases, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.