← Back to team overview

launchpad-dev team mailing list archive

Re: Problem with user "librarian"

 

I have noticed that many things about LP see to be aged but when that is
what is available it is what people will use.
Anyway, below is a copy of the output from a new setup
michael@michael-RV411-RV511-E3511-S3511-RV711:~/launchpad/lp-branches/devel$
./utilities/launchpad-database-setup michael
<snip>
 * Starting PostgreSQL 9.3 database
server
[ OK ]
Waiting 10 seconds for postgresql to come up...
Creating postgresql user $

Looks like everything went ok.
Now run "make schema" at the top level of the launchpad tree.
michael@michael-RV411-RV511-E3511-S3511-RV711:~/launchpad/lp-branches/devel$
make schema
utilities/shhh.py make -C sourcecode build PYTHON=python2.7 \
        LPCONFIG=development
utilities/shhh.py LPCONFIG=development
/home/michael/launchpad/lp-branches/devel/bin/py -t buildmailman.py
make compile lib/canonical/launchpad/apidoc/index.html
make[1]: Entering directory `/home/michael/launchpad/lp-branches/devel'
utilities/shhh.py make -C sourcecode build PYTHON=python2.7 \
        LPCONFIG=development
utilities/shhh.py LPCONFIG=development
/home/michael/launchpad/lp-branches/devel/bin/py -t buildmailman.py
make[1]: `lib/canonical/launchpad/apidoc/index.html' is up to date.
make[1]: Leaving directory `/home/michael/launchpad/lp-branches/devel'
mkdir build/js/lp
mkdir: cannot create directory ‘build/js/lp’: File exists
make: [build/js/lp] Error 1 (ignored)
mkdir build/js/lp/services
mkdir: cannot create directory ‘build/js/lp/services’: File exists
make: [build/js/lp] Error 1 (ignored)
for jsdir in lib/lp/*/javascript lib/lp/services/*/javascript; do \
        app=$(echo $jsdir | sed -e 's,lib/lp/\(.*\)/javascript,\1,'); \
        cp -a $jsdir build/js/lp/$app; \
    done
find build/js/lp -name 'tests' -type d | xargs rm -rf
bin/lpjsmin -p build/js/lp
utilities/js-deps -n LP_MODULES -s build/js/lp -x '-min.js' -o \
    build/js/lp/meta.js >/dev/null
utilities/check-js-deps
utilities/shhh.py bin/jsbuild \
        --srcdir lib/lp/app/javascript \
        --builddir lib/canonical/launchpad/icing/build
utilities/shhh.py bin/sprite-util create-image
utilities/shhh.py bin/sprite-util create-css
ln -sfn ../../../../build/js/yui-3.10.3 lib/canonical/launchpad/icing/yui
utilities/shhh.py bin/combine-css
make -C database/schema
make[1]: Entering directory
`/home/michael/launchpad/lp-branches/devel/database/schema'
* If this fails you need to run as the postgresql superuser
* eg. sudo -u postgres make create

* Creating database "launchpad_empty".
Traceback (most recent call last):
  File "../../utilities/pgmassacre.py", line 254, in <module>
    sys.exit(main())
  File "../../utilities/pgmassacre.py", line 225, in main
    con = connect()
  File "../../utilities/pgmassacre.py", line 33, in connect
    return psycopg2.connect("dbname=%s" % dbname)
  File
"/home/michael/launchpad/lp-sourcedeps/eggs/psycopg2-2.4.6-py2.7-linux-x86_64.egg/psycopg2/__init__.py",
line 178, in connect
    return _connect(dsn, connection_factory=connection_factory, async=async)
psycopg2.OperationalError: FATAL:  role "michael" does not exist

make[1]: *** [create] Error 1
make[1]: Leaving directory
`/home/michael/launchpad/lp-branches/devel/database/schema'
make: *** [schema] Error 2
michael@michael-RV411-RV511-E3511-S3511-RV711:~/launchpad/lp-branches/devel$

After this happened I manually created the user michael following the
instructions on the site and everything went well with make run until I got
he message "storm.exceptions.DisconnectionError: FATAL:  Peer
authentication failed for user "librarian"


Failed to load application: FATAL:  Peer authentication failed for user
"librarian"

I have tried this a couple of times on 2 different machines. Each time
there has been a different issue and I work through each one but this one
has me stumped. Since I messaged the mailing list I have tried again and
now the process times out waiting for rabbitmq to start which I am assuming
is before the librarian failure.

On 24 September 2015 at 16:00, William Grant <william.grant@xxxxxxxxxxxxx>
wrote:

> On 24/09/15 15:31, Michael . wrote:
> > Hi
> > I've been trying to install Launchpad and have got to "make run" after
> > having to manually create the postgresql database following the
> > instructions at https://dev.launchpad.net/DatabaseSetup because the
> > script behind the command $ ./utilities/launchpad-database-setup $USER
> > did not create a user that $make schema could find.
> >
> > Anyway I have got to make run and it goes through the process until it
> > prints a message saying
> > storm.exceptions.DisconnectionError: FATAL:  Peer authentication failed
> > for user "librarian"
> >
> >
> > Failed to load application: FATAL:  Peer authentication failed for user
> > "librarian"
>
> Those manual instructions are very out of date. What exactly goes wrong
> when you use launchpad-database-setup?
>
>
>

Follow ups

References