lists.arthurdejong.org
RSS feed

Re: pynslcd problems

[Date Prev][Date Next] [Thread Prev][Thread Next]

Re: pynslcd problems



On Fri, 2012-07-06 at 13:04 +0200, Jon Severinsson wrote:
> Looking for a simpler ldap caching solution for my laptop than running
> a full fledged slapd mirror, I decided to give pynslcd a try. What I
> found was that you werern't kidding when you called it
> experimental ;-)

Thanks for giving it a try and reporting back.

> First of, the 0.8.10 tarball is missing cache.py, making pynslcd fail to
> start.

Thanks, fixed in SVN now. I guess all the tests I've ran were from the
source directory.

> Secondly after getting pynslcd to start, it still wouldn't work, but
> crashes with the following message in syslog:
> 
> Jul  6 12:26:08 ilyena pynslcd[4790]: version 0.8.10 starting
> Jul  6 12:26:08 ilyena pynslcd[4790]: accepting connections
> Jul  6 12:26:11 ilyena pynslcd[4790]: exception in worker
> Jul  6 12:26:11 ilyena pynslcd[4790]: Traceback (most recent call last):
> Jul  6 12:26:11 ilyena pynslcd[4790]:   File "/usr/local/sbin/pynslcd", line 
> 241, in worker
> Jul  6 12:26:11 ilyena pynslcd[4790]:     acceptconnection(session)
> Jul  6 12:26:11 ilyena pynslcd[4790]:   File "/usr/local/sbin/pynslcd", line 
> 224, in acceptconnection
> Jul  6 12:26:11 ilyena pynslcd[4790]:     handler(fp, session, uid)()
> Jul  6 12:26:11 ilyena pynslcd[4790]:   File 
> "/usr/local/share/pynslcd/common.py", line 232, in __call__
> Jul  6 12:26:11 ilyena pynslcd[4790]:     self.handle_request(parameters)
> Jul  6 12:26:11 ilyena pynslcd[4790]:   File 
> "/usr/local/share/pynslcd/common.py", line 219, in handle_request
> Jul  6 12:26:11 ilyena pynslcd[4790]:     for values in 
> self.cache.retrieve(parameters):
> Jul  6 12:26:11 ilyena pynslcd[4790]:   File 
> "/usr/local/share/pynslcd/group.py", line 81, in retrieve
> Jul  6 12:26:11 ilyena pynslcd[4790]:     q = 
> itertools.groupby(query.execute(self.con),
> Jul  6 12:26:11 ilyena pynslcd[4790]:   File 
> "/usr/local/share/pynslcd/cache.py", line 217, in execute
> Jul  6 12:26:11 ilyena pynslcd[4790]:     return c.execute(query, 
> self.parameters)
> Jul  6 12:26:11 ilyena pynslcd[4790]: OperationalError: no such table: 
> group_cache
[...]
> 
> However, inspecting /var/run/nslcd/cache.sqlite using the sqlite3
> command-line tool shows that the table group_cache does indeed exist,
> though it is empty. Not being an expert at either python nor sqlite I
> was unable to fix this issue :-(

That is weird. I cannot reproduce that (though using an i386 sid test
environment here). You could try removing /var/run/nslcd/cache.sqlite*
(and perhaps lock files there) and restarting pynslcd. It should
recreate the database if it is missing. Still weird that sqlite3
command-line found the table but pynslcd didn't.

Thanks,

-- 
-- arthur - arthur@arthurdejong.org - http://arthurdejong.org --
-- 
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/