Redis strange behavior

General Discussion
  • I'm new to nodeBB and Redis.
    Having said that, I am so confused by Redis behavior along with nodeBB.

    Reading the docs-Upgrading NodeBB

    Backing up Redis
    As with all upgrades, the first step is to back up your data! Nobody likes database corruption/misplacement.
    All of the textual data stored in NodeBB is found in a .rdb file. On typical installs of Redis, the main database is found at /var/lib/redis/dump.rdb.

    However, during heavy tweak/installation of nodeBB, sometimes, dump.rdb appears under my user's home root /home/ken/dump.rdb.
    I try to figure out which dump.rdb is actually connected to nodeBB and updated, and observed the time-stamp with redis-cli save/bgsave.
    The dump.rdb under the home is updated, and /var/lib/redis/dump.rdb is not updated.
    Sometimes, redis-cli save reflect redis-server log, sometimes does not.

    Does someone have same kind of trouble? If I miss something, please let me know.

    Thanks.

  • The redis server will read from whichever file is the dbfilename inside the dir directory. You can find both those values in your redis configuration file, which by default is in /etc/redis

  • Thanks @julian , I understand that.
    /etc/redis/redis.conf is configured as│dir /var/lib/redis
    Actually, I sort of knew this, but if so, it does not make any sense dump.rdb appears under the home/username/ directory...


Suggested Topics


  • 1 Votes
    1 Posts
    217 Views
  • 0 Votes
    2 Posts
    1230 Views
  • 0 Votes
    9 Posts
    5656 Views
  • 0 Votes
    3 Posts
    1380 Views
  • 0 Votes
    15 Posts
    14257 Views