Locale setting error after installation

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

I have just installed Nextcloud server (version 33.0.0) on an Ubuntu 24.04 server, following the instructions for the manual installation method as described in the official documentation here:

When I try to open up the webpage for the main Nextcloud landing page I get an error about setting the locale, exactly as described in this post from 2019:

I tried the fix suggested there, to edit the isSetLocaleWorking function so that it just says “return true”. That worked and the landing page now appears as expected.

But this seems awfully hacky. If this is a bug that’s been known about since 2019 I can’t help thinking there must have been a better fix for it by now.

Am I missing something?

What locale* packages to you have installed?

And what locales are shown when you run something like locale -a?

Thanks for the quick reply. This is what I get from locale -a:


C.utf8
de_DE.utf8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
POSIX

Not sure how the installed locale packages is different from that? But happy to come back with the list of that if you can explain how I can get it.

have you installed libapache2-mod-perl2 to your server? many ppl said that disabling it would solve the case as well.

apart from that it would be helpful to get more informations about your setup and environment

1 Like

Yes, I do have libapache2-mod-perl2 installed. I suspect if I disable it it will break something else, though if you think that would be instructive I guess I can always try that and then enable it again if it does. Of course that won’t then be a solution to the problem, but maybe it will help narrow down exactly what the problem is?

What other information would be useful to know about the setup? In brief, it’s a server for my home, and the Nextcloud instance will only be used on my internal network. The main job the server does is it runs MythTV for recording TV programs, though as time goes by I find more and more useful things for it to do.

could happen, right.

give it a try, mate! (you don’t forget about taking backups, right?)

afai saw nobody really posted their complete configuration - so we don’t really know where exactly this problem stings. and if nobody knows it hardly can be solved (though I suspect that it might be an external problem and not really NC-related).

Interesting was that you run NC “Offline” only at your home-network. Could cause problems in general. Maybe not specifically this one, though.
etc. pls refer to the support-template to get an impression of which infos will rais xyour chances to get a real answer to your problem.