Skip to content

500 server Internal error for appengine/cloudsql sample app #722

Closed
@architsinha

Description

@architsinha

I was trying to build and run the following sample app for appengine and cloudsql:
https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine/cloudsql

I did the following steps before running the app:

  1. gcloud sql instances create $instanceName --tier=D2

  2. gcloud sql users set-password root % --instance $instanceName --password $myPassword

  3. Created a databased $myDatabase using cloud console as mentioned in the following link: https://cloud.google.com/sql/docs/mysql/create-manage-databases#creating_a_database

I updated the following in pom.xml:
INSTANCE_CONNECTION_NAME --- The connection name got from the command
gcloud sql instances describe $instanceName | grep connectionName
user --- root
password --- $myPassword
database --- $myDatabase

Then I built the project using:
mvn clean appengine:update

When I open the web page http://$PROJECT-ID/appspot.com, I get 500 Server Error with the following message:

Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.

Also I noticed that the appengine-web.xml file for this project does not have the application and version tags. I added them before building
How will it work without that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions