Accidental Technologist

Musings about Entrepreneurship, Technology and Software Development

  • Home
  • About
  • Still River Software
  • Privacy Policy

Powered by Genesis

Redis::CommandError – MISCONF Redis is configured to save RDB snapshots

March 22, 2021 by Rob Bazinet Leave a Comment

Tweet

I recently ran into a problem I hadn’t encountered before on my Mac. I was getting an error from Redis:

MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.

The fix is simple. From a terminal window, enter the Redis CLI. From a terminal window type:

redis-cli

Use the command:

config set stop-writes-on-bgsave-error no

You should get an OK response, then type exit to get out of the reds-cli.

Try again where you received the error and everything should be working as expected.

Share this:

  • LinkedIn
  • Twitter
  • Facebook
  • Email
  • More
  • Pinterest
  • Tumblr
  • Pocket
  • Reddit

Filed Under: Tips Tagged With: redis, Ruby on Rails

Homebrew Upgrade Woes

February 15, 2012 by Rob Bazinet Leave a Comment

Tweet

I ran into an interesting problem recently after updating my installation of Homebrew on my Mac Pro. ? Starting with the update command, which ran successfully:

$ brew update

I then attempted to update my redis installation to the latest:

$ brew upgrade redis

I was greeted with this message:

Error: undefined local variable or method `brew_install' for main:Object

Trying several things on my own to no avail, led me to a Google search result pointing out a known issue and solution. ?It appears there is an issue with a brew_upgrade.rb artifact being left behind after a brew update. ?The following commands from the Homebrew wiki fix the problem:

$ cd $(brew --prefix)/Library/Contributions/examples
$ git clean -n # if this doesn't list anything that you want to keep, then
$ git clean -f # this will remove untracked files

I hope this helps someone with the same problem.

Share this:

  • LinkedIn
  • Twitter
  • Facebook
  • Email
  • More
  • Pinterest
  • Tumblr
  • Pocket
  • Reddit

Filed Under: General Tagged With: homebrew, redis

Recent Posts

  • How to Fix Rails Flash Rendering When Using Hotwire
  • Hotwire Fix for CORS Error when using Omniauth
  • Fix Installation of Ruby using rbenv on macOS Big Sur
  • RailsConf 2021 and the Future of Conferences
  • Fixing Out of Diskspace Errors on Amazon EC2

Categories

Services I Love

HatchBox - Easy Rails Deploys Fathom Analytics
Follow @rbazinet

Rob Bazinet
@rbazinet

  • This is so true and has been my personal take on people complaining they are busy - https://t.co/YW8NTQLXtl
    about 3 days ago
  • Wow…https://t.co/h94ia053sL
    about 4 days ago
  • My Bills lost today but more importantly so did the Dallas Cowboys. Nice seeing the ‘boys done for the season.
    about 5 days ago
  • It looks like the Apple Xcode command line tools is a bit bloated for it to take this long… https://t.co/U0HObTvzXf
    about 2 months ago
  • How many people are mad that @elonmusk bought Twitter yet own or plan to own a Tesla? I bet many.
    about 2 months ago
  • RSS - Posts
  • RSS - Comments