Resource Hosting Subsystem was terminated which caused Availability group to fail

The following error was occurred in cluster events and the availability group was failed which resulted the databases in non-synchronizing state.

A component on the server did not respond in a timely fashion. This caused the cluster resource ‘AG’ (resource type ‘SQL Server Availability Group’, DLL ‘hadrres.dll’) to exceed its time-out threshold. As part of cluster health detection, recovery actions will be taken. The cluster will try to automatically recover by terminating and restarting the Resource Hosting Subsystem (RHS) process that is running this resource.

Please help me to find the root cause (A component on the server did not respond in a timely fashion).

Thanks

How to ‘open in terminal’ when using ubuntu subsystem on windows 10

As the question states, I’m using ubuntu on windows 10. Every time I have to work on a homework problem and have to open ubuntu, I have to navigate to the file path which is tedious.

Is there any way to right-click on the file explorer and hit open in the terminal, like in a real ubuntu operating system environment?

How to copy files/directories from a Linux/Ubuntu machine to Ubuntu subsystem in Windows while preserving permissions

I’m trying to send files from my full Ubuntu version in dual-boot to my other Ubuntu subsystem version within Windows 10. What I usually do is that I mount my windows partition that has the Ubuntu subsystem files into my full Ubuntu version, then I do a cp -r source destination. I tried the other alternative which is to use rsync. However, the problem with both methods is that when I switch to my Linux subsystem within W10, I get “permission denied” whenever I try to get into the directories that I copied OR edit files. The workaround of this issue is to manually give 755 and 644 permissions after switching to the Linux subsystem when the copying process is done, but I don’t think that this is the right way to do this whole process.

My current method is to tar the files up in my full Ubuntu version, then copy the tar to the Linux subsystem, this method still requires me to give a 755 permission (or untar with sudo), and after the file extraction, all the files have the sufficient permissions. But then again, I still need to use either sudo or give some sort of permission after switching to the Linux subsystem to untar the files. Any ideas on what is the optimal way to send files from a dual boot Ubuntu to the Linux subsystem in my Windows partition?

Ubuntu on Windows Subsystem for Linux not recognizing characters

I installed fish on the Ubuntu app in Windows (Ubuntu 18.04.2 LTS) and the arrow character for the prompt “➜” is not being recognized, it appears as a box. I searched and found similar problems reported for other characters (foreign characters). The answer to those issues was to change the font. I have tried different fonts and the problem persists.

Here’s a list of how the character looks with the different fonts:

  • Consolas – question mark box
  • GungsuhChe – horizontal bar
  • Lucida Console – box
  • MS Gothic – horizontal bar
  • Source Code Pro – box
  • UbuntuMono – box

The current code page for the terminal is “65001 (UTF-8)”.

What do I do to make this character be displayed as it should?

Installing Non-Repository Program in Windows Subsystem for Linux

I’d like to install the image editing CLI program NConvert to WSL, but I’m not sure if this is possible, since NConvert isn’t in any repository. There is a procedure I could implement to attempt an installation, but I’m cautious, as I don’t want to break anything.

I was considering installing it with the following steps:

ubuntu@DESKTOP-NAC9118:~$ wget http://download.xnview.com/NConvert-linux64.tgz

ubuntu@DESKTOP-NAC9118:~$ tar xvzf NConvert-linux64.tgz

ubuntu@DESKTOP-NAC9118:~$ cd NConvert

ubuntu@DESKTOP-NAC9118:~/NConvert$

This last step has me confused, as I’m not sure if I should copy the NConvert executable to C:\Users\dmm\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\usr\bin\ or someplace else. I would also need to open the bin folder in root and change the permissions of NConvert with chmod -R 755.

How to improve localhost performance on Ubuntu 18 on the Windows Subsystem for Linux

So, I have Ubuntu 18 installed on a Windows laptop. Generally, I’ve been happy with it, but recently the performance has really taken a hit. My localhost set up is a pretty vanilla Apache/Mysql and handful of useful programming languages. At the moment, I either can’t access my locally hosted sites, or it takes a very long time for things to start working. The only errors that I see in the Apache log are [core:notice] [pid 49] AH00051: child pid 62 exit signal Segmentation fault (11), possible coredump in /etc/apache2. I don’t get any errors in the browser, and eventually things work. So, I’m not sure how to proceed with diagnosing and fixing the issue from here. Any advice appreciated.

How to improve localhost performance on Ubuntu 18 on the Windows Subsystem for Linux

So, I have Ubuntu 18 installed on a Windows laptop. Generally, I’ve been happy with it, but recently the performance has really taken a hit. My localhost set up is a pretty vanilla Apache/Mysql and handful of useful programming languages. At the moment, I either can’t access my locally hosted sites, or it takes a very long time for things to start working. The only errors that I see in the Apache log are [core:notice] [pid 49] AH00051: child pid 62 exit signal Segmentation fault (11), possible coredump in /etc/apache2. I don’t get any errors in the browser, and eventually things work. So, I’m not sure how to proceed with diagnosing and fixing the issue from here. Any advice appreciated.

Einstein toolkit via Ubuntu Linux subsystem: how to install prerequisite packages?

Following Einstein toolkit’s Simplified tutorial for New Users I tried to “install Prerequisite packages” via the Ubuntu Linux subsystem by the command

sudo apt-get install build-essential pkg-config mpich2? python libmpich2?-dev gfortran git subversion curl gnuplot gnuplot-x11 

only to get the following list of errors

Reading package lists... Done Building dependency tree Reading state information... Done Package gnuplot is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  Package subversion is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Unable to locate package mpich2? E: Couldn't find any package by glob 'mpich2?' E: Couldn't find any package by regex 'mpich2?' E: Unable to locate package libmpich2?-dev E: Couldn't find any package by glob 'libmpich2?-dev' E: Couldn't find any package by regex 'libmpich2?-dev' E: Package 'subversion' has no installation candidate E: Package 'gnuplot' has no installation candidate E: Unable to locate package gnuplot-x11 

I am really new to command prompt, Linux, Ubundu, etc. and have no idea how bad these errors are or how to fix them.

I do not know if the errors are due to some mistake during the installation of Ubuntu Linux subsystem.

I would appreciate any help.

P.S. My ultimate puprose is to use Einstein Toolkit on my Windows 10 PC so I would welcome any alternative to te tutorial’s tutorial’s approach.

How to remove docker from Windows subsystem?

I tried to install Docker CE for Ubuntu in the Windows Subsystem for Linux, and I had trouble getting it to work properly. I discovered that perhaps Docker doesn’t work in WSL, so now I’m trying to remove it.

I’ve successfully removed GPG keys and Docker repo from apt, but I’m getting the following error when I try to remove the Docker package:

  ~ sudo apt-get --purge remove docker-ce Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED:   docker-ce* 0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded. 1 not fully installed or removed. After this operation, 85.4 MB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 36248 files and directories currently installed.) Removing docker-ce (5:18.09.6~3-0~ubuntu-bionic) ... invoke-rc.d: could not determine current runlevel  * Stopping Docker: docker                                                                                              start-stop-daemon: warning: failed to kill 4129: No such process No process in pidfile '/var/run/docker-ssd.pid' found running; none killed. invoke-rc.d: initscript docker, action "stop" failed. dpkg: error processing package docker-ce (--remove):  installed docker-ce package pre-removal script subprocess returned error exit status 1 dpkg: error while cleaning up:  installed docker-ce package post-installation script subprocess returned error exit status 1 Errors were encountered while processing:  docker-ce E: Sub-process /usr/bin/dpkg returned an error code (1) 

Unable to run Makefile targets in Windows Subsystem for Linux (Ubuntu 18.04)

I feel I’ve tried everything but I feel I’m missing something really simple.. I’m trying to run a makefile from a project (which works fine on a Mac) on a Windows machine with WSL running but get a weird error.

I noticed the version of make in WSL is 0.8.1 which seemed old, so I’ve tried to upgrade to 3.81 with these steps:

wget http://ftp.gnu.org/gnu/make/make-3.81.tar.gz tarxvf make-3.81.tar.gz cd make-3.81/ ./configure make 

But, I get this output every time. I get the same output when I run a make command against the project as I do with the installation script.

davidn0rman@WSL-Ubuntu:/tmp/make-3.81$   make make ℹ info Invoking all target make ℹ info Invoking config.h target make ℹ info Invoking stamp-h1 target (node:13860) UnhandledPromiseRejectionWarning: undefined (node:13860) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:13860) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. make ✖ ERR  not found: make-$  (srcdir)/config.h.in    $   make <target...> [options]    Options:     --help             Show this help output     --version          Show package version     --debug            Enable extended log output    Targets:     [targets in the Makefile list here] 

If I try and make -v I get the following, but on the Mac I get the version and the copyright blurb.

davidn0rman@WSL-Ubuntu:/tmp$   make -v make ✖ ERR  Missing Makefile / Bakefile make ℹ info Run "make init" to generate a Makefile. 

To say it’s frustrating is putting it mildly, wondering if anyone has run across this before in WSL or Ubuntu? Node and npm are up to date.