Skip to content

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

@pemavor-repo

Description

@pemavor-repo

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 [email protected] --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: [[email protected]]
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 [email protected] --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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions