Comments (10)
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.
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.
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.
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.
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.
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.
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.
Man that was painful. Wish it could detect the wrong version & say so rather than not connecting
from dalli.
I think you need to install sasl component for memcache
from dalli.
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)
- All servers are eagerly flushed at the end of a multi block
- Unable to connect to a dragonfly memcache instance HOT 2
- `cache_nils` is `true` by default HOT 1
- no implicit conversion of Hash into String in rack-attack gem from 3.2.7 HOT 1
- Meta protocol flush_all method is vulnerable to code injection (Lack of input type check) HOT 7
- Behavior around clear
- Hanging when performing read_multi against large number of keys HOT 4
- DalliError: Response error 6: Incr/decr on a non-numeric value HOT 2
- Dalli sometimes returns incorrect values HOT 18
- Loss of Connections after upgrading to dalli 3.2.3 HOT 3
- `cache_nils` vs `skip_nil` HOT 3
- No request in progress HOT 2
- IO::TimeoutError exceptions are not handled, breaking automatic retry HOT 4
- connection_pool gem is required HOT 11
- Ruby 3.3: warning related to base64 missing in the gemspec
- TypeError: no implicit conversion of Hash into String HOT 27
- Add TruffleRuby to CI? HOT 2
- 3.2.7 tagged logging issue HOT 1
- TypeError raised in latest Socksify when initializing Dalli client with version 3.2.7+ HOT 4
- Should I react to the "Fork detected, re-connecting child process" exception? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dalli.