embedded-redis icon indicating copy to clipboard operation
embedded-redis copied to clipboard

Can't start RedisServer on Debian x32

Open uanian opened this issue 8 years ago • 4 comments

Can't start redis-server on Debian x32, while on x64 systems it's working

uanian avatar Oct 13 '15 12:10 uanian

Any error log?

kstyrc avatar Oct 14 '15 06:10 kstyrc

Log is empty, but when i tried to run redis-server in terminal from /tmp/guid, received - exec format error

uanian avatar Oct 15 '15 06:10 uanian

Hmmm, that's probably the thing that redis is compiled for x64 rather than x86. I will try to release new version with the fixed redisserver binary for x86 systems.

For now, you can use a workaround - download & compile redis-server from: http://download.redis.io/releases/ Then, use this builder to construct RedisServer:

RedisExecProvider customProvider = RedisExecProvider.defaultProvider()
  .override(OS.UNIX, Architecture.x86, "/path/to/unix/redis-x86")   // <-- provide path to x86 binary
  .override(OS.UNIX, Architecture.x64, "/path/to/unix/redis-x64");   // <-- provide path to x64 binary

RedisServer redisServer = new RedisServer(customProvider, 6379);

My bad.

kstyrc avatar Oct 16 '15 11:10 kstyrc

I had the same problem. Made PR #62 for this

stianl avatar Oct 19 '15 13:10 stianl