Skip to content

failed to query servers: failed to deallocate cached statement(s): conn busy #400

Closed

Description

@loretoparisi

Describe the bug
Error when calling the api https://registry.modelcontextprotocol.io/v0/servers?limit=10

"message": "failed to query servers: failed to deallocate cached statement(s): conn busy"

To Reproduce
Steps to reproduce the behavior:

  1. curl https://registry.modelcontextprotocol.io/v0/servers?limit=10

or

open https://registry.modelcontextprotocol.io/v0/servers?limit=10

Expected behavior
retrieve the json with server list

Logs

Additional context
@domdomegg @toby

Activity

  1. added
    bug
    on Sep 9, 2025
  2. ryanbaumann commented on Sep 9, 2025

    @ryanbaumann

    +1 same error when trying to publish a new server to the registry

  3. rodincave commented on Sep 9, 2025

    @rodincave

    Same here when trying to publish new server via dns login

  4. cameroncooke commented on Sep 10, 2025

    @cameroncooke

    Been like this for about 10 hours, this feels more like an outage than a transient availability issue.

  5. rdimitrov commented on Sep 10, 2025

    @rdimitrov
    Member

    Cross-posting from Discord:

    Thanks so much to everyone who’s been reporting these issues. That’s incredibly helpful and much appreciated! 🙏 It’s also really encouraging to see the level of interest from the community which speaks volumes about the value of the registry itself.

    That said I’d like to highlight that this is still a preview release and while everyone is excited to see people exploring it there aren’t any hard guarantees yet about the stability of the registry at this stage. The FAQ has a bit more detail if you're interested: https://github.com/modelcontextprotocol/registry/blob/main/docs/reference/faq.md#whats-the-expected-reliability

  6. loretoparisi commented on Sep 10, 2025

    @loretoparisi
    Author

    Thanks @rdimitrov, my contribution/suggestion here would be to prioritize the discovery api above, that is the entry point of the system! Thanks a lot for the great work.

  7. domdomegg commented on Sep 10, 2025

    @domdomegg
    Member

    Hey folks, sorry for the outage here! We've been really excited to see the high demand for the registry even as it's in preview :D

    @rdimitrov I think has pushed a fix for the issue in #408, which we're deploying and monitoring now.

    Apologies again for the outage, and I'll post another status update once we've confirmed the API errors have gone down.

  8. pinned this issue on Sep 10, 2025
  9. JonZeolla commented on Sep 10, 2025

    @JonZeolla

    Thank you! I was hitting this issue previously and retried successfully just now

  10. burningion commented on Sep 10, 2025

    @burningion

    Just wanted to follow up here, as I also just got this error as of a few minutes ago.

    $ mcp-publisher publish
    Publishing to https://registry.modelcontextprotocol.io...
    Error: publish failed: server returned status 400: {"title":"Bad Request","status":400,"detail":"Failed to publish server","errors":[{"message":"failed to query servers: failed to deallocate cached statement(s): conn busy"}]}
    

    Trying again...

    $ mcp-publisher publish
    Publishing to https://registry.modelcontextprotocol.io...
    Error: publish failed: server returned status 401: {"title":"Unauthorized","status":401,"detail":"Invalid or expired Registry JWT token","errors":[{"message":"failed to parse token: token has invalid claims: token is expired"}]}
    

    I don't know if the deployment happened in between or not, but I seem to have had my token expire relatively quickly. (< 5 mins??, maybe too short?)

    So I re login and finally I get:

    $ mcp-publisher publish
    Publishing to https://registry.modelcontextprotocol.io...
    ✓ Successfully published
    

    But when I go to load my registry I've pushed, I get no data returned:

    https://registry.modelcontextprotocol.io/servers/io.github.burningion/video-editing-mcp

    $ curl https://registry.modelcontextprotocol.io/servers/io.github.burningion/video-editing-mcp
    $
    

    It's unclear whether there's a backend process / delay I should be waiting for, or if something went wrong.

    When I retry my deployment I get:

    $ mcp-publisher publish
    Publishing to https://registry.modelcontextprotocol.io...
    Error: publish failed: server returned status 400: {"title":"Bad Request","status":400,"detail":"Failed to publish server","errors":[{"message":"invalid version: cannot publish duplicate version"}]}
    
  11. loretoparisi commented on Sep 10, 2025

    @loretoparisi
    Author

    For dev convenience I have deployed a simple package for registry discover and install

    https://pypi.org/project/mcp-registry-cli/

    Image
  12. domdomegg commented on Sep 10, 2025

    @domdomegg
    Member

    @burningion heya, sorry you hit this issue! Yes I think this should have been resolved now so you probably just saw the end of the outage.

    The access tokens for registry are very short lived - just 5 minutes in production. The intention is that you'd always auth with some other auth method just before publishing.

    Regarding your server, the registry doesn't support direct lookup by path like /v0/servers/io.github.burningion/video-editing-mcp (sorry I think the guide is wrong here - will fix asap, tracking in #410!). Instead, you have two options:

    Option 1: Search by name

    • curl "https://registry.modelcontextprotocol.io/v0/servers?search=io.github.ref-tools/ref-tools-mcp"

    Or just search by a partial name:

    • curl "https://registry.modelcontextprotocol.io/v0/servers?search=ref-tools-mcp"

    Option 2: Get by UUID (if you know the server's UUID)

    • curl "https://registry.modelcontextprotocol.io/v0/servers/3d452687-9ce1-4b5e-98b9-2fbf1fb7abb7"

    You can also explore the full API documentation at https://registry.modelcontextprotocol.io/docs

  13. domdomegg commented on Sep 10, 2025

    @domdomegg
    Member

    @loretoparisi that's really cool! Maybe share in Discord/Discussions?

  14. domdomegg commented on Sep 10, 2025

    @domdomegg
    Member
    Image

    Looks like the 500 statues and error logs for conn busy have dropped to ~0. Think this is now resolved so I'm going to close this issue. If you see any more conn busy errors in the next few hours do please reopen, and if you get any different problems please do open new issues.

    Thanks again for everyone here for reporting this and giving us feedback during the preview launch. And for @rdimitrov for jumping in with the fix. Really appreciate the community here 🙌

  15. unpinned this issue on Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions