google / upvote_py2

A multi-platform binary whitelisting solution
Apache License 2.0
452 stars 35 forks source link

Error running bezel with the init script #50

Open tonynotears opened 5 years ago

tonynotears commented 5 years ago

`Deploying to App Engine...

Any help is appreciated. Thanks.

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

chief8192 commented 5 years ago

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

chief8192 commented 5 years ago

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

chief8192 commented 5 years ago

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

tonynotears commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 https://github.com/google/upvote/issues/46.

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

chief8192 commented 5 years ago

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

tonynotears commented 5 years ago

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