cuckoosandbox / cuckoo

Cuckoo Sandbox is an automated dynamic malware analysis system
http://www.cuckoosandbox.org
Other
5.56k stars 1.7k forks source link

Errno 30 - Function not implemented in Database #622

Closed jhg closed 9 years ago

jhg commented 9 years ago
'Database' object has no attribute 'engine'" in <bound method Database.__del__ of <lib.cuckoo.core.database.Database object at 0x8ff70b115b10>>
jbremer commented 9 years ago

Can you provide us with the sqlalchemy version you're using, which line this error occurs, etc etc?

jbremer commented 9 years ago

Closing this issue as proper information is lacking (and this bug seems very unlikely to me).

jbremer commented 9 years ago

Ran into the same issue by accident. Please paste the full stacktrace next time ;-)

jhg commented 9 years ago

@jbremer I read it now, sorry, next time I paste full stacktrace :D

srishti-agarwal commented 8 years ago

@jbremer I am running into the issue Traceback (most recent call last): File "./cuckoo.py", line 20, in from lib.cuckoo.core.scheduler import Scheduler File "/home/cuckoo/cuckoo/lib/cuckoo/core/scheduler.py", line 21, in from lib.cuckoo.core.guest import GuestManager File "/home/cuckoo/cuckoo/lib/cuckoo/core/guest.py", line 28, in db = Database() File "/home/cuckoo/cuckoo/lib/cuckoo/common/utils.py", line 206, in call cls._instances[cls] = super(Singleton, cls).call(_args, *_kwargs) File "/home/cuckoo/cuckoo/lib/cuckoo/core/database.py", line 386, in init raise CuckooDatabaseError("Unable to create database directory: {0}".format(e)) lib.cuckoo.common.exceptions.CuckooDatabaseError: Unable to create database directory: Unable to create folder: /home/cuckoo/cuckoo/db Exception AttributeError: "'Database' object has no attribute 'engine'" in <bound method Database.del of <lib.cuckoo.core.database.Database object at 0xb5bd6cac>> ignored

ikennarene commented 7 years ago

rene@malware:~/cuckoo$ python cuckoo.py Traceback (most recent call last): File "cuckoo.py", line 20, in from lib.cuckoo.core.scheduler import Scheduler File "/home/rene/cuckoo/lib/cuckoo/core/scheduler.py", line 21, in from lib.cuckoo.core.guest import GuestManager File "/home/rene/cuckoo/lib/cuckoo/core/guest.py", line 28, in db = Database() File "/home/rene/cuckoo/lib/cuckoo/common/utils.py", line 206, in call cls._instances[cls] = super(Singleton, cls).call(*args, **kwargs) File "/home/rene/cuckoo/lib/cuckoo/core/database.py", line 386, in init raise CuckooDatabaseError("Unable to create database directory: {0}".format(e)) lib.cuckoo.common.exceptions.CuckooDatabaseError: Unable to create database directory: Unable to create folder: /home/rene/cuckoo/db Exception AttributeError: "'Database' object has no attribute 'engine'" in <bound method Database.del of <lib.cuckoo.core.database.Database object at 0x7fa637d0d210>> ignored

can i get help

doomedraven commented 7 years ago

provide answers to second comment here plz

jbremer commented 7 years ago

First of all, please upgrade to 2.0-rc2 as per http://cuckoosandbox.org/ Secondly, please fill out the configuration correctly - you're missing the [database] section in cuckoo.conf.

ikennarene commented 7 years ago

@jbremer thanks.

The next problem i face now. When i run python cuckoo.py, i get [root] CRITICAL: CuckooCriticalError: Unable to import plugin "modules.processing.behavior": No module named dateutil.parser

doomedraven commented 7 years ago

https://github.com/cuckoosandbox/cuckoo/blob/master/requirements.txt#L30 you have missed deps

ikennarene commented 7 years ago

@doomedraven , can i get a guide , thanks

doomedraven commented 7 years ago

read it -> http://docs.cuckoosandbox.org/en/latest/installation/host/requirements/

In order to properly function, Cuckoo requires some dependencies. They can all be installed through PyPI like this:

$ sudo pip install -r requirements.txt
ikennarene commented 7 years ago

Could not find .egg-info directory in install record for Pillow==3.2.0 (from peepdf==0.3.2->-r requirements.txt (line 23)) Running setup.py install for pythonaes

Could not find .egg-info directory in install record for pythonaes==1.0 (from peepdf==0.3.2->-r requirements.txt (line 23)) Successfully installed Pillow pythonaes Cleaning up...

ikennarene commented 7 years ago

any idea on this

Cuckoo Sandbox 2.0-rc2 www.cuckoosandbox.org Copyright (c) 2010-2015

Checking for updates... Good! You have the latest version available.

2016-11-25 11:11:15,422 [lib.cuckoo.core.scheduler] INFO: Using "virtualbox" as machine manager Oops! Cuckoo failed in an unhandled exception! Sometimes bugs are already fixed in the development release, it is therefore recommended to retry with the latest development release available https://github.com/cuckoosandbox/cuckoo If the error persists please open a new issue at https://github.com/cuckoosandbox/cuckoo/issues

=== Exception details === Cuckoo version: 2.0-rc2 OS version: posix OS release: Ubuntu 14.04 trusty Python version: 2.7.6 Machine arch: x86_64

Traceback (most recent call last): File "cuckoo.py", line 122, in cuckoo_main(max_analysis_count=args.max_analysis_count) File "cuckoo.py", line 93, in cuckoo_main sched.start() File "/home/rene/cuckoo/lib/cuckoo/core/scheduler.py", line 670, in start self.initialize() File "/home/rene/cuckoo/lib/cuckoo/core/scheduler.py", line 615, in initialize machinery.initialize(machinery_name) File "/home/rene/cuckoo/lib/cuckoo/common/abstracts.py", line 94, in initialize self._initialize(module_name) File "/home/rene/cuckoo/lib/cuckoo/common/abstracts.py", line 118, in _initialize machine.platform = machine_opts["platform"] KeyError: 'platform'

jbremer commented 7 years ago

@ikennarene You're missing the platform configuration value in your virtualbox.conf.

ikennarene commented 7 years ago

@jbremer @doomedraven Thanks alot.

This is my recent issue, after analysis and i click on Network Analysis , i get the below error. I have tried to install httpreplay, but still have the error.

Deprecation note: While processing this analysis you did not have the httpreplay Python library installed. Installing this library (i.e., pip install httpreplay) will allow Cuckoo to do more proper PCAP analysis including but not limited to showing full HTTP and HTTPS (!) requests and responses. It is recommended that you install this library and possibly reprocess any interesting analysis tasks.

doomedraven commented 7 years ago

is nto error, just warning, and that is solved in package branch, so just ignore it if you installed dependencies from requieremnt.txt

ikennarene commented 7 years ago

thanks, but am not able to run PCAP file. and i get this error under information on execution:
Error: Machinery error: VBoxManage exited with error restoring the machine's snapshot

doomedraven commented 7 years ago

What do you mean run pcap? Can you verify manusaly what you can restore snapshot and it in runned state and communication with vm works with curl vmip:8000 you should get error 50x

ikennarene commented 7 years ago

pcap file. I have some malware file with pcap extension and all are in zip file, so when import it into cuckoo i get the warning (Deprecation note: While processing this analysis you did not have the httpreplay Python library installed. Installing this library (i.e., pip install httpreplay) will allow Cuckoo to do more proper PCAP analysis including but not limited to showing full HTTP and HTTPS (!) requests and responses. It is recommended that you install this library and possibly reprocess any interesting analysis tasks.), thats why i want to know if there is a way to solve the warning.

Also, i want to enable malheur in my reporting.conf, i already enable = yes, but i still not getting result for malheur

doomedraven commented 7 years ago

don't care about this, i told is solved in package and is not a bug and error, is just warning Deprecation note: While processing this analysis you did not have the httpreplay Python library installed. Installing this library (i.e., pip install httpreplay) will allow Cuckoo to do more proper PCAP analysis including but not limited to showing full HTTP and HTTPS (!) requests and responses. It is recommended that you install this library and possibly reprocess any interesting analysis tasks.

cuckoo v2 not support pcap analysis

ikennarene commented 7 years ago

just started seeing this error after using cuckoo yesterday and working fine.

ERROR :-( Error adding task to Cuckoo's database.