Issue: Delete user feature stopped working on staging/production Docker setups, but works on local (no Docker setup).
Description:Stefan_Brighiu_M reported an issue where the delete user secondary window does not show on staging/prod (Docker setup). He has tried debugging and checking the console and logs but found nothing. The issue started a few weeks ago, and he suspects it might be related to JavaScript.
Investigation:
Canapin asked for the Discourse version and any errors in the browser dev tools console or logs, but Stefan_Brighiu_M found none.
Stephen pointed out that the Discourse version (2.5.0.beta7) is quite old and suggested upgrading. However, Stefan_Brighiu_M explained that they have a custom plugin and a complex setup, making upgrades challenging.
Stephen suggested looking into commits after the release, but Stefan_Brighiu_M mentioned that nothing has changed since the issue started.
Stephen asked again about errors in logs or the browser console, but Stefan_Brighiu_M confirmed finding none.
Custom Plugin and Setup:
Stefan_Brighiu_M explained that their custom plugin runs most of the logic and handles data storage, authentication, and authorization.
Stephen asked why the custom plugin does not appear in the plugins list, and Stefan_Brighiu_M clarified that it’s built into the code.
Potential Causes:
Stephen mentioned that the base image might have been updated, potentially causing issues with the older environment. However, Stefan_Brighiu_M ruled this out due to their specific Docker image build process.
Temporary Solution:
Stefan_Brighiu_M decided to create a deletion flow in their admin dashboard, as the DELETE endpoint works properly for simple users.
I have an issue where the delete user secondary window (the one that actually deletes the user, does not show on staging/prod (docker setup), but works fine locally - no docker setup)
We have a custom plugin that runs all the logic, making discourse just a tool for storing data and handling basic authorization and authentication. We run a mobile-first API that also handles the payment validation and social logins with mobile apps (custom flows) among other advanced features
My issue is not really with the discourse setup as a whole, or with the version, as it was running well for 3 years and it will still run for a few years because it has no strict dependencies on anything, and we have it hosted on a dedicated server.
I really need someone to tell me how to go about finding out why when pressing the action, there is nothing happening… As I see it, it’s all javascript
Is there any risk the base image got updated though? Discourse_docker went up to ruby 3.1 in Jan and we’ve seen a number of older environments behave unpredictably with the change.
So I created the last docker image around 5-6 months ago… And I still think it was pointing to the version of docker that was up when my discourse version was new as we saved everything ahead of time. - Yup 24 Jun 2020
FYI: removed docker_manager as well. Nothing changed
For now, I decided to just create a deletion flow in our admin dashboard, I’m not really sure what happens in the UI, but the DELETE endpoint works properly and does not fail for simple users (not admin, not moderators).
If anyone can help with this, it would be nice to have