Giter Site home page Giter Site logo

Test of locals fix failed about boa HOT 4 CLOSED

omega8cc avatar omega8cc commented on July 17, 2024
Test of locals fix failed

from boa.

Comments (4)

linuxgeneral avatar linuxgeneral commented on July 17, 2024

From issue 48

@linuxgeneral By the way, is the stackscript with AcceptEnv still required? I didn't notice that problem before, but maybe we can fix that directly in Barracuda?
Comment
@linuxgeneral By the way, is the stackscript with AcceptEnv still required? I didn't notice that problem before, but maybe we can fix that directly in Barracuda?
or cancel
linuxgeneral about an hour ago | link | edit | delete

Yes, and its linode specific. Here is the ticket I opened on the issue included below.

locale problem with Debian 5
[230735] locale problem with Debian 5 Status CLOSED
Opened On 2010-08-10 05:37:10 PM by joedevita
Last Updated On 2010-08-11 12:17:30 PM by sschwertly
Closed On 2010-08-11 12:17:30 PM
Regarding Linode COM
Description There seems to be a problem with the Debian Image

I continue to get errors like:

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

And:

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

One hack is to set it at the prompt with:

apt-get update && apt-get install locales
export LANGUAGE=en_US.UTF-8 && export LANG=en_US.UTF-8 && export LC_ALL=en_US.UTF-8 && locale-gen en_US.UTF-8
dpkg-reconfigure locales

I can not see how to do this with a stack script because of the dpkg-reconfigure UI.

can you fix your image or provide a stack script to fix on deployment?
Update by psandin
2010-08-10 05:46:58 PM Hello,

Thank you for bringing this issue to our attention. I have forwarded this request to our build team to include the locales package in future Debian images. Another fix if you are working only in English locales, is to comment out the "AcceptEnv LANG LC_*" line in your sshd configuration. If you have any further questions or feedback please let us know.

--Peter Update by joedevita
2010-08-11 11:58:27 AM Thank you Peter,
Here is the code I use to take care of this
Debian locales fix by Joe DeVita

echo "Now fixing locales by commenting out AcceptEnv LANG LC* in sshd_config"
echo "This fix is recommended if you are working only in English locales"
sed -i 's/AcceptEnv LANG LC/#AcceptEnv LANG LC_/g' /etc/ssh/sshd_config
touch /tmp/restart-ssh
restartServices

from boa.

omega8cc avatar omega8cc commented on July 17, 2024

Latest updated version of script introduces fully tested fix for all locales related issues. You shouldn't use any system tweaks now. The only issue is: Lenny 32bit still has other problems, while Lenny 64bit works, Lucid 32bit works (and 64bit probably, but not tested today yet).

from boa.

linuxgeneral avatar linuxgeneral commented on July 17, 2024

Today i installed on Lenny 64bit.

The fix works for Barracuda and Octopus gave me the same error on a fresh install only when i ran the script from a ssh login at my Ubuntu workstation.

I traced the problem to the ssh client changing this environment variable. I commented out SendEnv LANG LC_* in /etc/ssh/ssh_config on my local workstation logged out-in and octopus ran without error.

Allow client to pass locale environment variables

AcceptEnv LANG LC_*

Linode Lenny 64bit has this setting as default in /etc/sshd_config

Allow client to pass locale environment variables

AcceptEnv LANG LC_*

if you comment this out and restart ssh, you stall have to log out and back in.

Note:
The linode web console does not have this problem.

It looks like you have to trap this in the Octopus installer as well

from boa.

omega8cc avatar omega8cc commented on July 17, 2024

It was tested now many times and works for me w/o issues when logged via another server or from my Mac standard terminal. However there can be a problem when your ssh client forces different locale. It is now properly commented in the installer on-screen warnings.

from boa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.