Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Error running bezel with the init script #50

Open
tonynotears opened this issue Mar 11, 2019 · 8 comments
Open

Error running bezel with the init script #50

tonynotears opened this issue Mar 11, 2019 · 8 comments
Assignees

Comments

@tonynotears
Copy link

`Deploying to App Engine...

  • bazel run upvote/gae:monolith_binary.deploy -- upvote-233719 app.yaml santa_api.yaml
    DEBUG: Rule 'io_bazel_rules_appengine' modified arguments {"shallow_since": "1544654581 -0500"}
    ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package '@io_bazel_rules_closure//closure': java.io.IOException: Error downloading [https://github.com/bazelbuild/rules_closure/archive/d1110778a2e94bcdac5d5d00044dcb6cd07f1d51.tar.gz] to /private/var/tmp/_bazel_tonylin/bca64804a1a5aa72f10fce1fb59a3167/external/io_bazel_rules_closure/d1110778a2e94bcdac5d5d00044dcb6cd07f1d51.tar.gz: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package '@io_bazel_rules_closure//closure': java.io.IOException: Error downloading [https://github.com/bazelbuild/rules_closure/archive/d1110778a2e94bcdac5d5d00044dcb6cd07f1d51.tar.gz] to /private/var/tmp/_bazel_tonylin/bca64804a1a5aa72f10fce1fb59a3167/external/io_bazel_rules_closure/d1110778a2e94bcdac5d5d00044dcb6cd07f1d51.tar.gz: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    INFO: Elapsed time: 13.410s
    INFO: 0 processes.
    FAILED: Build did NOT complete successfully (0 packages loaded)
    FAILED: Build did NOT complete successfully (0 packages loaded)
    Fetching @io_bazel_rules_closure; fetching 13s`

Any help is appreciated. Thanks.

Didn't run into access issues....not sure what this is

@chief8192
Copy link
Contributor

Sorry for the trouble, Tony. I'll take a look.

@chief8192 chief8192 self-assigned this Mar 12, 2019
@chief8192
Copy link
Contributor

What happens if you run:
bazel clean --expunge
..and then try again?

@chief8192
Copy link
Contributor

Seems like it's a Java configuration issue. A bit of digging has found some possible workarounds until there's a permanent fix:
bazelbuild/bazel#5099 (comment)
https://stackoverflow.com/questions/52311486/bazel-build-behind-proxy/52363929#52363929
bazelbuild/bazel#6196

@tonynotears
Copy link
Author

Hi Matt, the solution didn't work....
download Oracle JDK
copy its cacerts to /etc/ssl/certs/java

same error....

Do i need to change the proxy settings? even though I don't use one?

@tonynotears
Copy link
Author

just tried on a ubunto 18.04 box in GCP, getting the following error instead:

INFO: Found 1 target...
ERROR: /opt/upvote/upvote/gae/modules/upvote_app/frontend/BUILD:20:1: Checking 115 JS files in //upvote/gae/modules/upvote_app/frontend:closure_lib failed (Exit 1)
upvote/gae/modules/upvote_app/frontend/web_ui/detailpage/detail-controller.js:43: WARNING - Please do not use goog.scope to hide declarations.
It is preferable to either create an @Private namespaced declaration, or migrate to goog.module.
let ComponentRegistry;
^
ProTip: "JSC_GOOG_SCOPE_HIDDEN_TYPE" can be added to the suppress attribute of:
//upvote/gae/modules/upvote_app/frontend:closure_lib

upvote/gae/modules/upvote_app/frontend/web_ui/hostlistpage/host-controller.js:17: ERROR - Namespace not provided by any srcs or direct deps of //upvote/gae/modules/upvote_app/frontend:closure_lib.
goog.require('goog.i18n.DateTimeFormat');
^
ProTip: "CR_NOT_PROVIDED" or "strictDependencies" can be added to the suppress attribute of:
//upvote/gae/modules/upvote_app/frontend:closure_lib

upvote/gae/modules/upvote_app/frontend/web_ui/hostlistpage/host-controller.js:18: ERROR - Namespace not provided by any srcs or direct deps of //upvote/gae/modules/upvote_app/frontend:closure_lib.
goog.require('goog.i18n.DateTimeParse');
^
ProTip: "CR_NOT_PROVIDED" or "strictDependencies" can be added to the suppress attribute of:
//upvote/gae/modules/upvote_app/frontend:closure_lib

2 error(s), 1 warning(s)

Target //upvote/gae:monolith_binary.deploy failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 3.734s, Critical Path: 1.15s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

@richard-penshorn-praetorian

Having the same error. I have tried on both MacOS and Ubuntu 18.04.

ERROR: /home/user/upvote/upvote/gae/modules/upvote_app/frontend/BUILD:20:1: Checking 117 JS files in //upvote/gae/modules/upvote_app/frontend:closure_lib failed (Exit 1)
upvote/gae/modules/upvote_app/frontend/web_ui/detailpage/detail-controller.js:43: WARNING - Please do not use goog.scope to hide declarations.
It is preferable to either create an @Private namespaced declaration, or migrate to goog.module.
let ComponentRegistry;
^
ProTip: "JSC_GOOG_SCOPE_HIDDEN_TYPE" can be added to the suppress attribute of:
//upvote/gae/modules/upvote_app/frontend:closure_lib

upvote/gae/modules/upvote_app/frontend/web_ui/hostlistpage/host-controller.js:17: ERROR - Namespace not provided by any srcs or direct deps of //upvote/gae/modules/upvote_app/frontend:closure_lib.
goog.require('goog.i18n.DateTimeFormat');
^
ProTip: "CR_NOT_PROVIDED" or "strictDependencies" can be added to the suppress attribute of:
//upvote/gae/modules/upvote_app/frontend:closure_lib

upvote/gae/modules/upvote_app/frontend/web_ui/hostlistpage/host-controller.js:18: ERROR - Namespace not provided by any srcs or direct deps of //upvote/gae/modules/upvote_app/frontend:closure_lib.
goog.require('goog.i18n.DateTimeParse');
^
ProTip: "CR_NOT_PROVIDED" or "strictDependencies" can be added to the suppress attribute of:
//upvote/gae/modules/upvote_app/frontend:closure_lib

2 error(s), 1 warning(s)

Target //upvote/gae:monolith_binary.deploy failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 4.866s, Critical Path: 0.83s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

Oddly older git commits are having the same issue as described by #46.

Any pointers would be helpful, I have tried on clean environments for both.

@chief8192
Copy link
Contributor

The two 'goog.i18n' errors above should now be fixed as of 6650b85 (currently only in staging). I'm still trying to reproduce the PKIX issue.

@tonynotears
Copy link
Author

tonynotears commented Apr 25, 2019

the init script ran successfully after I did this:

  1. re-install JDK to 12.0.1
  2. re-install Xcode
  3. re-install Bazel to latest version
  4. run "bazel clean --expunge"
  5. reboot the Mac to start from the Safe Mode by pressing the SHIFT key.

then comment out the section with KMS related configs.

The init script's last line needs to be changed to:
bazel run upvote/gae:monolith_binary.deploy

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants