Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Travis CI Build Failing

I am having an issue with Travis CI - the commits that I push all fail with the same error:

0.06s$ curl -sSL "http://llvm.org/apt/llvm-snapshot.gpg.key" | sudo -E apt-key add - gpg: no valid OpenPGP data found. The command "curl -sSL "http://llvm.org/apt/llvm-snapshot.gpg.key" | sudo -E apt-key add -" failed and exited with 2 during . Your build has been stopped.

I tried to rebuild a previous commit that built successfully and the same error occurs. Any suggestions as to how to troubleshoot the issue?

like image 279
smuzoen Avatar asked Jun 01 '16 01:06

smuzoen


People also ask

How do you debug a Travis build?

The “Debug build” or “Debug job” button is available on the upper right corner of the build and job pages for private repositories. For open source repositories, this button is not available and you will need to use an API call instead.

Is Travis CI still free?

We've run CI on travis-ci since 2013. We've used their free tier as an open source project. For a while they also graciously boosted our CPU performance to help sponsor us (that plan silently ended on March 6, 2021). Now, travis-ci is transitioning to their new .com domain and the current (old) .

How do you trigger Travis CI?

Trigger Travis CI builds using the API V3 by sending a POST request to /repo/{slug|id}/requests : Get an API token from your Travis CI settings page. You'll need the token to authenticate most of these API requests.


3 Answers

http://llvm.org/apt/llvm-snapshot.gpg.key is returning 404 since about 2 days ago. And http://llvm.org/apt/ which is linked from their homepage returns 404.

The topic in the #llvm channel on IRC mentions:

APT repo temporary switched off. Check ML for the latest updates.

The ML announcement:

TL;DR: APT repo switched off due to excessive load / traffic

Recently we realized that APT repo generates almost 95% of I/O on llvm.org and more than 40% of network bandwidth alone. During last 2 weeks the main services on llvm.org (svn, git, bugzilla) had serious problems with overall connectivity.

We decided to temporary switch APT repo off to see if this would help. Stay tuned for updates.

like image 107
Justin M. Keyes Avatar answered Sep 24 '22 18:09

Justin M. Keyes


Temp solution

Since the llvm server still down I'm using the clang provided in the Ubuntu package.

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
      #- llvm-toolchain-precise-3.7
    packages:
      - libgnome-keyring-dev
      #- clang-3.7
      - clang

Full example: https://github.com/sqlectron/sqlectron-gui/blob/master/.travis.yml#L35

The only problem is that installs the version 3.4 or 3.5. Which looks be much slower than the latest one available on llvm package.

like image 36
maxcnunes Avatar answered Sep 26 '22 18:09

maxcnunes


The llvm server is still down. However, a very good idea from the people behind rust (https://github.com/rust-lang/rust) is to solve this issue by using Docker.

See the .travis.yml file here: https://github.com/rust-lang/rust/commit/b1651fb4d2c0349ccca108b8d24210d688507936

You can find the travis build here: https://travis-ci.org/rust-lang/rust/builds/134924068

I incorporated Docker into my builds with excellent results, but it took me a couple of days to do so. You can find my approach here: https://github.com/fuzzylite/fuzzylite/tree/master in files /Dockerfile and /.travis.yml

and the results here: https://travis-ci.org/fuzzylite/fuzzylite/builds/137058927

like image 23
Juan Rada-Vilela Avatar answered Sep 25 '22 18:09

Juan Rada-Vilela