‘Failed to start Execute cloud user/final scripts’. : Google compute instance hitting error when running cloud user/final scripts

not sure if this is appropriate for this site but thought it could be a good place to start.

Question

How can I connect to a Google instance if I have no SSH keys and google user/final scripts will not run?

Problem Context

Google compute instance running Ubuntu 16.04 LTS.

I changed it’s base version of python in order to install a python package that was very finicky with python’s ‘setup-tools’.

My theory is that this change broke the start up of google cloud scripts, which was the only way I had in past connected to the instance.

Problem Details

We can verify the server is on, as it is serving bad nginx networks here: http://35.201.199.224/

I have a server log I can share here if anyone is willing to help me read it here: https://pastebin.com/DF5wsLhH

The part I think is the most important is this snippet

Mar 21 17:21:50 instance-1 systemd[1]: Started Google Compute Engine Network Daemon. Mar 21 17:21:51 instance-1 google_network_daemon[1340]: Traceback (most recent call last): Mar 21 17:21:51 instance-1 google_network_daemon[1340]:   File "/usr/bin/google_network_daemon", line 9, in <module> Mar 21 17:21:51 instance-1 google_network_daemon[1340]:     load_entry_point('google-compute-engine==2.8.4', 'console_scripts', 'google_network_daemon')() Mar 21 17:21:51 instance-1 google_network_daemon[1340]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point Mar 21 17:21:51 instance-1 google_network_daemon[1340]:     return get_distribution(dist).load_entry_point(group, name) Mar 21 17:21:51 instance-1 google_network_daemon[1340]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point Mar 21 17:21:51 instance-1 google_network_daemon[1340]:     return ep.load() Mar 21 17:21:51 instance-1 google_network_daemon[1340]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load Mar 21 17:21:51 instance-1 google_network_daemon[1340]:     return self.resolve() Mar 21 17:21:51 instance-1 google_network_daemon[1340]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve Mar 21 17:21:51 instance-1 google_network_daemon[1340]:     module = __import__(self.module_name, fromlist=['__name__'], level=0) Mar 21 17:21:51 instance-1 google_network_daemon[1340]:   File "/usr/lib/python3/dist-packages/google_compute_engine/networking/network_daemon.py", line 26, in <module> Mar 21 17:21:51 instance-1 google_network_daemon[1340]:     from google_compute_engine import config_manager Mar 21 17:21:51 instance-1 google_network_daemon[1340]:   File "/usr/lib/python3/dist-packages/google_compute_engine/config_manager.py", line 23, in <module> Mar 21 17:21:51 instance-1 google_network_daemon[1340]:     from google_compute_engine.compat import parser Mar 21 17:21:51 instance-1 google_network_daemon[1340]:   File "/usr/lib/python3/dist-packages/google_compute_engine/compat.py", line 23, in <module> Mar 21 17:21:51 instance-1 google_network_daemon[1340]:     import distro Mar 21 17:21:51 instance-1 google_network_daemon[1340]: ModuleNotFoundError: No module named 'distro' 

I think it cannot find this module as it is looking in the wrong python version.

Conclusion

I do understand that I was inexcusably lazy connecting only by using Googles ‘Connect By SSH button‘ but I assumed naively that the arguably best commercial developers in the western world would have everything under control from me. The oh so tempting ssh button

php – ошибка attempt failed because the connected party did not properly respond after a period of time

При попытке вызвать страницу через корпоративный прокси:

echo file_get_contents ("https://google.com"); 

появляется ошибка A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Если пробую через curl, то ошибка

Failed to connect to https://google.com: time out 

Как это исправить?

Enter-PSSession : Connecting to remote server failed

I have three VMs: A, B and C. I use Enter-PSSession to connect them. But recently connecting B from A (A->B) never succeeds. Others ways (A->C, C->A, B->A, B->C, C->B) have no problem. The error message:Enter-PSSession : Connecting to remote server myserver failed with the following error message : WinRM cannot process the request. The following error with errorcode 0x80090322 occurred while using Kerberos authentication: An unknown security error occurred. Possible causes are: -The user name or password specified are invalid. -Kerberos is used when no authentication method and no user name are specified. -Kerberos accepts domain user names, but not local user names. -The Service Principal Name (SPN) for the remote computer name and port does not exist. -The client and remote computers are in different domains and there is no trust between the two domains. After checking for the above issues, try the following: -Check the Event Viewer for events related to authentication. -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport. Note that computers in the TrustedHosts list might not be authenticated. -For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic. At line:1 char:1 + Enter-PSSession -ComputerName "stcvm-i29" -Credential fareast\yiml + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (stcvm-i29:String) [Enter-PSSession], PSRemotingTransportException + FullyQualifiedErrorId : CreateRemoteRunspaceFailed

I use “winrm get winrm/config/service” on B, the results are

Service RootSDDL = O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD) MaxConcurrentOperations = 4294967295 MaxConcurrentOperationsPerUser = 1500 EnumerationTimeoutms = 240000 MaxConnections = 300 MaxPacketRetrievalTimeSeconds = 120 AllowUnencrypted = false Auth Basic = false Kerberos = true Negotiate = true Certificate = false CredSSP = false CbtHardeningLevel = Relaxed DefaultPorts HTTP = 5985 HTTPS = 5986 IPv4Filter = * IPv6Filter = * EnableCompatibilityHttpListener = false EnableCompatibilityHttpsListener = false CertificateThumbprint AllowRemoteAccess = true

Handshake with client failed in lldb remote server running inside docker

I am trying to perform remote debugging from vscode to a lldb-server-6.0 running inside a docker container. I am using ssh to pipe commands to the lldb-server. But, the server is not establishing proper connection with the container.

My launch.json file looks like this:

{ "version": "0.2.0", "configurations": [     {         "name": "LLDB Debug",         "type": "cppdbg",         "request": "launch",         "program": "$  {workspaceFolder}/project/a.out",         "args": [],         "stopAtEntry": false,         "cwd": "$  {workspaceFolder}",         "environment": [],         "externalConsole": false,         "pipeTransport": {             "debuggerPath": "/usr/bin/lldb",             "pipeProgram": "ssh",             "pipeArgs": [                 "root@localhost",                 "-p",                 "7142"             ],             "pipeCwd": ""         },         "sourceFileMap": {             "/tmp/project": "./project"         },         "MIMode": "lldb",         "setupCommands": [             {                 "description": "Enable pretty-printing for gdb",                 "text": "-enable-pretty-printing",                 "ignoreFailures": true             }         ]     }, ] } 

In a separate terminal, I have lldb-server running as:

lldb-server-6.0 platform --listen "*:7142" --server 

Now, when I hit F5 and start debugging I get the following messages:

In the lldb-server terminal:

Connection established. error: handshake with client failed    lldb-server exiting.. 

And VSCode gives following message:

Unable to establish a connection to LLDB. ssh_exchange_identification: Connection closed by remote host 

VSCode is able to send request to the service. Maybe ssh is not properly set up inside the container so it is not responding. Are there any alternatives to pipe commands to the container, or how can I fix the problem.?

G_IS_DBUS_connection failed

I am new to Linux, trying to connect to Nucleo board using putty. I am sure the serial line is correct, this is the message error I got in terminal, please help:

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion ‘G_IS_DBUS_CONNECTION (connection)’ failed

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion ‘G_IS_DBUS_CONNECTION (connection)’ failed

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion ‘G_IS_DBUS_CONNECTION (connection)’ failed

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion ‘G_IS_DBUS_CONNECTION (connection)’ failed

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion ‘G_IS_DBUS_CONNECTION (connection)’ failed

Ubuntu apt update error `Failed to activate service ‘org.freedesktop.PackageKit’: timed out (service_start_timeout=25000ms)`

On my Ubuntu 18.04LTS vm I run the command apt update and whilst running I get the following output:

user@user-VirtualBox:~/minitube$   LANG=C sudo apt-get update Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Hit:2 http://ppa.launchpad.net/mc3man/mpv-tests/ubuntu bionic InRelease                        Hit:3 http://gr.archive.ubuntu.com/ubuntu bionic InRelease                                                            Get:4 http://gr.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]         Get:5 http://gr.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Fetched 252 kB in 1s (345 kB/s)                               Error: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.freedesktop.PackageKit': timed out (service_start_timeout=25000ms) Reading package lists... Done 

And I want to fix the cause of the following error message:

Error: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.freedesktop.PackageKit': timed out (service_start_timeout=25000ms) 

Do you know how to do that?

bet365 website connection failed [on hold]

If you start a new instance and connect to bet365 with a Chrome browser, you will be able to access it for the first time.

However, from the second, you can access the site, but you can not check the score.

chrome error log: “failed to load resource: net :: ERR_CONNECTION_REFUSED” “The resource https://www.bet365.com/Api/1/Blob?1,sports,gen5base/261/|WebLib/393/S|SiteSearchLib/30/S | WebConsoleModule / 300 / SL | HeaderModule / 267 / SL | PodLoaderModule / 132 / S was preloaded using link preload but not used within a few seconds. preloaded intentionally. “

Setting the instance to a different region will cause the same symptoms.

Other betting sites are connected but not bet365.

Please tell us how you can bet normally on bet365.

Thank you.