Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAVKH-00044N-IJ for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Oct 2018 07:24: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 1gAVKF-0002l0-Ct for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Oct 2018 07:24:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAS7q-0000VF-LP for pgsql-bugs@lists.postgresql.org; Thu, 11 Oct 2018 03:59:02 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gAS7j-0000TE-MM for pgsql-bugs@postgresql.org; Thu, 11 Oct 2018 03:59:01 +0000 Received: by mail-pg1-x542.google.com with SMTP id y18-v6so3514092pge.0 for ; Wed, 10 Oct 2018 20:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to; bh=acoY55luFEUZ32Zyb4fJgJRtPiLzWTNYFBV3DThGCmw=; b=N7HL/mCotd2TGQDCrc9UTf1VGv0xPfr0vbxvSbMhb0OT1sy65jf91RqSjABX9MdoMt okgKcBJQD0/6/Gsp75YTXRyJ2KoiV7Xxq+NRxyQlYDpN0xsYpIy38RcC0EfAt9ypW12N Mt5GRWGLr0achj12jYgjfnpD++AaX+J91VCczVcDxu6cIw38oy7CUHxYA6wHlTrrJ6R9 xveMEZx/mhmLm6uoyXzhDUC9wO+PUF4dObYH7wa21ofUlFJmUPYLcu1jwBSbX60qaLc7 NH7HlX3Kcfauxl9cAYDnwAm3fn/T36cmLWqrdrRUvjPbNwr0ZFkkZTAj9a9ArK6/0cys qQzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to; bh=acoY55luFEUZ32Zyb4fJgJRtPiLzWTNYFBV3DThGCmw=; b=sG1Y5wDYuM6meDFzdSx7mBaAysUALqpA/8hns5LB3Y7Pa1cNQieFgeqVqMXUVoUxe/ 4HaH8qPxlMkXu31yYtW+OQ2sQqrGJqQ59iFp1BYsSb2rUzjbAPi8CNHL393PlkxuqcgT gfVt/qLEiKM+N0BQo1qmBSPY5XJJ9qT7exEXfNWov5aNHr9kbav6hlq+izDnPyGChbuD 9QYW9fBe7hwDOCIShh/Q1PteqH5kURifd7grRwT/aDG/jCBl2li/LpNF4rVTTrltyfB6 XLrEDMowVf0kErOy9J/7qxnwDfz4c7QVIrc4MZ788XaMkjnXK40PhaiSOz0xKKnKvves eR+g== X-Gm-Message-State: ABuFfoir8ucL66nSaywdOCFElZhZmiJvkiPkKptn9G+Bt7ArOUzRxP5O HfEp6nxawW6ZEU4QbqvGNzxha7sg X-Google-Smtp-Source: ACcGV60GEuE3bHpo2xjOOo/5pq5A4b+qYRVSZr99axVnfa56LPkOHT2WHUVjU1qjuQrf35wtC9ZIcQ== X-Received: by 2002:a63:8f09:: with SMTP id n9-v6mr31655965pgd.222.1539230333500; Wed, 10 Oct 2018 20:58:53 -0700 (PDT) Received: from [192.168.1.64] ([210.18.181.56]) by smtp.gmail.com with ESMTPSA id 22-v6sm34943999pfl.126.2018.10.10.20.58.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Oct 2018 20:58:52 -0700 (PDT) Subject: Re: General: Unable to start the postgresql after copying postgresql.log To: Pavan Teja References: <07783269-97c8-adcf-150f-fcedd16df21f@gmail.com> <0421f20b-9443-e19d-022f-1d7790b5c183@gmail.com> Cc: pgsql-bugs@postgresql.org From: neela Message-ID: Date: Thu, 11 Oct 2018 09:28:49 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------1F7605436E48CCFEC046A732" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------1F7605436E48CCFEC046A732 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Dear sir/mam, May I know why this cause. I simply doing the copying the log alone. But why postgresql not get started. Which causes this issue. Regards, Neelaveni On Wednesday 10 October 2018 07:29 PM, Pavan Teja wrote: > Hi neela, > > In this case, you can delete the postmaster.pid file and try to > restart the Postgresql database. > > I hope it might start. Kindly acknowledge for further queries if any. > > Regards, > Pavan, > 9841380956 > > On Wed, Oct 10, 2018, 7:26 PM neela > wrote: > > > Dear sir/mam, > I'm using postgresql 9.4.6 version. > I've copied the postgresql.log as postgresql.log_bk. > While copying the postgresql.log, I've restarted the > postgresql process. > Then the process got failed and I've got the following error, > > psql: could not connect to server: Connection refused > Is the server running locally and accepting > connections on Unix domain socket "//tmp//.s.PGSQL.5432"? > > And then I've check with log, it gives the result as follow, > FATAL: pre-existing shared memory block is still in use > HINT: If you're sure there are no old server processes still > running, > remove the shared memory block or just delete the file > "postmaster.pid". > > After that unable to restart the postgresql, it always fails. > After rebooting it gets succeed and truncating postmaster.pid > gets succeed. > Kindly help me how to fix this. > > -- > with regards, > Neelaveni > --------------1F7605436E48CCFEC046A732 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
Dear sir/mam,
    May I know why this cause. I simply doing the copying the log alone.
    But why postgresql not get started.
    Which causes this issue.

Regards,
Neelaveni

On Wednesday 10 October 2018 07:29 PM, Pavan Teja wrote:
Hi neela,

In this case, you can delete the postmaster.pid file and try to restart the Postgresql database.

I hope it might start. Kindly acknowledge for further queries if any.

Regards,
Pavan,
9841380956

On Wed, Oct 10, 2018, 7:26 PM neela <neelat100@gmail.com> wrote:


Dear sir/mam,
    I'm using postgresql 9.4.6 version.
    I've copied the postgresql.log as postgresql.log_bk.
    While copying the postgresql.log, I've restarted the postgresql process.
    Then the process got failed and I've got the following error,

        psql: could not connect to server: Connection refused
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

    And then I've check with log, it gives the result as follow,
    FATAL:  pre-existing shared memory block is still in use
    HINT:  If you're sure there are no old server processes still running,
    remove the shared memory block or just delete the file "postmaster.pid".

    After that unable to restart the postgresql, it always fails.
    After rebooting it gets succeed and truncating postmaster.pid gets succeed.
    Kindly help me how to fix this.

--    
with regards,
Neelaveni


--------------1F7605436E48CCFEC046A732--