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

home2 게시판 Next.js 게시판 선생님 aws 환경변수 수정이 안됩니다

선생님 aws 환경변수 수정이 안됩니다

  • 이 주제에는 7개 답변, 2명 참여가 있으며 유성찬11 월 전에 전에 마지막으로 업데이트했습니다.
8 글 보임 - 1 에서 8 까지 (총 8 중에서)
  • 글쓴이
  • #129221

    유성찬
    참가자
    [cloudshell-user@ip-10-4-111-51 ~]$ eb setenv NEXTAUTH_URL=사이트주소
    2024-08-07 04:53:57    INFO    Environment update is starting.      
    2024-08-07 04:54:05    INFO    Updating environment Testttababa-env's configuration settings.
                                                                          
    ERROR: TimeoutError - The EB CLI timed out after 4 minute(s). The operation might still be running. To keep viewing events, run 'eb events -f'. To set timeout duration, use '--timeout MINUTES'.
    사이트주소 제껄로 쓰고 올렸는데 타임아웃걸립니다
    혹시 .env파일로 올리려면 txt파일로 올려야하는지 어떻게 올려야하는지 알려주실수 있을까요
    #129233

    codingapple
    키 마스터
    elastic beanstalk 사이트 어딘가에 환경변수 편집하는 곳도 있을걸요 찾아봅시다
    #129238

    유성찬
    참가자
    구성에있는 환경 속성은 수정이 안되고
    태그에 있는 환경 키에 넣기도 해봤는데 타임아웃은 안걸리고 적용이 안됐습니다.
    .env파일로 올려 다시 빌드하기도 해봤는데 타임아웃 걸립니다.
    혹시 환경변수 편집하는곳이 틀렸다면 알려주실수 있을까요
    
    밑에는 eb setenv 했을때 이벤트에 뜬 로그입니다
    
    8월 7, 2024 17:14:28 (UTC+9)
    WARN
    Environment health has transitioned from Info to Warning. Configuration update failed 18 seconds ago and took 15 minutes. None of the instances are sending data.
    8월 7, 2024 17:14:07 (UTC+9)
    INFO
    The environment was reverted to the previous configuration setting.
    8월 7, 2024 17:13:50 (UTC+9)
    ERROR
    During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version.
    8월 7, 2024 17:13:50 (UTC+9)
    ERROR
    Failed to deploy configuration.
    8월 7, 2024 17:13:49 (UTC+9)
    ERROR
    Unsuccessful command execution on instance id(s) 'i-0d1070c7659577265'. Aborting the operation.
    8월 7, 2024 17:13:49 (UTC+9)
    INFO
    Command execution completed on all instances. Summary: [Successful: 0, TimedOut: 1].
    8월 7, 2024 17:13:49 (UTC+9)
    WARN
    The following instances have not responded in the allowed command timeout time (they might still finish eventually on their own): [i-0d1070c7659577265].
    8월 7, 2024 17:00:29 (UTC+9)
    INFO
    Environment health has transitioned from Ok to Info. Configuration update in progress (running for 10 seconds).
    8월 7, 2024 16:59:25 (UTC+9)
    INFO
    Updating environment Testttababa-env's configuration settings.
    8월 7, 2024 16:59:17 (UTC+9)
    INFO
    Environment update is starting.
    
    
     
    #129246

    codingapple
    키 마스터
    로그 출력메뉴에서 터미널 에러 뭐뜨는지 찾아봅시다
    #129251

    유성찬
    참가자
    새로 서버파서 하니까 환경변수 등록까진 됐습니다
    근데 로그인하려고 하니 리다이렉션이 제대로 안되는것같습니다
    eb setenv NEXTAUTH_URL=http://testsvsssss-env.eba-psgmnyhw.ap-northeast-2.elasticbeanstalk.com
    구글로 로그인 설정해놨는데 https없어서 피싱으로 감지도 하는것같네요
    혹시 이 부분까지 도움받을수 있을까요?
    리다이렉션 url은 https://testsvsssss-env.eba-psgmnyhw.ap-northeast-2.elasticbeanstalk.com/api/auth/callback/google
    이런식으로 작성했습니다
    뒤에거 지워봐도 똑같은것같습니다
     
    #129269

    유성찬
    참가자
    https://www.youtube.com/watch?v=xGAUo-x1i_o
    영상 그대로 해봤지만 안되는것같네요 
    https 관련된 문제인것같은데 어떻게 해결해야할지 도저히 모르겠습니다
    
    
    #129274

    codingapple
    키 마스터
    구글로그인 설정사이트에서 리다이렉션 url을 http://어쩌구로 등록해봅시다
    https 써야하면 ssl 인증서가 필요한데 그럴려면 elastic beanstalk에선 도메인 하나 피치못하게 구입해야합니다
    #129277

    유성찬
    참가자
    구글은 https만 되는것같네요
    깃허브나 다른 oauth로 다시만들고 해보겠습니다 감사합니다
     
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 호 / 개인정보관리자 : 박종흠