Main (#1) - Installation error using posted instructions (#88) - Message List

Installation error using posted instructions
 unsolved

Attempting to install using posted instructions and I am met with an error here:

<code> sudo ./manage.py syncdb --all Syncing... OperationalError?: FATAL: Peer authentication failed for user "django" </code>

Did I miss something along the way?

  • Message #254

    You command try to synchronize your database with OpenPLM data.

    To do that, it uses the user/password you specified in the file settings.py (DATABASES constants).

    With these user/password OpenPLM try to exchange info with database. Therefore these user/password must correspond with user/password you created when you initialised your database.

    • Message #256

      Those match. Do I need a user account under that name? If so, what privileges does it need?

      Thanks for the reply.

      --Jeff

    • Message #255

      Those match. Do I need a user account under that name? If so, what privileges does it need?

      Thanks for the reply.

      --Jeff

      • Message #257

        You should be able to connect your database out of OpenPLM. When you did that :

        postgres=#create role django with password 'MyPassword' login;
        

        You created a login/password for database.

        Can you connect to database using it ? You can try to answer to your question entering this command :

        # psql -h 127.0.0.1 -d openplm -U django
        
        • Message #258

          I can connect via the command you post both root and non-root. So I am supposed to run the sync command as root, or some other user? The instructions imply postgres, but if it should be root, it isn't clear. I ran the command as postgres in my original post. Perhaps I need to chown or chgrp some files?

Attachments

No attachments created.