Skip to main content

Command Palette

Search for a command to run...

Puma and PostgreSQL crash on M1 mac, Ruby on Rails 6.1

Updated
1 min read
P

I am a full-stack Ruby on Rails developer with experience in PostgreSQL, Docker, Heroku, and performance optimization. I love exploring new technology stacks and have recently developed an interest in mobile app development using Flutter. My skills in test-driven development and fixing security vulnerabilities have helped me deliver high-quality, reliable code. I am also currently learning about machine learning and its applications in real-world problem-solving. I bring a unique combination of technical expertise, creative problem-solving, and a passion for learning to any team. I am committed to delivering elegant and efficient software solutions and excited to contribute to an innovative and dynamic team that shares this vision.

Have you encounter following bug when booting your M1 Mac machine when running PostgreSQL, Puma and Ruby on Rails application, this bug is frustrating but there is a really simple solution to this problem, which is to disable PGGSSENCMODE.

Solution:

export PGGSSENCMODE="disable"

put above code in your ~/.zshrc or ~/.bashrc file depending on which shell you are using.

I am using Zsh

echo $SHELL
/usr/bin/zsh

And finally, don't forget to reload your terminal, or restart your terminal.

source ~/.zshrc
rails s

It should fix that crash issue.

More from this blog

T

The Developers Journey

41 posts

I am a full-stack Ruby on Rails developer with experience in TDD, PostgreSQL, Docker, Heroku, performance optimization and Flutter mobile app development.