• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Next.js 게시판 aws 배포문제

aws 배포문제

8 글 보임 - 1 에서 8 까지 (총 8 중에서)
  • 글쓴이
  • #92684

    최하림
    참가자
    애플선생님말대로 모듈빼고 .next 폴더포함해서 압축한후에 올리면
    스크린샷 2023-07-28 오후 11.10.42
    
    이런 오류가 떠요 추출자체가 안된다는데 어떻게 해야할까요.???
    안에 out 폴더도 생성된것도아니구 .next 폴더만 압축해서 올리면 추출오류말고
    Instance deployment failed to generate a 'Procfile' for Node.js. Provide one of these files: 'package.json', 'server.js', or 'app.js'. The deployment failed.
    
    이오류가 먼저 떠요.. 어떻게 해야할지 감이안와요ㅠㅠ
    
    일단 이쪽은 어느정도 해결된거같고 댓글이 문제같습니다..
    #92689

    최하림
    참가자
    지우고 다시 했는데 배드 게이트웨이라고 오류문구가뜨는데 어떻게 해야할까요,...
    인스턴트 배포 2개중에 1개는 실패했다고 계속 그러네여 ㅠㅠ
    #92693

    최하림
    참가자
    스크린샷 2023-07-29 오전 12.55.24
    이게 무슨 오류인지 모르겠습니다...
    #92708

    codingapple
    키 마스터
    브라우저 콘솔창 확인해보고
    aws사이트에 로그 출력할 수 있는 메뉴가 있는데 거기서 에러메세지같은거 뒤져봅시다
    #92768

    최하림
    참가자
    답변 감사합니다 하지만 ㅠㅠ
    환경변수 비밀번호가 포함된 파일이 포함안되서 그런건가 해서 .env 파일을 빌드한 폴더에 넣어서 다시 올려봤지만 
    같은증상입니다. 에러내역이 저거같은데 무슨문제일까요..?
    
    
    		
    	
    #92773

    최하림
    참가자
    a `secret` in production.
    Jul 29 20:03:44 ip-172-31-5-216 web: at assertConfig #033[90m(/var/app/current/#033[39m.next/server/chunks/41.js:7766:16#033[90m)#033[39m
    Jul 29 20:03:44 ip-172-31-5-216 web: at AuthHandler #033[90m(/var/app/current/#033[39m.next/server/chunks/41.js:7308:54#033[90m)#033[39m
    Jul 29 20:03:44 ip-172-31-5-216 web: at async getServerSession #033[90m(/var/app/current/#033[39m.next/server/chunks/41.js:10524:21#033[90m)#033[39m
    Jul 29 20:03:44 ip-172-31-5-216 web: at async RootLayout #033[90m(/var/app/current/#033[39m.next/server/chunks/134.js:181:19#033[90m)#033[39m {
    Jul 29 20:03:44 ip-172-31-5-216 web: code: #033[32m'NO_SECRET'#033[39m
    Jul 29 20:03:44 ip-172-31-5-216 web: }
    Jul 29 20:03:44 ip-172-31-5-216 web: Error: There is a problem with the server configuration. Check the server logs for more information.
    Jul 29 20:03:44 ip-172-31-5-216 web: at getServerSession #033[90m(/var/app/current/#033[39m.next/server/chunks/41.js:10541:15#033[90m)#033[39m
    Jul 29 20:03:44 ip-172-31-5-216 web: at async RootLayout #033[90m(/var/app/current/#033[39m.next/server/chunks/134.js:181:19#033[90m)#033[39m
    Jul 29 20:03:44 ip-172-31-5-216 web: Error: There is a problem with the server configuration. Check the server logs for more information.
    Jul 29 20:03:44 ip-172-31-5-216 web: at getServerSession #033[90m(/var/app/current/#033[39m.next/server/chunks/41.js:10541:15#033[90m)#033[39m
    Jul 29 20:03:44 ip-172-31-5-216 web: at async RootLayout #033[90m(/var/app/current/#033[39m.next/server/chunks/134.js:181:19#033[90m)#033[39m
    Jul 29 20:03:44 ip-172-31-5-216 web: [Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
    Jul 29 20:03:44 ip-172-31-5-216 web: digest: #033[32m'1441325798'#033[39m
    Jul 29 20:03:44 ip-172-31-5-216 web: }
    Jul 29 20:14:01 ip-172-31-5-216 web: [next-auth][error][NO_SECRET]
    Jul 29 20:14:01 ip-172-31-5-216 web: https://next-auth.js.org/errors#no_secret Please define a `secret` in production. MissingSecret [MissingSecretError]: Please define a `secret` in production.
    Jul 29 20:14:01 ip-172-31-5-216 web: at assertConfig #033[90m(/var/app/current/#033[39m.next/server/chunks/41.js:7766:16#033[90m)#033[39m
    Jul 29 20:14:01 ip-172-31-5-216 web: at AuthHandler #033[90m(/var/app/current/#033[39m.next/server/chunks/41.js:7308:54#033[90m)#033[39m
    Jul 29 20:14:01 ip-172-31-5-216 web: at async getServerSession #033[90m(/var/app/current/#033[39m.next/server/chunks/41.js:10524:21#033[90m)#033[39m
    Jul 29 20:14:01 ip-172-31-5-216 web: at async RootLayout #033[90m(/var/app/current/#033[39m.next/server/chunks/134.js:181:19#033[90m)#033[39m {
    Jul 29 20:14:01 ip-172-31-5-216 web: code: #033[32m'NO_SECRET'#033[39m
    Jul 29 20:14:01 ip-172-31-5-216 web: }
    Jul 29 20:14:01 ip-172-31-5-216 web: [next-auth][error][NO_SECRET]
    Jul 29 20:14:01 ip-172-31-5-216 web: https://next-auth.js.org/errors#no_secret Please define a `secret` in production. MissingSecret [MissingSecretError]: Please define a `secret` in production.
    Jul 29 20:14:01 ip-172-31-5-216 web: at assertConfig #033[90m(/var/app/current/#033[39m.next/server/chunks/41.js:7766:16#033[90m)#033[39m
    Jul 29 20:14:01 ip-172-31-5-216 web: at AuthHandler #033[90m(/var/app/current/#033[39m.next/server/chunks/41.js:7308:54#033[90m)#033[39m
    Jul 29 20:14:01 ip-172-31-5-216 web: at async getServerSession #033[90m(/var/app/current/#033[39m.next/server/chunks/41.js:10524:21#033[90m)#033[39m
    Jul 29 20:14:01 ip-172-31-5-216 web: at async RootLayout #033[90m(/var/app/current/#033[39m.next/server/chunks/134.js:181:19#033[90m)#033[39m {
    Jul 29 20:14:01 ip-172-31-5-216 web: code: #033[32m'NO_SECRET'#033[39m
    Jul 29 20:14:01 ip-172-31-5-216 web: }
    Jul 29 20:14:01 ip-172-31-5-216 web: Error: There is a problem with the server configuration. Check the server logs for more information.
    Jul 29 20:14:01 ip-172-31-5-216 web: at getServerSession #033[90m(/var/app/current/#033[39m.next/server/chunks/41.js:10541:15#033[90m)#033[39m
    Jul 29 20:14:01 ip-172-31-5-216 web: at async RootLayout #033[90m(/var/app/current/#033[39m.next/server/chunks/134.js:181:19#033[90m)#033[39m
    Jul 29 20:14:01 ip-172-31-5-216 web: Error: There is a problem with the server configuration. Check the server logs for more information.
    Jul 29 20:14:01 ip-172-31-5-216 web: at getServerSession #033[90m(/var/app/current/#033[39m.next/server/chunks/41.js:10541:15#033[90m)#033[39m
    Jul 29 20:14:01 ip-172-31-5-216 web: at async RootLayout #033[90m(/var/app/current/#033[39m.next/server/chunks/134.js:181:19#033[90m)#033[39m
    Jul 29 20:14:01 ip-172-31-5-216 web: [Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
    Jul 29 20:14:01 ip-172-31-5-216 web: digest: #033[32m'1441325798'#033[39m
    Jul 29 20:14:01 ip-172-31-5-216 web: }
    이게 자꾸 반복적으로 뜨는것같습니다..
    #92781

    codingapple
    키 마스터
    nextauth설정파일에 secret: 이 없다는소리같습니다 
    아니면 .env에 NEXTAUTH_SECRET = ?? 이 없어서 그럴수도요
    #92941

    최하림
    참가자
    답변 감사합니다.
    일단 마이크로는 배포가 안되서 스몰로 했었는데 요금청구가 그거때문에 되는거같더라구요??..
    그래서 일단 배포는 넘어가는걸로 하려고합니다 ㅠㅠ.. 
    착각인지..빌드할때 환경변수 포함이안되는거 같기도 하고 잘모르겠습니다 감사합니다.
    
    
8 글 보임 - 1 에서 8 까지 (총 8 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠