dokku: Setting locale failed

I am having trouble with my dokku installation. Dokku can’t seem to find the locale. It’s set correctly when logging in via bash though, any ideas whats missing?

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 5
  • Comments: 15 (8 by maintainers)

Most upvoted comments

I ssh’ed into my instance and ran: locale which showed the same errors as mentioned in my first post.

To solve it, I put these lines into /etc/default/locale

LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8

Then I ran:

sudo locale-gen en_US en_US.UTF-8
sudo dpkg-reconfigure locales 

P.S.: For setting the timezone, I ran: dokku config:set --global TZ=Europe/Berlin

Note: You should always set server time to UTC, otherwise you’re going to fall into a world of hurt when trying to query against data inserted from different timezones 😃