sithumc
sithumc

Reputation: 3404

Travis Could not authorize build request

I'm getting this error for each and every project in my Github organization.

Could not authorize build request myorg/myproject

I searched everywhere but couldn't find any solutions or what causes this. How to troubleshoot this issue/integration?

Upvotes: 48

Views: 12048

Answers (8)

sithumc
sithumc

Reputation: 3404

'Could not authorize build request ...' usually occurs due to

  1. A plan is not selected. Travis will not select the free plan automatically. Select the free or paid plan for your organization manually.
  2. Selected plan become inactive. Go to settings and select the plan again.
  3. Expiration of your paid subscription.
  4. Ran out of free trial build credits available for private repositories.

Travis CI is always-free only for public repositories. The free plan also provides 10,000 build credits try out building private repositories. Read updated info on Billing FAQ.

Upvotes: 100

bwl1289
bwl1289

Reputation: 2078

I want to pull my hair out. For me, I had a plan enabled for my org and user. For reasons I can't explain, I had initially enabled it for the group level (and was using travis successfully), but then weeks later it then forgot my plan choice...

I had to go to my org settings > repos > choose group > plan > select free plan.

Oy vey.

Upvotes: 0

tufac2
tufac2

Reputation: 778

Make sure your subscription even to the Free plan is OK. In my case it was ON for the Github user. However, it was not for the organization

Upvotes: 24

Xonshiz
Xonshiz

Reputation: 1367

I know this is an old thread, but had to share an update in 2020. This issue could be because of multiple reasons.

  1. Like others mentioned, your subscription ended or you don't have a plan selected for your org.

  2. This was my case: I am on free plan and I had a private repository. Travis CI seems to be throwing error for this as well. As soon as I made that repository Public, the builds started.

Upvotes: 7

xenowits
xenowits

Reputation: 369

I am using a free version of travis. I got this error because I didn't signup for a plan (so stupid :( ) but later I did. I signed up for a free plan and the build started.

Upvotes: 11

Moosh
Moosh

Reputation: 396

I can reproduce the problem when I try to build a fork.

Context : I'm member of an organisation with a valid subscription.

To work silently tu tune the build config (and build tasks config) without alert other devs, I've fork the private repo on my own account.

There I can't use travis. :(

There is probably good reason, but I won't change my model so I would search an alternative.

Upvotes: 2

danmurphy1217
danmurphy1217

Reputation: 731

It's also worth mentioning that this happens if you do not have a plan selected for your organization. First, you need to select a plan (Travis does not automatically select the free plan for you). Then, you can trigger a build and see if things work.

If that does not work, you're likely out of builds and will need to upgrade the account.

Upvotes: 44

iriberri
iriberri

Reputation: 343

I found this issue in the Travis CI docs repo in which another user is describing the same problem.

According to a response from the Travis team: "'Could not authorize build request for ... ', usually means that the account ran out of trial builds or has not an active subscription on travis-ci.com".

Upvotes: 8

Related Questions