R
Railway13mo ago
Terry

Connection terminated unexpectedly

Connection Error: Connection ended unexpectedly [2023-07-07 15:25:28.860] error: select count("t0"."id") as "count" from "public"."admin_users" as "t0" limit $1 - Connection terminated unexpectedly
53 Replies
Percy
Percy13mo ago
Project ID: N/A
Terry
Terry13mo ago
sorry, looking for the project ID
Brody
Brody13mo ago
dont worry about it its of no use to me
Terry
Terry13mo ago
[2023-07-07 15:25:23.215] error: select count("t0"."id") as "count" from "public"."admin_users" as "t0" limit $1 - Connection terminated unexpectedly
Error: select count("t0"."id") as "count" from "public"."admin_users" as "t0" limit $1 - Connection terminated unexpectedly
[2023-07-07 15:25:23.215] error: select count("t0"."id") as "count" from "public"."admin_users" as "t0" limit $1 - Connection terminated unexpectedly
Error: select count("t0"."id") as "count" from "public"."admin_users" as "t0" limit $1 - Connection terminated unexpectedly
Connection Error: Connection ended unexpectedly
[2023-07-07 15:25:28.860] error: select count("t0"."id") as "count" from "public"."admin_users" as "t0" limit $1 - Connection terminated unexpectedly
Error: select count("t0"."id") as "count" from "public"."admin_users" as "t0" limit $1 - Connection terminated unexpectedly
Connection Error: Connection ended unexpectedly
[2023-07-07 15:25:28.860] error: select count("t0"."id") as "count" from "public"."admin_users" as "t0" limit $1 - Connection terminated unexpectedly
Error: select count("t0"."id") as "count" from "public"."admin_users" as "t0" limit $1 - Connection terminated unexpectedly
Jack
Jack13mo ago
This is postgresql, correct?
Terry
Terry13mo ago
Yes
Brody
Brody13mo ago
what is your pool.min set to?
Terry
Terry13mo ago
Where do I find that?
Brody
Brody13mo ago
one sec please
Terry
Terry13mo ago
it's default
Brody
Brody13mo ago
if you have it set, it would be in the database.js config file
Terry
Terry13mo ago
Nope, never have it set
Brody
Brody13mo ago
there you go
Jack
Jack13mo ago
Found another user thats had this issue and been resolved; https://github.com/strapi/strapi/issues/13646#issuecomment-1184763834
GitHub
GraphQL - Apollo Server (DOS, persistent queries) · Issue #13646 · ...
Bug report Required System information Node.js version: v16.15.1 NPM version: 8.11.0 Strapi version: 4.2.0 Database: Postgres Operating system: Docker, node:lts-alpine, AWS ECS package.json depende...
Solution
Brody
Brody13mo ago
Terry
Terry13mo ago
it' default from Strapi. I never had this issues before but found it in my database.js
pool: {
min: env.int("DATABASE_POOL_MIN", 2),
max: env.int("DATABASE_POOL_MAX", 10),
},
pool: {
min: env.int("DATABASE_POOL_MIN", 2),
max: env.int("DATABASE_POOL_MAX", 10),
},
Brody
Brody13mo ago
yep just a caveat of running strapi in a docker container, the strapi docs even tell you to set pool.min to 0 when running in docker
Terry
Terry13mo ago
Thank you, I just changed it to 0 and leave max to 10 unless you think I should change it
Brody
Brody13mo ago
max 10 is fine as long as the min is fixed at 0 let us know if you have any problems like this again, since you won't see improvements right away
Terry
Terry13mo ago
Thank you! Off subject - Did you just add Pro plan?
Brody
Brody13mo ago
was added July 3rd, and there's is absolutely nothing different from the previous team plan, only the name
Terry
Terry13mo ago
I just noticed but didn't see the Pro plan. Only saw Hobby at the time. I'm tempting
Brody
Brody13mo ago
haha what do you think you need pro for?
Terry
Terry13mo ago
I have about 30 - 40 websites 🙂
Brody
Brody13mo ago
do any of them generate income?
Terry
Terry13mo ago
Yes some
Brody
Brody13mo ago
enough to justify paying 20$ a month? sorry if that's too personal
Terry
Terry13mo ago
Better than paying $300 a month for DS I'm looking up the policy of the Railway
Brody
Brody13mo ago
there's not really a super strict policy surrounding when to upgrade to pro
Terry
Terry13mo ago
Is this hosted from Google Cloud?
Brody
Brody13mo ago
yes, gcp us-west1
Terry
Terry13mo ago
Then one of the sites can't be on Google Cloud because one of them is adult toys ecommerce.
Brody
Brody13mo ago
you can't run that on gcp? sure it's 18+ but still a legitimate business what's the reasoning behind not allowing that
Terry
Terry13mo ago
Webmasters Stack Exchange
Does Google App Engine allow adult content?
I am going to make a social photo album site with explicit adult content. I am wondering whether Google allows adult content/sites to be hosted on GAE? If so can you show some examples? if not, whe...
Brody
Brody13mo ago
oh well railway doesn't use Google app engine
Terry
Terry13mo ago
I guess it isn't anymore It was
Jack
Jack13mo ago
I’m sure you can distribute it, just not publish pornographic photography. Google Cloud found the area where they were losing revenue 💀
Terry
Terry13mo ago
oh come on. I can't say what I want to say 😛
Jack
Jack13mo ago
Haha.
Terry
Terry13mo ago
it has products that looks dirty but nothing visible. Jeez, how much prohibit are the wording
Brody
Brody13mo ago
I don't see anything in those terms that would prevent you from running an adult toy store?
Jack
Jack13mo ago
Yeah I’m assuming that’s entirely acceptable.
Terry
Terry13mo ago
It used to be, I didn't noticed the policy was updated so like Jack said, found the area where they were losing revenue Anyway, you sold me the pen
Brody
Brody13mo ago
yeah running a full blown business on railway does at least require the pro plan but for example if you made a little e-commerce site for your parents to sell their honey, that's perfectly fine on hobby true story
Terry
Terry13mo ago
I have a few other eCommerce but they are pretty much G rated.
Brody
Brody13mo ago
as long as they aren't shady, then I don't see anything wrong with them
Terry
Terry13mo ago
Thank you for your time
Brody
Brody13mo ago
no problem!
Jack
Jack13mo ago
Of course, happy shipping!
Brody
Brody13mo ago
Percy seems to be a little broken right now, so feel free to ping me when you've upgraded to pro so I can give you the pro badge if you wanted it
Terry
Terry13mo ago
Thank you mark solution? ✅
Brody
Brody13mo ago
all good