[tor-bugs] #31293 [Applications/Tor Browser]: tor-android-service gradle failure when probing network interfaces

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Oct 2 16:10:59 UTC 2019


#31293: tor-android-service gradle failure when probing network interfaces
-------------------------------------------+--------------------------
 Reporter:  sysrqb                         |          Owner:  tbb-team
     Type:  defect                         |         Status:  new
 Priority:  High                           |      Milestone:
Component:  Applications/Tor Browser       |        Version:
 Severity:  Normal                         |     Resolution:
 Keywords:  tbb-rbm, TorBrowserTeam201910  |  Actual Points:
Parent ID:                                 |         Points:
 Reviewer:                                 |        Sponsor:
-------------------------------------------+--------------------------

Comment (by boklm):

 Replying to [comment:10 sisbell]:
 > I wasn't able to reproduce this with older versions, but it just started
 up with the very latest of master.
 >
 > What I found was that is I added 'ip addr show' in the build script
 prior to running the gradle command, there is only one interface, the
 loopback and it is in a DOWN state.
 >
 >
 > {{{
 > 1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN group default qlen
 1000
 >     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
 >
 > }}}

 On my machine (where the build is working), if I add a `ip addr show` to
 the build then I can see in the logs:
 {{{
 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group
 default
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
     inet 127.0.0.1/8 scope host lo
        valid_lft forever preferred_lft forever
     inet6 ::1/128 scope host
        valid_lft forever preferred_lft forever
 }}}

 So it seems depending on the runc and/or kernel version, the lo interface
 can be up or down.

 So maybe we can fix this by making sure the `lo` interface is up. I added
 a patch doing that in branch `bug_31293`:
 https://gitweb.torproject.org/user/boklm/tor-browser-
 build.git/commit/?h=bug_31293&id=911f7cb4756583c1706744541d270c9ae637313b

 An other thing we can try is setting `GRADLE_OPTS` as suggested by
 eighthave in comment 19, in order to disable the gradle daemon. I did that
 in branch `bug_31293_GRADLE_OPTS`:
 https://gitweb.torproject.org/user/boklm/tor-browser-
 build.git/commit/?h=bug_31293_GRADLE_OPTS&id=2101a8a3c2426e688eb171c1c39b23e5e6a6d5a8

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31293#comment:23>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list