Error Connecting to a Git Repository on Windows - No tty allocated
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Attempting to add an existing Git repository to Fisheye on Windows results in the following error:
1
2
Caused by: com.cenqua.fisheye.config.ConfigException: Error talking to repository:
0 [main] ssh 7496 tty_list::allocate_tty: No tty allocated
Cause
The CYGWIN
environment variable contains "tty" which prevents proper communication.
Resolution
Correct the CYGWIN
environment variable so that it doesn't contain "tty".
Further Reading
(no)tty
- If set, Cygwin enabled extra support (i.e., termios) for UNIX-like ttys in the Windows console. This option has been removed because it can be easily replaced by using a terminal like mintty, and it does not work well with some Windows programs.
Was this helpful?