FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Maintenance Mode DB creation fails without message with PostgreSQL 15 on Windows

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    2
    2.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pclark
      last edited by

      On Windows Server 2022, installed postgres 15, then attempted to install FusionAuth app and search (1.40.2). When Maintenance Mode came up, entered postgres user and password, used default fusionauth user and password, and clicked submit. Page came back to Maintenance Mode screen without any error message. Log showed stack trace with

       Cause: org.postgresql.util.PSQLException: ERROR: permission denied for schema public
      

      Looking in postgres list of dbs, saw the fusionauth db had been created with UTF8 for Collate and Ctype params. Looking at the advanced installation instructions, saw manual db setup for Windows required:

      CREATE DATABASE fusionauth ENCODING 'UTF-8' LC_CTYPE 'English_United States' LC_COLLATE 'English_United States' TEMPLATE template0;
      

      Was able to use these instructions to create the db and user, then Maintenance Mode was able to complete table creation and setup.
      If not possible for Maintenance Mode to detect that the db is on Windows, would be great to have an error message instead of having to interpret the log file trace.

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @pclark
        last edited by

        @pclark

        Thanks for sharing this. I filed an issue based on your helpful post.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • P pclark referenced this topic on
        • First post
          Last post