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

When launching Powa-web 4.1.1 errors out #134

Closed
hrawulwa opened this issue Mar 22, 2021 · 9 comments
Closed

When launching Powa-web 4.1.1 errors out #134

hrawulwa opened this issue Mar 22, 2021 · 9 comments

Comments

@hrawulwa
Copy link

Hi,
I'm trying to do a remote setup.
Downloaded and installed powa-archivist-REL_4_1_2, powa-collector-1.1.1 and powa-web-4.1.1 as source tar files from github.

I have installed and compiled requirements SQLAlchemy-0.9.9 and tornado 3.0
Installed and compiled succesfully powa-web
[root@sl73pgtldbp001 powa]# cd powa-web-4.1.1
[root@sl73pgtldbp001 powa-web-4.1.1]# python setup.py build
[root@sl73pgtldbp001 powa-web-4.1.1]# python setup.py build install

When trying to launch powa-web.
[root@sl73pgtldbp001 ~]# cd /pgbin/powa/powa-web-4.1.1/

[root@sl73pgtldbp001 ~]# ./powa-web
Traceback (most recent call last):
File "./powa-web", line 9, in
application = make_app(debug=False, gzip=True, compress_response=True)
File "/pgbin/powa/powa-web-4.1.1/powa/init.py", line 44, in make_app
parse_options()
File "/pgbin/powa/powa-web-4.1.1/powa/options.py", line 70, in parse_options
if options['url_prefix'] == '':
TypeError: 'OptionParser' object has no attribute 'getitem'

Please advise. I already created "powa" database and created powa extension.
Here are contents of conf file.

[root@sl73pgtldbp001 powa-web-4.1.1]# cat powa-web.conf
servers={
'main': {
'host': 'localhost',
'port': '5432',
'database': 'powa',
'query': {'client_encoding': 'utf8'}
}
}
cookie_secret="SUPERSECRET_THAT_YOU_SHOULD_CHANGE"

Some extra options you can set

port on which the UI should be available.

port=8888

Address on which the UI should be available on

address=0.0.0.0

Forbid UI to connect to databases globally (can be configured per server)

allow_ui_connection=False

Custom URL prefix the UI should be available on

url_prefix="/"

Thanks
Hari

@banlex73
Copy link

banlex73 commented Mar 22, 2021 via email

@hrawulwa
Copy link
Author

The python version is 2.7.5

Thanks
Hari

@banlex73
Copy link

banlex73 commented Mar 23, 2021 via email

@hrawulwa
Copy link
Author

No, installing python 3.6 is lot of work co-ordinating with Sys Admins.
I have the same remote setup working on another test server with python 2.7.5, but the powa-web version was 4.0.0, powa-collector was 0.0.1 and powa-archivist was 4.0.1. I had this setup working fine which was built last year around July.
Since newer versions came now, I'm installing the latest ones on this server, which will be used for monitoring some of the Prod DB servers.
Not sure if different versions of sqlalchemy or tornado would make a difference here.

Thanks
Hari

@banlex73
Copy link

banlex73 commented Mar 23, 2021 via email

@hrawulwa
Copy link
Author

Ok. I had to download tornado-4.0
With this version of tornado, I recompiled powa-web-4.1.1.
After this, I'm able to start.
[I 210323 02:44:35 powa-web:13] Starting powa-web on http://0.0.0.0:8888/

Thanks
Hari

@rjuju
Copy link
Member

rjuju commented Mar 23, 2021

Hi @hrawulwa

After some digging it seems that I broke compatibility with tornado2 when introducing the url_prefix parameter. I'll try to fix that, but in the mean time I confirm that using any version of tornado >= 3.0.0 should work.

@hrawulwa
Copy link
Author

Ok. 3.0 did not work, but 4.0 is working fine.
Thank you for your help.

Thanks
Hari

@rjuju
Copy link
Member

rjuju commented Mar 23, 2021

Oh, there was probably other changes that needed a later version.

I just pushed a54fdc5 which should fix the issue (and likely the one for tornado 3.0). I tested locally with SQLAlchemy 0.9.8 and tornado 2.0 (the oldest dependency versions that we support) and didn't notice any issue.

Thanks a lot for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants