New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL certificate verify failed when publishing pacts #754
Comments
See also pact-foundation/pact-js-core#333. I thought we had a tracking issue here but it seems not. TL;DR Impact
Recommended action
|
|
That seems to have resolved the certificate error problem - thanks! However, I'm the tests are now failing on a different error
Should I raise a separate issue for this or is there a way to silence this error? |
That error is a warning about a misconfiguration on GitHub Agents. You can ignore it.
…Sent from my mobile
On 11 Oct 2021, at 8:08 pm, Peter Warman ***@***.***> wrote:
That seems to have resolved the certificate error problem - thanks!
However, I'm the tests are now failing on a different error
Error: ***@***.***/pact-node/standalone/linux-x64-1.88.77/pact/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir <root-path> in PATH, mode 042777
Should I raise a separate issue for this or is there a way to silence this error?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
It's giving me a non-zero exit code (ie my CI job is failing) so I can't really ignore it.. |
Hmm. I suspect something else is the culprit. Can you open another issue with the full log (including The binary doesn't exit when it prints that warning. The error is printed out on standard error from the Ruby binary, which is captured by pact and repeated as an error log (because it came from standard error). The error doesn't generally cause a non-zero exit code - you can see it in several places in our CI. Perhaps there is some place where we are catching it incorrectly, or the presence of the error in the output stream prevents us from parsing the result? I've just had a quick glance at the relevant bits of code, and I don't think that's what's going on. Older versions of the pact-node wrapper used to fail when the ruby binaries printed anything on standard error. We changed this because of this issue - not all standard error output is fatal. When we first hit it, I wrote a script that corrects (in a very coarse way) the permissions issues. You might like to try that to eliminate the problem:
Of course, the real fix for the warning will be with whoever maintains the github runners. I don't think that this is whatever is failing your build, though. Please open another issue and we'll take a look. |
I'll close this issue since the original problem is fixed. Let's look in to your current problem elsewhere (or just let us know here if the fix was unrelated). |
I'm also going to bump the dependency of pact-node, just to ensure that our CI is running the exact version you're trying. This will eliminate any issues from the behaviour of the Ruby binary changing - since the CI line I linked was from a slightly earlier version of pact-node. The build for that is here |
Just FYI I've fixed my tests in CI by wrapping the |
If you have the chance, it would be great if you could open an issue with more details. It's definitely not supposed to do that, and I can't reproduce it here so far. |
@TimothyJones We have the same problem and I opened an extra issue with some details and my own debugging experience. See #758 |
Software versions
14.17.3
Issue Checklist
Please confirm the following:
Expected behaviour
publishPacts should work as it did before 1st October 2021
Actual behaviour
Since 1st October the tests have been failing with a certificate error
Steps to reproduce
I am using Gitlab CI - the
node:14.17.3
image. Runningapt-get -y upgrade openssl
I can successfully curl the broker domain but the pact tests (which have been working perfectly for months) are failing to publish with the certificate error.Relevant log files
n/a - the tests run fine - it's just the publishPacts step that fails
The text was updated successfully, but these errors were encountered: