geb-example-gradle fail

307 views
Skip to first unread message

Ed Young

unread,
Jun 29, 2022, 4:19:17 PM6/29/22
to Geb User Mailing List
Many years ago now I was a geb semi-expert (I even had beers with Luke here in Denver at a conference) and i'm trying to do a demo for some coleagues. 

I'm trying to get started but failing right off the bat. The following project fails with "peer not authenticated". It could be because I'm trying this at work behind a firewall. 

./gradlew firefoxTest
> Task :configureChromeDriverBinary FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':configureChromeDriverBinary'.
> Could not read textResource 'https://raw.githubusercontent.com/webdriverextensions/webdriverextensions-maven-plugin-repository/master/repository-3.0.json'.
   > Could not get resource 'https://raw.githubusercontent.com/webdriverextensions/webdriverextensions-maven-plugin-repository/master/repository-3.0.json'.
      > Could not HEAD 'https://raw.githubusercontent.com/webdriverextensions/webdriverextensions-maven-plugin-repository/master/repository-3.0.json'.
         > peer not authenticated

Any advice to get a sanity check? 

Ed



Marcin Erdmann

unread,
Jun 29, 2022, 4:34:55 PM6/29/22
to geb-...@googlegroups.com
On Wed, Jun 29, 2022 at 9:19 PM Ed Young <e...@summitbid.com> wrote:
(I even had beers with Luke here in Denver at a conference)

With that credentials I would say that you are an expert not just semi-expert. ;)
A quick google of this type of error seems to suggest an SSL issue with validating the host certificate. Are you by chance using on some old, esoteric or modified JDK?
 
Marcin

Marcin Erdmann

unread,
Jun 29, 2022, 4:37:25 PM6/29/22
to geb-...@googlegroups.com
And btw, that example project builds just fine on CI, here's a successful build from about a month ago: https://app.circleci.com/pipelines/github/geb/geb-example-gradle/133/workflows/f1bb4852-81a3-4f6a-a8fd-d7da568a5917.

Ed Young

unread,
Jun 29, 2022, 4:47:40 PM6/29/22
to Geb User Mailing List
HA! We had a great time, and yes, I have a lot of geb experience. It's been a long long time though. Starting from scratch. 
is this old, esoteric or modified? 

geb-example-gradle git:(master) java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

Ed Young

unread,
Jun 29, 2022, 5:46:23 PM6/29/22
to Geb User Mailing List
Interesting. It just ran successfully, but when I tried to run it again it failed. If I wait, it will work again. 
Do I have to wait for a session to expire or something?

Marcin Erdmann

unread,
Jul 1, 2022, 3:29:27 AM7/1/22
to geb-...@googlegroups.com
It sure does not look esoteric, cannot say anything about it being modified with regards to what trusted certificates it contains but it's definitely not the newest in the OpenJDK 11 line. According to https://adoptium.net/temurin/releases?version=11 the newest seems to be 11.0.15 released in April 2022...

--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/d347b829-cfb2-4dd4-9331-577a5cf9f993n%40googlegroups.com.

Marcin Erdmann

unread,
Jul 1, 2022, 3:42:29 AM7/1/22
to geb-...@googlegroups.com
To be frank I have no idea. This feels like a problem with the trusted store or SSL implementation in the JDK you are using and has most likely nothing to do with the example project you are trying to run. As an workaround you could just download the file in the error, put it in the project and reconfigure this property to point at it: https://github.com/erdi/webdriver-binaries-gradle-plugin#configuring-download-urls.

--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages