glpi icon indicating copy to clipboard operation
glpi copied to clipboard

The user session freezes when entering the marketplace.

Open Balots opened this issue 3 months ago • 12 comments

Hi, everyone! I recently manually modified the files of the free Genericobject plugin to add icons for object groups in the sidebar. After doing this, I encountered a problem: when switching to the Plugins/Marketplace tab, the user session would freeze and there was no way to exit without restarting Apache. GLPI continued to work, and other users were unaffected. Initially, I thought I'd broken something, so I deleted the plugin. This didn't help, so I decided there were some remaining entries in the database that were preventing it from loading. I cleared the plugin's database. Then, as recommended in the guide, I updated to the latest version, but the problem persisted. (Naturally, I had made all backups beforehand.) I then decided to delete all plugins and their database entries. This didn't help. I then reverted to my previous version of GLPI, but did a clean installation and dumped the database. The Marketplace started working, but when I entered my registration key, the problem returned.

I am not attaching error logs because there are no entries related to this in either GLPI or Apache logs.

Balots avatar Oct 30 '25 06:10 Balots

Did you tried to empty the GLPI files/_cache directory and restart the PHP server?

cedric-anne avatar Oct 30 '25 07:10 cedric-anne

Yes, I tried clearing the cache first. I also tried restarting all possible services. I also rebooted the server overnight. The problem persists.

Balots avatar Oct 30 '25 12:10 Balots

Did you tried to remove the plugins directories? On marketplace/plugins pages, all setup.php files of all plugins are loaded. Maybe one of them causes an infinite loop.

cedric-anne avatar Oct 30 '25 12:10 cedric-anne

At first, I thought I could delete the plugin files, and I did, but it didn't help. Now I've installed a completely clean GLPI. There are no plugins for it, and I didn't even transfer the configuration files. I just loaded the previous database.

And that helped: the marketplace loaded without freezing my session. But the problem returned when I entered the GLPI registration key from my account.

Balots avatar Oct 30 '25 12:10 Balots

Today I tried reinstalling a clean version of GLPI. I didn't transfer the database. I simply entered my registration key. And the error persisted: the marketplace terminated the user session.

Balots avatar Oct 31 '25 06:10 Balots

What is your subscription level ?

cedric-anne avatar Nov 03 '25 08:11 cedric-anne

We’ve reproduced the same behavior — the marketplace:* commands (e.g., marketplace:info, marketplace:upgrade) hang indefinitely. System logs and lsof show connections to vps-0d484ffe.vps.ovh.net, which redirects to https://services.glpi-network.com. Network/DNS/TLS checks show:

  • The services.glpi-network.com host is reachable over HTTPS (HTTP/1.1).
  • Certificate is valid (Let's Encrypt).
  • DNS resolves correctly (51.210.109.9). PHP and cURL can fetch pages successfully via file_get_contents() and curl. However: The /api endpoint returns HTTP 404. When called indirectly from GLPI’s marketplace commands, the request hangs until timeout (likely due to API endpoint change or missing redirect logic on OVH side). Our conclusion: The issue is not with SSL, PHP, or the local environment. It seems the Marketplace backend (services.glpi-network.com/api) no longer responds as expected — possibly API structure or endpoint change affecting plugin communication. Subscription level: Registered account only (no active subscription, free Marketplace access).

Sferoflex avatar Nov 07 '25 10:11 Sferoflex

I can add that the problem can be solved by skipping the registration key and installing plugins manually through the console. Unfortunately, in this case, GLPI plugins are unavailable. More precisely, they replicate the marketplace issue.

Balots avatar Nov 07 '25 14:11 Balots

What is your subscription level ?

cedric-anne avatar Nov 10 '25 09:11 cedric-anne

What is your subscription level ?

In my case, As I mentioned earlier, my subscription level is Registered (no active paid subscription). However, I’d like to point out that in the first half of October, with GLPI version 11.0.1, all Marketplace functionality (for free plugins) was fully accessible under this subscription level — approximately within a week after the release. By the end of October and up to the present time, the Marketplace has not been accessible at all.

Sferoflex avatar Nov 10 '25 10:11 Sferoflex

Same issue here. All worked like a charm. But two weeks ago Marketplace started to freeze users sessions with errors related to curl Uncaught Exception GuzzleHttp\Exception\ConnectException: cURL error 28: Resolving timed out after 5000 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://services.glpi-network.com/api/marketplace/plugins in /var/www/html/glpi/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php at line 210 My subscription level is Registered. Sometimes it let users in, sometimes it's not. version: GLPI 10.0.18

akstis-typer avatar Nov 28 '25 09:11 akstis-typer

Hi,

The 404 error is fixed by #22140.

The "freeze" issue makes me feel like your connection is caught by a firewall that accept the connection but keep it alive without sending any content for eternity. I will try to add a timeout on the connection transfer, and try to add a better error handling, so the free will not occur anymore.

cedric-anne avatar Dec 04 '25 11:12 cedric-anne