Open gbdavidx opened 7 years ago
output of netstat -tupln shows 127.0.0.1:27017 running mongod (obviously mongodb) so it is running!
can you please supply the entire errror ths will help more the command line you should be using if this is the package version of cuckoo eg installed with pip install cuckoo etc is as follows
cuckoo web -H 127.0.0.1 -p 8000 this will bind to 127.0.0.1 and port 8000.
Again please supply the entire error which is supplied on the screen you can just cut and paste it into there.
Cheers
I appreciate the response, but that does not work
i did indeed use pip install cuckoo, i'm using version 2.0.3
Error: in order to use the cuckoo web interface it is required to have MongoDB up-and-running and enabled in Cuckoo. PLease refer to our official documentation as well as the $CWD/conf/reporting.conf file.
http://docs.cuckoosandbox.org/en/latest/installation/host/configuration/#reporting-conf doesn't say much on how to turn on the web services, what i have provided above is what i have by googling from other analysts.
Going to try out version 2.0.0 since i can't get this to work on 2.0.3 after reading almost everything online
you could install the alpha sudo pip install cuckoo==2.0.4a5
apparently it doesn't work on 2.0.0 so this is a major issue across all releases
Sounds like something is wrong with your version of MongoDB, though, as the Web Interface works for everyone else :-) What version of MongoDB are you running? Can you connect manually to it using the mongo
command-line utliity? etc.
i am using 2.6.11 i can connect if i do mongo and then it connects to a test database
it is an issue if the dbpath=/data/db 64-bit host =david-virtualbox, per the documantion is said to create a cuckoo user
can you post your reporting.conf file please. (the entire thing)
[feedback]
enabled = no
[jsondump] enabled = yes indent = 4 calls = yes
[singlefile]
enabled = no
html = no
pdf = no
[misp] enabled = no url = apikey =
mode = maldoc ipaddr hashes url
[mongodb] enabled = yes host = {{ reporting.mongodb.host }} port = {{ reporting.mongodb.port }} db = {{ reporting.mongodb.db }} store_memdump = {{ reporting.mongodb.store_memdump }} paginate = {{ reporting.mongodb.paginate }}
username = {{ reporting.mongodb.username }} password = {{ reporting.mongodb.password }}
[elasticsearch] enabled = no
timeout = 300
calls = no
index = cuckoo
index_time_pattern = yearly
cuckoo_node =
[moloch] enabled = no
host =
insecure = no
moloch_capture = /data/moloch/bin/moloch-capture conf = /data/moloch/etc/config.ini instance = cuckoo
[notification]
enabled = no
url =
identifier =
[mattermost] enabled = no
url =
myurl =
username = cuckoo
show_virustotal = no
show_signatures = no
show_urls = no
hash_filename = no
hash_url = no
And my mongodb status: hopefully this helps (venv) david@david-VirtualBox:/opt/cuckoo/conf$ service mongodb status ● mongodb.service - An object/document-oriented database Loaded: loaded (/lib/systemd/system/mongodb.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2017-07-21 16:27:24 PDT; 2 days ago Docs: man:mongod(1) Main PID: 15329 (mongod) Tasks: 10 (limit: 4915) CGroup: /system.slice/mongodb.service └─15329 /usr/bin/mongod --unixSocketPrefix=/run/mongodb --config /etc/mongodb.conf
Jul 21 16:27:24 david-VirtualBox systemd[1]: Started An object/document-oriented database.
Sorry guy, i figured out the issue, i did a locate -i reporting.conf and found four diffirent versions, i updated one of them and it appeared to have solved the issue, looks like i need some course on how to use linux lol
great :) thats awesome you can close the ticket :)
On Tue, Jul 25, 2017 at 5:55 AM, gbdavidx notifications@github.com wrote:
Sorry guy, i figured out the issue, i did a locate -i reporting.conf and found four diffirent versions, i updated one of them and it appeared to have solved the issue, looks like i need some course on how to use linux lol
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cuckoosandbox/cuckoo/issues/1724#issuecomment-317503402, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ_imISdNx7F1ho6tEmxBNaZaGadrL5Nks5sRNqngaJpZM4Oefwe .
Please help me .....i am having same issue but ... this .....locate -i reporting.conf ..... gave me single file location ...
ls -lah $HOME/.cuckoo/
check for config directory there
2018-03-21 15:27:36,414 [werkzeug] INFO: 127.0.0.1 - - [21/Mar/2018 15:27:36] "GET / HTTP/1.1" 404 - i have installed cuckoo now i'm using cuckoo api when i open http://localhost:8090 i get 404 not found and in the command line i got below response when i run cuckoo api 2018-03-21 15:27:36,414 [werkzeug] INFO: 127.0.0.1 - - [21/Mar/2018 15:27:36] "GET / HTTP/1.1" 404 -
if you run on localhost you won't be able to connect from remote host, use -H 0.0.0.0
/home/ubuntu# ls -lah $HOME/.cuckoo total 104K drwxr-sr-x 17 root root 4.0K Mar 21 10:17 . drwx------ 17 root root 4.0K Mar 21 10:17 .. drwxr-sr-x 2 root root 4.0K Mar 21 08:19 agent drwxr-sr-x 6 root root 4.0K Mar 21 08:19 analyzer drwxr-sr-x 2 root root 4.0K Mar 21 10:17 conf -rw-r--r-- 1 root root 20K Mar 21 10:17 cuckoo.db -rw-r--r-- 1 root root 40 Mar 21 10:17 .cwd drwxr-sr-x 2 root root 4.0K Mar 21 08:19 distributed drwxr-sr-x 2 root root 4.0K Mar 21 08:19 elasticsearch -rw-r--r-- 1 root root 163 Dec 7 15:31 init.py drwxr-sr-x 2 root root 4.0K Mar 21 10:17 log drwxr-sr-x 3 root root 4.0K Mar 21 08:19 monitor drwxr-sr-x 2 root root 4.0K Mar 21 10:17 pidfiles drwxr-sr-x 9 root root 4.0K Mar 21 08:19 signatures drwxr-sr-x 5 root root 4.0K Mar 21 08:19 storage drwxr-sr-x 2 root root 4.0K Mar 21 10:17 stuff drwxr-sr-x 2 root root 4.0K Mar 21 08:19 supervisord -rw-r--r-- 1 root root 851 Mar 21 10:17 supervisord.conf drwxr-sr-x 2 root root 4.0K Mar 21 08:19 web drwxr-sr-x 2 root root 4.0K Mar 21 08:19 whitelist drwxr-sr-x 8 root root 4.0K Mar 21 08:19 yara
is this showing that i have mutiple file or else....
in $CWD/conf/reporting.conf file [mongodb] enabled = yes host = 127.0.0.1 port = 27017 db = cuckoo
/home/ubuntu/Cuckoo-2.0.5.3/cuckoo/web# cuckoo web -H 127.0.0.1 -p 27017
In order to use the Cuckoo Web Interface it is required to have MongoDB up-and-running and enabled in Cuckoo. Please refer to our official documentation as well as the $CWD/conf/reporting.conf file.
cuckoo -d is running properly but web interface is not starting .... help me !!!
do you start the web with both need to be executed in parallel
cuckoo web -H 127.0.0.1 -p 8000
# only access from localhost
and cuckoo with ?
cuckoo -d
Is there a reason you are trying to start cuckoo on the mongodb port ? if this machine is running mongo it will not work .
On Thu, Mar 22, 2018 at 6:49 AM, dktanwar notifications@github.com wrote:
in $CWD/conf/reporting.conf file [mongodb] enabled = yes host = 127.0.0.1 port = 27017 db = cuckoo
/home/ubuntu/Cuckoo-2.0.5.3/cuckoo/web# cuckoo web -H 127.0.0.1 -p 27017
In order to use the Cuckoo Web Interface it is required to have MongoDB up-and-running and enabled in Cuckoo. Please refer to our official documentation as well as the $CWD/conf/reporting.conf file.
cuckoo -d is running properly but web interface is not starting .... help me !!!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cuckoosandbox/cuckoo/issues/1724#issuecomment-375036028, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ_imLam5vVl7IGxKWDGF-btbELZSqojks5tgpKrgaJpZM4Oefwe .
@SparkyNZL nice catch :D
thanks mate :)
On Thu, Mar 22, 2018 at 7:59 AM, doomedraven notifications@github.com wrote:
@SparkyNZL https://github.com/sparkynzl nice catch :D
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cuckoosandbox/cuckoo/issues/1724#issuecomment-375059058, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ_imEGFVwEmEKrIZkRpi0-mOLsjvRY0ks5tgqMrgaJpZM4Oefwe .
@idktanwar please read/reread the whole documentation till you understand what are you doing
I was able to get this working by going into $CWD/web/local_settings.py
and uncommenting the ADMINS
section.
test@test-Alienware-13-R2:~/cuckoo/web_android$ python manage.py runserver Performing system checks...
System check identified no issues (0 silenced). January 21, 2020 - 10:46:24 Django version 1.8.4, using settings 'web.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C.
/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/compiler.py:572: SAWarning: Can't resolve label reference 'added_on desc'; converting to text() (this warning may be suppressed after 10 occurrences) util.ellipses_string(element.element))
stack smashing detected : /usr/bin/python terminated Aborted (core dumped)
I get above error message when i start url http://127.0.0.1:8000/ in web-browser.
I had the same problem. MongoDB was running but WebUI was reporting not running. Solution: Enable MongoDB in "reporting.conf" in home directory "~/.cuckoo/". Update cuckoo and run again.
My reporting.conf looks like this: enabled = yes host = 127.0.0.1 port = 27017 db = cuckoo store_memdump = yes paginate = 100
I can start mongodb by issuing command /etc/init.d/mongodb start and get an [ ok ] following on the next line but when i do cuckoo web runserver i get the error: in order to use the cuckoo web interface it is required to have Mongodb up and running and enabled in Cuckoo. ect
What else do i need to configure?