Git Product home page Git Product logo

Comments (4)

creighton avatar creighton commented on August 17, 2024

After running fab setup_env you need to activate the virtual environment by typing source ../env/bin/activate.
After that your prompt should have something like (env)[email protected]_LRS#.
At that prompt try fab setup_lrs... (env)[email protected]_LRS# fab setup_lrs

from adl_lrs.

bhaskarsai avatar bhaskarsai commented on August 17, 2024

From the following logs, I understand that ADLLRS user doesn't have enough rights, however attempting with ROOT generatede postgres user error. my db user & pwd are "postgres" and database name is LRS. I have set these values properly in setup file. Anything else I am missing here?

FOLLOWING WITH ADLLRS user

(env)adllrs@debian:/adllrs_dev/ADL_LRS$ fab setup_lrs
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Fabric-1.8.3-py2.7.egg/fabric/main.py", line 743, in main
_args, *_kwargs
File "/usr/local/lib/python2.7/dist-packages/Fabric-1.8.3-py2.7.egg/fabric/tasks.py", line 405, in execute
results[''] = task.run(_args, *_new_kwargs)
File "/usr/local/lib/python2.7/dist-packages/Fabric-1.8.3-py2.7.egg/fabric/tasks.py", line 171, in run
return self.wrapped(_args, *_kwargs)
File "/home/adllrs/adllrs_dev/ADL_LRS/fabfile.py", line 34, in setup_lrs
adldir = settings.MEDIA_ROOT
File "/home/adllrs/adllrs_dev/ADL_LRS/../env/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
self._setup()
File "/home/adllrs/adllrs_dev/ADL_LRS/../env/lib/python2.7/site-packages/django/conf/init.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "/home/adllrs/adllrs_dev/ADL_LRS/../env/lib/python2.7/site-packages/django/conf/init.py", line 135, in init
logging_config_func(self.LOGGING)
File "/usr/lib/python2.7/logging/config.py", line 777, in dictConfig
dictConfigClass(config).configure()
File "/usr/lib/python2.7/logging/config.py", line 575, in configure
'%r: %s' % (name, e))
ValueError: Unable to configure handler 'default': [Errno 13] Permission denied: '/home/adllrs/adllrs_dev/logs/django_request.log'
(env)adllrs@debian:
/adllrs_dev/ADL_LRS$ deactivate

FOLLOWING IS WITH ROOT:

root@debian:/home/adllrs/adllrs_dev/ADL_LRS# source ../env/bin/activate
(env)root@debian:/home/adllrs/adllrs_dev/ADL_LRS# fab setup_lrs
[localhost] local: ./manage.py createcachetable cache_statement_list
Traceback (most recent call last):
File "./manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/core/management/init.py", line 443, in execute_from_command_line
utility.execute()
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/core/management/init.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(_args, *_options.dict)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
output = self.handle(_args, *_options)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 341, in handle
label_output = self.handle_label(label, **options)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/core/management/commands/createcachetable.py", line 54, in handle_label
curs = connection.cursor()
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/db/backends/init.py", line 306, in cursor
cursor = self.make_debug_cursor(self._cursor())
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 177, in _cursor
self.connection = Database.connect(**conn_params)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/psycopg2/init.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
psycopg2.OperationalError: FATAL: password authentication failed for user "postgres"
FATAL: password authentication failed for user "postgres"

Fatal error: local() encountered an error (return code 1) while executing './manage.py createcachetable cache_statement_list'

Aborting.

from adl_lrs.

bhaskarsai avatar bhaskarsai commented on August 17, 2024

I got it. It's my keyboad issue. missing "r" character from my settings. I am in now

from adl_lrs.

bhaskarsai avatar bhaskarsai commented on August 17, 2024

Can some one please look into the following: I guess this is the last step, uid and pwd worked until now, not sure what is happening now.

FAB TEST_LRS failed [PGADMIN III IS OPEN AND SUCCESSFULLY RUNNING]

(env)root@debian:/home/adllrs/adllrs_dev/ADL_LRS# fab test_lrs
[localhost] local: ./manage.py test lrs
Creating test database for alias 'default'...
Traceback (most recent call last):
File "./manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/core/management/init.py", line 443, in execute_from_command_line
utility.execute()
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/core/management/init.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 49, in run_from_argv
super(Command, self).run_from_argv(argv)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(_args, *_options.dict)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
output = self.handle(_args, *_options)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 72, in handle
failures = test_runner.run_tests(test_labels)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/test/simple.py", line 381, in run_tests
old_config = self.setup_databases()
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/test/simple.py", line 317, in setup_databases
self.verbosity, autoclobber=not self.interactive)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/db/backends/creation.py", line 256, in create_test_db
self._create_test_db(verbosity, autoclobber)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/db/backends/creation.py", line 321, in _create_test_db
cursor = self.connection.cursor()
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/db/backends/init.py", line 308, in cursor
cursor = util.CursorWrapper(self._cursor(), self)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 177, in _cursor
self.connection = Database.connect(**conn_params)
File "/home/adllrs/adllrs_dev/env/local/lib/python2.7/site-packages/psycopg2/init.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
psycopg2.OperationalError: FATAL: password authentication failed for user "postgres"
FATAL: password authentication failed for user "postgres"

Fatal error: local() encountered an error (return code 1) while executing './manage.py test lrs'

Aborting.

from adl_lrs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.