Bug #85919 MySQL Workbench Failed to start
Submitted: 12 Apr 2017 16:42 Modified: 9 Jun 2021 4:59
Reporter: Ray Venoski Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:6.2,8.0.25 OS:Windows (Received error message on startup: "Failed to create an IPC Port: Access is denied)
Assigned to: CPU Architecture:Any
Tags: IPC Port, workbench

[12 Apr 2017 16:42] Ray Venoski
Description:
When I start MySQL Workbench, I receive the error box: "MySQL Workbench has encountered a problem:", "Failed to create an IPC Port: Access is denied" and "In order to fix this issue we would kindly ask you to file a bug report."

How to repeat:
Run MySQL Workbench
[12 Apr 2017 16:43] Ray Venoski
Error message

Attachment: MySQLError2.jpg (image/jpeg, text), 69.64 KiB.

[12 Apr 2017 17:48] MySQL Verification Team
Thank you for the bug report. I couldn't repeat with latest version 6.3.9 please try it. Thanks.

https://dev.mysql.com/downloads/workbench/
[1 Aug 2017 10:43] Barry Clarke
Hello.

This affects some of our users as well. To recreate:
*windows server 2012 R2 terminal server
*user A opens a remote desktop session and opens MySQL workbench
*user A opens an additional session (so has two sessions) and opens MySQL workbench
*User is unable to open second workbench. 

An "unexpected error" popup is displayed: "Failed to create an IPC port: Access is denied". 

using powershell or processexplorer I can see a named pipe is created by WorkBench. in the above case it would be labelled
\\.\\pipe\\%computername%.%username%.MySQLWorkbench

on a terminal server it's possible for one user to have several sessions so this is not a unique string.

I would suggest either using a salt (processid?) for the connection or adding the terminal services session number:
\\.\\pipe\\%computername%.%username%.%sessionname%.MySQLWorkbench

in the above I don't think it's necessary for the terminal server to be 2012R2, I can create this issue on a non-TSE server 2008R2 machine.
let me know if I've missed anything

cheers

Barry
[9 Jun 2021 4:59] MySQL Verification Team
One just needs to enable this option:

https://dev.mysql.com/doc/workbench/en/wb-preferences-others.html
"Allow more than one instance of MySQL Workbench to run"
[13 Jul 2023 12:50] MySQL Verification Team
Bug #111733 marked as duplicate of this one.