News for hackers. Stuff that matters.
Re:Convert a Bird Scooter to a personal one with $32 kit by kaybe on Tuesday December 04, 2018 @06:17PM (#18604393)
Aaand we killed it.

> SQL ERROR [ mysqli ]

> User birdfo5_phpbb already has more than 'max_user_connections' active connections [1203]

> An sql error occurred while fetching this page. Please contact an administrator if this problem persists.

Re:Convert a Bird Scooter to a personal one with $32 kit by scootertalk on Tuesday December 04, 2018 @08:55PM (#18605166)
The influx of traffic has been a great surprise. I've contacted the host and updated the plan to handle the activity. They informed me the issue will be fixed soon. Sorry for any inconvenience.

Thank you for checking out Scooter Talk. Hope you enjoy!

Re:Convert a Bird Scooter to a personal one with $32 kit by RKearney on Tuesday December 04, 2018 @10:13PM (#18605432)
You shouldn't need an updated plan to handle this. It seems as though every page load is hitting a database. I can't see the page since it won't load, but I'd imagine the content here can be easily cached.
Re:Convert a Bird Scooter to a personal one with $32 kit by shittyadmin on Tuesday December 04, 2018 @10:35PM (#18605509)
If you don't want to pay more or deal with technical details like setting up cache servers, just put it behind CloudFlare or similar temporarily.
Re:Convert a Bird Scooter to a personal one with $32 kit by bufferoverflow on Wednesday December 05, 2018 @07:05AM (#18607525)
This is the best answer. Cloudflare free tier CDN is amazing, and is ridiculously easy to set up. They even provide and set up an SSL certificate for you.
Re:Convert a Bird Scooter to a personal one with $32 kit by ars on Tuesday December 04, 2018 @10:31PM (#18605496)
Reduce the max users in your http servers. Your max database users should always be a bit less than your max http servers/instances/connections.

Http will queue connections if over the limit and everything will just work without errors. You won't even have an overloaded server (although some users may have a long wait).

Re:Convert a Bird Scooter to a personal one with $32 kit by ec109685 on Tuesday December 04, 2018 @11:47PM (#18605753)
If your database can’t handle the load, your queue will grow indefinitely. So users will have an infinite wait or timeout. Not a panacea.
Re:Convert a Bird Scooter to a personal one with $32 kit by cabaalis on Tuesday December 04, 2018 @07:39PM (#18604827)
Would be cool if it didn't leak half the authentication setup. Seems like the error handler could scan the text for configured values and mask before echoing it out.
Re:Convert a Bird Scooter to a personal one with $32 kit by dannypgh on Tuesday December 04, 2018 @07:46PM (#18604852)
Better yet, the error handler could not print anything back. A generic 500 is the way to go. Log your errors.

If you think you'd get worthwhile bug reports / don't want to implement log analysis or whatever, take whatever errors, stack traces, etc. you'd like, encrypt and base64 encode them, and print that.

Printing any hints about the nature of errors should be regarded as a security risk.

Re:Convert a Bird Scooter to a personal one with $32 kit by cabaalis on Tuesday December 04, 2018 @07:49PM (#18604863)
Absolutely true, and how I implement error handling personally (meaning give a friendly non technical message and track the error internally) I blame a brain collapse after a long day :)
Re:Convert a Bird Scooter to a personal one with $32 kit by easytiger on Wednesday December 05, 2018 @03:37AM (#18606596)
> > User birdfo5_phpbb already has more than 'max_user_connections' active connections [1203]

I see not much has changed in web dev since the late '90s

Re:Convert a Bird Scooter to a personal one with $32 kit by robax on Tuesday December 04, 2018 @06:38PM (#18604516)
Looks like someone could use pgbouncer :)
Re:Convert a Bird Scooter to a personal one with $32 kit by snikch on Tuesday December 04, 2018 @07:46PM (#18604849)
It's MySQL
Re:Convert a Bird Scooter to a personal one with $32 kit by asah on Tuesday December 04, 2018 @07:52PM (#18604875)
exactly.
Re:Convert a Bird Scooter to a personal one with $32 kit by cschep on Tuesday December 04, 2018 @07:52PM (#18604877)
exactly! :D