Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zprep-0004de-9N for pgadmin-hackers@arkaria.postgresql.org; Sat, 24 Oct 2015 05:46:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zpren-0003On-Fj for pgadmin-hackers@arkaria.postgresql.org; Sat, 24 Oct 2015 05:46:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZpreZ-0003AP-6S for pgadmin-hackers@postgresql.org; Sat, 24 Oct 2015 05:46:07 +0000 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZpreU-0006Lv-KC for pgadmin-hackers@postgresql.org; Sat, 24 Oct 2015 05:46:06 +0000 Received: by lffz202 with SMTP id z202so103284127lff.3 for ; Fri, 23 Oct 2015 22:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb_com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=jWlPHTfU5jubmPQysfNgXyRAYakKWNCANtvZRFXMOUw=; b=B9T5mVS7xnjzAhNhc0MDYOMFljWLbVZncP8L6ftEiCHPm/5r76gH20yZWxBc/t4wUJ UJIXZt+zyF9OvoUpvwuP0htntHoZALTtHbdnZ5zIQVmrOU10zJSY7z3PSUB124bN5IXG H5FRfvfwlnqxmays4CFnamAsWujASRaV1uHBRroRSqzfTF92vaNzAiOhTucIYr4Eccz4 fo3kGAErYcj7agBrevuIvc10zyZdhlXDklxC6ZmwK2YF7d0GkAxcGHyWHJ1yacFn7eQX K0/hqfpX7eyO7X8aAqvn1BvWORbWBRfcCoZz0fw+98mweVVVF8LpVp12CHJoB2Lr5r0C bfTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=jWlPHTfU5jubmPQysfNgXyRAYakKWNCANtvZRFXMOUw=; b=kfoeXMlnPzAmz3ZW8S5Rvch2rNLkrIoN0znLH+3xGnny9J9yPGPOIzYLMoxJGo27e+ zOu3SjJQCwjLG+6qA6wlcxXhoIt4YSM6GgTqEOt7UC8sQ81mXPl1r6V09JaxlbDLy4ND 1mvhBMqrZW7yMcWFDuSDIAZ5h3jgilZ0VLCutm5H+syDwI7qUmZOwC2Bd0OrTuq2Jbd5 xWRdOKLoWcUJv25PYh/b1yAUpBo67LJgzB1qYLbxHWTG6VLHBMFQBUQz8h8VvTEp4sXM BCvsAiq5Prvyiv2ZkhRYOVhr/gho97kOIGwmoE7l6TR2pxESr5MtK26TPyOADzp/q8kJ izsQ== X-Gm-Message-State: ALoCoQne51BhS6bUp7Acc9k1b+hlxbyO7DizOwzL+JyOk3oFoC259/FEhmkAkhwixq6sZ5kbjcjC X-Received: by 10.112.163.99 with SMTP id yh3mr13087335lbb.121.1445665559554; Fri, 23 Oct 2015 22:45:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.181.37 with HTTP; Fri, 23 Oct 2015 22:45:39 -0700 (PDT) In-Reply-To: References: <352C284F-06D9-4111-94EB-B4D144EAD9DB@pgadmin.org> From: Ashesh Vashi Date: Sat, 24 Oct 2015 11:15:39 +0530 Message-ID: Subject: Re: Running pgAdmin4 To: Prasad Somwanshi Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary=089e011605f42443470522d33e6d X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org --089e011605f42443470522d33e6d Content-Type: text/plain; charset=UTF-8 Hi Prasad, Please check the current code. -- Thanks & Regards, Ashesh Vashi EnterpriseDB INDIA: Enterprise PostgreSQL Company *http://www.linkedin.com/in/asheshvashi* On Sat, Oct 24, 2015 at 4:47 AM, Prasad Somwanshi 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" > To: pgadmin-hackers > 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" 't > To: "Prasad Somwanshi" > Cc: pgadmin-hackers > 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 prasad.s@mail.com]> wrote: > > Has anybody encountered this ? Or it's just me ? > > regards, > Prasad > > > > Sent: Thursday, October 01, 2015 at 10:09 AM > From: "Prasad Somwanshi" > To: pgadmin-hackers pgadmin-hackers@postgresql.org]> > 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" ashesh.vashi@enterprisedb.com]> > To: "Prasad Somwanshi" > Cc: pgadmin-hackers pgadmin-hackers@postgresql.org]> > Subject: Re: [pgadmin-hackers] Running pgAdmin4 > > On Thu, Oct 1, 2015 at 2:19 AM, Prasad Somwanshi prasad.s@mail.com]> 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 > > 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 (pgadmin-hackers@postgresql.org[ > pgadmin-hackers@postgresql.org][pgadmin-hackers@postgresql.org[ > pgadmin-hackers@postgresql.org]]) > 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 (pgadmin-hackers@postgresql.org[ > pgadmin-hackers@postgresql.org]) > 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 (pgadmin-hackers@postgresql.org[ > pgadmin-hackers@postgresql.org]) > 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 (pgadmin-hackers@postgresql.org) > 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 (pgadmin-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgadmin-hackers > > --089e011605f42443470522d33e6d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Prasad,

Please check the current code= .


--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company
<= /p>

<= br>

<= a href=3D"http://www.linkedin.com/in/asheshvashi" target=3D"_blank">http= ://www.linkedin.com/in/asheshvashi


On Sat, Oct 24, 2015 at 4:47 AM, Prasad Somw= anshi <prasad.s@mail.com> wrote:
It see= ms , 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. Othe= wise it give error. I've modified code to disable reloader in debug mod= e.
This problem only affects desktop runtime.
=C2=A0
thanks and regards,
Prasad Somwanshi
=C2=A0
=C2=A0

Sent:=C2=A0Friday, October 02, 2015 at 8:13 AM
From:=C2=A0"Prasad Somwanshi" <prasad.s@mail.com>
To:=C2=A0pgadmin-hackers <pgadmin-hackers@postgresql.org>
Subject:=C2=A0Re: [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
=C2=A0
=C2=A0

Sent:=C2=A0Friday, October 02, 2015 at 7:54 AM
From:=C2=A0"Dave Page" <dpage@pgadmin.org>'t
To:=C2=A0"Prasad Somwanshi" <prasad.s@mail.com>
Cc:=C2=A0pgadmin-hackers <pgadmin-hackers@postgresql.org>
Subject:=C2=A0Re: [pgadmin-hackers] Running pgAdmin4

The desktop runtime hasn't been tested in months afaik, so it's ent= irely possible something is broken at the moment. It is only PoC code right= now.

--=C2=A0
Dave Page
Blog:=C2=A0http:/= /pgsnake.blogspot.com[http://pgsnake.blogspot.com/[http://pgsnake.blogspot.com/]]
Twitter: @pgsnake

EnterpriseDB UK:h= ttp://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 <prasad.s@mail.com[prasad.s@mail.com]> wrote:
=C2=A0
Has anybody encountered this ? Or it's just me ?

regards,
Prasad
=C2=A0
=C2=A0

Sent:=C2=A0Thursday, October 01, 2015 at 10:09 AM
From:=C2=A0"Prasad Somwanshi" <prasad.s@mail.com[prasad.s@mail.com]>
To:=C2=A0pgadmin-hackers <pgadmin-hackers@postgresql.org[pgadmin-hackers@postgresq= l.org]>
Subject:=C2=A0Re: [pgadmin-hackers] Running pgAdmin4
I think, I did. Is there any specific settings I might have missed there ?<= br>
regards,
Prasad
=C2=A0
=C2=A0

Sent:=C2=A0Thursday, October 01, 2015 at 6:34 AM
From:=C2=A0"Ashesh Vashi" <ashesh.vashi@enterprisedb.com[ashesh.vashi@en= terprisedb.com]>
To:=C2=A0"Prasad Somwanshi" <prasad.s@mail.com[prasad.s@mail.com]>
Cc:=C2=A0pgadmin-hackers <pgadmin-hackers@postgresql.org[pgadmin-hackers@postgresq= l.org]>
Subject:=C2=A0Re: [pgadmin-hackers] Running pgAdmin4

On Thu, Oct 1, 2015 at 2:19 AM, Prasad Somwanshi <prasad.s@mail.com[prasad.s@mail.com]> 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):
=C2=A0 File "/home/prasad/Development/pgadmin4/web/pgAdmin4.py", = line 73, in <module>
=C2=A0 =C2=A0 app.run(port=3Dserver_port)
=C2=A0 File "/usr/lib/python2.7/dist-packages/flask/app.py", line= 772, in run
=C2=A0 =C2=A0 run_simple(host, port, self, **options)
=C2=A0 File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py= 2.7.egg/werkzeug/serving.py", line 622, in run_simple
=C2=A0 =C2=A0 reloader_type)
=C2=A0 File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py= 2.7.egg/werkzeug/_reloader.py", line 263, in run_with_reloader
=C2=A0 =C2=A0 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?
=C2=A0

--
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]]]
=C2=A0
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]= ]][htt= p://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][htt= p://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]][ht= tp://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][ht= tp://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]]]]
regards,
Prasad


--
Sent via pgadmin-hackers mailing list (
pgadmin-hackers@postgresql.org[pgadmin-hacker= s@postgresql.org][pgadmin-hackers@postgresql.org[pgadmin-hackers@postgresql.org]])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[h= ttp://www.postgresql.org/mailpref/pgadmin-hackers][http://www.pos= tgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/ma= ilpref/pgadmin-hackers]][http://www.postgresql.org/mailpref/pgadm= in-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers= ][http://www.postgresql.org/mailpref/pgadmin-hackers[http:/= /www.postgresql.org/mailpref/pgadmin-hackers]]][http://www.postgr= esql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailp= ref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-h= ackers[http://www.postgresql.org/mailpref/pgadmin-hackers]][<= a href=3D"http://www.postgresql.org/mailpref/pgadmin-hackers" target=3D"_bl= ank">http://www.postgresql.org/mailpref/pgadmin-hackers[http://ww= w.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.= org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/p= gadmin-hackers]]]]


--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org[pgadmin-hacker= s@postgresql.org])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[http://w= ww.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-hack= ers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.po= stgresql.org/mailpref/pgadmin-hackers]]]


--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org[pgadmin-hacker= s@postgresql.org])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[http://w= ww.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 (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[h= ttp://www.postgresql.org/mailpref/pgadmin-hackers]

--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers=


--089e011605f42443470522d33e6d--