Rank & Retrieve, Failed to connect to gateway.watsonplatform.net - solr

I am trying to create a Create Solr cluster using java class as given in steps on below link as shown here
but i am getting following error, can this be firewall issue?
Using JAVA
com.ibm.watson.developer_cloud.service.WatsonService execute SEVERE: IOException java.net.ConnectException: Failed to connect to gateway.watsonplatform.net/:443 at com.squareup.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:139) at com.squareup.okhttp.internal.io.RealConnection.connect(RealConnection.java:108) at com.squareup.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184) at com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126) at com.squareup.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95) at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281) at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224) at com.squareup.okhttp.Call.getResponse(Call.java:286) at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243) at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205) at com.squareup.okhttp.Call.execute(Call.java:80) at com.ibm.watson.developer_cloud.service.WatsonService.execute(WatsonService.java:122) at com.ibm.watson.developer_cloud.service.WatsonService.executeRequest(WatsonService.java:183) at com.ibm.watson.developer_cloud.retrieve_and_rank.v1.RetrieveAndRank.createSolrCluster(RetrieveAndRank.java:168) at Test.artf.CreateASolrClusterExample.main(CreateASolrClusterExample.java:20)
Using CURL
When i try using curl command as below that also gives connection error as below.
curl -X POST -u "":"" "https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters" -d ""
Response:
curl: (7) couldn't connect to host
when i put the link in curl command in crome, it pop up for id/password. After giving id/password returns me
{"clusters":[]}

The service is experiencing some issues currently; the team is aware and working on it. Sorry for the trouble, please try again in a little while.

Related

Error while connecting with SnowSQL Failed to establish a new connection:

G'day everyone, wanted to learn a bit about snowflake, read through documentation, decided to try it out. Created test account, installed snowsql on my desktop and trying to connect... basics... and im stuck. I can connect via browser with this account, hence user/pass combo is correct.
Password:
250003 (n/a): Failed to get the response. Hanging? method: post, url: https://DD73453.eu-central-1.snowflakecomputing.com.snowflakecomputing.com:443/session/v1/login-request?request_id=c4f4fc93-9381-4cbd-8108-70daba148603&request_guid=fbe2973d-2ccd-4337-97c2-01611e2e4278
If the error message is unclear, enable logging using -o log_level=DEBUG and see the log to find out the cause. Contact support for further help.
Goodbye!
C:\Windows\system32>snowsql -a https://DD73453.eu-central-1.snowflakecomputing.com -u GREGTEST
Password:
250003 (n/a): Failed to execute request: HTTPSConnectionPool(host='https', port=443): Max retries exceeded with url: //DD73453.eu-central-1.snowflakecomputing.com.snowflakecomputing.com:443/session/v1/login-request?request_id=218d9545-d758-44a2-b29d-d6d90fc3fcfc (Caused by NewConnectionError('<snowflake.connector.vendored.urllib3.connection.HTTPSConnection object at 0x000001DC7A5AB710>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))
If the error message is unclear, enable logging using -o log_level=DEBUG and see the log to find out the cause. Contact support for further help.
Goodbye!```
The account (-a parameter) should be just:
DD73453.eu-central-1
Instead of https://DD73453.eu-central-1.snowflakecomputing.com use only "DD73453.eu-central-1"
Below should work
snowsql -a DD73453.eu-central-1 -u username

Unable to connect to database: SequelizeConnectionRefusedError: connect ECONNREFUSED

Whenever i launch my app, part of my task is to first run a migration. however, I get the below error 95% of the time.
Command failed: /bin/sh -c node_modules/.bin/sequelize db:migrate
Unable to connect to database: SequelizeConnectionRefusedError: connect ECONNREFUSED
Details:
killed: false
code: 1
signal: null
cmd: /bin/sh -c node_modules/.bin/sequelize db:migrate
stdout:
Sequelize [Node: 0.12.7, CLI: 2.1.0, ORM: 3.14.0]
Note: I can still query and connect to the database after the failure, also when i check the TCP lsof -i tcp:5432 its only one instance of postgres that runs.
I would appreciate any assistance in solving this issue.
I had similar issue , but in my case it turn out I didn't start my posgres. Make sure your posgress is started and open otherwise Sequelize would fail. I just solve mine. Also mind your username and password . my connection is simple below.
var db ='postgres://user:#localhost:5432/my_db_naame'
var sequelize = new Sequelize(db);
where user is your database user . my_db_naame is your db name. See the doc here . I suggest you install posgres client terminal. Like the one here http://postgresapp.com/documentation/gui-tools.html . Make sure you open it and the elephant sign is shown on top . Or better connect , try your username and password. run some queries and then try your sequelize again.

Google compute engine returned 399 internal server error

Google compute engine console return 399 error code already asks my question but the solution is not as suggested there. Since the URL is little old starting a new thread.
I am trying to do a wget using:
wget https://console.developers.google.com/m/cloudstorage/b/m-lab/o/ndt/2012/05/23/20120523T000000Z-mlab1-ams01-ndt-0000.tgz
I see the error:
Resolving console.developers.google.com (console.developers.google.com)... 216.239.32.27
Connecting to console.developers.google.com (console.developers.google.com)|216.239.32.27|:443... connected.
HTTP request sent, awaiting response... 399 Internal Server Error
2014-08-26 20:02:18 ERROR 399: Internal Server Error.
I am new to Linux commands so wanted to know if am missing something obvious.
The address works when I use Chrome downloader but fails with wget with me as well
I have never seen this behaviour before
You can also use cURL to download files, I used the -v switch and got a dns error(no idea why)
curl -v http://console.developers.googlO.com/m/cloudstorage/b/m-lab/o/ndt/2012/05/23/20120523T000000Z-mlab1-ams01-ndt-0000.tgz
We cannot download with traditional tools we have to use gsutil utility provided by google, using which automation is possible.
You need to use the following URI pattern:
http://storage.googleapis.com/<bucket>/<object>
In this case, you can download that file using the command:
wget http://storage.googleapis.com/m-lab/ndt/2012/05/23/20120523T000000Z-mlab1-ams01-ndt-0000.tgz

Beanstalkd Source Error

I am trying to queue a task using beanstalkd plugin in cakephp. However,
I am getting this error:
BeanstalkdSource - Could not connect. Error given was '111: Connection refused'. in [/var/www/*/app/plugins/queue/models/datasources/beanstalkd_source.php, line 72]
Can you tell me how can I solve this.
Have you installed Beanstalkd and set it running? If you can connect to it OK (run telnet 127.0.0.1 11300 from the command line, and type stats to confirm), then post the connection details, there may be an issue with the PHP side of the connection.

SQLServer 2008 - Configuring Service Broker between instances

I've been using the scripts from this website to help configure Service Broker based auditing. The first stage - setting up SB between databases on the same instance works fine.
But then, when I try to apply Service Broker between instances, I'm running into grief.
I'm using the command line tool, ssbdiagnose to help me find the config errors:
ssbdiagnose -E CONFIGURATION FROM SERVICE tcp://192.168.0.220:4022/Trial/Audit/DataSender -S sqlserver1 -d Trial TO SERVICE //Audit/DataWriter -d MasterAuditDatabase -S devmachine1 ON CONTRACT //Audit/Contract ENCRYPTION OFF
which is reporting
An internal exception occurred: Input string was not in a correct format.
Now this is just checking the config, I haven't even got to the point where I'm sending a message, so the "Input String" must be part of the configuration, but the error message doesn't say where the error occurred and I can't find anything online about diagnosing ssbdiagnose errors.
Can anyone with experience of ssbdiagnose help me understand where the error is, and what I need to do to fix it?
Chris
Wrap the service names and contract names in quotes:
ssbdiagnose -E CONFIGURATION
FROM SERVICE "tcp://192.168.0.220:4022/Trial/Audit/DataSender"
-S sqlserver1 -d Trial
TO SERVICE "//Audit/DataWriter"
-d MasterAuditDatabase -S devmachine1
ON CONTRACT "//Audit/Contract" ENCRYPTION OFF

Resources