Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Errors thrown by gpinitsystem during locale checking #488

Open
1 of 2 tasks
xanadu-dev opened this issue Jun 27, 2024 · 1 comment
Open
1 of 2 tasks

[Bug] Errors thrown by gpinitsystem during locale checking #488

xanadu-dev opened this issue Jun 27, 2024 · 1 comment
Assignees
Labels
type: Bug Something isn't working

Comments

@xanadu-dev
Copy link

Cloudberry Database version

1.5.3

What happened

When initialising a new database there are errors thrown during locale checking - the database is initialized correctly so these errors appear to be benign
Error 1
/usr/local/cloudberrydb/bin/gpinitsystem: line 708: [1: command not found
relates to line

 if [ `$LOCALE -a |$GREP -ic $(NORMALIZE_CODESET_IN_LOCALE $LOCALE_SETTING)` -eq 0 ] \
    && [`$LOCALE -a |$GREP -ic $LOCALE_SETTING` -eq 0];then

Error 2
/usr/local/cloudberrydb/bin/gpinitsystem: line 721: [1: command not found
relates to line

if [ $( REMOTE_EXECUTE_AND_GET_OUTPUT $1 "$LOCALE -a|$GREP -ic '$(NORMALIZE_CODESET_IN_LOCALE $LOCALE_SETTING)'" ) -eq 0 ] \
    && [$( REMOTE_EXECUTE_AND_GET_OUTPUT $1 "$LOCALE -a|$GREP -ic '$LOCALE_SETTING'" ) -eq 0] ;then

What you think should happen instead

No response

How to reproduce

Comment used was

gpinitsystem -a -p $GPHOME/postgresql.conf -c $GPHOME/gpinitsystem_config -h $GPHOME/hostfile_gpinitsystem -l /gpadminlogs --mirror-mode=spread --su_password=$SUPERUSER_PASSWORD --locale=C.UTF-8

Operating System

Ubuntu 18.04

Anything else

Happens every time

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@xanadu-dev xanadu-dev added the type: Bug Something isn't working label Jun 27, 2024
Copy link

Hey, @xanadu-dev welcome!🎊 Thanks for taking the time to point this out.🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants