Open rishiv3 opened 5 years ago
is this the latest version? seems old as deploying with app.yaml santa_api.yaml
is no longer supported. Also latest bazel? I've been successfully deploying from my mac for awhile, however I had to add bazel run --incompatible_package_name_is_a_function=false
Hey Rishi, Can you post the exact command you're running which produces the log output above? Thanks!
@thehesiod Yes, everything is up to date. Im using win10 machine right now but im going to try on mac. thanks!!
@chief8192 Hello Matt, Im following all the instructions (https://github.com/google/upvote/blob/master/docs/setup.md) and using this ./init_project.sh
command to run.
Sorry for the radio silence.. Off the top of my head, could this be a permissions issue with where you're running init_project.sh
, or who you're running it as? That "Access is denied" message in your stacktrace makes me wonder..
Yep +1 chief. Bazel will fall over pretty hard if it can't symlink in it's normal working/output directories.
On Mon, Feb 25, 2019, 15:16 Matt Doyle <notifications@github.com wrote:
Sorry for the radio silence.. Off the top of my head, could this be a permissions issue with where you're running init_project.sh, or who you're running it as? That "Access is denied" message in your stacktrace makes me wonder..
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google/upvote/issues/46#issuecomment-467166189, or mute the thread https://github.com/notifications/unsubscribe-auth/ABVBrLd3FPWNkc5aGlMZw_SLGV-Try3lks5vRESLgaJpZM4bDbjy .
@chief8192 I am it as admin. Now there is no Access is denied
error but still not able to deploy to gcp.
+ echo Deploying to App Engine...
Deploying to App Engine...
+ bazel run upvote/gae:monolith_binary.deploy -- rv3-upvote app.yaml santa_api.yaml
INFO: Invocation ID: 5bb62db2-51c7-442f-a39e-65ede043aa91
Loading:
Loading: 0 packages loaded
Analyzing: target //upvote/gae:monolith_binary.deploy (0 packages loaded, 0 targets configured)
INFO: Analysed target //upvote/gae:monolith_binary.deploy (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Building: no action
WARNING: failed to create one or more convenience symlinks for prefix 'bazel-':
cannot create symbolic link bazel-bin -> C:/users/win/_bazel_win/pj2hik4j/execroot/__main__/bazel-out/x64_windows-fastbuild/bin: Cannot create junction (name=C:\users\win\desktop\upvote\upvote\bazel-bin, target=C:\users\win\_bazel_win\pj2hik4j\execroot\__main__\bazel-out\x64_windows-fastbuild\bin): the junction's path got modified unexpectedly
cannot create symbolic link bazel-testlogs -> C:/users/win/_bazel_win/pj2hik4j/execroot/__main__/bazel-out/x64_windows-fastbuild/testlogs: Cannot create junction (name=C:\users\win\desktop\upvote\upvote\bazel-testlogs, target=C:\users\win\_bazel_win\pj2hik4j\execroot\__main__\bazel-out\x64_windows-fastbuild\testlogs): the junction's path got modified unexpectedly
cannot create symbolic link bazel-genfiles -> C:/users/win/_bazel_win/pj2hik4j/execroot/__main__/bazel-out/x64_windows-fastbuild/genfiles: Cannot create junction (name=C:\users\win\desktop\upvote\upvote\bazel-genfiles, target=C:\users\win\_bazel_win\pj2hik4j\execroot\__main__\bazel-out\x64_windows-fastbuild\genfiles): the junction's path got modified unexpectedly
cannot create symbolic link bazel-out -> C:/users/win/_bazel_win/pj2hik4j/execroot/__main__/bazel-out: Cannot create junction (name=C:\users\win\desktop\upvote\upvote\bazel-out, target=C:\users\win\_bazel_win\pj2hik4j\execroot\__main__\bazel-out): the junction's path got modified unexpectedly
cannot create symbolic link bazel-upvote -> C:/users/win/_bazel_win/pj2hik4j/execroot/__main__: Cannot create junction (name=C:\users\win\desktop\upvote\upvote\bazel-upvote, target=C:\users\win\_bazel_win\pj2hik4j\execroot\__main__): the junction's path got modified unexpectedly
[0 / 1] [-----] BazelWorkspaceStatusAction stable-status.txt
Target //upvote/gae:monolith_binary.deploy up-to-date:
C:/users/win/_bazel_win/pj2hik4j/execroot/__main__/bazel-out/x64_windows-fastbuild/bin/upvote/gae/monolith_binary_deploy.sh
C:/users/win/_bazel_win/pj2hik4j/execroot/__main__/bazel-out/x64_windows-fastbuild/bin/upvote/gae/monolith_binary.deploy
C:/users/win/_bazel_win/pj2hik4j/execroot/__main__/bazel-out/x64_windows-fastbuild/bin/upvote/gae/monolith_binary.deploy.exe
INFO: Elapsed time: 11.304s, Critical Path: 0.02s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Running command line: C:/users/win/_bazel_win/pj2hik4j/execroot/__main__/bazel-out/x64_windows-fastbuild/bin/upvote/gae/monolith_binary.deploy.exe rv3-upvote app.yaml santa_api.yaml
INFO: Build completed successfully, 1 total action
C:\users\win\_bazel_win\pj2hik4j\execroot\__main__\bazel-out\x64_windows-fastbuild\bin\upvote\gae\monolith_binary.deploy: line 34: cd: /tmp/war.slmlVbdN/__main__: No such file or directory
C:\users\win\_bazel_win\pj2hik4j\execroot\__main__\bazel-out\x64_windows-fastbuild\bin\upvote\gae\monolith_binary.deploy: line 37: /c/users/win/_bazel~1/pj2hik4j/execroot/__main__/bazel-~1/x64_wi~1/bin/upvote/gae/monoli~2.run/../com_google_cloud_sdk/bin/gcloud: No such file or directory
I'm guessing you need to install the Cloud SDK for that account as well?
C:\users\win\_bazel_win\pj2hik4j\execroot\__main__\bazel-out\x64_windows-fastbuild\bin\upvote\gae\monolith_binary.deploy: line 37: /c/users/win/_bazel~1/pj2hik4j/execroot/__main__/bazel-~1/x64_wi~1/bin/upvote/gae/monoli~2.run/../com_google_cloud_sdk/bin/gcloud: No such file or directory
@chief8192 sorry I didnt get your last comment.
and I have tried on the mac machine and it gives almost same error at the last step -
Initializing Upvote for GCP project: "rv3-upvote"
+ gcloud config set project rv3-upvote
Updated property [core/project].
+ echo Enabling App Engine...
Enabling App Engine...
++ gcloud app describe '--format=value(id)'
+ [[ rv3-upvote != \r\v\3\-\u\p\v\o\t\e ]]
+ echo Enabling APIs used by Upvote...
Enabling APIs used by Upvote...
+ gcloud services enable cloudkms.googleapis.com
+ gcloud services enable bigquery-json.googleapis.com
+ echo Granting necessary permissions to App Engine...
Granting necessary permissions to App Engine...
++ gcloud iam service-accounts list '--filter=App Engine app default service account' '--format=value(email)'
+ SERVICE_ACCOUNT=rv3-upvote@appspot.gserviceaccount.com
+ gcloud projects add-iam-policy-binding rv3-upvote --member serviceAccount:rv3-upvote@appspot.gserviceaccount.com --role roles/cloudkms.cryptoKeyEncrypterDecrypter
Updated IAM policy for project [rv3-upvote].
bindings:
- members:
- serviceAccount:rv3-upvote@appspot.gserviceaccount.com
role: roles/cloudkms.cryptoKeyEncrypterDecrypter
- members:
- serviceAccount:rv3-upvote@appspot.gserviceaccount.com
role: roles/editor
- members:
- user:rishivishwakarma24x7@gmail.com
role: roles/owner
etag: BwWC5oHngX4=
version: 1
+ echo Configuring App Engine...
Configuring App Engine...
+ ./manage_crons.py disable_all
+ echo Deploying temporary default version to App Engine...
Deploying temporary default version to App Engine...
+ bazel run upvote/gae:monolith_binary.deploy -- rv3-upvote app.yaml
+ echo
+ echo Deploying to App Engine...
Deploying to App Engine...
+ bazel run upvote/gae:monolith_binary.deploy -- rv3-upvote app.yaml santa_api.yaml
INFO: Analysed target //upvote/gae:monolith_binary.deploy (1 packages loaded, 22994 targets configured).
INFO: Found 1 target...
Target //upvote/gae:monolith_binary.deploy up-to-date:
bazel-bin/upvote/gae/monolith_binary_deploy.sh
bazel-bin/upvote/gae/monolith_binary.deploy
INFO: Elapsed time: 10.367s, Critical Path: 0.32s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
ERROR: (gcloud.app.deploy) [/private/var/folders/kz/pxyk18yx0536xkmp05v10qrm0000gn/T/war.lelB7jwb/__main__/rv3-upvote] does not exist.
Was able to solve this by just running bazel run upvote/gae:monolith_binary.deploy
rather than bazel run upvote/gae:monolith_binary.deploy -- "${PROJ_ID}" app.yaml santa_api.yaml
Please check the logs -
I have updated all the dependencies but still not able to deploy it to app engine. Any ideas whats wrong here?
Thanks!