Error14 "Could not establish connection to "[server_name]": Remote host key has changed, port forwarding is disabled." ssh 접속시 로컬의 .ssh의 known_hosts파일에 footprint를 저장한다. 그러나 서버의 포트나 ip 변경시 known_hosts에 저장하여둔 정보와 충돌이 발생하여 생기는 에러이다. /.ssh/known_hosts #ec2-0-0-0-0.ap-northeast-2.compute.amazonaws.com,0.0.0.0 파일에 들어가서 서버와 관련된 라인을 삭제한다. 2021. 6. 3. python: 'table already exists' migration에 있는 테이블이 초기화되지 않고 남아있는 상태에서 migrate를 진행할때 발생하는 문제이다. migration을 초기화한 후에 다시 migrate를 진행하면 된다. python manage.py —fake 2021. 6. 2. AWS) EC2 Permission denied (pk) error ssh 연결 시 pem파일의 권한을 변경해야 한다. chmod 400 [key path] 2021. 6. 2. statusText: "Unauthorized" Error: Request failed with status code 401 token 보낼때 headers를 명시해 주어야 한다. 서버에서 headers가 없으면 token을 인식하지 못한다. null 값으로라도 보내주어야 한다. return axios({ method: "POST", url: `${ROOT_URL}`, data: req.data, headers: req.headers ? req.headers : null, }); 2021. 6. 2. TypeError: object.init() takes exactly one argument (the instance to initialize) 채널 관련 에러 django v3 업데이트 이후 routing.py에서consumer에 as.asgi()를 달아줘야 한다. // apps/chat/routing.py url(r'^ws/chat/(?P[^/]+)/$', consumers.ChatConsumer.as_asgi()), 2021. 6. 2. 이전 1 2 다음