Unable to run bluemix container No tenant network - containers

I am following the etherpad tutorial.
I created a container on ubuntu and ran it locally. The push to bluemix worked. However when I try to run the container on bluemix I get the following error:
Sorry, an error occurred on our side: Unable to create the network. No
tenant network is available for allocation. [Incident ID
e1d83d17ff51f0ae]
Is this temporary failure or my fault?
I ran the following command
$ sudo ice run -p 9080 --name ethernotes registry-ice.ng.bluemix.net/alicesbox/notes:latest

This is a temporary failure. The response says "an error occurred on our side". When an IBM Container is created it is given a private IP address reachable only by other containers sharing the account. The system was unable to give your instance that address.
Try again.
After your instance has been created you can make it public-facing by giving it a public IP address.

Related

docker node randomly starts giving operation timed out

I still don't know if the issue is with docker networking, node, or the connection from node to mysql.
But I have a docker that contains express gateway for api management. Every once in a while it starts giving Operation timed out
The error is coming from nodejs but when it happens :
I can't see anything in the logs of the container
Running tcpdump from the server shows a call being made to the docker api but returns a response of 500 (when running correctly i can see after it the call to the port 3306 to connect to the database)
Running tcpdump from inside the docker container returns absolutely nothing (when working correctly I can see the calls)
Calls that don't require a database connection work correctly! but still i can't see their logs in the container nor their calls inside tcpdump
It's as if the server is calling another docker, but i searched all volumes, images, there's no duplicate.
I tried to check the following :
Resources on the same machine
Resources on the database machine
tcpdump with wireshark on both the server and the docker
Add connection pooling to sequelize (In case a connection to the database is causing the block sometimes)
Checking all oauth2 routes in case it's redirecting to localhost server or anything
Literally adding logs everywhere just to see a log when this happens, but in vain
telnet from the server to the localhost with external port and to 172.17.0.2 with internal port -> slight difference when i do it from localhost, after a while i receive a Connection closed by foreign host
I don't know if it's normal for a docker container to hang like this or if an image is not correctly deleted, but things simply worked when I created the container with another name.

Openshift : no RBAC policy matched

This is the first time I am working with Openshift. I have successfully installed Redhat Openshift on a single EC2 server ( Single Node ).
I will be installing IBM Cloud Data Pak on this Openshift Server.
I was trying to create a separate admin user for the same.
I have executed the following commands :
oc login -u system.admin
Then
oc create user bob
But I am facing the following error :
Error from server (Forbidden): users.user.openshift.io is forbidden: User "system.admin" cannot create users.user.openshift.io at the cluster scope: no RBAC policy matched
I am not able to understand the root cause of the issue.
It will be great if someone could help me to resolve this and help me understand the root cause of this issue.
It's "system:admin", not "system.admin"
And be sure client-cert and client-key is present for system:admin user in your .kube/config

Getting error while trying to deploy blockchain inside of an IBM Container Service

For deploying blockchain in an IBM Cloud Container Service, I am following the steps outlined on https://github.ibm.com/IBM-Blockchain/ibm-container-service/blob/v1.0.0/cs-offerings/free/README.md
while running the script "create_all.sh" I am getting the following error repeatedly:
Unable to connect to the server: dial tcp 127.0.0.1:8080: connectex: No connection could be made because the target machine actively refused it.
Waiting for createchannel container to be Completed
I have already tried starting the procedure from the first step all over again. But no luck so far. Not sure why I keep getting this error.
Any help or hint in this regard will be of great value to me. Thanks!
The environment variable KUBECONFIG should be pointing to the correct "kube config yml" file.

Error when login Bluemix container command line

After I successfully login using "cf login", when I try to run the command: "cf ic login" (or "cf ic init"), I get the message:
"Deleting the old configuration file...
Retrieving client certificates for IBM Containers...
FAILED
Error getting response, check your network connection"
But my network connection works fine, and other cf commands work fine too.
Do you know what is causing the issue and how I can solve this?
Is it a consistent issue? If so, you may firstly need to check your container resource on your Org/Space. It can be checked on your Bluemix Profile 'Manage Organization' and you can see your container quota on the space you tried to login.

Openshift - "Unable to connect to gear" when running: rhc show-app <app> --gear quota

I created an app called "world" following the instructions from:
https://blog.openshift.com/12-tips-for-hosting-wordpress-on-openshift/.
It's a hosted Wordpress blog, with PHP 5.4 scalable up to 1GB, with a Web Load Balancer and MySQL 5.5.
Everytime I try to check for the space used, I get the same error.
rhc show-app world --gears quota
Unable to connect to gear 54d48383fcf933f91f0000aa#54d48383fcf933f91f0000aa-laurapons.rhcloud.com
Unable to connect to gear 54d48383fcf933f91f0000a9#world-laurapons.rhcloud.com
Gear Cartridges Used Limit
------------------------ ------------------- ----- -----
54d48383fcf933f91f0000aa mysql-5.5 error 1 GB
54d48383fcf933f91f0000a9 haproxy-1.4 php-5.4 error 1 GB
I tried to restart the application (using restart and stop&start commands) but nothing seems to work.
I am also facing some other connection problems (probably related to the same issue):
I have the same problem when trying to clone the application with git clone:
ssh: connect to host world-laurapons.rhcloud.com port 22: Bad file number
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
And also with the rhc port-forward world
I copied the URL for git clone from the openshift online dashboard, and I can open the wordpress blog and see all the information, but somehow, I'm unable to access to the data.
I have already created a default Public Key and 2 authorisations (one to access through the browser and the other to access through RHC)...
What should I try?
How can I get the usage?
Do I need to set up anything else?
I am stuck... any suggestion?
Sounds like your SSH key is not working properly. Make sure you installed your keys and that they are working. Try running 'rhc setup'. If that still doesn't work try
ssh -vvv 54d48383fcf933f91f0000a9#world-laurapons.rhcloud.com
and look at the output.
You can also try using
ssh -i /path/to/your/ssh.key 54d48383fcf933f91f0000a9#world-laurapons.rhcloud.com
And see if that works (specifies what ssh key to use)
rhc with some ruby version will have issue with pageant (putty). I closed pageant, ran again rhc command then it worked.