Open gitoby opened 6 years ago
Can you try to delete the /tmp/spaceship_itc_service_key.txt
file?
Oh actually it looks like you can't reach the https://olympus.itunes.apple.com/v1/app/config?hostname=itunesconnect.apple.com
URL. Can you do so manually via GET
?
Here's the contents of the log file written when trying to run xcversion
without a /tmp/spaceship_itc_service_key.txt
file:
# Logfile created on 2018-09-11 13:34:51 +0200 by logger.rb/56438
[13:34:51]: >> POST:
[13:34:51]: >> GET: https://olympus.itunes.apple.com/v1/app/config?hostname=appstoreconnect.apple.com
[13:34:53]: << GET: https://olympus.itunes.apple.com/v1/app/config?hostname=appstoreconnect.apple.com: {"code"=>"FORBIDDEN", "message"=>"The current session is not authorized to perform this operation"}
[13:34:53]: Timeout received: 'Could not receive latest API key from App Store Connect, this might be a server issue.'. Retrying after 3 seconds (remaining: 4)...
[13:34:57]: << POST: : {"authType"=>"sa"}
[13:34:57]: >> GET:
[13:34:57]: << GET: : {"securityQuestions"=>{"questions"=>[{"id"=>136, "question"=>"What is your dream job?", "number"=>2, "userDefined"=>false}, {"id"=>130, "question"=>"What was the name of your best friend as a teenager?", "number"=>1, "userDefined"=>false}]}, "rescueEmailAddress"=>"•••••", "crResetEnabled"=>false, "resetSecurityQuestionsSupportLink"=>"http://support.apple.com/kb/HT6170"}
Here's what happens when manually GETting the olympus URL using curl:
curl 'https://olympus.itunes.apple.com/v1/app/config?hostname=appstoreconnect.apple.com'
{
"code" : "FORBIDDEN",
"message" : "The current session is not authorized to perform this operation"
}
The same happens when specifying basic auth headers:
curl --user ***:*** 'https://olympus.itunes.apple.com/v1/app/config?hostname=appstoreconnect.apple.com'
{
"code" : "FORBIDDEN",
"message" : "The current session is not authorized to perform this operation"
}
Cool, thanks for letting me know. This is actually not an xcode-install
issue, but a spaceship
issue, which is part of fastlane/fastlane. Can you create a ticket there?
We have been using xcode-install for a while now on our CI system and everything worked fine for the better part of the year. Yesterday it started failing with a service response asking for security questions and thus failing in
two_step_client.rb:45
athandle_two_step
. It turned out that the particular account that caused the problem had been locked down, so we tried with a couple of other accounts that had not been locked. All of them exhibited the same issue. We are no longer able to login via fastlane. We suspect that something has changed on the server side at Apple in the last few days causing this problem with xcversion.We're still able to log in with a valid service key though.
Here's the command output (credentials and email addresses masked):
Did anyone else encounter this issue?
Any help would be highly appreciated.