Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug] on openEuler 22.03 (LTS-SP4) system, cloudberrydb-1.6.0 install with source code ,error occured when gpinitsystem #620

Open
2 tasks done
fsmiledream opened this issue Sep 6, 2024 · 13 comments
Assignees

Comments

@fsmiledream
Copy link

Cloudberry Database version

cloudberrydb-1.6.0

What happened

20240906:18:23:28:112430 gpinitsystem:cloudberrydb1:gpadmin-[INFO]:-No errors generated from parallel processes
20240906:18:23:28:112430 gpinitsystem:cloudberrydb1:gpadmin-[INFO]:-Restarting the CloudberryDB instance in production mode
Traceback (most recent call last):
File "/usr/local/cloudberrydb/bin/gpstop", line 9, in
from gppylib.mainUtils import *
File "/usr/local/cloudberrydb/lib/python/gppylib/mainUtils.py", line 31, in
from gppylib.commands import gp, unix
File "/usr/local/cloudberrydb/lib/python/gppylib/commands/gp.py", line 22, in
from gppylib.db import dbconn
File "/usr/local/cloudberrydb/lib/python/gppylib/db/dbconn.py", line 15, in
from gppylib.commands.unix import UserId
File "/usr/local/cloudberrydb/lib/python/gppylib/commands/unix.py", line 17, in
from gppylib.commands.base import *
File "/usr/local/cloudberrydb/lib/python/gppylib/commands/base.py", line 32, in
from pg import DB
File "/usr/local/lib/python3.9/site-packages/pg/init.py", line 3
async,
^
SyntaxError: invalid syntax
20240906:18:23:28:112430 gpinitsystem:cloudberrydb1:gpadmin-[FATAL]:-Error from CloudberryDB instance shutdown, check log files Script Exiting!

cbdb1 6 0+openruler22 03 initsystem error

What you think should happen instead

No response

How to reproduce

The err is the same as 1.5.4 with rpm/source . now 1.6.0rpm is repaired,but 1.6.0 install with source code is still same error

Operating System

openEuler 22.03 (LTS-SP4)

Anything else

No response

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@fsmiledream fsmiledream added the type: Bug Something isn't working label Sep 6, 2024
@tuhaihe
Copy link
Member

tuhaihe commented Sep 6, 2024

Hi @Zhangbaowen-Hashdata @edespino could you help take a look? Thanks.

@yihong0618
Copy link
Contributor

solution

pip3 uninstall pg
pip3 uninstall PyGreSQL

then
pip3 install -U PyGreSQL

@yihong0618
Copy link
Contributor

solution

pip3 uninstall pg pip3 uninstall PyGreSQL

then pip3 install -U PyGreSQL


we can reproduce this by

pip3 uninstall pg
pip3 uninstall PyGreSQL

then
pip3 install -U PyGreSQL
pip3 install pg

then error happened

then use the solution can fix this.

@avamingli
Copy link
Contributor

avamingli commented Sep 12, 2024

solution

pip3 uninstall pg pip3 uninstall PyGreSQL

then pip3 install -U PyGreSQL

Thanks @yihong0618 .
Generally, I think we need to update XXX.dependency if XXX is officially supported to avoid such issue.
@tuhaihe @Zhangbaowen-Hashdata Could anyone of you help to track this, thanks.

@fsmiledream
Copy link
Author

@yihong0618 Thank you very much! Using your solution ,I can also initsystem successfully.
I also hope source code can be fixed and updated .

@yihong0618
Copy link
Contributor

@yihong0618 Thank you very much! Using your solution ,I can also initsystem successfully. I also hope source code can be fixed and updated .

my pleasure

@tuhaihe
Copy link
Member

tuhaihe commented Sep 14, 2024

Thanks @yihong0618 !
Hi @avamingli I think we should update the doc on building from source code. Let me talk with our devops team.

@gongxun0928
Copy link
Contributor

gongxun0928 commented Oct 9, 2024

@tuhaihe @avamingli @Zhangbaowen-Hashdata We need to use pip3 install -r ../../python-dependencies.txt like Readme.CentOS.bash. In this way, Python dependencies will use a fixed version instead of relying on the version in the apt source.

@avamingli
Copy link
Contributor

@tuhaihe @avamingli @Zhangbaowen-Hashdata We need to use pip3 install -r ../../python-dependencies.txt like Readme.CentOS.bash. In this way, Python dependencies will use a fixed version instead of relying on the version in the apt source.

+1, that's what I suggest.
We should be clear which OS is officially supported(probably Release team knows well about it) , update xxx_dependencies.txt by the way,

@my-ship-it
Copy link
Contributor

@Zhangbaowen-Hashdata, Hi Baowen, could you please try the suggestions above?

@my-ship-it my-ship-it added type: Pipeline and removed type: Bug Something isn't working labels Oct 9, 2024
@Baowen648
Copy link
Contributor

Baowen648 commented Oct 10, 2024

@Zhangbaowen-Hashdata, Hi Baowen, could you please try the suggestions above?

I will conduct a verification locally first, and if there are no issues, I will propose a new PR.

@yjhjstz
Copy link
Member

yjhjstz commented Dec 9, 2024

@Zhangbaowen-Hashdata, Hi Baowen, could you please try the suggestions above?

I will conduct a verification locally first, and if there are no issues, I will propose a new PR.

any progress ?

@Baowen648
Copy link
Contributor

I've raised the PR need to wait for the merger.
#664

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

8 participants