Can't load marketplace

Summary
when i access Plugin Marketplace.
i got a this.

Error connecting to the marketplace server. Please check your settings in the [System Console]

and it showed only 13 plugins. But There are more plugins in marketplace
https://mattermost.com/marketplace/

Steps to reproduce
Load plugin marketplace

Expected behavior
Plugin marketplace loading is successfully.

Observed behavior
What did you see happen? Please include relevant error messages and/or screenshots.

Log

`{"level":"error","ts":1626872944.4146588,"caller":"mlog/log.go:232","msg":"Failed to get plugins from the marketplace server.","path":"/api/v4/plugins/marketplace","request_id":"xxxxxxxxx","ip_addr":"125.176.39.103","user_id":"xxxxxxxxxxxx","method":"GET","err_where":"getRemotePlugins","http_code":500,"err_details":"Get \"https://api.integrations.mattermost.com/api/v1/plugins?build_enterprise_ready=true&cloud=false&enterprise_plugins=false&filter=&local_only=false&page=0&platform=linux-amd64&plugin_id=&return_all_versions=false&server_version=5.34.0\": dial tcp 13.224.99.62:443: i/o timeout"}`

marketplace configuration

config.json

......
"AllowedUntrustedInternalConnections": "api.integrations.mattermost.com",
......
"PluginSettings": {
        "Enable": true,
        "EnableUploads": false,
        "AllowInsecureDownloadUrl": false,
        "EnableHealthCheck": true,
        "Directory": "./plugins",
        "ClientDirectory": "./client/plugins",
        "Plugins": {
            "com.mattermost.nps": {
                "enablesurvey": false
            }
        },
        "PluginStates": {
            "com.mattermost.nps": {
                "Enable": false
            },
            "com.mattermost.plugin-channel-export": {
                "Enable": true
            },
            "com.mattermost.plugin-incident-management": {
                "Enable": false
            }
        },
        "EnableMarketplace": true,
        "EnableRemoteMarketplace": true,
        "AutomaticPrepackagedPlugins": true,
        "RequirePluginSignature": false,
        "MarketplaceUrl": "https://api.integrations.mattermost.com",
        "SignaturePublicKeyFiles": []
    },
......

Hi, @jg2313

I believe that you are seeing something like this on your end:

Since the log snippet is complaining about i/o timeout, can you please confirm the connectivity of your Mattermost Server to the Marketplace by running the echo | telnet api.integrations.mattermost.com 443? You would see something that looks like this:

ahmaddanial@mattermost:~$ echo | telnet api.integrations.mattermost.com 443
Trying 65.8.113.91...
Connected to api.integrations.mattermost.com.
Escape character is '^]'.
Connection closed by foreign host.

Can you also confirm that you have configured the ownership of the files in the /opt/mattermost directory to be under the mattermost user?

If not, please run the sudo chown -R mattermost:mattermost /opt/mattermost/ and reload the Marketplace again. Let me know how it goes.

Thank you. there is no response about telnet. ping is ok. but telnet is no response.
And now i solved it with network re-configure.
The error notice(Error connecting to the marketplace server) disappeared.

But it still shows only 28 plugins. But There are more plugins in marketplace
https://mattermost.com/marketplace/

Hello, @jg2313

Glad to know that the issue is resolved. Yes, it only shows 28 plugins by default as I can see from my end too:

Is there any other plugins that you were expecting to see on the list from the Plugin Marketplace within the Mattermost Server itself that you come across from the website?

By default, it is mentioned in the github page that:

The Plugin Marketplace is a collection of plugins for use with Mattermost. This repository houses the stateless HTTP service that is run at https://api.integrations.mattermost.com. It is meant to be queried by the Mattermost server to enable plugin discovery by System Admins.

Which makes the rest of the plugins non-discoverable by default and requires you to upload it manually.

I can then check with the plugin marketplace team if the plugin you came across is excluded by default or otherwise.

Thank you for your help.