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

cuckoomx.py is not logging #1

Open
garanews opened this issue Apr 6, 2016 · 8 comments
Open

cuckoomx.py is not logging #1

garanews opened this issue Apr 6, 2016 · 8 comments

Comments

@garanews
Copy link

garanews commented Apr 6, 2016

Running the scritp also with "--debug" the cuckoomx.log is empty.

@88d52bdba0366127fffca9dfa93895
Copy link
Owner

Can you confirm that mongodb is running and listening on a correct host:port?

@garanews
Copy link
Author

garanews commented Apr 6, 2016

yes it is running.
is correct that this is a new db and not need to read the currend cuckoo db?
I was wondering about a mispelling in config file?
[mongodb]
db = cuckoomx

vs

[mongodb]
db = cuckoo

What is the [cuckoo] setting?
The current cuckoo db or another db ?
Does support mysql as the cuckoo supports? (I commented your row for this one)

[cuckoo]
#db = cuckoo
db = mysql://user:pwd@1.2.3.4/cuckoo

@garanews
Copy link
Author

garanews commented Apr 6, 2016

anyway mongo is reachable, the cuckoomx db appears;

show dbs
cuckoo 32.984130859375GB
cuckoomx 0.0625GB
local 0.03125GB
test (empty)

@garanews
Copy link
Author

garanews commented Apr 6, 2016

for your info, I found and modified manually the 127.0.0.1 to real mongo db IP in these 2 files:
./lib/cuckoomx/core/checking.py: host = cfg.mongodb.get("host", "1.2.3.4")
./lib/cuckoomx/core/databasemx.py: host = cfg.mongodb.get("host", "1.2.3.4")

But still not working and not logging.

Is supported postfix or just zimbra?

@88d52bdba0366127fffca9dfa93895
Copy link
Owner

FYI, mongodb section in config is a new database for cuckoomx

[mongodb] host = 127.0.0.1 port = 27017 db = cuckoomx

and cuckoo section is your current cuckoo database, because it still need to query some info from the cuckoo database, and I'm sorry I cannot support MySQL.

Is supported postfix or just zimbra?

I dont test with postfix but I believe it will working.

I think maybe your process dont have permission to write to a log file; in my test, with a 'fresh' project, it work fine. You can clean and re-run process:

python2.7 cuckoomx.py --clean

it will drop the cuckoomx database in mongodb and remove the log file, after that you can re-run

python2.7 cuckoomx.py --debug

Hope this help you.

@garanews
Copy link
Author

garanews commented Apr 7, 2016

I tried to clean and start again, same result.
Where you query the current cuckoo db? I didn't find in code.
I would write something to support mysql...

@88d52bdba0366127fffca9dfa93895
Copy link
Owner

Hum, where do you store this project? you could debug this issue in here

anw, query the current cuckoo db in here

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

3 participants
@88d52bdba0366127fffca9dfa93895 @garanews and others