-
글쓴이글
-
2021년 8월 13일 20:32 #13438
익명비활성사이트배포 설명되어있는대로 잘 되다가
gcloud app deploy 명령어 입력후
Do you want to continue (Y/n)? y 입력시
Beginning deployment of service [default]...
Building and pushing image for service [default]
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Started cloud build [71e72d97-c979-405c-9492-1097196d61c2].
To see logs in the Cloud Console: https://console.cloud.google.com/cloud-build/builds/71e72d97-c979-405c-9492-1097196d61c2?project=953013322214
------------------------------------------------------------------------------------------------------ REMOTE BUILD OUTPUT ------------------------------------------------------------------------------------------------------starting build "71e72d97-c979-405c-9492-1097196d61c2"FETCHSOURCE
Fetching storage object: gs://staging.project1-1-322810.appspot.com/asia.gcr.io/project1-1-322810/appengine/default.20210813t202432:latest#1628853912085060
Copying gs://staging.project1-1-322810.appspot.com/asia.gcr.io/project1-1-322810/appengine/default.20210813t202432:latest#1628853912085060...
- [1 files][ 16.1 KiB/ 16.1 KiB]
Operation completed over 1 objects/16.1 KiB.
BUILD
Starting Step #0
Step #0: Pulling image: gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:770f37e7042652138c7dac203fc35ef0218002515ddd9f311db1c6c54d6816aa
Step #0: gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:770f37e7042652138c7dac203fc35ef0218002515ddd9f311db1c6c54d6816aa: Pulling from gcp-runtimes/nodejs/gen-dockerfile
Step #0: Digest: sha256:770f37e7042652138c7dac203fc35ef0218002515ddd9f311db1c6c54d6816aa
Step #0: Status: Downloaded newer image for gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:770f37e7042652138c7dac203fc35ef0218002515ddd9f311db1c6c54d6816aa
Step #0: gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:770f37e7042652138c7dac203fc35ef0218002515ddd9f311db1c6c54d6816aa
Step #0: Checking for Node.js.
Step #0: WARNING: Your package.json does not specify a supported Node.js version. Please pin your application to a major version of the Node.js runtime. To learn more, visit https://cloud.google.com/appengine/docs/flexible/nodejs/runtime
Step #0: Application detection failed: Error: node.js checker: Neither "start" in the "scripts" section of "package.json" nor the "server.js" file were found.
Finished Step #0
ERROR
ERROR: build step 0 "gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:770f37e7042652138c7dac203fc35ef0218002515ddd9f311db1c6c54d6816aa" failed: step exited with non-zero status: 1
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at https://console.cloud.google.com/cloud-build/builds/71e72d97-c979-405c-9492-1097196d61c2?project=953013322214 Failure status: UNKNOWN: Error Response: [2] Build failed; check build logs for details터미널에 이렇게 뜨는데 뭐가 문젠지 모르겠어요..
mongodb도
0.0.0.0/0 (includes your current IP address) 로 모든 ip접근허용 하게 했습니다
app.yaml파일도 추가했고요
2021년 8월 13일 21:39 #13440
codingapple키 마스터클라우드 콘솔 들어가서 에러메세지 확인해보거나 에러메세지 밑에 뜨는 url 들어가봐야 무슨에러인지 나올듯요
2021년 8월 14일 09:33 #13458
익명비활성빌드가 실패한 것 같습니다. 빌드 오류 문제 해결 문서를 확인하세요.
빌드 요약
2단계
00:00:12
0: gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:770f37e7042652138c7dac203fc35ef0218002515ddd9f311db1c6c54d6816aa
--runtime-image gcr.io/google-appengine/nodejs@sha256:10d0691c6e80b09d32649c69e83a9358d1cf9429a991f868eb2dbfe33fff776f
00:00:02
1: gcr.io/kaniko-project/executor@sha256:f87c11770a4d3ed33436508d206c584812cd656e6ed08eda1cff5c1ee44f5870
--destination=asia.gcr.io/project1-1-322810/appengine/default.20210813t202432:lateststarting build "71e72d97-c979-405c-9492-1097196d61c2"
FETCHSOURCE
Fetching storage object: gs://staging.project1-1-322810.appspot.com/asia.gcr.io/project1-1-322810/appengine/default.20210813t202432:latest#1628853912085060
Copying gs://staging.project1-1-322810.appspot.com/asia.gcr.io/project1-1-322810/appengine/default.20210813t202432:latest#1628853912085060...
/ [0 files][ 0.0 B/ 16.1 KiB]
-
- [1 files][ 16.1 KiB/ 16.1 KiB]
Operation completed over 1 objects/16.1 KiB.
BUILD
Starting Step #0
Step #0: Pulling image: gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:770f37e7042652138c7dac203fc35ef0218002515ddd9f311db1c6c54d6816aa
Step #0: gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:770f37e7042652138c7dac203fc35ef0218002515ddd9f311db1c6c54d6816aa: Pulling from gcp-runtimes/nodejs/gen-dockerfile
Step #0: Digest: sha256:770f37e7042652138c7dac203fc35ef0218002515ddd9f311db1c6c54d6816aa
Step #0: Status: Downloaded newer image for gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:770f37e7042652138c7dac203fc35ef0218002515ddd9f311db1c6c54d6816aa
Step #0: gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:770f37e7042652138c7dac203fc35ef0218002515ddd9f311db1c6c54d6816aa
Step #0: Checking for Node.js.
Step #0: WARNING: Your package.json does not specify a supported Node.js version. Please pin your application to a major version of the Node.js runtime. To learn more, visit https://cloud.google.com/appengine/docs/flexible/nodejs/runtime
Step #0: Application detection failed: Error: node.js checker: Neither "start" in the "scripts" section of "package.json" nor the "server.js" file were found.
Finished Step #0
ERROR
ERROR: build step 0 "gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:770f37e7042652138c7dac203fc35ef0218002515ddd9f311db1c6c54d6816aa" failed: step exited with non-zero status: 1클라우드 들어가서 빌드로그 보니까 이렇게 뜨네요..
-
글쓴이글
- 답변은 로그인 후 가능합니다.