You are not logged in.

#1 2010-05-21 04:16:56

sehwoo
Member
Registered: 2006-09-04
Posts: 20

running `locale-gen` closes ssh session

I am trying to regenerate locales on a remote server running Archlinux. However, running `locale-gen` disconnects me, and I do not believe the job completes. I had the same problem on both Putty and the terminal (ssh from local box).

The locales that are uncommented are `en_US.UTF-8` and `en_US`. However, this problem only occurs if en_US.UTF-8 is uncommented. There is no problem when I am only generating the `en_US` locale.

This happens whether or not I have root privileges.

Does anyone have an idea as to why this happens? Thanks for any help!

Offline

#2 2010-05-21 04:29:26

Ekimino
Member
From: Maldonado, Uruguay
Registered: 2008-02-26
Posts: 69
Website

Re: running `locale-gen` closes ssh session

The remote system could be using the locale you are trying to regenerate. I don't know exactly why it kicks you, my best guess is that you're session is running that locale and regenerating kind of restarts the whole session thing. MY BEST GUESS.

You could setup a bash script, with some delay.

sleep 40
locale-gen >> check.txt

and login after 1 min tongue and check  the check.txt file for the locale-gen output command to see if everything went fine.

Last edited by Ekimino (2010-05-21 04:30:39)

Offline

#3 2010-05-21 06:13:12

sehwoo
Member
Registered: 2006-09-04
Posts: 20

Re: running `locale-gen` closes ssh session

Hm nope, doesn't seem to help.

I also ran my script

#!/bin/sh
sleep 3
sudo locale-gen > lg.txt

in screen then de-attached it, which also resulted in a closed session.

I tried running just `locale-gen` in screen, but that also resulted in a closed session.

Offline

#4 2010-05-21 10:05:58

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: running `locale-gen` closes ssh session

/usr/sbin/locale-gen is owned by glibc 2.11.1-3
/usr/share/i18n/locales/en_US is owned by glibc 2.11.1-3

Try reinstalling/upgrading glibc.

Last edited by demian (2010-05-21 10:07:42)


no place like /home
github

Offline

#5 2010-05-21 18:27:42

sehwoo
Member
Registered: 2006-09-04
Posts: 20

Re: running `locale-gen` closes ssh session

Hm, still no success..

I believe I remember having this problem through multiple versions.

Edit:
Woah, found an error message!

# sudo locale-gen
Generating locales...
  en_US.UTF-8.../usr/sbin/locale-gen: line 41:   929 Killed                  localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale

Last edited by sehwoo (2010-05-21 20:05:54)

Offline

#6 2010-05-21 20:36:57

sehwoo
Member
Registered: 2006-09-04
Posts: 20

Re: running `locale-gen` closes ssh session

Solved. Ran out of ram, made a swapfile.

Offline

Board footer

Powered by FluxBB