Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on recent pulls #134

Closed
kevoreilly opened this issue Oct 2, 2018 · 14 comments
Closed

Crashes on recent pulls #134

kevoreilly opened this issue Oct 2, 2018 · 14 comments

Comments

@kevoreilly
Copy link
Contributor

There seems to be a couple of issues with some recent changes. I'm seeing this:

NoReverseMatch at /analysis/219/
Reverse for ' file ' with arguments '(u'droppedzip ', 219, u'0f5c19ddfd8238cf862f5036e8c9dab66875ed2b26cbb6c304eca6b2bb33d01e')' and keyword arguments '{}' not found. 0 pattern(s) tried: []

The problem line:
<a href="
{% url " file " "droppedzip " analysis.info.id file.sha256 %}
" class="btn btn-primary btn-small">Download ZIP

Problem is gone on restoring analysis/views.py and the dropped index.html to an older one, looks like the new zip download feature but I haven't had a chance to dig any further.

@doomedraven
Copy link
Contributor

weird i don't have any problem, which version fo django?

@kevoreilly
Copy link
Contributor Author

Hmm possibly quite old - 1.8.4. I will check the public instance later too, it has had troubles but may be on yet another version.

@doomedraven
Copy link
Contributor

thats weird im using the same version

grep -i samplezip . -r <- the sme for dropperdzip
./templates/analysis/overview/_file.html:                    <a class="btn btn-primary btn-small" href="{% url "file" "samplezip" analysis.info.id analysis.target.file.sha256 %}">Download ZIP</a>
Binary file ./analysis/views.pyc matches
./analysis/views.py:    elif category in ("samplezip", "droppedzip"):
./analysis/views.py:        if category == "samplezip":

and this are uniq lines

@kevoreilly
Copy link
Contributor Author

Just updated django to latest, now can't even get the web server running! It is crashing horribly on startup now - think I broke django :(

@doomedraven
Copy link
Contributor

yep the latest django is v2.x and the latest suported was 1.10 i think

@doomedraven
Copy link
Contributor

well mine is

django.VERSION
(1, 10, 4, u'final', 0)

@doomedraven
Copy link
Contributor

can you install this version and see if that works? so we can handcore version in requirements.txt?

@kevoreilly
Copy link
Contributor Author

Yup I'll give that version a go and let you know how I get on - cheers.

@kevoreilly
Copy link
Contributor Author

Hmm still not working:

File "/usr/local/lib/python2.7/dist-packages/ratelimit/middleware.py", line 2, in
from django.utils.importlib import import_module
django.core.exceptions.ImproperlyConfigured: WSGI application 'web.wsgi.application' could not be loaded; Error importing module: 'No module named importlib'

@doomedraven
Copy link
Contributor

 /usr/local/lib/python2.7/dist-packages/ratelimit/middleware.py
try:
    # Django versions >= 1.9
    from django.utils.module_loading import import_module
except ImportError:
    # Django versions < 1.9
    from django.utils.importlib import import_module

@doomedraven
Copy link
Contributor

did you solve it?

@doomedraven
Copy link
Contributor

ok that droppedzip just poped here, fixing

@doomedraven
Copy link
Contributor

ok that was a problem of spaces

@kevoreilly
Copy link
Contributor Author

Yeah all sorted now! Thanks

kevoreilly pushed a commit that referenced this issue Sep 29, 2019
Add signature for packer unknown section name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants