public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* setup stuck on cygwin.ldif
@ 2017-10-08 13:46 Shaddy Baddah
  2017-10-08 14:43 ` Marco Atzeri
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Shaddy Baddah @ 2017-10-08 13:46 UTC (permalink / raw)
  To: cygwin

Hi,

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 :-(

-- 
Regards,
Shaddy

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setup stuck on cygwin.ldif
  2017-10-08 13:46 setup stuck on cygwin.ldif Shaddy Baddah
@ 2017-10-08 14:43 ` Marco Atzeri
  2017-10-08 17:17 ` Brian Inglis
  2017-10-11 19:15 ` Ken Brown
  2 siblings, 0 replies; 8+ messages in thread
From: Marco Atzeri @ 2017-10-08 14:43 UTC (permalink / raw)
  To: cygwin

On 08/10/2017 15:46, Shaddy Baddah wrote:
> Hi,
> 
> 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.

the file is for Schema Extension. do you have it ?
Otherwise it may be a AV interference

  $ head cygwin.ldif
# =========================================================================
#
# Schema Extension for Cygwin User and Group auxiliary classes
#
# Extend your Active Directory using
#
# ldifde -i -f <path>\<this>.ldif -b <username> <domain> <password> \
#   -k -c "CN=schema,CN=Configuration,DC=X" #schemaNamingContext
#
# Remember:


> Any ideas here? I guess I'll have to kill setup... but I fear that it
> will play havoc with my install :-(

you can always reinstall the "cygwin" package and any one that result
incomplete at
$ cygcheck -c

Regards
Marco


--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setup stuck on cygwin.ldif
  2017-10-08 13:46 setup stuck on cygwin.ldif Shaddy Baddah
  2017-10-08 14:43 ` Marco Atzeri
@ 2017-10-08 17:17 ` Brian Inglis
  2017-10-10  7:00   ` Shaddy Baddah
  2017-10-11 19:15 ` Ken Brown
  2 siblings, 1 reply; 8+ messages in thread
From: Brian Inglis @ 2017-10-08 17:17 UTC (permalink / raw)
  To: cygwin

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 ?

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setup stuck on cygwin.ldif
  2017-10-08 17:17 ` Brian Inglis
@ 2017-10-10  7:00   ` Shaddy Baddah
  2017-10-10  7:21     ` Shaddy Baddah
  0 siblings, 1 reply; 8+ messages in thread
From: Shaddy Baddah @ 2017-10-10  7:00 UTC (permalink / raw)
  To: cygwin

Hi,

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.

-- 
Regards,
Shaddy

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setup stuck on cygwin.ldif
  2017-10-10  7:00   ` Shaddy Baddah
@ 2017-10-10  7:21     ` Shaddy Baddah
  2017-10-10 15:31       ` Jon Turney
  0 siblings, 1 reply; 8+ messages in thread
From: Shaddy Baddah @ 2017-10-10  7:21 UTC (permalink / raw)
  To: cygwin

Hi,

On 10/10/17 17:59, Shaddy Baddah wrote:
> Hi,
>
> 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:

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@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:

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


With regards to the permission problem... I am almost certain this is
going to be an issue related to recent Cygwin acl changes... but I am
in no position to verify this at the moment.

-- 
Regards,
Shaddy


>


--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setup stuck on cygwin.ldif
  2017-10-10  7:21     ` Shaddy Baddah
@ 2017-10-10 15:31       ` Jon Turney
  0 siblings, 0 replies; 8+ messages in thread
From: Jon Turney @ 2017-10-10 15:31 UTC (permalink / raw)
  To: Shaddy Baddah; +Cc: The Cygwin Mailing List

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@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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setup stuck on cygwin.ldif
  2017-10-08 13:46 setup stuck on cygwin.ldif Shaddy Baddah
  2017-10-08 14:43 ` Marco Atzeri
  2017-10-08 17:17 ` Brian Inglis
@ 2017-10-11 19:15 ` Ken Brown
  2017-10-12  4:02   ` Resolved: " Shaddy Baddah
  2 siblings, 1 reply; 8+ messages in thread
From: Ken Brown @ 2017-10-11 19:15 UTC (permalink / raw)
  To: cygwin

On 10/8/2017 9:46 AM, Shaddy Baddah wrote:
> Hi,
> 
> 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

The progress bar shows that your disk is almost full.  Could that be the 
problem?

Ken


--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Resolved: Re: setup stuck on cygwin.ldif
  2017-10-11 19:15 ` Ken Brown
@ 2017-10-12  4:02   ` Shaddy Baddah
  0 siblings, 0 replies; 8+ messages in thread
From: Shaddy Baddah @ 2017-10-12  4:02 UTC (permalink / raw)
  To: cygwin

Hi,

On 12/10/17 06:15, Ken Brown wrote:
> On 10/8/2017 9:46 AM, Shaddy Baddah wrote:
>> Hi,
>>
>> 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
>
> The progress bar shows that your disk is almost full.  Could that be the
> problem?

Thanks for your concern.

I've found the problem. I haven't been vigilant in my
installation/update procedure. And I've paid a high price.

I normally only ever install as a "software user", portapps, that I have
to "runas" to obtain a command prompt to. From that command prompt I run
the setup.exe, and all the files end up owned by portapps, not my normal
desktop user.

I instituted this policy more than a decade ago when I accidentally
corrupted my install, by running a script or something like that, that
deleted some "system files" due to a path issue. My desktop user has no
permissions to modify any installed Cygwin files other than in their
/home directory. The policy could work using a privileged user, but I
also seek to avoid being dependant on using a privileged user on my
desktop.

Well, I've corrupted my install now by accidentally running an update
last month as the elevated administrator user. A bunch of directories
are now owned by the privileged user, and the portapps user can't
modify the directories.

I'll solve my own mess now. Thanks again.

-- 
Regards,
Shaddy


--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-10-12  4:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-08 13:46 setup stuck on cygwin.ldif Shaddy Baddah
2017-10-08 14:43 ` Marco Atzeri
2017-10-08 17:17 ` Brian Inglis
2017-10-10  7:00   ` Shaddy Baddah
2017-10-10  7:21     ` Shaddy Baddah
2017-10-10 15:31       ` Jon Turney
2017-10-11 19:15 ` Ken Brown
2017-10-12  4:02   ` Resolved: " Shaddy Baddah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).