Getting prolog-cafe download failure when building gerrit

165 views
Skip to first unread message

Khai Do

unread,
May 21, 2014, 6:36:40 PM5/21/14
to repo-d...@googlegroups.com
Hello I'm getting an error when attempting to build gerrit.  From the log it seems like there's a problem downloading prolog-cafe. Anybody know what's going on?  I am able to reproduce when building with master or stable-2.8 branch.  This only happens if the prolog-cafe library hasn't been cached from a previous build.  I'm building on my MAC.

~/work-gerrit/gerrit$ git describe
v2.8-34-gaf315ef

~/work-gerrit/gerrit$ buck --version
buck version 274acb17e9b6dc9ee60bc1371c47a7f49640c24c

~/work-gerrit/gerrit$ python --version
Python 2.7.5

~/work-gerrit/gerrit$ java -version
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)

~/work-gerrit/gerrit$ buck build gerrit
Picked up _JAVA_OPTIONS: -Djava.awt.headless=true
[-] PARSING BUILD FILES...FINISHED 1.8s
[+] BUILDING...0.5s
 |=> //gerrit-util-ssl:ssl...  0.3s (running javac[0.2s])
 |=> //gerrit-antlr:query_exception...  0.3s (running javac[0.2s])
 |=> //gerrit-war:gen_version...  0.0s (running genrule[0.0s])
 |=> //gerrit-war:log4j-config__jar...  0.1s (running genrule[0.0s])
 |=> //gerrit-extension-api:client...  0.5s (running javac[0.2s])
Picked up _JAVA_OPTIONS: -Djava.awt.headless=true
Traceback (most recent call last):
  File "/Users/khaido/work-gerrit/gerrit/tools/download_file.py", line 144, in <module>
    have = hashfile(cache_ent)
  File "/Users/khaido/work-gerrit/gerrit/tools/download_file.py", line 40, in hashfile
    with open(p, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/Users/khaido/.gerritcodereview/buck-cache/prologcafe-1.3.jar-5e0fbf18e8c98c4113f9acc978306884a1152870'
BUILD FAILED: //lib/prolog:prolog-cafe__download_bin failed on step "genrule" with exit code 1

David Ostrovsky

unread,
May 22, 2014, 12:12:47 AM5/22/14
to repo-d...@googlegroups.com

Am Donnerstag, 22. Mai 2014 00:36:40 UTC+2 schrieb Khai Do:
Hello I'm getting an error when attempting to build gerrit.  From the log it seems like there's a problem downloading prolog-cafe. Anybody know what's going on?  I am able to reproduce when building with master or stable-2.8 branch.  This only happens if the prolog-cafe library hasn't been cached from a previous build.  I'm building on my MAC.


The problem must be on your side. Works here as expected:

$ rm ~/.gerritcodereview/buck-cache/prologcafe-1.3.jar-5e0fbf18e8c98c4113f9acc978306884a1152870
$ rm ~/.gerritcodereview/buck-cache/prologcafe-1.3-src.jar-251d8e6e592feadd2a18567640a523b4d6a30ae7

$ buck build gerrit
[-] PARSING BUILD FILES...FINISHED 1,0s
[+] BUILDING...0,7s
[...]
[...]
[-] BUILDING...FINISHED


$ ./tools/eclipse/project.py  --src
[...]
[...]
[-] BUILDING...FINISHED


wget works here too:

[...]
2014-05-22 06:12:59 (5.11 MB/s) - ‘PrologCafe-1.3.jar’ saved [4668839/4668839]

$ unzip -t PrologCafe-1.3.jar
Archive:  PrologCafe-1.3.jar
    testing: META-INF/                OK
    testing: META-INF/MANIFEST.MF     OK
[...]

Zaro

unread,
May 22, 2014, 1:07:28 AM5/22/14
to David Ostrovsky, repo-d...@googlegroups.com
David, I've tried on 3 different machines, 1 is my laptop, the other 2
are cloud machines at different providers. All of them failed with
the same result. What I do is 'rm -rf ~/.gerritcodereview'; buck
clean; buck build gerrit. The stand alone wget command works for me
as well. Could you possibly try the exact steps i ran?

David Ostrovsky

unread,
May 22, 2014, 1:38:52 AM5/22/14
to repo-d...@googlegroups.com

Zu, Bruce

unread,
May 22, 2014, 2:00:15 AM5/22/14
to Zaro, David Ostrovsky, repo-d...@googlegroups.com
Test as your steps.
It works on master c323469 Merge "Buck: Fix compilation of GWT plugins"
/Bruce
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Khai Do

unread,
May 22, 2014, 2:37:29 AM5/22/14
to repo-d...@googlegroups.com, Zaro, David Ostrovsky
Thanks for trying it out.  I just tried running another build this time the build was successful.  It was definitely failing earlier today.  Must have been something flaky with the repository.  Anyways if you are interested you can see the 3 other times it failed before it worked.  Nothing changed in the code, just re-ran build at different times.  https://review.openstack.org/#/c/94675
 
Reply all
Reply to author
Forward
0 new messages