Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 39623B5DCEB for ; Tue, 13 Sep 2011 03:46:22 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 51136-09 for ; Tue, 13 Sep 2011 06:44:31 +0000 (UTC) Received: from mx1.hub.org (mx1.hub.org [200.46.208.106]) by mail.postgresql.org (Postfix) with ESMTP id 631E9B5DC71 for ; Tue, 13 Sep 2011 03:44:31 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.hub.org (Postfix) with ESMTP id BB1A82803597 for ; Tue, 13 Sep 2011 03:44:30 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R3MjM-0001fv-MR for pgsql-general@postgresql.org; Tue, 13 Sep 2011 08:44:28 +0200 Received: from 217.110.94.67 ([217.110.94.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Sep 2011 08:44:28 +0200 Received: from spam_eater by 217.110.94.67 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Sep 2011 08:44:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-general@postgresql.org From: Thomas Kellerer Subject: Re: Problem with the 9.1 one-click installer Windows7 64bit Date: Tue, 13 Sep 2011 08:44:54 +0200 Lines: 48 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 217.110.94.67 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.724 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, NO_DNS_FOR_FROM=0.001, RCVD_NUMERIC_HELO=1.164, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201109/336 X-Sequence-Number: 179694 Merlin Moncure, 12.09.2011 21:28: >> With the second attempt, the installer again hang during initdb. Checking >> the state using ProcessExplorer I could see that the installer script was >> waiting for icacls.exe to set permissions for the user currently running the >> installer. It was running [icacls.exe "thomas"] instead of [icacls.exe >> "mydomain\thomas"] - although I have to admit that I don't know if that >> would make a difference. >> >> So I killed the iacls.exe and the script proceeded, just to hang at the next >> call to icacls.exe when it tried to set the privileges on the directory for >> the postgres user despite the fact that that user already was the owner and >> had full control over it. So I killed icacls.exe again and then the script >> finally finished without problems. The service was registered and >> successully started. >> >> UAC is turned off on my computer. >> > > hm, why is icacls hanging? does it do that if you run it from the command line? > I re-ran the installer and copied the actual commandline the installer was using. It turned out that it tries the following: (Note that the selected data directory is c:\Daten\db\pgdata91) icacls C:\ /grant "tkellerer":RX (Changing the permission for the whole harddisk!!) Then when I kill that process, the installer starts a new one with icacls "C:\Daten" /grant "tkellerer":RX Then I kill that one again, a new one is started with: icacls C:\ /grant "postgres":RX Then after killing that one, a new one is started with: icacls "C:\Daten" /grant "postgres":RX So it didn't actually hang, but changing the permissions for the entire harddisk (170GB taken) and the complete c:\Daten (~20GB) directory twice would have taken ages. Seems there is something fishy about the way the iacls.exe commandline is assembled. Regards Thomas