X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:subject:to:cc:references:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=rE7GWOekF7BdYfhP 5ruqnnsMzK1fgbHMRxuNuTYHJuJjL1lQwu6+w8veT/hsFBkjVL1WsS3+2trAlBiI 3c060inJDDEylsEoJ4DTVzCgznPj4heUU932rhvmu3TnpQsHJlhKigbcGr+bQTXy pxzfpAJv6cTneoL4zPcDvbXSHss= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:subject:to:cc:references:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=as6wNjZKTlrJkIqFED5Njz A5zCs=; b=FCZxqEgNknqGfNK9lrt4QsF5fFhTCHyjNKqKmv0nPWnINqaa9tuL7M nIzx9Ghk68sCsttBaXbnmk2vO+dZM8u51NY1BcC3kF4ARVTuDe8g7fRwZ00c7er9 zMrQYEwL/dnnHPr5sKaXZ76UvBq+MbxFWjDRu22aHi0GBUtL2K+ls= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=pki, gif, fear, explorer X-HELO: out1-smtp.messagingengine.com X-ME-Sender: From: Jon Turney Subject: Re: setup stuck on cygwin.ldif To: Shaddy Baddah Cc: The Cygwin Mailing List References: <6317b102-2540-edf6-d6f0-6c52d341dee9 AT shaddybaddah DOT name> Message-ID: <750c5c7f-b08a-4a10-7513-2eca2806c4b9@dronecode.org.uk> Date: Tue, 10 Oct 2017 16:31:46 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <6317b102-2540-edf6-d6f0-6c52d341dee9@shaddybaddah.name> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Note-from-DJ: This may be spam On 10/10/2017 08:21, Shaddy Baddah wrote: > On 10/10/17 17:59, Shaddy Baddah wrote: >> On 09/10/17 04:16, Brian Inglis wrote: >>> On 2017-10-08 07:46, Shaddy Baddah wrote: >>>> I have a weird problem happening... so I have tried to update a 64-bit >>>> Cygwin installation on Windows 10 Pro. I closed all Cygwin processes, >>>> and a ps -ef is showing only the ps process itself. >>>> In anycase, during the install I was prompted that the file >>>> /usr/share/cygwin/cygwin.ldif was busy. >>>> I ran Process Explorer and searched for what might have the file open. >>>> I couldn't find anything. I clicked retry a number of times, but it >>>> wouldn't yield. Finally, I clicked continue. And now I'm stuck in this >>>> endless loop on the file: >>>> https://imgur.com/Nj35Y3T >>>> It's a animated gif, so you may have to select play in your browser. >>>> Not >>>> much to see, except the constant attempt to install the cygwin.ldif >>>> file. >>>> Any ideas here? I guess I'll have to kill setup... but I fear that it >>>> will play havoc with my install :-( >>> >>> Have you tried Windows cmd OPENFILES /Query ? >>> >> >> So I tried to "Reinstall" all, and now the problem has shifted. Every >> attempt to reinstall stops with "Unable to extract >> /etc/defaults/etc/pki/ca-trust/ca-legacy.conf". "The file is in use or >> some other error occurred.". >> >> Retry doesn't help. openfiles doesn't reveal anything: >> >> https://imgur.com/a/XV1YQ >> >> Having enhanced setup.exe at one point, and accordingly debugged it, >> I'll try and see if I can turn up the logging, see what is going on >> exactly. I actually don't know where setup.log/setup.log.full is going >> to at the moment. > > OK, I understand the logging only gets written when setup exits. So here > is what I am seeing: This is to allow for the fact that we don't know where /var/log/ is going to be when setup starts. But yeah, waiting until it exits to write the log is a bit of a misfeature. > Installing file cygfile:///etc/defaults/etc/pki/ca-trust/ca-legacy.conf > 2017/10/10 18:09:58 io_stream_cygfile: > fopen(/etc/defaults/etc/pki/ca-trust/ca-legacy.conf) failed 13 > Permission denied > 2017/10/10 18:09:58 Failed to open > cygfile:///etc/defaults/etc/pki/ca-trust/ca-legacy.conf for writing. > > There is nothing in the target folder. icacls of ca-trust shows: > > portapps AT AVANT-W10 F:\portapps-sw\cygwin\etc\defaults\etc\pki > > icacls ca-trust > ca-trust AVANT-W10\portapps:(F) >          AVANT-W10\None:(RX) >          Everyone:(RX) >          CREATOR OWNER:(OI)(CI)(IO)(F) >          CREATOR GROUP:(OI)(CI)(IO)(RX) >          Everyone:(OI)(CI)(IO)(RX) > > Successfully processed 1 files; Failed processing 0 files > > A retry, just repeats of course: > > 2017/10/10 18:13:08 io_stream_cygfile: > fopen(/etc/defaults/etc/pki/ca-trust/ca-legacy.conf) failed 13 > Permission denied > 2017/10/10 18:13:08 Failed to open > cygfile:///etc/defaults/etc/pki/ca-trust/ca-legacy.conf for writing. > > Then if you click continue, you get an endless loop that takes up > all your CPU: Fascinating. I did a bit of staring at [1], and this log looks like we not advancing to the next archive member before next_file_name(), because not only does extract_file() fail, but also extract_replace_on_reboot() (creating the .new file to be renamed on reboot) is failing. It looks like we've never handled extract_replace_on_reboot() failing correctly, since we don't advance to the next archive member in that case. I'm assuming there's something unusual about permissions which is why the .new file can't be created, or perhaps this problem would be more common? You might be able to work around this using the --no-replaceonreboot option, but it looks like that will always suffer from the same problem. [1] https://sourceware.org/git/gitweb.cgi?p=cygwin-setup.git;a=blob;f=install.cc;h=f8f0b59d2d2163798c1e222b913b2a8ee0c009d9;hb=HEAD#l474 > 2017/10/10 18:13:11 io_stream_cygfile: > fopen(/etc/defaults/etc/pki/ca-trust/ca-legacy.conf.new) failed 13 > Permission denied > 2017/10/10 18:13:11 Failed to open > cygfile:///etc/defaults/etc/pki/ca-trust/ca-legacy.conf.new for writing. > 2017/10/10 18:13:11 Unable to install file > cygfile:///etc/defaults/etc/pki/ca-trust/ca-legacy.conf.new > Installing file cygfile:///etc/defaults/etc/pki/ca-trust/ca-legacy.conf > 2017/10/10 18:13:11 io_stream_cygfile: > fopen(/etc/defaults/etc/pki/ca-trust/ca-legacy.conf) failed 13 > Permission denied > 2017/10/10 18:13:11 Failed to open > cygfile:///etc/defaults/etc/pki/ca-trust/ca-legacy.conf for writing. > 2017/10/10 18:13:11 io_stream_cygfile: > fopen(/etc/defaults/etc/pki/ca-trust/ca-legacy.conf.new) failed 13 > Permission denied > 2017/10/10 18:13:11 Failed to open > cygfile:///etc/defaults/etc/pki/ca-trust/ca-legacy.conf.new for writing. > 2017/10/10 18:13:11 Unable to install file > cygfile:///etc/defaults/etc/pki/ca-trust/ca-legacy.conf.new > Installing file cygfile:///etc/defaults/etc/pki/ca-trust/ca-legacy.conf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple