3 Replies
      Latest reply on Mar 28, 2020 12:27 PM by JBDynamics
      smaitch Level 1 Level 1 (0 points)

        Using Xcode 10.1 on Mojave I am attempting to add an Account in Preferences.  I choose Bitbucket Server, and provide my https:// URL, user name and password.  When I hit Sign In, I get a red message "The server version could not be determined." beneath the "Sign in to your Bitbucket Server account".  The current project is under git control with that account, and I can use the Source Control menu items to push to the server without issue.  (The first time pushing to the server required me to provide credentials, but they seem to be saved such that I no longer need to provide credentials when pushing.)  Even after successfully pushing, I do not have the account listed in preferences and still cannot add it.  Does anyone know how I can get the account listed properly in preferences?

        • Re: Problem signing in to Bitbucket Server
          fritza Level 1 Level 1 (0 points)

          Has anyone been of help to you since you posted? If so, I'd like to know the solution.

           

          I have the same problem. Installing the Xcode Integration add-on and activating it for my account didn't help.

           

          Taking the error message at its word, I investigated, I found that we're running Bitbucket Server 5.10, released nearly two years ago, and end-of-life in May. The current versions are 6.9 (Server) and 6.10 (Enterprise), released mid-December and mid-January respectively.

           

          So… what version of Bitbucket Server were you using? If you updated, did that resolve the problem?

            • Re: Problem signing in to Bitbucket Server
              JBDynamics Level 1 Level 1 (0 points)

              I was running Bitbucket Server version 5.14, and I came across this issue. I was getting the error message, "The server version could not be determined", when trying to add a Bitbucket Server account in Xcode. I upgraded Bitbucket Server to 6.9.3 (latest stable version), and I still have the same issue.

               

              I am running macOS Mojave 10.14.6 with Xcode version 11.3.1.

                • Re: Problem signing in to Bitbucket Server
                  JBDynamics Level 1 Level 1 (0 points)

                  Here is the log from Console when I try to add a Bitbucket server account. It appears that it is receiving a 404 error response from Bitbucket. It must be adding something onto the URL that is entered in the box, because my Bitbucket server does not respond with a 404 when the URL I supplied to Xcode is accessed.

                   

                  default13:20:10.680854 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTask <3B04EF65-83A1-4C7E-A41C-153F1470BDE6>.<1> resuming, QOS(0x9)
                  default13:20:10.681112 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTask <3B04EF65-83A1-4C7E-A41C-153F1470BDE6>.<1> {strength 0, tls 4, ct 0, sub 0, sig 1, ciphers 0, bundle 1, builtin 0}
                  default13:20:10.681282 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTIC Enabling TLS [56:0x7f8464e14f00]
                  default13:20:10.681316 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTIC TCP Conn Start [56:0x7f8464e14f00]
                  default13:20:10.681445 -0600com.apple.dt.BitbucketServerHostBuiltInExtension[C56 Hostname#5a96931b:443 tcp, url hash: 42e2b8ad, tls] start
                  default13:20:10.681793 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionnw_connection_report_state_with_handler_locked [C56] reporting state preparing
                  default13:20:10.682829 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTask <3B04EF65-83A1-4C7E-A41C-153F1470BDE6>.<1> setting up Connection 56
                  default13:20:10.698265 -0600hiddConnection added: IOHIDEventSystemConnection uuid:0A5561A1-A9E9-4579-B6C4-CFD303EDC066 pid:72983 process:Xcode type:Passive entitlements:0x0 caller:IOKit: IOHIDGetModifierLockState + 70 attributes:(null) inactive:1
                  default13:20:10.703783 -0600hiddConnection removed: IOHIDEventSystemConnection uuid:0A5561A1-A9E9-4579-B6C4-CFD303EDC066 pid:72983 process:Xcode type:Passive entitlements:0x0 caller:IOKit: IOHIDGetModifierLockState + 70 attributes:(null) inactive:0
                  default13:20:10.725593 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionnw_socket_handle_socket_event [C56.1:3] Socket received CONNECTED event
                  default13:20:10.725655 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionnw_endpoint_flow_protocol_connected [C56.1 IPv4#ba66ab61:443 in_progress socket-flow (satisfied)] Transport protocol connected
                  default13:20:10.726451 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTIC TLS Event [56:0x7f8464e14f00]: 1, Pending(0)
                  default13:20:10.766521 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTIC TLS Event [56:0x7f8464e14f00]: 11, Pending(0)
                  default13:20:10.766832 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTIC TLS Event [56:0x7f8464e14f00]: 14, Pending(0)
                  default13:20:10.783515 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTIC TLS Trust Result [56:0x7f8464e14f00]: 0
                  default13:20:10.784778 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTIC TLS Event [56:0x7f8464e14f00]: 2, Pending(0)
                  default13:20:10.849777 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionnw_endpoint_flow_protocol_connected [C56.1 IPv4#ba66ab61:443 in_progress socket-flow (satisfied)] Output protocol connected
                  default13:20:10.850152 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionnw_connection_report_state_with_handler_locked [C56] reporting state ready
                  default13:20:10.850690 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTIC TLS Event [56:0x7f8464e14f00]: 20, Pending(0)
                  default13:20:10.850789 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTIC TCP Conn Connected [56:0x7f8464e14f00]: Err(16)
                  default13:20:10.851210 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTIC TCP Conn Event [56:0x7f8464e14f00]: 1
                  default13:20:10.851284 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTIC TCP Conn Event [56:0x7f8464e14f00]: 8
                  default13:20:10.851380 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTIC TLS Handshake Complete [56:0x7f8464e14f00]
                  default13:20:10.851678 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTask <3B04EF65-83A1-4C7E-A41C-153F1470BDE6>.<1> now using Connection 56
                  default13:20:10.851839 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionnw_endpoint_flow_protocol_connected [C56.1 IPv4#ba66ab61:443 ready socket-flow (satisfied)] Output protocol connected
                  default13:20:10.852224 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTask <3B04EF65-83A1-4C7E-A41C-153F1470BDE6>.<1> sent request, body N
                  default13:20:10.911918 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTask <3B04EF65-83A1-4C7E-A41C-153F1470BDE6>.<1> received response, status 404 content C
                  default13:20:10.912007 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTask <3B04EF65-83A1-4C7E-A41C-153F1470BDE6>.<1> response ended
                  default13:20:10.912044 -0600com.apple.dt.BitbucketServerHostBuiltInExtensionTask <3B04EF65-83A1-4C7E-A41C-153F1470BDE6>.<1> done using Connection 56