Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grails 4 dbconsole ui not working #11232

Closed
4 tasks done
niravassar opened this issue Jan 31, 2019 · 1 comment
Closed
4 tasks done

Grails 4 dbconsole ui not working #11232

niravassar opened this issue Jan 31, 2019 · 1 comment
Assignees
Milestone

Comments

@niravassar
Copy link

Task List

  • Steps to reproduce provided
  • Stacktrace (if present) provided
  • Example that reproduces the problem uploaded to Github
  • Full description of the issue provided (see below)

Steps to Reproduce

  1. Create a grails 4 application: grails create-app sample-grails-upgrade
  2. run grails run-app
  3. Get the error:
    Error: Page Not Found (404)
    Path: /dbconsole

Expected Behaviour

h2 dbconsole should occur on a runtime database

Actual Behaviour

no page is found

Environment Information

Operating System: Win 10
Grails Version: 4.0.0.BUILD-SNAPSHOT
JDK Version: 1.8.0_191
Container Version (If Applicable): none
@graemerocher graemerocher added this to the grails-4.0.0 milestone Feb 1, 2019
@graemerocher graemerocher self-assigned this Feb 1, 2019
@graemerocher
Copy link
Member

Seems like Spring Boot now already includes H2 so I have removed our integration. It is available at /h2-console now. See https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-sql.html#boot-features-sql-h2-console

We may wish to add this to the upgrade notes

VincentEnglebert added a commit to VincentEnglebert/creating-your-first-grails-app that referenced this issue Jan 24, 2020
URL updated based on this information: grails/grails-core#11232
jaywritescode added a commit to jaywritescode/creating-your-first-grails-app that referenced this issue Apr 2, 2021
According to [this](grails/grails-core#11232 (comment)), the correct URL for the database console if the developer follows the steps in the guide is now `/h2-console` instead of `dbconsole`.
MohammedRakayby added a commit to MohammedRakayby/creating-your-first-grails-app that referenced this issue Apr 16, 2021
- Updated the URL to "h2-console"
- references: 
1. grails/grails-core#11232
josephcongdon added a commit to josephcongdon/creating-your-first-grails-app that referenced this issue Feb 24, 2022
In order to access the database console please use:
/h2-console
As of February 2022
source where I found this answer:
grails/grails-core#11232
sapanparikh18 added a commit to sapanparikh18/creating-your-first-grails-app that referenced this issue May 29, 2022
H2 DbConsole is not found at 
http://localhost:8080/dbconsole any more but rather at http://localhost:8080/h2-console
Here is the reference grails/grails-core#11232
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants