teamdable / vv-deploy-actions

1 stars 0 forks source link

restart-actions에서 ${process-name} 변수 못읽어오는 오류 #28

Closed hyeseung-of-dable closed 2 years ago

hyeseung-of-dable commented 2 years ago
spawn /usr/bin/ssh -o StrictHostKeyChecking=no ${user}@${hostname} . /etc/profile; start-
Password:

Verification code:

${process-name} 변수를 받아오지못하는 것 같습니다!

https://github.com/teamdable/vv-deploy-test/runs/5493143462?check_suite_focus=true 에서 확인 가능

yunseung-dable commented 2 years ago

secrets 확인이 필요합니다! 명령어 실행시 secrets 관련 변수들이 입력되지 않은것을 확인했습니다 때문에 password 인자로 process-name이 들어가며 password 재확인하는 작업과 동시에 permission denied가 발생한것 같습니다

hyeseung-of-dable commented 2 years ago

@yunseung-dable 전에 세션할떄 사용했던 레포라서 secrets는 설정되어있어요! permission denied는 별개의 문제이고, 해당 이슈는 . /etc/profile; start- 명령어가 이렇게 출력되는 문제입니다!!

yunseung-dable commented 2 years ago

@hyeseung-of-dable 이 링크의 커맨드를 보시면 입력인자로 user(1) 와 process-name(2) 두개만 전달되었는데요 때문에 (4)번째 인자로 전달받기로한 process-name은 값이 없어서 start-로만 되어있습니다 또한 password 인자에 process-name이 들어갔기때문에 password를 계속 재확인 하는것 같습니다!

yunseung-dable commented 2 years ago

여기 변수명이 secret 에 등록된것과 달라서 못찾은것 같아요!

hyeseung-of-dable commented 2 years ago

와 👍 vv-deploy-actions에 변수명을 일반적인(?)이름으로 해놨는데, 제 스스로 낚였네요... 감사합니다 !!!!!!!!! 해결 완!!!!