Closed mannp closed 2 months ago
I think the problem is supportedLocales: Nextcloud tries to do setlocale against different locales in its install process: https://github.com/nextcloud/server/blob/8511b89579b761798ea4f6ecf9257cad8d0bc462/lib/private/legacy/OC_Util.php#L931
I'm not sure why it's doing that in your case, but I'd suggest to not set supportedLocales
and try again.
Thanks for taking the time to come back to me; that resolved it.
supportedLocales = lib.mkMerge [
(lib.mkIf (config.networking.hostName == "nc-server") [ "en_GB.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" ])
(lib.mkIf (config.networking.hostName != "nc-server") [ "en_GB.UTF-8/UTF-8" ])
];
Hopefully my logic is correct :)
Describe the bug
An unhandled exception is thrown relating to locales while using en_GB locale.
Steps To Reproduce
Install nextcloud 29.0.4 on a machine using a en_GB locale.
Expected behavior
Nextcloud install would proceed as expected
Screenshots
Not applicable
Additional context
Notify maintainers
@schneefux @bachp @globin @Ma27
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result."x86_64-linux"
Linux 6.6.32-hardened1, NixOS, 24.11 (Vicuna), 24.11.20240802.42015a1
no
yes
nix-env (Nix) 2.23.3
/nix/store/faz38jpdmx4xmi5irm4v3jzmgnvz8hwv-source
"x86_64-linux"
Linux 6.6.32-hardened1, NixOS, 24.11 (Vicuna), 24.11.20240802.42015a1
no
yes
nix-env (Nix) 2.23.3
nixpkgs:
/nix/store/faz38jpdmx4xmi5irm4v3jzmgnvz8hwv-source
Add a :+1: reaction to issues you find important.