Internal server error while loading admin users page

AI-generated summary

The discussion addresses a frequent internal server error preventing access to the admin users page. tyildir reported the issue, noting it occurs randomly and sharing console error screenshots. elberet suggested checking server-side logs, which tyildir initially hesitated to do due to a lack of developer expertise, though riking clarified that any site admin can access /logs.

Upon reviewing the logs, tyildir identified ENOMEM errors, which riking diagnosed as a memory shortage requiring a droplet upgrade. Although tyildir noted their Digital Ocean instance has 2 GB of RAM, elberet pointed out that the provided graphs did not show RAM usage. riking suspected the issue was related to a known low-memory bug affecting ImageMagick, linking to a related discussion.

Despite the Digital Ocean platform’s temporary lack of RAM graphs, tyildir confirmed they were experiencing the same ImageMagick errors, which were causing critical site outages. riking advised waiting for the underlying bug to be resolved rather than upgrading immediately. Finally, tyildir asked if they should report the translation bug separately, and riking confirmed this, attributing it to incorrect ‘count’ rules not loading properly.

This happens quite frequently. Only on random occasions do I get to access the admin users page. Below are the screenshots of the two console errors.

Did you check the server-side log (see /logs) yet? That should be rather more helpful then the uglified JS stacktrace…

Unfortunately I am not a developer myself. In fact I have not touched our Digital Ocean instance since it was set up by the Discourse team. Perhaps a member of the team can have a look at the logs? (I believe that they have access to our account.)

Any site admin account can view /logs, so you should be able to see them.

Alright, now I get what you mean! Here are the log screenshots:

Some of these errors may be related to the other bug report though: https://meta.discourse.org/t/internal-server-error-while-trying-to-delete-empty-categories/25032/1

You’ve got ENOMEMs in there, you need to upgrade the droplet for more RAM.

How much traffic are you getting, how much RAM is the DO droplet?

Also looks like we’ve just caught a translations bug!

1 Like

We have 2 GB RAM. We don’t get much traffic. (Perhaps DO does not provide stable and consistent service? Or something in the code makes the RAM usage explode? Just guessing.)

Here are the DO stats:

None of these graphs show your droplet’s RAM usage… which seems to be the problem here.

That’s what I’m leaning towards:

Unfortunately DO still does not have the RAM graph, they seem to be working on it though: https://digitalocean.uservoice.com/forums/136585-digitalocean/suggestions/4326298-add-ram-disk-usage-to-resource-graphs

Interesting, we are probably experiencing the same problem. We too get the ImageMagicK message in the admin panel (in Turkish):

What do you suggest us to do? Should we upgrade our droplet or simply wait for this problem to be resolved?

The issue is quite critical since it brings the whole website down.

You can probably wait, it should get found soon.

1 Like

Thank you. We will wait out the RAM problem.

Should I re-report the translation bug in the translations category?

1 Like

Yes. I think it’s not loading the right ‘count’ rules.