How to fix "VirtualBox Interface has active connections" error in Windows? - windows

Windows 10 is displaying a VirtualBox Interface has active connections error message when shutting down after using Docker Quickstart Terminal on Virtual Box.
I tried to fix this by typing exit to close the terminal.
How can I smoothly close the terminal and get rid of the error message?

I came here because the title of this topic does not mention Docker. I had the same problem when using the application BlueStacks in Windows 10, without Docker. Windows did not shut down (or took a long time to do so) because 'VirtualBox still has active connections'. I'd like to share my solution here, using BlueStacks as just an example. I solved this by creating a task in task manager that runs a script on shutdown. The script kills the VirtualBox process, which is perfectly safe. Creating such a task is described here: https://superuser.com/questions/165142/using-task-scheduler-to-run-a-task-before-shutdown
The script for killing a process: wmic process where "name='BstkSVC.exe'" delete
Maybe this helps anyone who came here and is not using a container. Thanks.

Using the bellow commands should fix it:
docker-machine stop
exit

I was also fed of this problem but finally got a solution.
Just open the Task Manager then check for the Bluestacks Virtual Interface . Right click on it and click End Task.
I'm assuming that this is the problem due to the Bluestacks installed on your computer.

oh!! thanks
i found a easier method just put that text into notepad and convert it into cmd via save as and type the name of the file as ""please click on this before shutdown.cmd"" ("" are used to denote not in name

Just write the command below :
docker-machine stop
and then shut down your pc.

Related

Why the vs-code terminal is not working internally?

The vs-code terminal is not working as an integrated terminal but as I click
New Terminal
It opens cmd.exe as an external tool.
I tried checking the settings but it was integrated as before but yet the problem is still there.
I am getting this message.
The terminal process terminated with exit code: 3221225786
i have the exact same problem and i am pretty sure i have not made any relevant changes...
In the mean time Ive found a temporary fix or at least it works for me: go to settings and search for "conpty", in the "terminal>integrated: windows enable conpty" section uncheck the "whether to use ConPTY..." and the integrated terminal works as before
looks like it is a bug: https://github.com/microsoft/vscode/issues/73790
Turn off the checkbox "Windows Enable Conpty".
This is highly recommand for error exit code '3221225794' when i open the terminal in VSCODE.

How do I hide the cmd windows when rotating logs?

I added this command to httpd_uwamp.conf :
#LOG ROTATION
TransferLog "|C:/UwAmp/bin/apache/bin/rotatelogs.exe C:/UwAmp/bin/apache/logs/backup/access-%Y_%m_%d.log 5M"
It works fine, but cmd window is always visible while Apache is on.
Does anyone know how to hide this cmd window ?
This happens to me too with my access logs. I couldn't figure out a solid solution but for now I hide it through the command line using this tool found here:
https://steve.fi/Software/windowhide/
I've used it on Windows 7 and Windows Server 2012
Credits go to Steve Kemp .. steve#steve.org.ku
Revisiting... You might want to check on what user profile your server is starting and make sure it's running as a service.
My rotatelogs windows finally cleared away when I ran my server applications as a service..
Under the Task Manager the username is now SYSTEM and no longer my user name.
With this modification, an "Interactive Services Detection" window would popup presenting the option to view the prompts from a self-contained screen.
I also modified the httpd.conf and moved my "CustomLog" and "ErrorLog" lines to the directives as they were outside, though I don't think it'll affect the outcome.

Address already in use? Intellij

Sometimes when I try to run my project using maven mvn clean install jetty:run it returns an error that says: "Address already in use".
I'm using Intellij IDEA 14.
Could you please help me to figure out what's happening?
This happens because every time the code is ran using the green arrow icon it generates a new instance and since the port (8080 in this case) is already in use it can't run again.
The first solution comes stopping the instance is currently in use, you can know if there is already an instance running at the bottom left corner tabs, if one of the tabs has a little green dot it means it is currently running.
One nice feature to avoid this is to go the run/debug configuration and set the option Single Instance Only at the top right corner as you can see here:
Now, you can run the project using only the green arrow/bug icons and it will stop it if it's already running, compile and then run again just with one click.
I found this very helpful to get rid of this silly error.
Another option is Go to Run-->Edit Configuration --> Startup/Connection tab
Select Debug and change the port beside Debugger Settings..
For mac, In terminal just write command
ps -A |grep java
This will give all the process running and then kill the process by
kill -9 PID
Where PID is the process id which you want to kill.
or
Just open Activity Monitor and, in the search box, write java and kill the running Java processes.
Try this out to Reset the winsock directory to restore the network.
Run this command and restart the PC and you're ready to go
You will need to run this as administrator
netsh winsock reset

Taking over the Windows Run command on 'File not found'

When you hit the WIN+R (Run command) in windows, you get the Run Box:
How can I get a handle to this command incase an entry for what I am typing is not found?
For example, this works great when you type cmd or calc.
But when you type: thisawesomething and hit the return key, you are greeted with this:
What I want to do is either of these two:
Whenever the file, folder or resource is not found via RUN, a default program (which I specify) is fired.
OR
If I can have a program running in the background which listens to an event raised by Windows when it can't find a file, what event am I looking for?
Is this even possible?
I have tried searching for this quite a bit but have hit a wall. Any help or a push in the right direction would be appreciated.
Note:
This article mentions that if I fire the RUN command programatically, there is a way to handle the notification of which program is about to be run. However, I am looking to modify (or patch) the default Windows Run functionality and not fire this programatically from another app. Thanks.

Can't add new Redirected Port in Windows 7 after installing RedMon

My operating system is Windows 7 32bit. I installed RedMon1.7, Ghostscript 8.71 and GSview 4.9; installations were successful.
I went to Add New Local Printer in Windows Devices and Printers, clicked on Create A New Port, and selected Redirected Port from the Type of Port list. Clicked Next and in the Add New Port window I named RPT1: and clicked OK but it says Specified port cannot be added. Operation could not be completed (error 0x00000001)
I tried giving different names to the port, RPT2:, RPT4:, VPport: etc but all gave same result. Disabled Windows Firewall and tried but it continues to give same error, Disabled the Antivirus (Avira) but no change.
What can be preventing windows 7 from adding redirected port?
BTW I was following instructions in this tutorial in order to create a postscript printer.
http://www.stat.tamu.edu/~henrik/GSPSprinter/GSPSprinter.html
Appreciate any ideas or suggestions. Thanks
Run cmd.exe as Administrator and then run:
rundll32 printui.dll,PrintUIEntry /il
from the elevated cmd.
Go to your Start Menu,
Type Print,
Right-Click "Print Management",
Select "Run as administrator",
In Print Management; Expand "Print Servers" and Select "Ports".
Right-Click in the "Ports" pane (on the right hand side) and Select "Add Port...".
I'd also recommend configuring a Port from Print Management, as opposed to trying to do it in a Printers Properties. ;)
Adam Reed describes a workaround in his blog:
http://borntoidentify.blogspot.com/2010/09/configuring-virtual-printer-using.html
Not very comfortable, but works for me ...
EDIT: This link appears broken, but here's the content:
https://web.archive.org/web/20120628120209/http://borntoidentify.blogspot.com/2010/09/configuring-virtual-printer-using.html
The gist is that under Win7, you need to run explorer with elevated rights. This can be done using another browser, or, as mentioned in the comments on the original post:
Open a CMD window by right clicking and running as administrator
Kill the process explorer.exe from the task manager
Run explorer.exe from the command prompt window, now as an administrator.
Be very careful when running explorer as an administrator.
You need to enable Admin mode OR log with the Admin account!
This is cause by the new Vista/Win 7 security system.
Try reseting the firewall (Windows 7)
(be warned tho, the firewall will reset to the default setting)
*go to Control Panel
*go to Windows Firewall
*on the left choice pick "Restore Defaults"
It works for me, i hope it works for you.
F3lix's rundll32 method works but after you've created the port you most probably would need to configure its settings. Elsewhere in the net there are instructions to open Port management as Administrator, but in Windows 7 Home that seems to be very much impossible. One can only view the virtual port settings. The only workaround I found is to edit registry directly with the Registry editor at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Redirected Port\Ports\RPT1:
(Replace your port name in the end.)
It seams to be tricky. In my case it only works, after creating an new User account with the name "admin" / group " Administratoren" (de).
Before with my real Nickname User "Nick.." / group "Administratoren" (de) it dosent work´.
Takes several hours to discover ...
Accepted solution did not work for me...I found an other command line that worked well (I'm on windows 10):
%systemroot%\system32\printmanagement.msc
It opens the print management in administrator mode, and I was able to create the port with no problems.

Resources