Error when deploying bna file to Bluemix - ibm-cloud

I'm able to generate my archive file (.bna), but when I run the command to deploy it I get the following error:
$ composer network deploy --archiveFile test#1.0.0.bna --enrollId user_type4_1 --enrollSecret <secret> -p bluemix
Deploying business network from archive: test#1.0.0.bna
Business network definition:
Identifier: test#1.0.0
Description:
TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
Command failed
The connection.json file for my bluemix profile is:
{
"type": "hlf",
"membershipServicesURL": "grpcs://6175a0e332ef47a3b87dc1056697e76b-ca.us.blockchain.ibm.com:30001",
"peerURL": "grpcs://6175a0e332ef47a3b87dc1056697e76b-vp3.us.blockchain.ibm.com:30001",
"eventHubURL": "grpcs://6175a0e332ef47a3b87dc1056697e76b-vp3.us.blockchain.ibm.com:31001",
"keyValStore": "/home/jeff/.composer-credentials",
"deployWaitTime": "300",
"invokeWaitTime": "100"
}

Please see
Fabric composer integration with Bluemix blockchain service,
your connection profile is missing the certificate and certificatePath
definition that is required to use secure grpc communications defined
in your connection profile. The service provider (bluemix) should have
provided the certificate information as part of the connection
details.
https://github.com/hyperledger/composer/issues/794

Related

Failed to discover available identity versions when contacting http://127.0.0.1:35357/v3. Attempting to parse version from URL. Unauthorized(HTTP 401)

I am using openstack container to enable integration testing against swift
The container used is : https://hub.docker.com/r/jeantil/openstack-swift-keystone-docker/
And the steps followed are : https://github.com/jeantil/openstack-swift-keystone-docker
The configuration is working fine on local and open internet(concourse pipeline job)
But when I am using the same in concourse pipeline job on INTRANET, I am getting the below error:
Failed to discover available identity versions when contacting http://127.0.0.1:35357/v3. Attempting to parse version from URL.
Unauthorized (HTTP 401)
I am getting this error while creating a new service or even loading user lists:
Example:
openstack endpoint create --region RegionOne object-store internal http://127.0.0.1:8080/v1/KEY_%\(tenant_id\)s
openstack endpoint create --region RegionOne object-store admin http://127.0.0.1:8080/v1
openstack user list
Is it due to some proxy related configuration, because everything is working fine if I am running this concourse job on internet
I tried multiple approaches and at the end I was able to solve the issue.
Include ENV NO_PROXY=localhost in the dockerfile so that the proxy configurations are removed for this config

IBM Cloud (Bluemix) unable to deploy error 502

I'm trying to deploy an app on IBM Cloud (Bluemix) from a Github repository (https://github.com/IBM/watson-vehicle-damage-analyzer).
When I deploy the app I choose London as location. The project try to deploy but it stops with this error:
Server error, status code: 502, error code: 10001, message: Service broker error: No matching deployments for the given plan_id.
Can somebody explain me what this error means? I have a paid account on IBM Cloud.
Here is the full log of my error:
Preparing to start the job...
Preparing the build artifacts...
cf login -a "https://api.eu-gb.bluemix.net" -u apikey -p "****" -o "xxxxxxxx#xxxxxxxx.com" -s "dev"
API endpoint: https://api.eu-gb.bluemix.net
Authenticating...
OK
Targeted org xxxxxxxxx#xxxxxxx.com
Targeted space dev
API endpoint: https://api.eu-gb.bluemix.net (API version: 2.106.0)
User: gabriel.cuesta#mkdautomotive.com
Org: gabriel.cuesta#mkdautomotive.com
Space: dev
Creating service instance wvda-visual-recognition in org gabriel.cuesta#mkdautomotive.com / space dev as gabriel.cuesta#mkdautomotive.com...
FAILED
Server error, status code: 502, error code: 10001, message: Service broker error: No matching deployments for the given plan_id.
Finished: FAILED
Thanks,
I see that in the manifest.yml file, it's creating a Watson VR service lite plan but as per the pricing on the website here, Watson VR with the lite plan is available only in us-south (Dallas) region.
You can check the same here as well - https://console.bluemix.net/catalog/services/visual-recognition

How to debug issues with certificates in IBM Cloud Kubernetes Service /Certificate Manager?

I have a paid cluster with the IBM Cloud Kubernetes Service and a container / service deployed. I have a valid wildcard certificate which I imported into the Certificate Manager. Now I want to apply or deploy that certificate to my cluster:
bx cs alb-cert-deploy --secret-name henrik-xxxx --cluster henrik-bla-bla --cert-crn crn:v1:bluemix:public:cloudcerts:us-south:a/lotsofnumbers:certificate:morenumbers
The above command returns without an error. But when I check the certificate deployment with alb-cert-get it reports a "create_failed". I looked at the troubleshooting guide and tried to update and remove the certificate resp. secret. However, it seems the secret is still around and I cannot really remove it.
Are there command options I can use to get more diagnostic data? Any logs I can see? Any command I can use to clean up the environment?
There are several ways to debug the issue:
Use export BLUEMIX_TRACE=true; bx cs alb-cert-deploy ... to trace the command.
Use the Activity Tracker service and account-level events.
In my case I could see the following in the Activity Tracker logs:
"responseData_str": "{\"code\":\"IAMERR403-01\",\"message\":\"Forbidden\"}",
It was part of an event related to:
"action_str": "cloudcerts.certificate.read",
"target": {
"name_str": "cloudcerts",
"id_str": "crn:v1:bluemix:public:cloudcerts:us-south:a/lotsofnumberhere::",
"typeURI_str": "certificate/read"
},
This points to an authorization issue.

Deploying a Service fabric app from Team Services to Azure

I need some help with deploying a Service fabric app from Team Services to Azure.
I’m getting the following error from the Agent in Team Services (see screenshot below):
2018-06-22T13:17:13.3007613Z ##[error] An error occurred attempting to
import the certificate. Ensure that your service endpoint is
configured properly with a correct certificate value and, if the
certificate is password-protected, a valid password.
Error message: Exception calling "Import" with "3" argument(s):
"Cannot find the requested object.
Please advise.
Here is my Service Fabric Security security page, don't remember where I set up the password needed on the VSTS side but I took note of it and believe it's correct.
Here is the Endpoint page on the VSTS side:
Issue resolved with the help of MS Support by creating a new Certificate in the Key Vault and Adding it to the Service Fabric, steps:
Azure Portal:
Home > Key vaults > YourKeyVault - Certificates: Generate/Import
Generate new key with a CertificateName of your choosing and CN=CertificateName as Subject.
Home > Key vaults > YourKeyVault - Certificates > CertificateName
Select the only version available and Download in PFX/PEM format.
Power Shell: Convert to Base64 string, CertificateBase64
[System.Convert]::ToBase64String([System.IO.File]::ReadAllBytes("c:\YourCertificate.pfx"))
Home > YourServicefabric - Security: Add
Add the Certificate you created as Admin Client by providing 's thumbprint.
VSTS/TFS:
Build and release > Your pipeline: Edit
In the Deployment Process Service Fabric Environment click Manage for Cluster Connection and add a new connection. Besides the other information, in the Client Certificate paste the previous CertificateBase64.
Check the Service Endpoint in VSTS:
Whether it has a properly base64 encoded certificate, with a private key.
Also, check if the provided passphrase is correct.
Also, check if the service endpoint is configured as tcp://mycluster.region.cloudapp.azure.com:19000.
Check if the thumbprint is correct.

Service fabric deploy failure in secure cluster

I got following error when I try to use VSTS to deploy application to Azure secure cluster
An error occurred attempting to import the certificate. Ensure that your service endpoint is configured properly with a correct certificate value and, if the certificate is password-protected, a valid password. Error message: Exception calling "Import" with "3" argument(s): "Cannot find the requested object.
I copied certificate base64 string and password to Services Endpoint config. Should I do other option to let it work?
Found the problem, the url in service endpoint should use https