FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. marcasellkhelaifi
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 12
    • Best 2
    • Controversial 0
    • Groups 0

    marcasellkhelaifi

    @marcasellkhelaifi

    3
    Reputation
    2
    Profile views
    12
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    marcasellkhelaifi Unfollow Follow

    Best posts made by marcasellkhelaifi

    • RE: Can not get into maintenance mode

      This issue, in my opinion, has been resolved in this thread : https://fusionauth.io/community/forum/topic/1086/how-may-i-see-the-name-of-database-created-used-by-fusionauth-in-local-mysql?_=1623774571813.

      If anyone has the same issue, I hope it will be helpful. Thank you.

      posted in Q&A
      M
      marcasellkhelaifi
    • RE: Can not get into maintenance mode

      @robotdan Thank you @robotdan and @dan , I appreciate your time.

      I have installed MySQL/J connector. Then I got an error saying : The database and schema exist, but for some reason the ordinary user you specified cannot connect to it. Perhaps the user already existed and you provided the wrong password. The error from the database was [Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.]..

      This is how Maintenance Mode Database Configuration looks :
      a74cd5ee-8319-4405-9cde-dfafb235910f-image.png
      582e9acb-c619-4442-aedc-60dd2c8944c3-image.png

      I once provided a user credentials with superuser privileges but it still did not work and got the same error. Could you please give a clue ? Thank you...

      posted in Q&A
      M
      marcasellkhelaifi

    Latest posts made by marcasellkhelaifi

    • RE: Login API

      I think you missed to put FusionAuth Tenant ID.

      In my case, I create a file called appConfig.json :

      e89f0007-0a18-41d8-b184-5e820eafa09e-image.png

      The file contains :

      • FusionAuth URL (where you deploy your FusionAuth app such as https://login.mywebsite.com)
      • FusionAuth Tenant ID
      • FusionAuth App ID
      • FusionAuth Client Key

      Afterwards, I create a new instance of FusionAuth like this (in another file):

      d60fe095-14be-4a7e-85fb-44b49a68c462-image.png

      I pass FusionAuth Tenant ID here as a parameter.

      Hence, I can fire a login function like below :
      a4eed8ff-1441-4f15-9a93-9123603c36c7-image.png

      posted in Q&A
      M
      marcasellkhelaifi
    • RE: Can not get into maintenance mode

      This issue, in my opinion, has been resolved in this thread : https://fusionauth.io/community/forum/topic/1086/how-may-i-see-the-name-of-database-created-used-by-fusionauth-in-local-mysql?_=1623774571813.

      If anyone has the same issue, I hope it will be helpful. Thank you.

      posted in Q&A
      M
      marcasellkhelaifi
    • RE: How may I see the name of database created/used by FusionAuth in local (mySQL) ?

      @marcasellkhelaifi My bad, after I tried, I was redirected to a page like this :

      b099e094-4a8e-437a-a0c3-7d224032bc99-image.png

      If I go to http://localhost:9011/admin, the login form shows up :

      c1e99161-1690-4ff5-aa6e-fbc5a30004fa-image.png

      To answer my question, you do not configure database in maintenance mode once the configuration is successful.

      posted in Q&A
      M
      marcasellkhelaifi
    • RE: How may I see the name of database created/used by FusionAuth in local (mySQL) ?

      one question, if I logout from admin dashboard and shutdown Fusionauth then I start it again with ./startup.sh, do I enter maintenance mode database configuration again ?

      posted in Q&A
      M
      marcasellkhelaifi
    • RE: How may I see the name of database created/used by FusionAuth in local (mySQL) ?

      I would like to recap what I faced :

      Steps to reproduce :

      1. I downloaded Fusionauth here : https://fusionauth.io/download/.
      2. I ran Fusionauth by executing fusionauth/bin/startup.sh.
      3. Open http://localhost:9011 and enter maintenance mode configuration.
      4. Having the superadmin credential section blank, using MySQL on port 5432, I clicked the submit button.
      5. I saw an error but I did not know what happened.

      My very first trouble was I did not have MySQL/J connector that bridges MySQL and its client which in this case, Fusionauth. I knew this by looking at Fusionauth logs that was present in fusionauth/logs/fusionauth-app.logs. Therefore, I downloaded it here : https://dev.mysql.com/downloads/connector/j/. Before downloading, I was required to register and login into my Oracle account.

      2cba5c5a-7225-422e-bb5b-0eb635bbec7b-image.png

      I installed MySQL/J connector with :
      sudo dpkg -i mysql-connector-java_8.0.25-1ubuntu20.04_all.deb.deb.

      Still, I was not successful in running Fusionauth. This time, it was about Database. I followed this guide : https://fusionauth.io/docs/v1/tech/installation-guide/fusionauth-app/. I recommend this to anyone who forgets MySQL superadmin user password.

      b19ec48c-03b9-4147-881e-5f77bd33e829-image.png

      After that, please fill in Superuser credential section with your database superuser credentials that you have.

      deca08e1-511c-4073-bc09-1a432ee611c8-image.png

      Finally, if you use MySQL, please make sure you run on port 3306 instead of 5432. I have no idea whether this is a must or not but it was noted in Fusionauth docs. Click submit then proceed to setup wizard to set superadmin credential. Click submit button so you will be redirected to Fusionauth admin dashboard.

      9cb84981-a39f-40a4-bf41-789d19d80ae3-image.png

      You can also see MySQL to make sure you have successfully created a database named fusionauth.

      successfully-created-fusionauth-database.png

      Hopefully this can be helpful for anyone facing the same issue to get started to Fusionauth.

      Thank you for your support @joshua , I appreciate your time!

      posted in Q&A
      M
      marcasellkhelaifi
    • RE: Can not get into maintenance mode

      Thank you @joshua , I will continue this thread in that post.

      posted in Q&A
      M
      marcasellkhelaifi
    • RE: Can not get into maintenance mode

      @robotdan Thank you @robotdan and @dan , I appreciate your time.

      I have installed MySQL/J connector. Then I got an error saying : The database and schema exist, but for some reason the ordinary user you specified cannot connect to it. Perhaps the user already existed and you provided the wrong password. The error from the database was [Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.]..

      This is how Maintenance Mode Database Configuration looks :
      a74cd5ee-8319-4405-9cde-dfafb235910f-image.png
      582e9acb-c619-4442-aedc-60dd2c8944c3-image.png

      I once provided a user credentials with superuser privileges but it still did not work and got the same error. Could you please give a clue ? Thank you...

      posted in Q&A
      M
      marcasellkhelaifi
    • RE: How may I see the name of database created/used by FusionAuth in local (mySQL) ?

      Thanks @joshua !

      But if I do not have a database called fusionauth after running ./startup.sh in fusionauth/bin directory, does it mean there is something wrong ?

      562b8077-08f9-4480-8377-8eeebe4f2b00-image.png

      This is confusing because the error says : The database and schema exist, but for some reason the ordinary user you specified cannot connect to it. Perhaps the user already existed and you provided the wrong password. The error from the database was [Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.]..

      1a391b43-0695-4f20-b56e-baec7b27843a-image.png

      posted in Q&A
      M
      marcasellkhelaifi
    • RE: Can not get into maintenance mode

      Pardon me, would you mind helping this issue @dan ?... Otherwise, could you please give me a documentation link that cover this ? Thank you..

      posted in Q&A
      M
      marcasellkhelaifi
    • RE: Can not get into maintenance mode

      After I checked, I decided to run ``./shutdown.shand executed./start.sh`.

      Next, I found this error : ERROR com.inversoft.maintenance.db.JDBCMaintenanceModeDatabaseService - No [MySQL] Driver found. The [Connector/J jar] may be missing or not be accessible.

      How should I fix this ?

      posted in Q&A
      M
      marcasellkhelaifi