|
2 | 2 | sidebar_label: OpenStack |
3 | 3 | sidebar_position: 40 |
4 | 4 | --- |
| 5 | +import Tabs from '@theme/Tabs'; |
| 6 | +import TabItem from '@theme/TabItem'; |
5 | 7 |
|
6 | 8 | # OpenStack |
7 | 9 |
|
@@ -254,3 +256,56 @@ sidebar_position: 40 |
254 | 256 |
|
255 | 257 | * Do not disable the offline compression with `COMPRESS_OFFLINE = False` to get rid of the error. The error |
256 | 258 | disappears, but afterwards every page is compressed again on each request. |
| 259 | + |
| 260 | +## Redis/Valkey: "Bad file format reading the append only file..." |
| 261 | + |
| 262 | +<Tabs> |
| 263 | +<TabItem value="redis" label="Redis"> |
| 264 | + |
| 265 | +* Problem: A `redis` instance refuses to start with error message: "Bad file format reading the append only file appendonly.aof.11.incr.aof: make a backup of your AOF file, then use ./redis-check-aof --fix <filename.manifest>" |
| 266 | + |
| 267 | +* Solution: Fix the append-only-file with the mentioned command. |
| 268 | + |
| 269 | + :::note |
| 270 | + |
| 271 | + The following commands apply to a redis instance belonging to the OpenStack control plane. Please make sure to adjust the commands if you are fixing this error on another redis instance, like the manager or netbox. |
| 272 | + |
| 273 | + ::: |
| 274 | + |
| 275 | + On the node with the broken instance run |
| 276 | + |
| 277 | + ```console |
| 278 | + docker run --rm -it -v redis:/var/lib/redis <osism redis image>:<osism redis tag> bash |
| 279 | + redis-check-aof --fix /var/lib/redis/appendonlydir/redis-staging-ao.aof.manifest |
| 280 | + ``` |
| 281 | + |
| 282 | + and follow the given instructions to fix any corruptions. |
| 283 | + Once the append-only-file is fixed restart the `redis` instance. |
| 284 | + |
| 285 | + ```console |
| 286 | + docker restart redis |
| 287 | + ``` |
| 288 | + |
| 289 | +</TabItem> |
| 290 | +<TabItem value="valkey" label="Valkey"> |
| 291 | + |
| 292 | +* Problem: A `valkey` instance refuses to start with error message: "Bad file format reading the append only file appendonly.aof.11.incr.aof: make a backup of your AOF file, then use ./valkey-check-aof --fix <filename.manifest>" |
| 293 | + |
| 294 | +* Solution: Fix the append-only-file with the mentioned command. |
| 295 | + |
| 296 | + On the node with the broken instance run |
| 297 | + |
| 298 | + ```console |
| 299 | + docker run --rm -it -v valkey:/var/lib/valkey <osism valkey image>:<osism valkey tag> bash |
| 300 | + valkey-check-aof --fix /var/lib/valkey/appendonlydir/valkey-staging-ao.aof.manifest |
| 301 | + ``` |
| 302 | + |
| 303 | + and follow the given instructions to fix any corruptions. |
| 304 | + Once the append-only-file is fixed restart the `valkey` instance. |
| 305 | + |
| 306 | + ```console |
| 307 | + docker restart valkey |
| 308 | + ``` |
| 309 | + |
| 310 | +</TabItem> |
| 311 | +</Tabs> |
0 commit comments