Bamboo fails to connect to SVN server via SSL with an error "unrecognized_name" error
Summary
Bamboo build fails and Bamboo server fails to connect to SVN server configured to use SS.
Build fails with an error svn: E175002: handshake alert: unrecognized_name
Environment
Issue found in Bamboo 5.7.2.
Diagnosis
The following error can be seen in the logs:
INFO [http-apr-8085-exec-11] [SvnRepository] Failed to validate the subversion url: svn: E175002: handshake alert: unrecognized_name
svn: E175002: OPTIONS request failed on '/path/to/tags/id'
Cause
The SVN server is not configured correctly, ServerName in the Apache virtual host configuration is missing.
TortoiseSVN ignores this warning by default and it may go unnoticed.
Solution
In the Apache virtual host configuration, make sure the
<VirtualHost>
tag has a value for ServerName in it.<VirtualHost mydomain.com:443> ServerName mydomain.com [...] </VirtualHost>