freshonions-torscraper icon indicating copy to clipboard operation
freshonions-torscraper copied to clipboard

Issue with connecting to DB

Open ceased-ebc opened this issue 7 years ago • 8 comments

File "/usr/lib/python2.7/site-packages/pony/orm/dbapiprovider.py", line 53, in wrap_dbapi_exceptions except dbapi_module.OperationalError as e: raise OperationalError(e) pony.orm.dbapiprovider.OperationalError: (1045, u"Access denied for user 'xxxx' at 'ip_address' (using password: YES)")

Please advise as can not work out where this is coming from

ceased-ebc avatar Jul 24 '17 17:07 ceased-ebc

basically its saying that access not allow for xxx user from xxxx ip address .. it shows same error for local host too

even the command line connection is working correctly for both localhost and RDS .. it is the script that is failing

ceased-ebc avatar Jul 24 '17 17:07 ceased-ebc

@dirtyfilthy would you mind checking? / advising?

ceased-ebc avatar Jul 25 '17 08:07 ceased-ebc

We are also getting below error if the init scripts moved under torscraper folder and run the cron script /home/scraper/torscraper/scripts/harvest.sh manually.

File "/home/scraper/torscraper/spiders/tor_scrapy.py", line 7, in from tor_db import * ImportError: No module named tor_db

rkshinde avatar Jul 25 '17 08:07 rkshinde

:( @dirtyfilthy please advise

ceased-ebc avatar Jul 25 '17 17:07 ceased-ebc

Erm... hello?

ceased-ebc avatar Jul 26 '17 17:07 ceased-ebc

What do you mean by no module? [https://github.com/dirtyfilthy/freshonions-torscraper/tree/master/lib/tor_db]

harlyh avatar Aug 13 '17 05:08 harlyh

@rkshinde it's because you're not in your virtual env.

@NA-Proiv, what database are you using? Can I see your database config in (torscrap../etc/databse)?

L3houx avatar Feb 22 '18 21:02 L3houx

This is an updated readme file. It can help you : https://github.com/GoSecure/freshonions-torscraper/blob/update-readme/README.md

L3houx avatar Feb 23 '18 22:02 L3houx