Giter VIP home page Giter VIP logo

Comments (10)

ReggieBeans avatar ReggieBeans commented on August 24, 2024

I think I've found the problem. Dalli relies on kgio which appears to be linux only. I'll have to build and test this in my Ubuntu virtual environment. The production environment is Linux too so this is just an inconvenience for me: not a show stopper.

Can someone confirm that Dalli is Linux/Mac only?

from dalli.

gucki avatar gucki commented on August 24, 2024

Dalli should be working fine without kgio. Could you please connect using telnet again and type "version" + RETURN. Which version does it report? You need memcached > 1.4.

from dalli.

ReggieBeans avatar ReggieBeans commented on August 24, 2024

I've just been looking through socket.rb and now see that Dalli doesn't rely on kgio. My mistake.

My memcache version is 1.2.4. It looks like that's the problem.

Now all I have to do is get a newer version working under windows. I thought installing a windows version had been a little easy :o).

I'll install a newer version of memcached and get back to you with the result.

from dalli.

ReggieBeans avatar ReggieBeans commented on August 24, 2024

I've installed membase's mecached server (went the route of finding another binary rather than building from source) and that has installed version 1.6.0beta.

Everything now appears to be working fine.

Thank you very much gucki for your prompt and useful response.

from dalli.

mperham avatar mperham commented on August 24, 2024

Also, keep in mind that localhost != 127.0.0.1 on some modern machines which default to IPv6.

gucki, this is why I had the version detection. I hope this does not become a recurring support issue. Maybe we need a troubleshooting guide.

from dalli.

balexand avatar balexand commented on August 24, 2024

This looks like the stack trace that I was getting on my Mac when localhost mapped to the IPv6 address. There are two workarounds. The first is to use 127.0.0.1 instead of localhost: Dalli::Client.new("127.0.0.1"). The second workaround, which worked on my Mac, was to edit the /etc/hosts file and remove the IPv6 mappings.

See https://github.com/mperham/dalli/issues/issue/21/#issue/21

from dalli.

GARUMFundatio avatar GARUMFundatio commented on August 24, 2024

gucki: an old problem version of memcached was drive me crazy. Some message error like "check your memcache version, 1.4 o greather required" had make it more easy ;-)

from dalli.

inspire22 avatar inspire22 commented on August 24, 2024

Man that was painful. Wish it could detect the wrong version & say so rather than not connecting

from dalli.

sharp avatar sharp commented on August 24, 2024

I think you need to install sasl component for memcache

from dalli.

KelseyDH avatar KelseyDH commented on August 24, 2024

Any further advice on Windows connectivity for Memcache with Dalli? It feels impossible to find any Windows-compatible memcache version over <1.4. Even Heroku's documentation on this is out of date.

from dalli.

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.