Hello, Thank you for the quick response, I will try adding the env variables to the app.yml file. I've already have the beta setting.
The strange thing about this, is that the server is responding for some days. But suddenly looses the connection ability to the SQL. Tanks! Den onsdag 11 september 2019 kl. 14:11:07 UTC+2 skrev Mua Rachmann: > > Hi Hampus, > > Is your app.yaml file well configured with the database credentials? such > as connection name, database name etc etc. > > DB_CONNECTION: mysql > DB_HOST: localhost > DB_DATABASE: xxxxxxx > DB_USERNAME: xxxxxx > DB_PASSWORD: xxxxxxxxxxx > DB_SOCKET: /cloudsql/<project_id>:us-central1:<database-instance> > > > If running on beta > > beta_settings: > # for Cloud SQL, set this value to the Cloud SQL connection name, > cloud_sql_instances: <project_id>:us-central1:<database-instance> > > You might want to check if you did not maybe omit something. Talking prior > to the fact you said it worked a couple > of days ago. > > Regards, > Mua > > On Wed, Sep 11, 2019 at 12:51 PM Hampus Boås <[email protected] > <javascript:>> wrote: > >> Hello, >> >> I have several projects on Google AppEngine Flexible, but one of my >> projects randomly after a couple of days looses the ability to connect to >> the database. >> >> I'm using the unix socket to connect and i have SQL Admin activated. If i >> debug the sql instance and the flexible instance they are both up and >> running. >> >> My DB User has privileges from any host. >> >> The PDO error says "SQLSTATE[HY000] [2002] No such file or directory". >> >> This has happen a couple of times now. >> >> Has someone have this issues before? >> I don't really know what to do here. >> >> Best regards Hampus >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-appengine/ecec867c-ebeb-4093-b603-127ed9e03449%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-appengine/ecec867c-ebeb-4093-b603-127ed9e03449%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/eb829d88-8063-4804-88a9-ff4025e72972%40googlegroups.com.
