rhc setup - Unable to connect to the server - openshift-client-tools

I am installing the Client Tools on Windows.
I successfully completed command -> gem install rhc
Next step is --> rhc setup
I am using the default server, but getting below error:
C:\>rhc setup --debug
DEBUG: Using config file Y:/.openshift/express.conf
DEBUG: Running greeting_stage
OpenShift Client Tools (RHC) Setup Wizard
This wizard will help you upload your SSH keys, set your application namespace,
and check that other programs like Git are properly installed.
DEBUG: Running server_stage
If you have your own OpenShift server, you can specify it now. Just hit enter to
use the server for OpenShift Online: openshift.redhat.com.
Enter the server hostname: |openshift.redhat.com|
You can add more servers later using 'rhc server'.
DEBUG: Running login_stage
DEBUG: Connecting to https://openshift.redhat.com/broker/rest/api
DEBUG: Client supports API versions 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
DEBUG: Created new httpclient
DEBUG: Request GET https://openshift.redhat.com/broker/rest/api
Unable to connect to the server (getaddrinfo: No such host is known.
(https://openshift.redhat.com:443)). Check that you have correctly specified
your OpenShift server 'https://openshift.redhat.com/broker/rest/api'.
Ruby version: 1.9.3p551
Please note: I am behind the proxy.

Turn off all servers like Apache,XAMP and WAMP.
->rehit the command in cmd 'rhc setup'.
->It ask for personal server or hostname simply press ENTER for default.
->then it ask for 'openshift login'

After so much of RnD, I resolved the proxy issue.
set proxy before running 'rhc setup'.
set HTTP_PROXY=http://username:password#proxyserverIp:port

Related

Jboss 7 CLI - unable to start interactive mode but gui mode works

The jboss CLI does not seem to start when it was working a few hours back. I was using the CLI to setup JNDI data source and setting up two way SSL for certificate based authentication using the elytron framework.
kerth#ubuntu:~/jboss-eap-7.1/bin$ ./jboss-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /]
kerth#ubuntu:~/jboss-eap-7.1/bin$ echo $?
0
Starting the Jboss CLI with -c or --connect also does not enter the interactive mode. It just exits with a exit code 0 without any error.
kerth#ubuntu:~/jboss-eap-7.1/bin$ ./jboss-cli.sh -c
[standalone#localhost:9990 /]
kerth#ubuntu:~/jboss-eap-7.1/bin$ echo $?
0
The gui mode of the CLI(./jboss-cli.sh --gui) however works. Not sure if i am missing something.
Enabling the Jboss CLI logging does not have any ERROR or WARN logs.
Using a freshly downloaded installation zip of jboss 7.1 and trying to start the CLI also does not work(No environment variables set). A freshly downloaded Jboss 7.2 CLI however works.
Any help is appreciated. Thanks
I am using the default interfaces,
Jboss version - 7.1 update 4,
OS - Ubuntu 18
Either your code pasted is wrong or I think you are missing "connect" before you connect you can't work with the CLI.
Execute the cli with ./jboss-cli.sh
type "connect" withouth the quotation marks.
Execute the desired commands
type "exit"
or alternatively you could do ./jboss-cli.sh -c to connect as well.

Unable to connect to Kafka Broker on Hortonworks Sandbox (HDP 2.6) from my Windows Host Machine on Port 6667

I have downloaded Hortonworks Sandbox (IP: 192.179.144.XXX) on my Windows 10 laptop. I have the HDP Sandbox running on VMWare.
Below is my sandbox information:
Created on: 19_04_2017_19_09_16 for
Hadoop stack version: Hadoop 2.7.3.2.6.0.3-8
Ambari Version: 2.5.0.5-1
Ambari Hash: 0b5e975972e7a0b265e87b2e38eefde9039ef44c
Ambari build: Release : 1
Java version: 1.8.0_121
OS Version: CentOS release 6.9 (Final)</code>
My goal is to be able to connect to Kafka (HDP Sandbox) from Java IntelliJ SDK based out of my Windows host machine.
So far, I have tried the following in order to be able to access HDP Kafka from my host machine via Java and/or Kafka tool 1.0, but been unsuccessful.
Updated the Network-Atapter to 'Host Only' in my VMware settings.
Opened, Kafka broker, port number 6667 by adding the port number to the 'start_sandbox.sh' file. Leveraged the following article: http://tlxu.blogspot.com/2016/12/add-ports-mapping-to-hdp-25-vmware.html
2.1 Below are the steps taken to "open" the port 6667 -
2.1.1) login to the Sandbox VM (actual docker container)
2.1.2) Disable sandbox.service: $ systemctl disable sandbox.service
2.1.3) Reboot the VM: $ init 6
2.1.4) Modify sandbox start script: $ vi /root/start_scripts/start_sandbox.sh
2.1.5) Added "-p 6667:6667 \" after "-p 2222:22 \"
2.1.6) save and exit.
2.1.7) Delete existing sandbox container: $ docker rm sandbox
2.1.8) Enable sandbox.service: systemctl enable sandbox.service
2.1.9) Reboot the VM: $ init 6
2.1.10) Verify new ports: $ docker ps | grep 6667
2.1.11) Received the following output - 0.0.0.0:6667->6667/tcp
However, when I open chrome on my laptop and try to connect to: http://192.179.144.XXX:6667, I receive the following error:
This site can’t be reached The webpage at http://192.179.144.XXX:6667/ might be temporarily down or it may have moved permanently to a web address. ERR_UNSAFE_PORT
I also tried 'logging' and 'telnetting' on the sandbox using "Putty" with following credentials: root#192.179.144.XXX and port: 6667. I receive the following error:
Network Error: software caused connection abort
Within the sandbox I ran the following command to check if the port is open inside the sandbox. I don't know what the output means, though.
[root#sandbox ~]# netstat -tnlpa | grep 6667
[root#sandbox ~]#
Kafka properties in "Kafka Broker" section in Ambari has the following properties:
Kafka broker host: sandbox.hortonworks.com
zookeeper.connect: sandbox.hortonworks.com:2181
listeners: PLAINTEXT://localhost:6667
(Please note: I also tried changing 'localhost' to '0.0.0.0', and my kafka-console-consumer and kafka-console-produer failed. Received "LEADER_NOT_AVAILABLE" error.)
Within Kafka properties in Ambari, I logged in as an Admin and added the following properties to the "Custom Kafka-broker"
advertised.port=6667
advertised.listeners=PLAINTEXT://sandbox.hortonworks.com:6667
advertised.host.name=192.179.144.XXX
I am unable to move forward, and I would really appreciate if anyone could help out on:
1.) Is my port open? If not, how else can I open the port?
2.) Any additional changes I need to make with Kafka settings, that would let the Java IDE on my Windows to connect to Kafka (dependent on issue #1)?
Kafka is not an HTTP service. Chrome, or browser, will not connect.
Kafka is not an SSH program. Putty, or other, will be connect.
You need to verify connection using kafka-console-* tools from windows
listeners: PLAINTEXT://localhost:6667
Should be the following for Kafka to listen externally of the sandbox
listeners: PLAINTEXT://:6667
Then, I don't know about Host Only or NAT settings, but you shouldn't need to touch those if you setup port forwarding in the VM settings.
advertised.host.name
Should not need to be changed in Ambari, but if you did, then set it to the sandbox hostname
If you don't need Hadoop and all the other stuff in HDP, I suggest getting the HDF sandbox, or just using Docker for Windows and using the Kafka containers on DockerHub

Could'nt connect to jboss fuse server to create a fabric in shell tab

I have installed JBOSS developer studio 8.1.0 and also I have installed Jboss developer stack integration plugins for JBOSS FUSE developement.
Here the problem arises.To access the JBOSS fuse console I have to create a user in shell tab by connecting the FUSE SERVER.But whenever I enter the server credentials,it displays as SSH client error(Error connecting to the local host).can connect to the JBOSS FUSE console,but to access it I have to create a user name and password in shell tab.
ERROR:
Error connecting jboss.4iapps.local:8101 : SSH client error: SSH_MSG_DISCONNECT: 2 Session has timed out waiting for authentication after 120000 ms.
NOTE:I have already uncommented the admin user from the user.properties file and also chaned the IP in org.apache.karaf.management file.
Please help me regarding this.
Regards,
Janaarthanan

deploy key is note showing in open shift on ubuntu 14.04

root#ubuntu:~# rhc setup
OpenShift Client Tools (RHC) Setup Wizard
This wizard will help you upload your SSH keys, set your application namespace,
and check that other programs like Git are properly installed.
If you have your own OpenShift server, you can specify it now. Just hit enter to
use the server for OpenShift Online: openshift.redhat.com.
Enter the server hostname: |openshift.redhat.com| sajeer850#gmail.com
You can add more servers later using 'rhc server'.
The OpenShift server is not responding correctly. Check that
'https://sajeer850#gmail.com/broker/rest/api' is the correct URL for your
server. The server may be offline or misconfigured.
root#ubuntu:~# 'https://sajeer850#gmail.com/broker/rest/api'
I had the same error . When prompted to Enter the server hostname: |openshift.redhat.com| press "Enter key" , and then you will be prompted to enter username and password.

netbeans starting of glassfish server is not supported

I'm unable to connect/deploy/run any app on a remote GlassFish server (4.0) and have been fighting this for a few days now.
Locally I'm running Windows 8, and I've tried with NetBeans 7.3 and 8.0. I have both Java 7.25 and 8 installed locally. The remote GF server is version 4.0 build 89, on a multihomed Windows 8 machine, Java 7 25 with remote administration enabled in Glassfish. I also have HTTP running at port 8888 rather than 8080 because of conflicts with other apps on the server.
At some point in the past I have been able to connect remotely via NB but not recently and I'm not totally sure what has changed. I'm unaware of any changes on the server.
I am no longer able to get the "+" next to Glassfish server in NetBeans, I cannot deploy/run/debug app on remote Glassfish server.
When I attempt to Deploy I receive the following deployment error:
Starting of server My Server is not supported. Please, start the server manually. See the server log for details.
Unfortunately, the server log doesn't have any errors relating to this. The only thing I see is the typical expired certificate.
Just to verify that I really was connecting, I looked at Fiddler and received the following:
HTTP/1.1 200 OK
Content-Type: text/html
Date: Wed, 14 May 2014 22:08:00 GMT
Transfer-Encoding: chunked
95
Signature-Version: 1.0
message: V3 cannot process this command at this time, please wait
use-main-children-attribute: false
exit-code: FAILURE
Connecting via web browser works fine to both the administration console as well as apps I have running at port 8888. I can load files via web interface, but not via NetBeans.
I originally had the problem with only Java 7 and Netbeans 7.3 but decided to upgrade both hoping that there might be some intermittent but that was fixed. However, that does not appear to be the case.
Any suggestions or thoughts?
I used this commands and it worked
Navigate to bin folder in GlassFish installation folder and do:
./asadmin start-domain
./asadmin change-admin-password
Setup the new admin password
./asadmin enable-secure-admin
Use the admin and password you have just configured
./asadmin stop-domain
./asadmin start-domain
Okay. I think I found the culprit. I did a system restore to just before the last MS critical update and now I can connect! I'm not sure if it was only the MS update versus an couple of Visual Studio SDKs that were added but after days of trying to figure this out, it's finally working again. PTL.
I encounter with the same issue. Problem solved by setting password for admin and enable secure admin. Use the following command would help:
adadmin
change-admin-password
Please notice that the default user name is admin, default password is empty(just press enter).
enable-secure-admin
Enter user name and the new password you have just set.
restart-domain