GoogleCloudPlatform / GoogleCloudPlatform/cloud-builders

[BUG] module 'OpenSSL.crypto' has no attribute 'sign'

Open
#1,025 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
1.5k
Forks
616
PR merge metrics
No merged PRs in 30d

Description

## Affected builder image

`gcr.io/cloud-builders/docker

## Expected Behavior

Expected to complete build steps, because there are no changes.

## Actual Behavior

It is giving this error:

Step #4 - "Build":
ERROR: build step 4 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1
ERROR
Finished Step #4 - "Build"
Step #4 - "Build": The command '/bin/sh -c echo "$JSON_SECRET" > json.json && mkdir -p Kuga && gcloud auth activate-service-account blah@blah.iam.gserviceaccount.com --key-file=json.json --project=blah && gsutil -m cp gs://blah/* Kuga/' returned a non-zero code: 1
Step #4 - "Build": CommandException: 1 file/object could not be transferred.
Step #4 - "Build": module 'OpenSSL.crypto' has no attribute 'sign'
Step #4 - "Build": Activated service account credentials for: [blah@blah.iam.gserviceaccount.com]
Step #4 - "Build": ---> Running in a455b782e60d
Step #4 - "Build": Step 3/24 : RUN echo "$JSON_SECRET" > json.json && mkdir -p Kuga && gcloud auth activate-service-account blah@blah.iam.gserviceaccount.com --key-file=json.json --project=blah && gsutil -m cp gs://blah/* Kuga/
Step #4 - "Build": ---> 85aaef6f65db
Step #4 - "Build": Removing intermediate container 465e87536bab
Step #4 - "Build": ---> Running in 465e87536bab
Step #4 - "Build": Step 2/24 : ARG JSON_SECRET
Step #4 - "Build": ---> fc1f54faf8b4
Step #4 - "Build": Step 1/24 : FROM gcr.io/google.com/cloudsdktool/cloud-sdk:alpine AS packagecopy

Step #4 - "Build": Sending build context to Docker daemon 1.872MB
Step #4 - "Build": Already have image (with digest): gcr.io/cloud-builders/docker
Starting Step #4 - "Build"

## Steps to Reproduce the Problem

1. Add this step to your yaml file

- name: 'gcr.io/cloud-builders/docker'
id: Build
entrypoint: 'bash'
args: ['-c', 'docker build -t gcr.io/$PROJECT_ID/some.api:$SHORT_SHA . --build-arg JSON_SECRET="$(cat /workspace/secret.txt)" --build-arg GRA_JSON_SECRET="$(cat /workspace/secret-gra.txt)"--no-cache']

## Additional Info

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.