Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #12867

Closed
Open
Opened Aug 14, 2014 by anadahz@anadahz

When using the 'no-collector' option ooniprobe fails to perform the torified request

ooniprobe --no-collector blocking/http_requests -u http://www.torproject.org

WARNING: running ooniprobe involves some risk that varies greatly
         from country to country. You should be aware of this when
         running the tool. Read more about this in the manpage or README.
Log opened.
Not reporting using a collector
[D] No test deck detected
WARNING: Failed to execute tcpdump. Check it is installed and in the PATH
[!] pypcap or dnet not installed. Certain tests may not work.
[D] Tor is not running. Skipping IP lookup via Tor.
[D] Cannot determine the probe IP address with a traceroute, becase of insufficient priviledges
Looking up your IP address via torproject
Found your IP via a GeoIP service: [..]
Fetching required net test inputs...
[D] Fetching and verifying inputs
[D] Creating [..]
[D] Writing report with YAML reporter
[D] Starting this task <generator object generateMeasurements at 0x7fd8ce5c50f0>
[D] Running <class 'ooni.nettests.blocking.http_requests.HTTPRequestsTest'> test_get_control
[D] Finished test setup
Performing GET request to http://www.torproject.org over Tor
[D] Using Tor for the request to http://www.torproject.org
[D] Performing request http://www.torproject.org GET {'User-Agent': ['Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6']}
[D] Running <class 'ooni.nettests.blocking.http_requests.HTTPRequestsTest'> test_get_experiment
[D] Finished test setup
Performing GET request to http://www.torproject.org
[D] Performing request http://www.torproject.org GET {'User-Agent': ['Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2) Gecko/20100115 Firefox/3.6']}
[D] Checking all tasks for completion 0 == 2
Unhandled Error
Traceback (most recent call last):
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/pkg_resources.py", line 1434, in run_script
    execfile(script_filename, namespace, namespace)
  File "/home/user/.virtualenvs/ooniprobe-env/lib/python2.7/site-packages/ooniprobe-1.0.2-py2.7.egg/EGG-INFO/scripts/ooniprobe", line 21, in <module>
    reactor.run()
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/base.py", line 1192, in run
    self.mainLoop()
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/base.py", line 1201, in mainLoop
    self.runUntilCurrent()
--- <exception caught here> ---
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/base.py", line 824, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 424, in resolveAddress
    self._setRealAddress(self.addr)
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 439, in _setRealAddress
    self.doConnect()
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 568, in doConnect
    connectResult = self.socket.connect_ex(self.realAddress
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 568, in doConnect
    connectResult = self.socket.connect_ex(self.realAddress)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
exceptions.TypeError: an integer is required

[D] Got response <twisted.web._newclient.Response object at 0x7fd8cbacbd50>
[D] Processing response body
[D] Adding {'url': 'http://www.torproject.org', 'headers': {'User-Agent': ['Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2) Gecko/20100115 Firefox/3.6']}, 'body': None, 'method': 'GET', 'tor': {'is_tor': False}} to report
[D] Successfully completed measurement: <ooni.tasks.Measurement object at 0x7fd8ce5b74d0>
[D] Successfully performed measurement <ooni.tasks.Measurement object at 0x7fd8ce5b74d0>
[D] <twisted.web._newclient.Response object at 0x7fd8cbacbd50>
[!] Error performing torified request: http://www.torproject.org
[D] Adding {'url': 'http://www.torproject.org', 'headers': {'User-Agent': ['Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6']}, 'body': None, 'method': 'GET', 'tor': {'is_tor': True}} to report
[D] Task <ooni.tasks.Measurement object at 0x7fd8ce5b71d0> has failed 1 times
Traceback (most recent call last):
Failure: twisted.internet.error.TimeoutError: User timeout caused connection failure.
[D] Rescheduling...
Performing GET request to http://www.torproject.org over Tor
[D] Using Tor for the request to http://www.torproject.org
[D] Performing request http://www.torproject.org GET {'User-Agent': ['Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2) Gecko/20100115 Firefox/3.6']}
Unhandled Error
Traceback (most recent call last):
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/pkg_resources.py", line 1434, in run_script
    execfile(script_filename, namespace, namespace)
  File "/home/user/.virtualenvs/ooniprobe-env/lib/python2.7/site-packages/ooniprobe-1.0.2-py2.7.egg/EGG-INFO/scripts/ooniprobe", line 21, in <module>
    reactor.run()
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/base.py", line 1192, in run
    self.mainLoop()
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/base.py", line 1201, in mainLoop
    self.runUntilCurrent()
--- <exception caught here> ---
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/base.py", line 824, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 424, in resolveAddress
    self._setRealAddress(self.addr)
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 439, in _setRealAddress
    self.doConnect()
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 568, in doConnect
    connectResult = self.socket.connect_ex(self.realAddress)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
exceptions.TypeError: an integer is required        
    return getattr(self._sock,name)(*args)
exceptions.TypeError: an integer is required

[!] Error performing torified request: http://www.torproject.org
[D] Adding {'url': 'http://www.torproject.org', 'headers': {'User-Agent': ['Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2) Gecko/20100115 Firefox/3.6']}, 'body': None, 'method': 'GET', 'tor': {'is_tor': True}} to report
[D] Task <ooni.tasks.Measurement object at 0x7fd8ce5b71d0> has failed 2 times
Traceback (most recent call last):
Failure: twisted.internet.error.TimeoutError: User timeout caused connection failure.
[D] Rescheduling...
Performing GET request to http://www.torproject.org over Tor
[D] Using Tor for the request to http://www.torproject.org
[D] Performing request http://www.torproject.org GET {'User-Agent': ['Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2) Gecko/20100115 Firefox/3.6']}
Unhandled Error
Traceback (most recent call last):
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/pkg_resources.py", line 1434, in run_script
    execfile(script_filename, namespace, namespace)
  File "/home/user/.virtualenvs/ooniprobe-env/lib/python2.7/site-packages/ooniprobe-1.0.2-py2.7.egg/EGG-INFO/scripts/ooniprobe", line 21, in <module>
    reactor.run()
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/base.py", line 1192, in run
    self.mainLoop()
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/base.py", line 1201, in mainLoop
    self.runUntilCurrent()
--- <exception caught here> ---
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/base.py", line 824, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 424, in resolveAddress
    self._setRealAddress(self.addr)
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 439, in _setRealAddress
    self.doConnect()
  File "/home/user/.virtualenvs/ooniprobe-env/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 568, in doConnect
    connectResult = self.socket.connect_ex(self.realAddress)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
exceptions.TypeError: an integer is required

[!] Error performing torified request: http://www.torproject.org
[D] Adding {'url': 'http://www.torproject.org', 'headers': {'User-Agent': ['Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2) Gecko/20100115 Firefox/3.6']}, 'body': None, 'method': 'GET', 'tor': {'is_tor': True}} to report
[D] Task <ooni.tasks.Measurement object at 0x7fd8ce5b71d0> has failed 3 times
Traceback (most recent call last):
Failure: twisted.internet.error.TimeoutError: User timeout caused connection failure.
[D] Permanent failure for <ooni.tasks.Measurement object at 0x7fd8ce5b71d0>
[D] Failed doing measurement: <ooni.tasks.Measurement object at 0x7fd8ce5b71d0>
[D] Starting this task <ooni.tasks.ReportEntry object at 0x7fd8cb86d950>
[D] Writing report with YAML reporter    
[D] Successfully performed report <ooni.tasks.ReportEntry object at 0x7fd8cb86d950>
[D] None
[D] Checking all tasks for completion 1 == 2
[D] Checking all tasks for completion 2 == 2
Main loop terminated.
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#12867