[OPEN-ILS-DEV] EG client login error

Dan Wells dbw2 at calvin.edu
Fri Apr 25 13:39:52 EDT 2008


Hello Tom,

This could be the problem if you were a bit overzealous in your conf file editing.  On Ubuntu, localhost resolves to 127.0.0.1 while your machine name resolves locally to 127.0.1.1.  Because of this and the default listening configuration for memcached, it is best to leave the cache section of opensrf.xml as follows:

        <cache>
            <!-- memcache servers -->
            <global>
                <servers>
                    <server>localhost:11211</server>
                </servers>
                <max_cache_time>86400</max_cache_time>
            </global>
        </cache>

If you have substituted 127.0.1.1 or your FQDN where it says 'localhost:11211' above, try changing it back to localhost, then restarting OpenSRF/Evergreen.  Your memcached process looks fine as it is, but I suppose you could instead tell memcached to listen on 127.0.1.1 or your real IP address, as applicable.  You can do that by starting it with the proper -l argument, as shown in your process list.

DW


>>> Tom Patterson <tpatterson at tfc.edu> 4/25/2008 12:11 PM >>>
Dan,

Thanks. Output from the ps ax  command gives the following:

5313 ?        S      0:00 /usr/bin/memcached -m 64 -p 11211 -u nobody -l 127.0.0.1

also checked the netstat command and shows localhost:11211 listen.

Question: On step 18 and 22 following the Ubuntu doc's, I set the 127.0.1.1 as the localhost. Does this make a difference on where memcache is listening?

Tom Patterson
________________________________________
From: open-ils-dev-bounces at list.georgialibraries.org [open-ils-dev-bounces at list.georgialibraries.org] On Behalf Of Dan Wells [dbw2 at calvin.edu] 
Sent: Friday, April 25, 2008 11:11 AM
To: open-ils-dev at list.georgialibraries.org 
Subject: Re: [OPEN-ILS-DEV] EG client login error

Hello Tom,

I think a bug may have cropped up in the Ubuntu install instructions.  I cannot be sure if this has changed, but it seems that memcached does not start up automatically when first installed.  It should start on the next system boot, but short of that, you can start it most simply as follows:

sudo memcached -d

You can check if it is already running or not with:

ps ax | grep "memcached"

and

netstat -l | grep "11211"

to make sure it is on the right port.

Let us know if that helps,
DW


>>> Tom Patterson <tpatterson at tfc.edu> 4/25/2008 9:27 AM >>>
Hi,
On a new install of Evergreen 1.2.1.4, following the server installation guide for Ubuntu 7.10, I am at the point of trying to login to the staff client (on same machine as server). The connection is made to the server without problem, however, while trying to authenticate, I get an error message (see attached)

"method=open-ils.auth.authentication.init
params=["admin"]
THROWN:
null
STATUS: "

I am using the default admin login with default password. Having read through the most recent postings, I could not find a solution for this. Any guidance would be appreciated.

Tom Patterson





More information about the Open-ils-dev mailing list