Problem
When logging in to the Web Interface, this error is displayed:
...
the HubRing service is not started. This can be checked in the command line with:
...
Code Block |
---|
... [11649] 21 Jun 04:26:41 * Server started, HubRing version 1.0.0 [11649] 21 Jun 04:26:41 * Mixed Persistence: SUCCESS on loading dump_2014-06-20.13.44.24_8.rdb [11649] 21 Jun 04:26:41 # Bad file format reading the append only file: make a backup of your AOF file, then use ./hr-check-aof --fix <filename> ... |
Solution
The cause for this behavior is the lack of disk space or a possible disk problem.
All the cache files are kept into the /var/lib/hubring
folder. At some point the volume that keeps the /var
folder was folder was out of free space. ThusThus, the cache system was unable to update cache files and corrupted them.
To fix this you'll need to clear clear some space and to make sure that you will not end up in this situation again.
After you have done that, proceed you have to fixing fix the damaged damaged .aof
file by following file by following these steps:
STEP 1: After you receive the log message once again, locate find out what .aof
file is damaged using this mental exercise: look at the .rdb
file from the message above (in our example above dump_2014-06-20.13.44.24_8.rdb
). STEP 2: Increment , increment the number before before .rdb with with 1 and and change the extension to to .aof.
The result is the corrupted file. For our example the damaged damaged .aof
will will be:
Code Block |
---|
dump_2014-06-20.13.44.24_9.aof |
STEP 32: Run the following command to fix the damaged file:
Code Block |
---|
#> hr-check-aof --fix <damaged aof filename> |
Replace <damaged Replace <damaged aof filename> with the name of the .aof
file.
e.g. For our example it would be:
Code Block |
---|
#> hr-check-aof --fix <dump_2014-06-20.13.44.24_9.aof> |
The result should be something like this:
Code Block |
---|
0x0002bffc: Expected to read 5 bytes, got 4 bytes This will shrink the AOF from 180224 bytes, with 189 bytes, to 180035 bytes Continue? [y/N]: y Successfully truncated AOF |
STEP 43: You are now able to start HubRing again, using this command:
Code Block |
---|
#>/var/lib/hubring # service hubring start |
STEP 54: Check HubRing's status:
Code Block |
---|
#> service hubring status |
...
After that you'll be able to log in again and also to have calls.
Related
...
articles
Content by Label | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
hidden | true |
---|
...
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.