FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. twilkinson
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 11
    • Best 2
    • Controversial 0
    • Groups 0

    twilkinson

    @twilkinson

    2
    Reputation
    2
    Profile views
    11
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    twilkinson Unfollow Follow

    Best posts made by twilkinson

    • RE: Non-2xx status code from webhook causing 504 Gateway error from login API

      I have added a further suggestion to the issue on the app repo.

      https://github.com/FusionAuth/fusionauth-issues/issues/1250#issuecomment-859634082

      posted in Q&A
      T
      twilkinson
    • SEARCH_TYPE in docker-compose.yml not taking effect?

      I'm running the docker container fusionauth/fusionauth-app:1.40.2 and in docker-compose.yml I have set:

      environment:
        ...
        SEARCH_TYPE: database
        ...
      

      However in the admin UI under System / About it looks like it's using Elasticsearch:

      294599b9-1fd3-4d55-aa32-7c51fe730d33-image.png

      What am I missing?

      posted in Q&A
      T
      twilkinson

    Latest posts made by twilkinson

    • Broken pipe error in logs

      I'm seeing the same issue described in this old post, which unfortunately offers no further explanation or solution:

      Re: Performance issues after upgrade

      I'm running FusionAuth™ version 1.47.1 in a docker container.
      The system seems to be behaving properly, but from time to time this error shows up in the logs:

      Oct 31 14:17:06 auth2 fusionauth 2023-10-31 06:17:06.672 PM ERROR io.fusionauth.http.server.HTTPServerThread - An exception was thrown during processing
      Oct 31 14:17:06 auth2 fusionauth java.io.IOException: Broken pipe
      Oct 31 14:17:06 auth2 fusionauth at java.base/sun.nio.ch.FileDispatcherImpl.writev0(Native Method)
      Oct 31 14:17:06 auth2 fusionauth at java.base/sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:66)
      Oct 31 14:17:06 auth2 fusionauth at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:217)
      Oct 31 14:17:06 auth2 fusionauth at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:153)
      Oct 31 14:17:06 auth2 fusionauth at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:563)
      Oct 31 14:17:06 auth2 fusionauth at java.base/java.nio.channels.SocketChannel.write(SocketChannel.java:642)
      Oct 31 14:17:06 auth2 fusionauth at io.fusionauth.http.server.HTTPServerThread.write(HTTPServerThread.java:323)
      Oct 31 14:17:06 auth2 fusionauth at io.fusionauth.http.server.HTTPServerThread.run(HTTPServerThread.java:171)

      Has there been a resolution for this?

      posted in Q&A
      T
      twilkinson
    • RE: SEARCH_TYPE in docker-compose.yml not taking effect?

      @rorygwgehman Thanks for the reply.

      My installation does not seem to have the System / Search menu you referenced -- System shows these choices:

      f200bde5-4011-4cc7-9e68-4028c6bed0af-image.png

      and System / About shows this, which I assume means it's using Elasticsearch, but there's no way to change the setting:

      3ddd4ebd-0053-4028-8b39-7f80e348a511-image.png

      There is a Settings / System menu but that doesn't have a way to set the Search Provider

      b2fd7d81-8958-4010-a0ec-4f7aaaa49bf3-image.png

      I'm running version 1.40.2 -- would that make a difference?

      posted in Q&A
      T
      twilkinson
    • SEARCH_TYPE in docker-compose.yml not taking effect?

      I'm running the docker container fusionauth/fusionauth-app:1.40.2 and in docker-compose.yml I have set:

      environment:
        ...
        SEARCH_TYPE: database
        ...
      

      However in the admin UI under System / About it looks like it's using Elasticsearch:

      294599b9-1fd3-4d55-aa32-7c51fe730d33-image.png

      What am I missing?

      posted in Q&A
      T
      twilkinson
    • "Insufficient memory for the Java Runtime Environment" with fusionauth/fusionauth-app:1.41.0

      I'm running the docker image fusionauth/fusionauth-app:1.40.2 successfully but when I try to upgrade to fusionauth/fusionauth-app:1.41.0 (or any later version) I get the following messages in my log:

      Feb 08 19:58:27 auth fusionauth --> Logging to /usr/local/fusionauth/logs/fusionauth-app.log
      Feb 08 19:58:27 auth fusionauth [0.007s][warning][os,thread] Failed to start thread - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.
      Feb 08 19:58:27 auth fusionauth #
      Feb 08 19:58:27 auth fusionauth # There is insufficient memory for the Java Runtime Environment to continue.
      Feb 08 19:58:27 auth fusionauth # Cannot create worker GC thread. Out of system resources.
      Feb 08 19:58:27 auth fusionauth # An error report file with more information is saved as:
      Feb 08 19:58:27 auth fusionauth # /usr/local/fusionauth/fusionauth-app/hs_err_pid1.log

      I'm not sure but the error seems to be telling me that I should increase the stack size of the JRE. I've tried setting new Java args in the .env and docker-compose.yml files but the error still occurs:

      .env
      FUSIONAUTH_APP_MEMORY=2G
      FUSIONAUTH_APP_ADDITIONAL_JAVA_ARGS="-Xms2g -Xmx2g -Xss1g"

      docker-compose.yml
      FUSIONAUTH_APP_MEMORY: ${FUSIONAUTH_APP_MEMORY}
      FUSIONAUTH_APP_ADDITIONAL_JAVA_ARGS: ${FUSIONAUTH_APP_ADDITIONAL_JAVA_ARGS}

      My VM seems to have enough memory

      root@auth:~# free -h
      total used free shared buff/cache available
      Mem: 7.8Gi 5.6Gi 1.4Gi 18Mi 770Mi 1.7Gi
      Swap: 0B 0B 0B

      Is this the right way to specify the Java args?
      What else could be wrong?

      Thanks.

      posted in Q&A
      T
      twilkinson
    • RE: [SearchEngineRequestFailedException] on PATCH user data

      @joshua

      Doing a Reindex fixed it - I'm new to FusionAuth and didn't know that operation was there.

      Thanks for the help.

      posted in Q&A
      T
      twilkinson
    • [SearchEngineRequestFailedException] on PATCH user data

      I'm running FusionAuth version 1.27.2, basic installation using the docker container, and have encountered this problem.

      If I send a request to PATCH /api/user/{userId} (existing {userid}) with request body

      { "user": { "data": { "foo": { "value": "bar" } } } }

      it returns the error

      { "generalErrors": [ { "code": "[SearchEngineRequestFailedException]", "message": "A request to the search index has failed. This error is unexpected. Please review the troubleshooting guide found in the documentation for assistance and the available support channels." } ] }

      However, if I simply change the property name in the request body to fee

      { "user": { "data": { "fee": { "value": "bar" } } } }

      the PATCH operation succeeds.

      The error only occurs if the name is foo and the value for foo is an object. If the value for foo is a string

      { "user": { "data": { "foo": "bar" } } }

      it works fine.

      Can anyone else duplicate this? Any explanation?

      posted in Q&A
      T
      twilkinson
    • RE: Non-2xx status code from webhook causing 504 Gateway error from login API

      I have added a further suggestion to the issue on the app repo.

      https://github.com/FusionAuth/fusionauth-issues/issues/1250#issuecomment-859634082

      posted in Q&A
      T
      twilkinson
    • RE: Non-2xx status code from webhook causing 504 Gateway error from login API

      Hi @dan ,

      Yes, that does answer my question. Fwiw, I did find the choice of 504 somewhat misleading.

      Thanks,

      posted in Q&A
      T
      twilkinson
    • RE: Non-2xx status code from webhook causing 504 Gateway error from login API

      Hi Josh,

      Thanks for your reply.

      I'm new to FusionAuth and am just trying out different things to learn how to use it properly.

      I did see the comments in the guide you mentioned and I'm pretty sure I'm following them.

      As I described in the OP, I've set up a simple webhook that just returns 401 Unauthorized with the payload Content-Type: application/json; charset=UTF-8 and the empty json object {}. It doesn't really do anything else. I've tested it with Postman.

      Now when I call any FusionAuth endpoint (for example /api/login), I get a 504 Gateway Timeout error.

      I guess my question is, is that the error I should expect from the FusionAuth endpoint when my webhook returns a 401?

      Edit: I should mention that if I change the webhook to return 200, the FusionAuth endpoint behaves normally and returns 200.

      Thanks,
      Terry

      posted in Q&A
      T
      twilkinson
    • RE: Does api/logout revoke the bearer/refresh token?

      The link you mention in your first post (https://fusionauth.io/docs/v1/tech/apis/login/#logout-a-user) has the following paragraph.

      "The refresh token is only revoked if the request contains the refresh_token cookie or the refreshToken request parameter."

      Does that not mean that, if you supply the refreshToken request parameter, then logout will revoke it?

      posted in Q&A
      T
      twilkinson