(HELP) Locale problems

Ask questions about Arch Linux ARM. Please search before making a new topic.

(HELP) Locale problems

Postby AndyPC » Mon Nov 19, 2018 11:16 am

Hi there. This started with trying to get owncloud working on a GoFlex Home.

Messed about a bit with locale as owncloud is saying to set the locale, but now completely trashed the locale system. It won't change from en_US.UTF-8, although that is what I want it to be.

locale-gen fails to generate en_US.UTF-8, just shows a killed process (I assume a timeout).

Please help, someone please.
AndyPC
 
Posts: 5
Joined: Mon Nov 19, 2018 9:51 am

Re: (HELP) Locale problems

Postby AndyPC » Mon Nov 19, 2018 11:17 am

locale output:

$this->bbcode_second_pass_code('', 'locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
')
AndyPC
 
Posts: 5
Joined: Mon Nov 19, 2018 9:51 am

Re: (HELP) Locale problems

Postby AndyPC » Mon Nov 19, 2018 11:18 am

locale-gen output:
$this->bbcode_second_pass_code('', '/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Generating locales...
en_US.UTF-8.../usr/bin/locale-gen: line 41: 3763 Killed localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale
')
AndyPC
 
Posts: 5
Joined: Mon Nov 19, 2018 9:51 am

Re: (HELP) Locale problems

Postby AndyPC » Wed Nov 21, 2018 7:31 am

Well. Found the problem. Out of memory!

Solution: Create swapfile to augment the memory:
    $this->bbcode_second_pass_code('', 'dd if=/dev/zero of=/swapfile bs=1M count=512')
    $this->bbcode_second_pass_code('', 'chmod 600 /swapfile')
    $this->bbcode_second_pass_code('', 'mkswap /swapfile')
    $this->bbcode_second_pass_code('', 'swapon /swapfile')
    $this->bbcode_second_pass_code('', 'swapon --show')
AndyPC
 
Posts: 5
Joined: Mon Nov 19, 2018 9:51 am

Re: (HELP) Locale problems

Postby AndyPC » Wed Nov 21, 2018 8:31 am

Upped this to 1024 (1Gb) as I'm installing nextcloud. Almost got it running.
AndyPC
 
Posts: 5
Joined: Mon Nov 19, 2018 9:51 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 11 guests