GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 500 server Internal error for appengine/cloudsql sample app · Issue #722 · GoogleCloudPlatform/java-docs-samples

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

New issue
Copy link
New issue
Copy link
Closed
Closed
500 server Internal error for appengine/cloudsql sample app#722
Copy link

Description

@architsinha
architsinha
opened on Jun 19, 2017
Issue body actions

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?

Activity

  1. lesv commented on Jun 19, 2017

    @lesv
    lesv
    on Jun 19, 2017
    Contributor
    More actions

    Are you using a SQLv1 or SQLv2 instance?

  2. lesv commented on Jun 19, 2017

    @lesv
    lesv
    on Jun 19, 2017
    Contributor
    More actions

    I just did it with:

    mvn clean appengine:update -Dappengine.appId=MYPROJECT -Dappengine.version=44 -DINSTANCE_CONNECTION_NAME=MYPROJECT:us-central1:bookshelf -Duser=XXXX -Dpassword=YYYYYYYYYY -Ddatabase=ZZZZZZZ

    A SQLv2 instance.

  3. jabubake commented on Apr 3, 2018

    @jabubake
    jabubake
    on Apr 3, 2018
    Contributor
    More actions

    @architsinha please re-open if you are still running into the same issue.

  4. jabubake
    closed this as completedon Apr 3, 2018
  5. minherz
    added 6 commits that reference this issue on Nov 9, 2022

    deps: update dependency com.google.cloud:google-cloud-core to v2.3.0 (#…

    daf73d7

    chore: release 0.122.8 (#713)

    9cc901c

    deps: update dependency com.google.cloud:google-cloud-core to v2.3.0 (#…

    b0aa470

    chore: release 0.122.8 (#713)

    c7c4e79

    deps: update dependency com.google.cloud:google-cloud-core to v2.3.0 (#…

    e87a28e

    chore: release 0.122.8 (#713)

    63db598
  6. Sita04
    added 2 commits that reference this issue on Nov 11, 2022

    deps: update dependency org.springframework.boot:spring-boot-starter-…

    687d1ba

    deps: update dependency org.springframework.boot:spring-boot-starter-…

    d1698a9
  7. Shabirmean
    added a commit that references this issue on Nov 18, 2022

    deps: update dependency com.google.cloud:google-cloud-storage to v2.2…

    4bf9637
  8. gcf-merge-on-green
    added a commit that references this issue on Dec 20, 2022

    samples: migrate code from googleapis/java-aiplatform (#7451)

    24b693d
  9. Sita04
    added a commit that references this issue on Feb 7, 2023

    chore: release 3.1.0 (#708)

    2ccb5eb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.