public inbox for [email protected]
help / color / mirror / Atom feedRunning pgAdmin4
9+ messages / 3 participants
[nested] [flat]
* Running pgAdmin4
@ 2015-09-30 20:49 Prasad Somwanshi <[email protected]>
0 siblings, 1 reply; 9+ messages in thread
From: Prasad Somwanshi @ 2015-09-30 20:49 UTC (permalink / raw)
To: pgadmin-hackers
Hi,
I'm trying to pgAdmin4. I'm able to run pgAdmin4.py in python shell. And server runs.And able to access using browser.
Then I tried running desktop application, it throws following error,
Traceback (most recent call last):
File "/home/prasad/Development/pgadmin4/web/pgAdmin4.py", line 73, in <module>
app.run(port=server_port)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 772, in run
run_simple(host, port, self, **options)
File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/serving.py", line 622, in run_simple
reloader_type)
File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/_reloader.py", line 263, in run_with_reloader
signal.signal(signal.SIGTERM, lambda *args: sys.exit(0))
ValueError: signal only works in main thread
Initial connection failed. Retrying in 2 seconds.
Initial connection failed. Retrying in 3 seconds.
Initial connection failed. Retrying in 4 seconds.
Initial connection failed after multiple attempts. Aborting.
I can see what error says. As Qt application spawns separate thread to run server, which apparently is not allowed.
Am I missing something ?
regards,
Prasad
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Running pgAdmin4
@ 2015-10-01 05:34 Ashesh Vashi <[email protected]>
parent: Prasad Somwanshi <[email protected]>
0 siblings, 1 reply; 9+ messages in thread
From: Ashesh Vashi @ 2015-10-01 05:34 UTC (permalink / raw)
To: Prasad Somwanshi <[email protected]>; +Cc: pgadmin-hackers
On Thu, Oct 1, 2015 at 2:19 AM, Prasad Somwanshi <[email protected]> wrote:
> Hi,
>
> I'm trying to pgAdmin4. I'm able to run pgAdmin4.py in python shell. And
> server runs.And able to access using browser.
> Then I tried running desktop application, it throws following error,
>
> Traceback (most recent call last):
> File "/home/prasad/Development/pgadmin4/web/pgAdmin4.py", line 73, in
> <module>
> app.run(port=server_port)
> File "/usr/lib/python2.7/dist-packages/flask/app.py", line 772, in run
> run_simple(host, port, self, **options)
> File
> "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/serving.py",
> line 622, in run_simple
> reloader_type)
> File
> "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/_reloader.py",
> line 263, in run_with_reloader
> signal.signal(signal.SIGTERM, lambda *args: sys.exit(0))
> ValueError: signal only works in main thread
> Initial connection failed. Retrying in 2 seconds.
> Initial connection failed. Retrying in 3 seconds.
> Initial connection failed. Retrying in 4 seconds.
> Initial connection failed after multiple attempts. Aborting.
>
>
> I can see what error says. As Qt application spawns separate thread to run
> server, which apparently is not allowed.
> Am I missing something ?
>
Have you created config_local.py?
--
Thanks & Regards,
Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company
<http://www.enterprisedb.com;
*http://www.linkedin.com/in/asheshvashi*
<http://www.linkedin.com/in/asheshvashi;
>
> regards,
> Prasad
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Running pgAdmin4
@ 2015-10-01 09:09 Prasad Somwanshi <[email protected]>
parent: Ashesh Vashi <[email protected]>
0 siblings, 1 reply; 9+ messages in thread
From: Prasad Somwanshi @ 2015-10-01 09:09 UTC (permalink / raw)
To: pgadmin-hackers
I think, I did. Is there any specific settings I might have missed there ?
regards,
Prasad
Sent: Thursday, October 01, 2015 at 6:34 AM
From: "Ashesh Vashi" <[email protected]>
To: "Prasad Somwanshi" <[email protected]>
Cc: pgadmin-hackers <[email protected]>
Subject: Re: [pgadmin-hackers] Running pgAdmin4
On Thu, Oct 1, 2015 at 2:19 AM, Prasad Somwanshi <[email protected]> wrote:
Hi,
I'm trying to pgAdmin4. I'm able to run pgAdmin4.py in python shell. And server runs.And able to access using browser.
Then I tried running desktop application, it throws following error,
Traceback (most recent call last):
File "/home/prasad/Development/pgadmin4/web/pgAdmin4.py", line 73, in <module>
app.run(port=server_port)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 772, in run
run_simple(host, port, self, **options)
File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/serving.py", line 622, in run_simple
reloader_type)
File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/_reloader.py", line 263, in run_with_reloader
signal.signal(signal.SIGTERM, lambda *args: sys.exit(0))
ValueError: signal only works in main thread
Initial connection failed. Retrying in 2 seconds.
Initial connection failed. Retrying in 3 seconds.
Initial connection failed. Retrying in 4 seconds.
Initial connection failed after multiple attempts. Aborting.
I can see what error says. As Qt application spawns separate thread to run server, which apparently is not allowed.
Am I missing something ?
Have you created config_local.py?
--
Thanks & Regards,
Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company[http://www.enterprisedb.com]
http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]
regards,
Prasad
--
Sent via pgadmin-hackers mailing list ([email protected][[email protected]])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Running pgAdmin4
@ 2015-10-02 06:25 Prasad Somwanshi <[email protected]>
parent: Prasad Somwanshi <[email protected]>
0 siblings, 1 reply; 9+ messages in thread
From: Prasad Somwanshi @ 2015-10-02 06:25 UTC (permalink / raw)
To: pgadmin-hackers
Has anybody encountered this ? Or it's just me ?
regards,
Prasad
Sent: Thursday, October 01, 2015 at 10:09 AM
From: "Prasad Somwanshi" <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: Re: [pgadmin-hackers] Running pgAdmin4
I think, I did. Is there any specific settings I might have missed there ?
regards,
Prasad
Sent: Thursday, October 01, 2015 at 6:34 AM
From: "Ashesh Vashi" <[email protected]>
To: "Prasad Somwanshi" <[email protected]>
Cc: pgadmin-hackers <[email protected]>
Subject: Re: [pgadmin-hackers] Running pgAdmin4
On Thu, Oct 1, 2015 at 2:19 AM, Prasad Somwanshi <[email protected]> wrote:
Hi,
I'm trying to pgAdmin4. I'm able to run pgAdmin4.py in python shell. And server runs.And able to access using browser.
Then I tried running desktop application, it throws following error,
Traceback (most recent call last):
File "/home/prasad/Development/pgadmin4/web/pgAdmin4.py", line 73, in <module>
app.run(port=server_port)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 772, in run
run_simple(host, port, self, **options)
File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/serving.py", line 622, in run_simple
reloader_type)
File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/_reloader.py", line 263, in run_with_reloader
signal.signal(signal.SIGTERM, lambda *args: sys.exit(0))
ValueError: signal only works in main thread
Initial connection failed. Retrying in 2 seconds.
Initial connection failed. Retrying in 3 seconds.
Initial connection failed. Retrying in 4 seconds.
Initial connection failed after multiple attempts. Aborting.
I can see what error says. As Qt application spawns separate thread to run server, which apparently is not allowed.
Am I missing something ?
Have you created config_local.py?
--
Thanks & Regards,
Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company[http://www.enterprisedb.com]
http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]]
regards,
Prasad
--
Sent via pgadmin-hackers mailing list ([email protected][[email protected]])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]]
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Running pgAdmin4
@ 2015-10-02 06:54 Dave Page <[email protected]>
parent: Prasad Somwanshi <[email protected]>
0 siblings, 1 reply; 9+ messages in thread
From: Dave Page @ 2015-10-02 06:54 UTC (permalink / raw)
To: Prasad Somwanshi <[email protected]>; +Cc: pgadmin-hackers
The desktop runtime hasn't been tested in months afaik, so it's entirely possible something is broken at the moment. It is only PoC code right now.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK:http://www.enterprisedb.com
The Enterprise PostgreSQL Company
> On 2 Oct 2015, at 07:25, Prasad Somwanshi <[email protected]> wrote:
>
> Has anybody encountered this ? Or it's just me ?
>
> regards,
> Prasad
>
>
>
> Sent: Thursday, October 01, 2015 at 10:09 AM
> From: "Prasad Somwanshi" <[email protected]>
> To: pgadmin-hackers <[email protected]>
> Subject: Re: [pgadmin-hackers] Running pgAdmin4
> I think, I did. Is there any specific settings I might have missed there ?
>
> regards,
> Prasad
>
>
>
> Sent: Thursday, October 01, 2015 at 6:34 AM
> From: "Ashesh Vashi" <[email protected]>
> To: "Prasad Somwanshi" <[email protected]>
> Cc: pgadmin-hackers <[email protected]>
> Subject: Re: [pgadmin-hackers] Running pgAdmin4
>
> On Thu, Oct 1, 2015 at 2:19 AM, Prasad Somwanshi <[email protected]> wrote:
>
> Hi,
>
> I'm trying to pgAdmin4. I'm able to run pgAdmin4.py in python shell. And server runs.And able to access using browser.
> Then I tried running desktop application, it throws following error,
>
> Traceback (most recent call last):
> File "/home/prasad/Development/pgadmin4/web/pgAdmin4.py", line 73, in <module>
> app.run(port=server_port)
> File "/usr/lib/python2.7/dist-packages/flask/app.py", line 772, in run
> run_simple(host, port, self, **options)
> File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/serving.py", line 622, in run_simple
> reloader_type)
> File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/_reloader.py", line 263, in run_with_reloader
> signal.signal(signal.SIGTERM, lambda *args: sys.exit(0))
> ValueError: signal only works in main thread
> Initial connection failed. Retrying in 2 seconds.
> Initial connection failed. Retrying in 3 seconds.
> Initial connection failed. Retrying in 4 seconds.
> Initial connection failed after multiple attempts. Aborting.
>
>
> I can see what error says. As Qt application spawns separate thread to run server, which apparently is not allowed.
> Am I missing something ?
> Have you created config_local.py?
>
>
> --
> Thanks & Regards,
>
> Ashesh Vashi
> EnterpriseDB INDIA: Enterprise PostgreSQL Company[http://www.enterprisedb.com]
>
> http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]]
> regards,
> Prasad
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected][[email protected]])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]]
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Running pgAdmin4
@ 2015-10-02 07:13 Prasad Somwanshi <[email protected]>
parent: Dave Page <[email protected]>
0 siblings, 1 reply; 9+ messages in thread
From: Prasad Somwanshi @ 2015-10-02 07:13 UTC (permalink / raw)
To: pgadmin-hackers
Ok, in that case, probably it's broken. Error mean, it doesn't like running python code in separate thread.
regards,
Prasad
Sent: Friday, October 02, 2015 at 7:54 AM
From: "Dave Page" <[email protected]>'t
To: "Prasad Somwanshi" <[email protected]>
Cc: pgadmin-hackers <[email protected]>
Subject: Re: [pgadmin-hackers] Running pgAdmin4
The desktop runtime hasn't been tested in months afaik, so it's entirely possible something is broken at the moment. It is only PoC code right now.
--
Dave Page
Blog: http://pgsnake.blogspot.com[http://pgsnake.blogspot.com/]
Twitter: @pgsnake
EnterpriseDB UK:http://www.enterprisedb.com[http://www.enterprisedb.com/]
The Enterprise PostgreSQL Company
On 2 Oct 2015, at 07:25, Prasad Somwanshi <[email protected][[email protected]]> wrote:
Has anybody encountered this ? Or it's just me ?
regards,
Prasad
Sent: Thursday, October 01, 2015 at 10:09 AM
From: "Prasad Somwanshi" <[email protected][[email protected]]>
To: pgadmin-hackers <[email protected][[email protected]]>
Subject: Re: [pgadmin-hackers] Running pgAdmin4
I think, I did. Is there any specific settings I might have missed there ?
regards,
Prasad
Sent: Thursday, October 01, 2015 at 6:34 AM
From: "Ashesh Vashi" <[email protected][[email protected]]>
To: "Prasad Somwanshi" <[email protected][[email protected]]>
Cc: pgadmin-hackers <[email protected][[email protected]]>
Subject: Re: [pgadmin-hackers] Running pgAdmin4
On Thu, Oct 1, 2015 at 2:19 AM, Prasad Somwanshi <[email protected][[email protected]]> wrote:
Hi,
I'm trying to pgAdmin4. I'm able to run pgAdmin4.py in python shell. And server runs.And able to access using browser.
Then I tried running desktop application, it throws following error,
Traceback (most recent call last):
File "/home/prasad/Development/pgadmin4/web/pgAdmin4.py", line 73, in <module>
app.run(port=server_port)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 772, in run
run_simple(host, port, self, **options)
File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/serving.py", line 622, in run_simple
reloader_type)
File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/_reloader.py", line 263, in run_with_reloader
signal.signal(signal.SIGTERM, lambda *args: sys.exit(0))
ValueError: signal only works in main thread
Initial connection failed. Retrying in 2 seconds.
Initial connection failed. Retrying in 3 seconds.
Initial connection failed. Retrying in 4 seconds.
Initial connection failed after multiple attempts. Aborting.
I can see what error says. As Qt application spawns separate thread to run server, which apparently is not allowed.
Am I missing something ?
Have you created config_local.py?
--
Thanks & Regards,
Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company[http://www.enterprisedb.com[http://www.enterprisedb.com]]
http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]]]
regards,
Prasad
--
Sent via pgadmin-hackers mailing list ([email protected][[email protected]][[email protected][[email protected]]])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]]]
--
Sent via pgadmin-hackers mailing list ([email protected][[email protected]])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]]
--
Sent via pgadmin-hackers mailing list ([email protected][[email protected]])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Running pgAdmin4
@ 2015-10-23 23:17 Prasad Somwanshi <[email protected]>
parent: Prasad Somwanshi <[email protected]>
0 siblings, 1 reply; 9+ messages in thread
From: Prasad Somwanshi @ 2015-10-23 23:17 UTC (permalink / raw)
To: pgadmin-hackers
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
Attachments:
[text/x-patch] threadingissue.patch (817B, 2-threadingissue.patch)
download | inline diff:
diff --git a/web/pgAdmin4.py b/web/pgAdmin4.py
index 40ca3ec..556aa5c 100644
--- a/web/pgAdmin4.py
+++ b/web/pgAdmin4.py
@@ -53,9 +53,6 @@ if not os.path.isfile(config.SQLITE_PATH):
# Create the app!
app = create_app()
-if config.DEBUG:
- app.debug = True
-
# Start the web server. The port number should have already been set by the
# runtime if we're running in desktop mode, otherwise we'll just use the
# Flask default.
@@ -70,6 +67,10 @@ else:
server_port = config.DEFAULT_SERVER_PORT
try:
- app.run(port=server_port)
+# Make sure reloader is disabled in debug mode
+ if config.DEBUG:
+ app.run(port=server_port,debug=True,use_reloader=False)
+ else:
+ app.run(port=server_port)
except IOError:
app.logger.error("Error starting the app server: %s", sys.exc_info())
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Running pgAdmin4
@ 2015-10-24 05:45 Ashesh Vashi <[email protected]>
parent: Prasad Somwanshi <[email protected]>
0 siblings, 1 reply; 9+ messages in thread
From: Ashesh Vashi @ 2015-10-24 05:45 UTC (permalink / raw)
To: Prasad Somwanshi <[email protected]>; +Cc: pgadmin-hackers
Hi Prasad,
Please check the current code.
--
Thanks & Regards,
Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company
<http://www.enterprisedb.com;
*http://www.linkedin.com/in/asheshvashi*
<http://www.linkedin.com/in/asheshvashi;
On Sat, Oct 24, 2015 at 4:47 AM, Prasad Somwanshi <[email protected]> wrote:
> It seems , Debug mode and running server in separate thread are not
> compatible in Flask. And for Debug mode reloader need to be disabled for
> such case. Othewise it give error. I've modified code to disable reloader
> in debug mode.
> This problem only affects desktop runtime.
>
> thanks and regards,
> Prasad Somwanshi
>
>
>
> Sent: Friday, October 02, 2015 at 8:13 AM
> From: "Prasad Somwanshi" <[email protected]>
> To: pgadmin-hackers <[email protected]>
> Subject: Re: [pgadmin-hackers] Running pgAdmin4
> Ok, in that case, probably it's broken. Error mean, it doesn't like
> running python code in separate thread.
>
> regards,
> Prasad
>
>
>
> Sent: Friday, October 02, 2015 at 7:54 AM
> From: "Dave Page" <[email protected]>'t
> To: "Prasad Somwanshi" <[email protected]>
> Cc: pgadmin-hackers <[email protected]>
> Subject: Re: [pgadmin-hackers] Running pgAdmin4
>
> The desktop runtime hasn't been tested in months afaik, so it's entirely
> possible something is broken at the moment. It is only PoC code right now.
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com[http://pgsnake.blogspot.com/[
> http://pgsnake.blogspot.com/]]
> Twitter: @pgsnake
>
> EnterpriseDB UK:http://www.enterprisedb.com[http://www.enterprisedb.com][
> http://www.enterprisedb.com/[http://www.enterprisedb.com/]]
>
> The Enterprise PostgreSQL Company
> On 2 Oct 2015, at 07:25, Prasad Somwanshi <[email protected][
> [email protected]]> wrote:
>
> Has anybody encountered this ? Or it's just me ?
>
> regards,
> Prasad
>
>
>
> Sent: Thursday, October 01, 2015 at 10:09 AM
> From: "Prasad Somwanshi" <[email protected][[email protected]]>
> To: pgadmin-hackers <[email protected][
> [email protected]]>
> Subject: Re: [pgadmin-hackers] Running pgAdmin4
> I think, I did. Is there any specific settings I might have missed there ?
>
> regards,
> Prasad
>
>
>
> Sent: Thursday, October 01, 2015 at 6:34 AM
> From: "Ashesh Vashi" <[email protected][
> [email protected]]>
> To: "Prasad Somwanshi" <[email protected][[email protected]]>
> Cc: pgadmin-hackers <[email protected][
> [email protected]]>
> Subject: Re: [pgadmin-hackers] Running pgAdmin4
>
> On Thu, Oct 1, 2015 at 2:19 AM, Prasad Somwanshi <[email protected][
> [email protected]]> wrote:
>
> Hi,
>
> I'm trying to pgAdmin4. I'm able to run pgAdmin4.py in python shell. And
> server runs.And able to access using browser.
> Then I tried running desktop application, it throws following error,
>
> Traceback (most recent call last):
> File "/home/prasad/Development/pgadmin4/web/pgAdmin4.py", line 73, in
> <module>
> app.run(port=server_port)
> File "/usr/lib/python2.7/dist-packages/flask/app.py", line 772, in run
> run_simple(host, port, self, **options)
> File
> "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/serving.py",
> line 622, in run_simple
> reloader_type)
> File
> "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/_reloader.py",
> line 263, in run_with_reloader
> signal.signal(signal.SIGTERM, lambda *args: sys.exit(0))
> ValueError: signal only works in main thread
> Initial connection failed. Retrying in 2 seconds.
> Initial connection failed. Retrying in 3 seconds.
> Initial connection failed. Retrying in 4 seconds.
> Initial connection failed after multiple attempts. Aborting.
>
>
> I can see what error says. As Qt application spawns separate thread to run
> server, which apparently is not allowed.
> Am I missing something ?
> Have you created config_local.py?
>
>
> --
> Thanks & Regards,
>
> Ashesh Vashi
> EnterpriseDB INDIA: Enterprise PostgreSQL Company[
> http://www.enterprisedb.com[http://www.enterprisedb.com][
> http://www.enterprisedb.com[http://www.enterprisedb.com]]]
>
> http://www.linkedin.com/in/asheshvashi[
> http://www.linkedin.com/in/asheshvashi][
> http://www.linkedin.com/in/asheshvashi[
> http://www.linkedin.com/in/asheshvashi]][
> http://www.linkedin.com/in/asheshvashi[
> http://www.linkedin.com/in/asheshvashi][
> http://www.linkedin.com/in/asheshvashi[
> http://www.linkedin.com/in/asheshvashi]]][
> http://www.linkedin.com/in/asheshvashi[
> http://www.linkedin.com/in/asheshvashi][
> http://www.linkedin.com/in/asheshvashi[
> http://www.linkedin.com/in/asheshvashi]][
> http://www.linkedin.com/in/asheshvashi[
> http://www.linkedin.com/in/asheshvashi][
> http://www.linkedin.com/in/asheshvashi[
> http://www.linkedin.com/in/asheshvashi]]]]
> regards,
> Prasad
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected][
> [email protected]][[email protected][
> [email protected]]])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers][
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers]][
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers][
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers]]][
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers][
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers]][
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers][
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers]]]]
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected][
> [email protected]])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers][
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers]][
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers][
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers]]]
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected][
> [email protected]])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers][
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers]]
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers[
> http://www.postgresql.org/mailpref/pgadmin-hackers]
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>
>
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Running pgAdmin4
@ 2015-10-24 09:52 Prasad Somwanshi <[email protected]>
parent: Ashesh Vashi <[email protected]>
0 siblings, 0 replies; 9+ messages in thread
From: Prasad Somwanshi @ 2015-10-24 09:52 UTC (permalink / raw)
To: Ashesh Vashi <[email protected]>; +Cc: pgadmin-hackers
Ofcourse, it's fixed now.
thanks,
Prasad
Sent: Saturday, October 24, 2015 at 6:45 AM
From: "Ashesh Vashi" <[email protected]>
To: "Prasad Somwanshi" <[email protected]>
Cc: pgadmin-hackers <[email protected]>
Subject: Re: [pgadmin-hackers] Running pgAdmin4
Hi Prasad,
Please check the current code.
--
Thanks & Regards,
Ashesh Vashit's
EnterpriseDB INDIA: Enterprise PostgreSQL Company[http://www.enterprisedb.com]
http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]
On Sat, Oct 24, 2015 at 4:47 AM, Prasad Somwanshi <[email protected][[email protected]]> wrote:
It seems , Debug mode and running server in separate thread are not compatible in Flask. And for Debug mode reloader need to be disabled for such case. Othewise it give error. I've modified code to disable reloader in debug mode.
This problem only affects desktop runtime.
thanks and regards,
Prasad Somwanshi
Sent: Friday, October 02, 2015 at 8:13 AM
From: "Prasad Somwanshi" <[email protected][[email protected]]>
To: pgadmin-hackers <[email protected][[email protected]]>
Subject: Re: [pgadmin-hackers] Running pgAdmin4
Ok, in that case, probably it's broken. Error mean, it doesn't like running python code in separate thread.
regards,
Prasad
Sent: Friday, October 02, 2015 at 7:54 AM
From: "Dave Page" <[email protected][[email protected]]>'t
To: "Prasad Somwanshi" <[email protected][[email protected]]>
Cc: pgadmin-hackers <[email protected][[email protected]]>
Subject: Re: [pgadmin-hackers] Running pgAdmin4
The desktop runtime hasn't been tested in months afaik, so it's entirely possible something is broken at the moment. It is only PoC code right now.
--
Dave Page
Blog: http://pgsnake.blogspot.com[http://pgsnake.blogspot.com][http://pgsnake.blogspot.com/[http://pgsnake.blogspot.com/][http://pgsnake.blogspot.com/[http://pgsnake.blogspot.com/]]]
Twitter: @pgsnake
EnterpriseDB UK:http://www.enterprisedb.com[http://www.enterprisedb.com][http://www.enterprisedb.com[http://www.enterprisedb.com]][http://www.enterprisedb.com/[http://www.enterprisedb.com/][http://www.enterprisedb.com/[http://www.enterprisedb.com/]]]
The Enterprise PostgreSQL Company
On 2 Oct 2015, at 07:25, Prasad Somwanshi <[email protected][[email protected]][[email protected][[email protected]]]> wrote:
Has anybody encountered this ? Or it's just me ?
regards,
Prasad
Sent: Thursday, October 01, 2015 at 10:09 AM
From: "Prasad Somwanshi" <[email protected][[email protected]][[email protected][[email protected]]]>
To: pgadmin-hackers <[email protected][[email protected]][[email protected][[email protected]]]>
Subject: Re: [pgadmin-hackers] Running pgAdmin4
I think, I did. Is there any specific settings I might have missed there ?
regards,
Prasad
Sent: Thursday, October 01, 2015 at 6:34 AM
From: "Ashesh Vashi" <[email protected][[email protected]][[email protected][[email protected]]]>
To: "Prasad Somwanshi" <[email protected][[email protected]][[email protected][[email protected]]]>
Cc: pgadmin-hackers <[email protected][[email protected]][[email protected][[email protected]]]>
Subject: Re: [pgadmin-hackers] Running pgAdmin4
On Thu, Oct 1, 2015 at 2:19 AM, Prasad Somwanshi <[email protected][[email protected]][[email protected][[email protected]]]> wrote:
Hi,
I'm trying to pgAdmin4. I'm able to run pgAdmin4.py in python shell. And server runs.And able to access using browser.
Then I tried running desktop application, it throws following error,
Traceback (most recent call last):
File "/home/prasad/Development/pgadmin4/web/pgAdmin4.py", line 73, in <module>
app.run(port=server_port)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 772, in run
run_simple(host, port, self, **options)
File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/serving.py", line 622, in run_simple
reloader_type)
File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/_reloader.py", line 263, in run_with_reloader
signal.signal(signal.SIGTERM, lambda *args: sys.exit(0))
ValueError: signal only works in main thread
Initial connection failed. Retrying in 2 seconds.
Initial connection failed. Retrying in 3 seconds.
Initial connection failed. Retrying in 4 seconds.
Initial connection failed after multiple attempts. Aborting.
I can see what error says. As Qt application spawns separate thread to run server, which apparently is not allowed.
Am I missing something ?
Have you created config_local.py?
--
Thanks & Regards,
Ashesh VashiEnterpriseDB INDIA: Enterprise PostgreSQL Company[http://www.enterprisedb.com[http://www.enterprisedb.com][http://www.enterprisedb.com[http://www.enterprisedb.com]][http://www.enterprisedb.com[http://www.enterprisedb.com][http://www.enterprisedb.com[http://www.enterprisedb.com]]]]
http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]]][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]]]][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]]][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]]]]]
regards,
Prasad
--
Sent via pgadmin-hackers mailing list ([email protected][[email protected]][[email protected][[email protected]]][[email protected][[email protected]][[email protected][[email protected]]]])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]]][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]]]][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]]][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]]]]]
--
Sent via pgadmin-hackers mailing list ([email protected][[email protected]][[email protected][[email protected]]])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]]][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]]]]
--
Sent via pgadmin-hackers mailing list ([email protected][[email protected]][[email protected][[email protected]]])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]]]
--
Sent via pgadmin-hackers mailing list ([email protected][[email protected]])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]]
--
Sent via pgadmin-hackers mailing list ([email protected][[email protected]])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
^ permalink raw reply [nested|flat] 9+ messages in thread
end of thread, other threads:[~2015-10-24 09:52 UTC | newest]
Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-09-30 20:49 Running pgAdmin4 Prasad Somwanshi <[email protected]>
2015-10-01 05:34 ` Ashesh Vashi <[email protected]>
2015-10-01 09:09 ` Prasad Somwanshi <[email protected]>
2015-10-02 06:25 ` Prasad Somwanshi <[email protected]>
2015-10-02 06:54 ` Dave Page <[email protected]>
2015-10-02 07:13 ` Prasad Somwanshi <[email protected]>
2015-10-23 23:17 ` Prasad Somwanshi <[email protected]>
2015-10-24 05:45 ` Ashesh Vashi <[email protected]>
2015-10-24 09:52 ` Prasad Somwanshi <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox