python manage.py migrate --noinput command output

376 views
Skip to first unread message

psa...@smartsight.in

unread,
Jul 24, 2017, 8:07:41 AM7/24/17
to taigaio
Hi,

 I am following instruction from this link - https://taigaio.github.io/taiga-doc/dist/setup-production.html

Everything is gone well up to step - "Install dependencies" 

at the step when we do - Populate the database with initial basic data using below commands -:
python manage.py migrate --noinput
python manage.py loaddata initial_user
python manage.py loaddata initial_project_templates
python manage.py compilemessages
python manage.py collectstatic --noinput

For all above command I am getting - :
Trying import local.py settings...
Trying import development.py settings...
Traceback (most recent call last):
  File "/home/ubuntu/.virtualenvs/taiga/lib/python3.5/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
    self.connect()
  File "/home/ubuntu/.virtualenvs/taiga/lib/python3.5/site-packages/django/db/backends/base/base.py", line 171, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/home/ubuntu/.virtualenvs/taiga/lib/python3.5/site-packages/django/db/backends/postgresql/base.py", line 176, in get_new_connection
    connection = Database.connect(**conn_params)
  File "/home/ubuntu/.virtualenvs/taiga/lib/python3.5/site-packages/psycopg2/__init__.py", line 130, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: FATAL:  role "ubuntu" does not exist


Kindly let me know what is that causing me this massage.

Thanks 
Pushkar 

psa...@smartsight.in

unread,
Jul 25, 2017, 12:49:02 AM7/25/17
to taigaio, psa...@smartsight.in
Hey,
 
I got it, My problem is because of  user I am login.

Taiga usages logged in user and my user "Ubuntu" is not created in postgres.

As I created the Ubuntu user in postgres all went well.

Alejandro Alonso

unread,
Jul 25, 2017, 1:04:51 AM7/25/17
to psa...@smartsight.in, taigaio
Great! :)

--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+unsubscribe@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/bc43a48c-7b49-4fea-b6ce-9b5ebf859fec%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

  
Alejandro Alonso Fernández
CIO & Co-founder
www.kaleidos.net/FC8EAC/

psa...@smartsight.in

unread,
Jul 25, 2017, 1:11:24 AM7/25/17
to taigaio, psa...@smartsight.in
Yes,
But now at he time of Verification I run the following command as per document -:

workon taiga
python manage.py runserver

Output is -:
Trying import local.py settings...
Trying import local.py settings...
Performing system checks...
System check identified no issues (0 silenced).
July 25, 2017 - 04:21:50
Django version 1.10.6, using settings 'settings'
Starting development server at http://127.0.0.1:8000/

But when I try to access the http://localhost:8000/api/v1/ . in my case http://52.168.132.47:8000/api/v1
it dose not show any thing. I can not browser with localhost as I am doing this setup on Azure Cloud VM.

Kindly shade some light on this.
Great! :)

To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.

To post to this group, send email to tai...@googlegroups.com.

Alejandro Alonso

unread,
Jul 25, 2017, 1:23:09 AM7/25/17
to psa...@smartsight.in, taigaio
It's because you are running taiga in development mode, "python manage.py runserver" will only listen to localhost. If you need to test the runserver commando with a public ip you should execute something like "python manage.py runserver 0.0.0.0:8000"

Regards,

To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+unsubscribe@googlegroups.com.

To post to this group, send email to tai...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages