Closed Bug 1524620 Opened 6 years ago Closed 6 years ago

Unable to download 'mitmdump-win-2.0.2.zip' that was uploaded to tooltool

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rwood, Unassigned)

References

Details

I am trying to upload a zip file ('mitmdump-win-2.0.2.zip', which contains 'mitmdump.exe') to tooltool but having no success. I am using the exact same method to upload as I have been using for other files that uploaded fine.

The tooltool upload command appears to work fine and in the terminal it indicates the file as uploaded just fine.

The file does show up on tooltool [1] when I search for 'mitmdump', but when I do a tooltool fetch it fails to download:

Roberts-MacBook-Pro-1927:build-tooltool rwood$ python tooltool.py fetch -m ../Documents/ToolTool/uploaded/mitmdump-win-2.0.2-manifest.tt
INFO - Attempting to fetch from 'https://tooltool.mozilla-releng.net/'...
INFO - ...failed to fetch 'mitmdump-win-2.0.2.zip' from https://tooltool.mozilla-releng.net/
Traceback (most recent call last):
File "tooltool.py", line 480, in fetch_file
f = urllib2.urlopen(req)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: NOT FOUND
ERROR - The following files failed: 'mitmdump-win-2.0.2.zip'

I have tried it a few times (changing the zip name) but still the same problem each time. Any help would be appreciated, thanks!

[1] https://mozilla-releng.net/tooltool/

:garbas this is blocking us on uploading new tests for raptor. Can someone take a look over this?

Flags: needinfo?(rgarbas)

Looks like the worker stopped working properly:

2019-02-05T17:52:43.650307+00:00 heroku[worker.1]: State changed from crashed to starting

2019-02-05T17:52:52.121388+00:00 heroku[worker.1]: Starting process with command /bin/flask worker

2019-02-05T17:52:52.882610+00:00 heroku[worker.1]: State changed from starting to up

2019-02-05T17:52:58.511089+00:00 app[worker.1]: 2019-02-05 17:52.58 Initializing app=tooltool_api

2019-02-05T17:52:58.775620+00:00 app[worker.1]: 2019-02-05 17:52.58 Initializing extension app=tooltool/api extension=log

2019-02-05T17:52:58.977457+00:00 app[worker.1]: backend_common.db: No migrations: creating full DB (app='tooltool/api')

2019-02-05T17:53:00.045084+00:00 app[worker.1]: Traceback (most recent call last):

2019-02-05T17:53:00.045101+00:00 app[worker.1]: File "/nix/store/k37ffcbhj5myaqr84r49kyf2pgadjx1d-python3.7-Flask-1.0.2/bin/.flask-wrapped", line 12, in <module>

2019-02-05T17:53:00.045103+00:00 app[worker.1]: sys.exit(main())

2019-02-05T17:53:00.045105+00:00 app[worker.1]: File "/nix/store/k37ffcbhj5myaqr84r49kyf2pgadjx1d-python3.7-Flask-1.0.2/lib/python3.7/site-packages/flask/cli.py", line 894, in main

2019-02-05T17:53:00.045107+00:00 app[worker.1]: cli.main(args=args, prog_name=name)

2019-02-05T17:53:00.045109+00:00 app[worker.1]: File "/nix/store/k37ffcbhj5myaqr84r49kyf2pgadjx1d-python3.7-Flask-1.0.2/lib/python3.7/site-packages/flask/cli.py", line 557, in main

2019-02-05T17:53:00.045111+00:00 app[worker.1]: return super(FlaskGroup, self).main(*args, **kwargs)

2019-02-05T17:53:00.045113+00:00 app[worker.1]: File "/nix/store/yzxb85gg93iw1ws0d64jzmz2mkqw0rrp-python3.7-Click-7.0/lib/python3.7/site-packages/click/core.py", line 717, in main

2019-02-05T17:53:00.045114+00:00 app[worker.1]: rv = self.invoke(ctx)

2019-02-05T17:53:00.045116+00:00 app[worker.1]: File "/nix/store/yzxb85gg93iw1ws0d64jzmz2mkqw0rrp-python3.7-Click-7.0/lib/python3.7/site-packages/click/core.py", line 1135, in invoke

2019-02-05T17:53:00.045118+00:00 app[worker.1]: sub_ctx = cmd.make_context(cmd_name, args, parent=ctx)

2019-02-05T17:53:00.045120+00:00 app[worker.1]: AttributeError: 'function' object has no attribute 'make_context'

2019-02-05T17:53:00.045129+00:00 app[worker.1]: Sentry is attempting to send 1 pending error messages

2019-02-05T17:53:00.045131+00:00 app[worker.1]: Waiting up to 10 seconds

2019-02-05T17:53:00.045133+00:00 app[worker.1]: Press Ctrl-C to quit

2019-02-05T17:53:00.212371+00:00 heroku[worker.1]: Process exited with status 1

2019-02-05T17:53:00.243033+00:00 heroku[worker.1]: State changed from up to crashed

Looks like that PR helped. I deployed it to Heroku from the testing branch.

Looks like downloads work now.

Thanks all

Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(rgarbas)
Resolution: --- → FIXED
Component: Applications: ToolTool → General
You need to log in before you can comment on or make changes to this bug.