Comments (4)
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.
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.
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.
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)
- error connecting to DB in octopus up-stable - could be python: command not found error HOT 6
- pp 8.2 doesn't install on up-stable - neither does php8.1-19 update HOT 3
- Redis fails to start HOT 6
- Upgrade to 4.3 failed on network interface name HOT 7
- Removing SystemD - Incorrect system time after reboot HOT 1
- Redis errors + redis module is being auto-enabled even when set off in site_control_ini - on drupal 7 sites HOT 4
- Error in static thunder platform install / verify - BOA or AEgir specific? - Error no longer exists under chimera HOT 1
- General Querry Re: Stable and head releases and milestones HOT 5
- BOA Install stable on Bullseye fails HOT 11
- Feature Request - ability to see progress during upgrade HOT 2
- Specifying php 8.2 in static/control/multi-fpm.info gives a site 7.4 HOT 2
- Devuan BOA not handling let's encrypt certificates. HOT 10
- pdnsd not able to start after up-stable HOT 1
- #1716 is not fixed for me on stable - is the fix head only? HOT 7
- nginx not starting when NAXSI=YES - may be NAXSI WAF ACCEPT error ? HOT 7
- Querry re grub setup HOT 1
- NginX failing on bullseye to chimera upgrade HOT 2
- How to enable "usage.sh" on self-hosted servers HOT 2
- Install the full New Relic monitor agent. HOT 1
- Hello, up-stable not giving latest php versions even though update states php upgrades are happening! HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boa.