crits / crits

CRITs - Collaborative Research Into Threats
https://crits.github.io
Other
892 stars 259 forks source link

[SOLVED]Cannot upload screenshot #623

Closed affvei closed 9 years ago

affvei commented 9 years ago

Add screenshot widget says: Error uploading file.

Screenshot: https://i.imgur.com/HdNfjkq.png

webstergd commented 9 years ago

Are you doing this though the API or web interface? Can you provide additional logs for this issue. I assume this is a dependency or misconfig and I need those details to help you further.

Sent from my iPhone

On 14 Oct 2015, at 21:43, affvei notifications@github.com wrote:

Add screenshot widget says: Error uploading file.

— Reply to this email directly or view it on GitHub.

affvei commented 9 years ago

It is from web interface. Is this path correct? /crits/logs/crits.log

WARNING 2015-10-15 13:10:17,507 crits.services.core Failed to import service (shodan_service): No module named shodan
WARNING 2015-10-15 13:10:17,508 crits.services.core Failed to import service (pyinstaller_service): No module named PyInstaller.cliutils.archive_viewer
WARNING 2015-10-15 13:10:17,545 crits.services.core Failed to import service (whois_service): No module named pythonwhois
WARNING 2015-10-15 13:10:17,555 crits.services.core Failed to import service (unswf_service): No module named pylzma
WARNING 2015-10-15 13:10:17,558 crits.services.core Failed to import service (pdfinfo_service): No module named numpy
WARNING 2015-10-15 13:10:17,559 crits.services.core Failed to import service (ssdeep_service): No module named pydeep
WARNING 2015-10-15 13:10:17,561 crits.services.core Failed to import service (chminfo_service): No module named chm
WARNING 2015-10-15 13:10:17,562 crits.services.core Failed to import service (clamd_service): No module named pyclamd
WARNING 2015-10-15 13:10:19,368 crits.services.core Failed to import service (peinfo_service): No module named pefile
WARNING 2015-10-15 13:10:20,103 crits.services.core Failed to import service (shodan_service): No module named shodan
WARNING 2015-10-15 13:10:20,105 crits.services.core Failed to import service (pyinstaller_service): No module named PyInstaller.cliutils.archive_viewer
WARNING 2015-10-15 13:10:20,140 crits.services.core Failed to import service (whois_service): No module named pythonwhois
WARNING 2015-10-15 13:10:20,150 crits.services.core Failed to import service (unswf_service): No module named pylzma
WARNING 2015-10-15 13:10:20,153 crits.services.core Failed to import service (pdfinfo_service): No module named numpy
WARNING 2015-10-15 13:10:20,154 crits.services.core Failed to import service (ssdeep_service): No module named pydeep
WARNING 2015-10-15 13:10:20,156 crits.services.core Failed to import service (chminfo_service): No module named chm
WARNING 2015-10-15 13:10:20,157 crits.services.core Failed to import service (clamd_service): No module named pyclamd
WARNING 2015-10-15 13:10:21,668 crits.services.core Failed to import service (peinfo_service): No module named pefile
apolkosnik-old commented 9 years ago

Looks like you need to install dependencies for each of those services (there's DEPENDENCIES file in each *_service folder)

affvei commented 9 years ago

to upload a screenshot to a campaign ?

affvei commented 9 years ago

Anyone?

affvei commented 9 years ago

My problem was solved doing this

pip uninstall PIL
pip install pillow
mgoffin commented 9 years ago

Just to note for anyone to comes to see this, Pillow is a required python package and is in the requirements.txt file.

apolkosnik-old commented 9 years ago

and on ubuntu one needs to install shedload of -dev packages for image formats (that is if you want the preview_service to work properly)