Unable to connect with google VM via browser SSH - google-compute-engine

I am unable to connect with my Virtual Machine via browser ssh after upgrading to custom-1-2816.
please see the error message here
Troubleshooting tool gives no error.
When trying to connect from from local system via ssh and google cloud shell, i got the exception
Permission denied (publickey). ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].
For other instances, I don't face any issues while connecting with browser ssh / Google shell ssh

Related

Not able to connect MySQL server running on docker with Node-Red container

I have a VM (OS: Ubuntu 18.04) running in azure cloud in which I have installed docker. In docker I have two containers MySQL(8.0.20) and node-red(v2.1.3), I am trying to connect my MySQL with node-red and I get the following error message in Node-Red
"Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client"".
MySQL is working fine, I am able to access the database via putty but somehow I am not able to make a successful connection with node-red as well as Grafana.
I am using following configuration. My VM's IP address is 20.107.194.152 and MySQL port is 3306
Can some one tell me what I am doing wrong here. Thanks.

Codeceptjs Error - Please make sure Selenium Server (ChromeDriver or PhantomJS) is running and accessible

CodeceptJS v3.0.5
Using test root "/Users/bhupendrarautela/extram"
login --
✖ "before all" hook: codeceptjs.beforeSuite for "test something" in 17ms
Error: Can't connect to WebDriver.
Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running on
that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file
as the service might had problems to start the driver.
Please make sure Selenium Server (ChromeDriver or PhantomJS) is running and accessible
-- FAILURES:
1) login
"before all" hook: codeceptjs.beforeSuite for "test something":
Can't connect to WebDriver.
Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running on
that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file
as the service might had problems to start the driver.
Please make sure Selenium Server (ChromeDriver or PhantomJS) is running and accessible
Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running
on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
FAIL | 0 passed, 1 failed // 19ms
Run with --verbose flag to see complete NodeJS stacktrace
Please help me with how to make sure Selenium Server (ChromeDriver or PhantomJS) is running and accessible.

not able to login in google cloud storage sql instance

I made instance in Google Cloud > Storage > SQL > MYSQL. Now I have to import database in it so I am trying to connect to MYSQL
using adminer, but it gives following error
SQLSTATE[HY000] [2002] Operation timed out
I also tried via HeidiSQL > MariaDB or MYSQL (SSL Tunnel) but here also it does not connect and gives error
https://prnt.sc/o58in0
I am mentioning
Host: Public Ip of SQL instance
Username: root
Any suggestions, what could be the fix?
Your error typically means that a firewall blocked your connection attempt.
For Cloud SQL, this typically means that you have not enabled instance-level access.
Since your error is 10060, which is a Windows WinSock error message, I am assuming that you are running on Windows. The steps are similar for Linux.
There are two methods to enable access to Cloud SQL:
Cloud SQL Proxy
This is the recommended method and is secure. Download and install the Cloud SQL Proxy to your the computer that you want to connect from. If you have set up the Cloud SDK (gcloud), Cloud SQL Proxy will use your Cloud SDK credentials. If not, then you will need to create and download a service account with (usually) the Cloud SQL Client role.
You will need the "instance connection name" from Cloud SQL Instance details page.
Download Cloud SQL Proxy (link) to your computer. Remember the full path to the program. Save the program as "cloud_sql_proxy.exe"
Start the Cloud SQL Proxy
[full_path_to_program]\cloud_sql_proxy -instances=[INSTANCE_CONNECTION_NAME]=tcp:3306
OR
[full_path_to_program]\cloud_sql_proxy -instances=<INSTANCE_CONNECTION_NAME>=tcp:3306 -credential_file=[PATH_TO_KEY_FILE]
Connect using mysql.exe: `mysql -u USERNAME -p --host 127.0.0.1
Public IP Method
The second method is not secure unless you also enable SSL, which I will not cover in this answer. I do not recommend this method except for knowledgeable persons.
Figure out what your public IP address is. Go to any website such as "MXToolbox" https://mxtoolbox.com/whatismyip/
Go to the Google Cloud Console
Go to the Cloud SQL Instances Details page
Select the Connections tab
Click Add network
In the Network field, enter your Public IP address using CIDR notice: eg 145.11.22.33/32
Enter a name such as "My Home IP"
Click Done
Click Save
Note: Most home Internet services change your Public IP address periodically. This means that you will need to update your Public IP address in Cloud SQL if you are using the second method.

ERROR 2003 (HY000): Can't connect to MySQL server on 'xxx.xxx.xx.xx' (10060)

I'm trying to connect my local MySQL to a test 2nd generation MySQL instance on Google SQL platform using the following command on my windows laptop.
mysql --host=130.211.xx.xx --port=3306 --user=root --password
I double checked my IP address with whatismyIPaddress.
I can connect via Google Cloud Shell on the Google Platform itself and also ping the IP address from the local cmd prompt.
As a troubleshooting step I have disabled the local firewalls on my laptop and granted full access to 0.0.0.0/0 to allow all connections on the google platform console.
still no joy from either a cmd line connection on windows or using a putty client, can anyone give me any further pointers on the missing step?
Cheers..
If you are behind a NAT your IP might change which prevents you from accessing the Cloud SQL instance. I would recommend setting up access using SSL certificate. More information about the setup can be found in this Help Center article.
You may need to allow remote connections to your remote database in the server and database configuration. These kinds of connections are typically disabled by default.

Azure VM: Cannot connect to MySQL server in VM from a public server?

I have purchased a Azure VM(Ubuntu 12.4) and setup-ed MySQL server in my VM . My problem is like when i tried to access mysql db from my local Azure Vm machine through Workbench its working fine, but when i try to access it from an external server which is outside VM i am getting some error.
I have opened Endpoint in Azure VM for port 3306, still its showing error.
Is there any setting i need to change in My Azure VM to enable remote access.
Error Message:
Any help is appreciated..