FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. johnmiller
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 9
    • Best 3
    • Controversial 0
    • Groups 0

    johnmiller

    @johnmiller

    4
    Reputation
    5
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    johnmiller Unfollow Follow

    Best posts made by johnmiller

    • Error 403 with Nginx in front

      Hi,

      After upgrading to version 1.41.3, I cannot log in to the FA Admin panel. I get the login screen, but after entering the credentials, I get the following HTTP ERROR 403:

      alt text

      My Nginx config is

      server {
              server_name auth.mydomain.com;
      
              access_log            /var/log/nginx/auth.log;
      
      
              location / {
                      proxy_http_version 1.1;
                      proxy_set_header X-Forwarded-Proto $scheme;
                      proxy_set_header Host $host;
                      proxy_set_header X-Forwarded-Host $host;
                      proxy_set_header X-Forwarded-Server $host;
                      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                      proxy_set_header X-Real-IP $remote_addr;
                      proxy_pass http://fusionauth;
              }
      
      }
      

      I have checked the following link:
      https://github.com/FusionAuth/fusionauth-contrib/blob/master/Reverse Proxy Configurations/nginx/nginx.ssl.conf

      Related posts:
      https://fusionauth.io/community/forum/topic/1575/nginx-ssl-proxy-error
      https://fusionauth.io/community/forum/topic/1059/kubernetes-nginx-ingress-controller-with-fusionauth-backend/5

      posted in Q&A
      J
      johnmiller
    • FusionAuth community version for a commercial system

      Hi,

      We are thinking of self-hosting and using the community version of FusionAuth to manage users of our commercial system. FusionAuth will be used via the REST interface to handle authentication and users that are using our system.

      So the question is can we use the community version of FusionAuth free of cost?

      We have gone through https://fusionauth.io/pricing and https://fusionauth.io/license-faq pages but we couldn't get a definitive answer.

      Best regards,
      John

      posted in Q&A
      J
      johnmiller
    • Fusionauth with Pgbouncer

      Re: Cluster install

      Hi,

      I am using FA 1.41.3 behind Pgbouncer with the following configuration:

      • max_clients: 3000
      • max_db_connections: 10
      • pool_mode: session

      FA is working fine but I see the following errors in the fusionauth-app.log:

      ### Error querying database.  Cause: java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 2008ms.
      ### The error may exist in io/fusionauth/api/domain/InstanceMapper.java (best guess)
      ### The error may involve io.fusionauth.api.domain.InstanceMapper.retrieve
      ### The error occurred while executing a query
      ### Cause: java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 2008ms.
      	at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
      	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:153)
      	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:145)
      	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
      	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76)
      	at jdk.internal.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      	at org.apache.ibatis.session.SqlSessionManager$SqlSessionInterceptor.invoke(SqlSessionManager.java:357)
      	at jdk.proxy2/jdk.proxy2.$Proxy51.selectOne(Unknown Source)
      	at org.apache.ibatis.session.SqlSessionManager.selectOne(SqlSessionManager.java:166)
      	at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:87)
      	at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:145)
      	at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:86)
      	at jdk.proxy2/jdk.proxy2.$Proxy58.retrieve(Unknown Source)
      	at io.fusionauth.api.license.FusionAuthLicenseMetaDataManager.localLookup(FusionAuthLicenseMetaDataManager.java:50)
      	at com.inversoft.license.v2.BaseConfigurationLicenseMetaDataManager.lookup(BaseConfigurationLicenseMetaDataManager.java:30)
      	at com.inversoft.license.v2.local.DefaultLocalLicenseSystem.load(DefaultLocalLicenseSystem.java:35)
      	at com.inversoft.license.v2.DefaultLicenseProvider$LocalReloader.run(DefaultLicenseProvider.java:131)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
      	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
      	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 2008ms.
      	at com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:696)
      	at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:181)
      	at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:146)
      	at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:100)
      	at org.apache.ibatis.transaction.jdbc.JdbcTransaction.openConnection(JdbcTransaction.java:139)
      	at org.apache.ibatis.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java:61)
      	at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:337)
      	at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:86)
      	at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62)
      	at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325)
      	at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
      	at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
      	at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89)
      	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:151)
      	... 23 common frames omitted
      Caused by: org.postgresql.util.PSQLException: This connection has been closed.
      	at org.postgresql.jdbc.PgConnection.checkClosed(PgConnection.java:907)
      	at org.postgresql.jdbc.PgConnection.setNetworkTimeout(PgConnection.java:1649)
      	at com.zaxxer.hikari.pool.PoolBase.setNetworkTimeout(PoolBase.java:561)
      	at com.zaxxer.hikari.pool.PoolBase.isConnectionDead(PoolBase.java:168)
      	at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:170)
      	... 35 common frames omitted
      WARN  com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection org.postgresql.jdbc.PgConnection@6d045a91 (This connection has been closed.). Possibly consider using a shorter maxLifetime value.
      WARN  com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection org.postgresql.jdbc.PgConnection@4e4d434b (This connection has been closed.). Possibly consider using a shorter maxLifetime value.
      ERROR io.fusionauth.api.service.system.DefaultAsyncTaskManager - An exception occurred while managing an async task.
      org.apache.ibatis.exceptions.PersistenceException: 
      

      My suspicion is that the error is related to the Pgbouncer. Can you please suggest what I need to change to fix this error?

      BR,
      John

      posted in Q&A
      J
      johnmiller

    Latest posts made by johnmiller

    • Fusionauth with Pgbouncer

      Re: Cluster install

      Hi,

      I am using FA 1.41.3 behind Pgbouncer with the following configuration:

      • max_clients: 3000
      • max_db_connections: 10
      • pool_mode: session

      FA is working fine but I see the following errors in the fusionauth-app.log:

      ### Error querying database.  Cause: java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 2008ms.
      ### The error may exist in io/fusionauth/api/domain/InstanceMapper.java (best guess)
      ### The error may involve io.fusionauth.api.domain.InstanceMapper.retrieve
      ### The error occurred while executing a query
      ### Cause: java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 2008ms.
      	at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
      	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:153)
      	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:145)
      	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
      	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76)
      	at jdk.internal.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      	at org.apache.ibatis.session.SqlSessionManager$SqlSessionInterceptor.invoke(SqlSessionManager.java:357)
      	at jdk.proxy2/jdk.proxy2.$Proxy51.selectOne(Unknown Source)
      	at org.apache.ibatis.session.SqlSessionManager.selectOne(SqlSessionManager.java:166)
      	at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:87)
      	at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:145)
      	at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:86)
      	at jdk.proxy2/jdk.proxy2.$Proxy58.retrieve(Unknown Source)
      	at io.fusionauth.api.license.FusionAuthLicenseMetaDataManager.localLookup(FusionAuthLicenseMetaDataManager.java:50)
      	at com.inversoft.license.v2.BaseConfigurationLicenseMetaDataManager.lookup(BaseConfigurationLicenseMetaDataManager.java:30)
      	at com.inversoft.license.v2.local.DefaultLocalLicenseSystem.load(DefaultLocalLicenseSystem.java:35)
      	at com.inversoft.license.v2.DefaultLicenseProvider$LocalReloader.run(DefaultLicenseProvider.java:131)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
      	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
      	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 2008ms.
      	at com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:696)
      	at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:181)
      	at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:146)
      	at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:100)
      	at org.apache.ibatis.transaction.jdbc.JdbcTransaction.openConnection(JdbcTransaction.java:139)
      	at org.apache.ibatis.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java:61)
      	at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:337)
      	at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:86)
      	at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62)
      	at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325)
      	at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
      	at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
      	at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89)
      	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:151)
      	... 23 common frames omitted
      Caused by: org.postgresql.util.PSQLException: This connection has been closed.
      	at org.postgresql.jdbc.PgConnection.checkClosed(PgConnection.java:907)
      	at org.postgresql.jdbc.PgConnection.setNetworkTimeout(PgConnection.java:1649)
      	at com.zaxxer.hikari.pool.PoolBase.setNetworkTimeout(PoolBase.java:561)
      	at com.zaxxer.hikari.pool.PoolBase.isConnectionDead(PoolBase.java:168)
      	at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:170)
      	... 35 common frames omitted
      WARN  com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection org.postgresql.jdbc.PgConnection@6d045a91 (This connection has been closed.). Possibly consider using a shorter maxLifetime value.
      WARN  com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection org.postgresql.jdbc.PgConnection@4e4d434b (This connection has been closed.). Possibly consider using a shorter maxLifetime value.
      ERROR io.fusionauth.api.service.system.DefaultAsyncTaskManager - An exception occurred while managing an async task.
      org.apache.ibatis.exceptions.PersistenceException: 
      

      My suspicion is that the error is related to the Pgbouncer. Can you please suggest what I need to change to fix this error?

      BR,
      John

      posted in Q&A
      J
      johnmiller
    • RE: Error 403 with Nginx in front

      Hi @dan,

      Is there any update on this issue?

      BR,
      John

      posted in Q&A
      J
      johnmiller
    • Error 403 with Nginx in front

      Hi,

      After upgrading to version 1.41.3, I cannot log in to the FA Admin panel. I get the login screen, but after entering the credentials, I get the following HTTP ERROR 403:

      alt text

      My Nginx config is

      server {
              server_name auth.mydomain.com;
      
              access_log            /var/log/nginx/auth.log;
      
      
              location / {
                      proxy_http_version 1.1;
                      proxy_set_header X-Forwarded-Proto $scheme;
                      proxy_set_header Host $host;
                      proxy_set_header X-Forwarded-Host $host;
                      proxy_set_header X-Forwarded-Server $host;
                      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                      proxy_set_header X-Real-IP $remote_addr;
                      proxy_pass http://fusionauth;
              }
      
      }
      

      I have checked the following link:
      https://github.com/FusionAuth/fusionauth-contrib/blob/master/Reverse Proxy Configurations/nginx/nginx.ssl.conf

      Related posts:
      https://fusionauth.io/community/forum/topic/1575/nginx-ssl-proxy-error
      https://fusionauth.io/community/forum/topic/1059/kubernetes-nginx-ingress-controller-with-fusionauth-backend/5

      posted in Q&A
      J
      johnmiller
    • FusionAuth community version for a commercial system

      Hi,

      We are thinking of self-hosting and using the community version of FusionAuth to manage users of our commercial system. FusionAuth will be used via the REST interface to handle authentication and users that are using our system.

      So the question is can we use the community version of FusionAuth free of cost?

      We have gone through https://fusionauth.io/pricing and https://fusionauth.io/license-faq pages but we couldn't get a definitive answer.

      Best regards,
      John

      posted in Q&A
      J
      johnmiller
    • How to send files as attachments with an Email?

      Hi,

      I would like to send files as attachments with an email using the Send Email API.

      BR,
      John

      posted in Q&A
      J
      johnmiller
    • Get user object or user's email using verificationId

      Hi,

      I would like to send a welcome email to a user when he or she verifies her/his email address. But there is no way to get the user object or the email address via verificationId when using the following API:

      1e5e8d21-68e8-4387-b97a-d69e40ef320f-image.png

      Best regards,
      John

      posted in Q&A
      J
      johnmiller
    • RE: Provide from_address with send_email API

      @dan I wanted to use the same email template but parameterized from_email depending on the use case.
      Anyway, I think I will create multiple templates.

      posted in Q&A
      J
      johnmiller
    • Provide from_address with send_email API

      Hi,

      Is it possible to provide an email address for from_address field when using send_email API? Or do we have to put a static email address in the From Email field in the email template?

      Thanks!
      John

      posted in Q&A
      J
      johnmiller
    • RE: Resend Set Password Email

      Hi,
      I am dealing with the same issue.

      @dan said in Resend Set Password Email:

      @shanon Nope, sorry, the email with that template is only sent the first time a user is created.

      But the problem is that Setup Password Email has an expiry. What should the system do once it has expired? We don't want the user to enter the registration information again.

      Can we get an API for the Setup Password Email as we have for the forgot password email or User Registration Verification Email where a user can request a new link/email if the link in the last email has expired?

      posted in Q&A
      J
      johnmiller