Error: status_command process exited unexpectedly (exit 1)

Today (February 18th, 2016), starting my pc, the following error appeared on the status bar of my i3 Window Manager.

Error: status_command process exited unexpectedly (exit 1)

What could the problem be?

I tried running the status bar via CLI, and I got the following result:

~ $ i3status
Could not set locale. Please make sure all your LC_* / LANG settings are correct.

It was a problem of locale settings. Indeed, checking it via CLI I got:

~ $ locale
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=

A simple ls in /etc/locale* returned

~ $ ls -l /etc/locale*
-rw-r--r-- 1 root root 17 Apr 15 2014 /etc/locale.conf
-rw-r--r-- 1 root root 9534 Feb 18 09:50 /etc/locale.gen
-rw-r--r-- 1 root root 9532 Feb 10 2015 /etc/locale.gen.pacold

That was the problem: a new locale.gen had been just installed after the update. Well, after having edited the locale.gen uncommenting the proper line (in my case en_US.UTF-8 UTF-8) and after having generated the uncommented locale through:

# locale-gen

I rebooted the pc and the status bar started working again.
Note that, as suggested in the Locale official ArchLinux Wiki, you should also run locale-gen with every update of glibc because locales are used by locale-aware programs or libraries (for example glibc) for rendering text, correctly displaying regional monetary values, time and date formats, alphabetic idiosyncrasies, and other locale-specific standards.

That’s all. GWH!

About Francesco Serafin

I am a PhD student at the Department of Civil, Environmental and Mechanical Engineering at the University of Trento. My two greatest loves: Computer Science and Water (take three with my Lenovo!:D). As a result, the aim of my life is to make both passions coexist. My gpg public key available at https://pgp.mit.edu

Leave a Reply

Your email address will not be published.

*