Comments (4)
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.
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/adllrs_dev/ADL_LRS$ deactivate
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:
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.
I got it. It's my keyboad issue. missing "r" character from my settings. I am in now
from adl_lrs.
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)
- Ascending=false returning statements in ascending order.
- Unable to use the ADL_LRS API from an example_script based on TinCanPython HOT 2
- S3 Storage Option for Media files HOT 2
- Support proxy https (Ex: Amazon ALB) HOT 1
- Installation on Windows HOT 5
- Fatal error: local() encountered an error (return code 1) while executing './manage.py test lrs.tests' HOT 1
- /lrs/req_process.py ,check_activity_metadata.delay(stmt_ids) ,what is delay? HOT 1
- Installation issue HOT 1
- Encounters an error HOT 5
- ModuleNotFoundError: No module named 'ConfigParser'
- SuspiciousFileOperation: Storage can not find an available filename for "activity_state/ HOT 2
- Running in a subpath is not supported HOT 1
- ImportError: cannot import name get_app when Clearing the Database
- Migration plan for python3 due to Python2 EOL already being passed HOT 4
- Postgres Adapter Field Deprecations HOT 1
- Roadmap/Project Status HOT 2
- Project dependencies may have API risk issues
- OAuth 'Could not verify OAuth request'
- Should master branch work? HOT 5
- GET /activites/profile returning incorrect data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adl_lrs.