Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gefAv-0004t2-NE for pgadmin-hackers@arkaria.postgresql.org; Wed, 02 Jan 2019 11:59:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gef9w-0005Sx-H3 for pgadmin-hackers@arkaria.postgresql.org; Wed, 02 Jan 2019 11:58:04 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gef9w-0005Sq-Bj for pgadmin-hackers@lists.postgresql.org; Wed, 02 Jan 2019 11:58:04 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gef9t-0002GQ-FR for pgadmin-hackers@postgresql.org; Wed, 02 Jan 2019 11:58:03 +0000 Received: by mail-wr1-x444.google.com with SMTP id q18so30218321wrx.9 for ; Wed, 02 Jan 2019 03:58:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SeNUruQWDpxgDs/pvtB4McqqyLdUMdMXpZlhpNAGCDA=; b=FmpAF+m4CqGITSEDbT2tdeoR9i2uyimKSBa/sJE0vSYmi+a513+n8Gyq/jbsypcCvC bSV491N9i8DbytQKs4pq5Vm6qmGcvee4Gcpu3kqH8PVsv8V/R2+QPIEVKePrU74Ifcj+ jNXB8obt8kbRTfDBIUjwiQ43ssneLnMCbL3wPAwzLmUWko1ZCztuvKv05CIaEgVu24hS nnNA8eBupE3C68QQfOqt0JWqPiVju+DDfTwHme4d1huzn2GCpYc2KqBaHhfz3Jh5BafZ TFAk/jNFsB/MrSmmB3/1oxYskHa1xgcPq4YpkZpzedxHUBQytR4sGsY2k+k+u3fWueGT 65cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SeNUruQWDpxgDs/pvtB4McqqyLdUMdMXpZlhpNAGCDA=; b=PZa/L9OpFPOquu65JVR5d1vWW9XvbGQVK5zohl5Ph4BaG/nS5Slu1N2m8gCnFkpbet qtks5NpGskcIwmfsQCYRDlvfEqzWrA+OQql56Tpj5cGAKDIASVtNqw2N7mIY+HCd+6hC 1OdS6qgePmAac+Hgp32bJqwS2qMF54UAY3gv4Ci2wWmm6+r/6CFPcoCpW4KDZIpaVAc0 wLKSMVQjhQz7MW+e7oPbZ4vcN059wfgH6/euygU/G3s21aGHrU+i2OKszhQU1aNQQaJB j0YVVlYCarI0914BZc5KwMu7Idfpt0lakYgx55bzU3Rc9uuWZXpVSdC0dPySoUEbRPyl iD4A== X-Gm-Message-State: AJcUuke40ntuvk7DGlfd6tATBFFc6bJ2Q0CVO0SLhuTb4+642EIvdkkR pe8rj/y0wU/M2RADbwXZ/YrnjwOG5EqLH4/LvU1zlvn4wR0= X-Google-Smtp-Source: ALg8bN5O9COkk22XsCRVrmdyH01k5wZalc4Xpi+daP9dLexO4wX9mhTdLjmGQ338Fa8p1HL1M/HUZFbOLBY922zXmqs= X-Received: by 2002:adf:f649:: with SMTP id x9mr36944474wrp.247.1546430279882; Wed, 02 Jan 2019 03:57:59 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Dave Page Date: Wed, 2 Jan 2019 11:57:48 +0000 Message-ID: Subject: Re: [patch][pgAdmin4] Windows error - The application server could not be contacted occasionally To: Aditya Toshniwal Cc: pgadmin-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thanks, applied. On Tue, Jan 1, 2019 at 10:24 AM Aditya Toshniwal wrote: > > Hi Hackers, > > Some of the windows users are facing the error as "The application server could not be contacted" while starting pgAdmin4. The startup logs had nothing. Just that the application timed out. > I was able to simulate the issue for sometime when I started my windows machine, but later it did not throw any error and worked fine. > It turned out that due to the slowness of the Windows OS initially the application took time to setup which was longer than the app start timeout - 30secs and so, timed out. > In the attached patch, I have increased the timeout to 90secs (difficult to figure out the standard timeout). Plus, I have changed the messages at intervals when the app is starting so that it does not look stuck. > > Kindly review. > > -- > Thanks and Regards, > Aditya Toshniwal > Software Engineer | EnterpriseDB Software Solutions | Pune > "Don't Complain about Heat, Plant a tree" -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company