Following the indications in here: https://redis.io/topics/quickstart I installed in my Ubuntu 18.04.01 Server Edition the latest stable Redis release : download.redis.io/redis-stable.tar.gz and tested the result of the compilation:

\o/ All tests passed without errors!

As suggested, I copied redis-server and redis-cli into /usr/local/bin:

marco@pc01:~/redis-stable$ sudo cp src/redis-server /usr/local/bin/
marco@pc01:~/redis-stable$ sudo cp src/redis-cli /usr/local/bin/

But when just executing the redis-server binary it says it can't handle RDB format version 9

marco@pc01:~$ redis-server
11700:C 18 Apr 08:18:52.007 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
11700:C 18 Apr 08:18:52.007 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, 
pid=11700, just started
11700:C 18 Apr 08:18:52.007 # Warning: no config file specified, using the default config. In 
order to specify a config file use redis-server /path/to/redis.conf
11700:M 18 Apr 08:18:52.007 * Increased maximum number of open files to 10032 (it was 
originally set to 1024).
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 4.0.9 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 11700
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

11700:M 18 Apr 08:18:52.008 # Server initialized
11700:M 18 Apr 08:18:52.008 # Can't handle RDB format version 9
11700:M 18 Apr 08:18:52.008 # Fatal error loading the DB: Invalid argument. Exiting.

What kind of problem is it? Searching for some hints I found this : https://github.com/alexdicianu/redis_toolkit/issues/14 whose solution was to use the lastest version of redis. But I downloaded the latest stable release of Redis!!! So... how to solve the problem?

Looking forward to your kind help. Marco

Comment From: marcoippolito

I SOLVED the problem by deleting the /home/marco/dump.rdb file.

Comment From: chris-sab

I have tried on your tip but no result, keep erroring...

Comment From: huyilong0516

Is that exists an another redis of different version runing on your sever?

Comment From: DipakGogoi

Search for dump.rdb across the filesystem

sudo find / -name *.rdb

and delete the dump.rdb file.

NOTE: rdb format version 9 will have following string at the start of the file - REDIS0009

this worked for me, was facing same issue with another package, not particularly to github

Comment From: qiangbro

I found it in /var/lib/redis/dump.rdb, then I deleted it. SOLVED.

Comment From: brt-han-mai

SOLVED by deleting from both ~ and /

sudo rm -f ~/dump.rdb /dump.rdb

Comment From: Tonimara

Deleting dump.rdb solved my problem with redis and gitlab. I was trying to understand the reason for the error message "Wrong signature trying to load DB from file" and "Fatal error loading the DB: Invalid argument. Exiting." The dump.rdb file was probably caused by some server crashes.

Comment From: yossigo

This is not a crash but file remaining from the execution of a newer version of Redis. RDB version 9 was introduced in Redis 5 and cannot be read by older versions.

Comment From: SuleymanOzdemr

I Deleting dump.rdb solved

Comment From: Fasten90

I Deleting dump.rdb solved

Same issue was here, but the redis version was 10. dump.rdp removing solves the issue. Thank you!