Notice
Recent Posts
Recent Comments
Link
ยซ   2024/11   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Archives
Today
Total
๊ด€๋ฆฌ ๋ฉ”๋‰ด

Lennon FE

[๋ฆฌ์•กํŠธ, mongoose Error] ๊ฐœ๋ฐœ ์ค‘ ์—๋Ÿฌ๋ฅผ ํ™•์ธํ•ด๋ณด๊ณ  ํ•ด๊ฒฐํ•ด๋ณด์ž ๋ณธ๋ฌธ

๐Ÿง‘‍๐Ÿ’ป Web/React

[๋ฆฌ์•กํŠธ, mongoose Error] ๊ฐœ๋ฐœ ์ค‘ ์—๋Ÿฌ๋ฅผ ํ™•์ธํ•ด๋ณด๊ณ  ํ•ด๊ฒฐํ•ด๋ณด์ž

Lennon 2022. 1. 10. 17:50
728x90
๋ฐ˜์‘ํ˜•

MongooseError: Operation `users.findOne()` buffering timed out after 10000ms
Error: listen EADDRINUSE: address already in use ::: 5000
Uncaught (in promise) Error: Request failed with status code 504
Failed to load resource: the server responded with a status of 504 (Gateway Timeout)

๋ถ„๋ช…ํžˆ ์–ด์ œ๊นŒ์ง€ ๋ชฝ๊ณ DB๋ฅผ ์‚ฌ์šฉํ•œ ํ”„๋กœ์ ํŠธ์—์„œ ๋กœ๊ทธ์ธ, ๋กœ๊ทธ์•„์›ƒ ๋ชจ๋‘ ๋™์ž‘ํ–ˆ๋Š”๋ฐ ๊ฐ‘์ž๊ธฐ ์ €๋Ÿฐ 504์—๋Ÿฌ๊ฐ€ ๋œจ๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ์„๊ฒƒ์ด๋‹ค.

๊ฐœ์ธ ํ”„๋กœ์ ํŠธ์—์„œ ๋กœ๊ทธ์ธ์„ ๋ˆ„๋ฅด๋“  ํšŒ์›๊ฐ€์ž…์„ ๋ˆŒ๋Ÿฌ๋„ post, get, promise 504์—๋Ÿฌ๋งŒ ์ž”๋œฉ ๋œจ๋ฉฐ ์ž‘๋™์ด ์•ˆ๋œ๋‹ค..

 

ํฌํŠธ๊ฐ€ ์ด๋ฏธ ์‚ฌ์šฉ์ค‘์ด๋ผ kill  -9  portNumber ๋“ฑ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ์‹œ๋„๋ฅผ ํ•ด๋„ ํ•ด๊ฒฐ์ด ์•ˆ๋˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ์„ ๊ฒƒ์ด๋‹ค.

 

๋ณธ์ธ์€ 2์ผ ๊ฑธ๋ ค์„œ ํ•ด๊ฒฐ์„ ํ–ˆ๋‹คใ… ใ…  ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์€ ์‹œ๊ฐ„์€ ์†Œ์ค‘ํ•˜๋‹ˆ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์„ ํฌ์ŠคํŒ…ํ•˜๋ ค ํ•œ๋‹ค.

 

1. ๋ชฝ๊ณ DB ์‚ฌ์ดํŠธ์— ๋“ค์–ด๊ฐ€ ๋ณธ์ธ์˜ cluster์— ๋“ค์–ด๊ฐ€ Network Access๋กœ ์ง„์ž…ํ•œ๋‹ค.

2. ADD IP ADDRESS๋ฅผ ๋ˆŒ๋Ÿฌ ๋ณธ์ธ์˜ IP๋ฅผ ๋‹ค์‹œ ๋“ฑ๋กํ•œ๋‹ค.

 

Pending์ด ๋๋‚˜๊ณ  ๋™์ž‘์‹œํ‚ค๋ฉด ๋‹ค์‹œ ์ž˜ ๋˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.

 

์ด๋ฏธ IP๋ฅผ ์‚ฌ์šฉ์ค‘์ด๋ผ ์—ฌ๊ธฐ๋Š” ๋ฌธ์ œ๊ฐ€ ์—†๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ์ง€๋งŒ ๋‹ค๋ฅธ ์™€์ดํŒŒ์ด๋ฅผ ์‚ฌ์šฉํ•ด์„œ ๊ทธ๋Ÿฐ๊ฐ€ ๋ญ”์ง€ ๋ชจ๋ฅด๊ฒ ์ง€๋งŒ ๋‹ค๋ฅธ IP๊ฐ€ ๋“ฑ๋ก๋˜์–ด ์–ด์ด์—†๊ฒŒ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์—ˆ๋‹ค.

728x90
๋ฐ˜์‘ํ˜•
Comments