GithubHelp home page GithubHelp logo

Comments (9)

jaqx0r avatar jaqx0r commented on July 19, 2024

Comment #1 originally posted by jaqx0r on 2013-01-16T11:24:42.000Z:

I strongly recommend using the 'cache' backend and installing libnss-cache in your nsswitch, insteadof using the nssdb backend. 'cache' is faster, less buggy, and more battle tested.

from nsscache.

jaqx0r avatar jaqx0r commented on July 19, 2024

Comment #2 originally posted by jaqx0r on 2014-04-30T13:05:47.000Z:

<empty>

from nsscache.

hexedpackets avatar hexedpackets commented on July 19, 2024

I ran into this same issue in Arch with db version 5.3.28-2. I tried using the 'cache' backend as suggested, but unless I missed something it doesn't actually seem to be implemented. The only valid cache backends are 'files' and 'nssdb'.

from nsscache.

jaqx0r avatar jaqx0r commented on July 19, 2024

What errors do you get when configuring the cache backends? It is the only
one that is battle tested, so I am very surprised to hear it doesn't work.

No one new should use the nssdb backend, and I'd delete it except I don't
know if any existing users rely on it.

On Thu, 5 Nov 2015, 10:58 William Huba [email protected] wrote:

I ran into this same issue in Arch with db version 5.3.28-2. I tried using
the 'cache' backend as suggested, but unless I missed something it doesn't
actually seem to be implemented. The only valid cache backends are 'files'
and 'nssdb'.


Reply to this email directly or view it on GitHub
#28 (comment).

from nsscache.

hexedpackets avatar hexedpackets commented on July 19, 2024

I tried setting cache = cache in my nsscache.conf and the following is thrown when running nsscache update:

Traceback (most recent call last):
  File "/usr/sbin/nsscache", line 33, in <module>
    return_value = nsscache_app.Run(sys.argv[1:], os.environ)
  File "/usr/lib/python2.7/site-packages/nss_cache/app.py", line 240, in Run
    retval = command_callable().Run(conf=conf, args=args)
  File "/usr/lib/python2.7/site-packages/nss_cache/command.py", line 230, in Run
    force_lock=options.force_lock)
  File "/usr/lib/python2.7/site-packages/nss_cache/command.py", line 303, in UpdateMaps
    force_write=force_write)
  File "/usr/lib/python2.7/site-packages/nss_cache/update/updater.py", line 272, in UpdateFromSource
    cache = cache_factory.Create(self.cache_options, self.map_name)
  File "/usr/lib/python2.7/site-packages/nss_cache/caches/cache_factory.py", line 76, in Create
    raise RuntimeError('cache not implemented: %r' % (cache_name,))
RuntimeError: cache not implemented: 'cache'

Looking at cache_factory.py, only files and nsscache get registered as cache implementations: https://github.com/google/nsscache/blob/master/nss_cache/caches/cache_factory.py#L84-L85

from nsscache.

hexedpackets avatar hexedpackets commented on July 19, 2024

Have you had a chance to look at this any further? I'm happy to switch backends, but can't see how to do that currently.

from nsscache.

robbat2 avatar robbat2 commented on July 19, 2024

@hexedpackets
use 'cache = files'

from nsscache.

jaqx0r avatar jaqx0r commented on July 19, 2024

Thanks Robin. That config option eluded me, and now looking at it, it is
not very clear what it does!

On Sat, 2 Jan 2016, 05:43 Robin H. Johnson [email protected] wrote:

@hexedpackets https://github.com/hexedpackets
use 'cache = files'


Reply to this email directly or view it on GitHub
#28 (comment).

from nsscache.

jaqx0r avatar jaqx0r commented on July 19, 2024

I've sent a documentation fix; it's still confusing but at least it's now
correct.

On 2 January 2016 at 12:50, Jamie Wilkinson [email protected] wrote:

Thanks Robin. That config option eluded me, and now looking at it, it is
not very clear what it does!

On Sat, 2 Jan 2016, 05:43 Robin H. Johnson [email protected]
wrote:

@hexedpackets https://github.com/hexedpackets
use 'cache = files'


Reply to this email directly or view it on GitHub
#28 (comment).

from nsscache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.