Skip to content
Advertisement

Composer install fail on TFS Server

We are running a Team Foundation Server (on premises) and as part of a build process it runs composer to install dependancies. Sometime in the last week this process has started failing and I cannot figure out why.

Here is the console output from a failed run:

JavaScript

Here is part of the output from a successful run about a month ago:

JavaScript

The successful run shows it is “loading from cache” rather than going to github. I’m not that experienced with composer so I’m not sure what has gone wrong. No settings on our TFS system have changed to my knowledge.

The server that this runs cannot access github as it is behind a firewall & proxy that block it. But that has always been the case.

Does anyone know why composer would previously have been using a cache and is now trying to access github?

I have been searching the internet for hours for how the composer cache works but haven’t been able to find anything that helps.

Many thanks for any help.

Advertisement

Answer

I finally got this issue fixed by getting our corporate proxy updated to allow our build server to access github.

I still do not know how builds were working for so long without issue because to my best knowledge the build server would not have been allowed to access github for at least the last year. I can only assume that either somebody manually setup the Composer cache or the server could, at some time, access github and then the cache just lasted for a very long time.

This was one of those confusing problems where nothing seems to have changed to explain it. However I think something must have changed just a long time ago and the cache was masking it.

Thanks to everyone who helped.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement