Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
After the recent Bower certificate renewal, Tez build in certain environments is failing because of
[INFO] bower more-js#0.8.8 CERT_HAS_EXPIRED Request to https://registry.bower.io/packages/more-js failed: certificate has expired
To fix, we can use one of the two approaches ->
Approach 1 :
We should update the bower registry to a new one which does not lead to this issue.
The build is passing after using the new registry as well.
Ref :
Issue : https://github.com/bower/bower/issues/2608
Fix : https://github.com/bower/bower/issues/2608#issuecomment-1522810048
Disadvantage :
This bower registry was deprecated as per the following sources.
https://twitter.com/bower/status/918073147789889536
https://gist.github.com/sheerun/c04d856a7a368bad2896ff0c4958cb00
We may face issues in connecting to this URL in future.
============
Approach 2 :
A workaround is to disable strict-ssl in bowerrc . We need to disable it for .yarnrc as well, otherwise the build was leading to a different error :
******************
error An unexpected error occurred: "https://registry.yarnpkg.com/boom/-/boom-7.3.0.tgz: unable to get local issuer certificate".
******************
Disadvantage :
Might not be recommended to disable SSL ?
Attachments
Issue Links
- relates to
-
BIGTOP-3948 Fix build failure of Tez due to expired certificate of bower repo
- Resolved
- links to