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 · 6 comments
Open
1 of 2 tasks

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

xanadu-dev opened this issue Jun 27, 2024 · 6 comments
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.🙌

@yjhjstz
Copy link
Member

yjhjstz commented Dec 9, 2024

Can you add system PATH to env : refer to greenplum-db/gpdb-archive@9201a8b

if work fine, I will cherry pick this.

@xanadu-dev
Copy link
Author

Can you add system PATH to env : refer to greenplum-db/gpdb-archive@9201a8b

if work fine, I will cherry pick this.

I should be able to try this in the next few days and will let you know

@xanadu-dev
Copy link
Author

Can you add system PATH to env : refer to greenplum-db/gpdb-archive@9201a8b

if work fine, I will cherry pick this.

I tried the change you suggested and it didn't remove the warnings
I'll update my system to the latest cloudberry version and check again as I am using 1.5.4 at the moment

@xanadu-dev
Copy link
Author

I tried the change you suggested and it didn't remove the warnings I'll update my system to the latest cloudberry version and check again as I am using 1.5.4 at the moment

That suggested fix didn't work with version 1.6.0 either

@avamingli avamingli removed their assignment Dec 12, 2024
@yjhjstz
Copy link
Member

yjhjstz commented Dec 24, 2024

I tried the change you suggested and it didn't remove the warnings I'll update my system to the latest cloudberry version and check again as I am using 1.5.4 at the moment

That suggested fix didn't work with version 1.6.0 either

found another related pr: greenplum-db/gpdb-archive@e449c8c

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

3 participants