Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection error #445

Closed
shawntremere opened this issue Jan 9, 2018 · 2 comments
Closed

Connection error #445

shawntremere opened this issue Jan 9, 2018 · 2 comments

Comments

@shawntremere
Copy link

Hello,
I have production postal server set up, and I keep on getting an error.

This is the error that is showing in the rails.log file:
[web.1:2605] [2018-01-09T08:34:59.442] INFO -- : Completed 500 Internal Server Error in 27ms (ActiveRecord: 11.1ms)
[web.1:2605] [2018-01-09T08:34:59.443] FATAL -- :
[web.1:2605] [2018-01-09T08:34:59.443] FATAL -- : Mysql2::Error (Too many connections):
[web.1:2605] [2018-01-09T08:34:59.443] FATAL -- :
[web.1:2605] [2018-01-09T08:34:59.444] FATAL -- : lib/postal/message_db/database.rb:319:in `query_on_connection'

Can anyone provide me more detail on what could be causing this error.

I have a test postal server set up and it is working as expected. I have moved the databases for both postal servers to a different database server. This is the only changes I would of made on my end.
Restarting postal allows me to use postal again.

Let me know if more detail is needed.

@willpower232
Copy link
Collaborator

It sounds like you need to increase the max connections in mysql.

Edit /etc/mysql/my.cnf and increase the max_connections setting.

@willpower232
Copy link
Collaborator

Also you should have a look here for other settings worth increasing #324 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants