This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A vexing installation problem


Hi All...

I also had a bad update session yesterday on a win2k box. I was one rev back on the cygwin1.dll. I did the update because I wanted to add hexedit.

During the update I got several error dialogs (I believe from scripts that could not run). I got a reboot notice and rebooted. After that I could not run an interactive bash shell...I would get an error dialog when it tried to start.

Unfortunately, I do not have the history. I saved my /home directory, ripped out everything (cygwin root and registry entries) and did a clean install. I installed in two steps, first default then added the packages I wanted...not that I didn't want the default stuff (;.)

The new install was uneventful.

From: Larry Hall
Reply-To: Cygwin List
To: David Hinds, Cygwin List
Subject: Re: A vexing installation problem
Date: Mon, 29 Nov 2004 13:59:07 -0500

At 01:44 PM 11/29/2004, you wrote:
>On Mon, Nov 29, 2004 at 11:57:35AM -0500, Larry Hall wrote:
>> At 02:14 AM 11/29/2004, you wrote:
>> >A couple days ago, I tried to update a quite old cygwin installation
>> >on a Windows XP SP2 box to the latest (1.5.12-1). After the update,
>> >all Cygwin programs exit immediately and silently. I've tried
>> >scrubbing the Windows registry of anything with a "Cyg" in it,
>> >deleting the Cygwin tree, and reinstalling from scratch, with the same
>> >result. Running "strace" on any Cygwin program shows apparently
>> >normal output (as far as I can tell) up to a point; and then zippo.
>> >
>> >For example, here's the end of 'strace ls':
>> >
>> > 149 42033 [main] ls 4072 pwdgrp::load: /etc/group
>> > 140 42173 [main] ls 4072 pwdgrp::load: strange path_conv problem
>> > 140 42313 [main] ls 4072 pwdgrp::load: /etc/group load failed
>> > 152 42465 [main] ls 4072 __cygwin_lock_lock: threadcount 1. not locking
>> > 151 42616 [main] ls 4072 __cygwin_lock_unlock: threadcount 1. not unlocking
>> > 148 42764 [main] ls 4072 pwdgrp::read_group: Completing /etc/group: mkpasswd:S-1-5-21-1844237615-725345543-682003330-513:401:dhinds
>> > 442 43206 [main] ls 4072 cygheap_user::ontherange: what 2, pw 0x10011018
>> > 147 43353 [main] ls 4072 cygheap_user::ontherange: HOME is already in the environment /cygdrive/h
>> > 684 44037 [main] ls 4072 sigproc_init: process/signal handling enabled(1)
>> > 176 44213 [main] ls 4072 __cygwin_lock_lock: threadcount 1. not locking
>> > 167 44380 [main] ls 4072 __cygwin_lock_unlock: threadcount 1. not unlocking
>> >
>> >Some commands get as far as executing build_argv(). I'm not sure what
>> >to do next: has anyone seen anything like this before? Or, can anyone
>> >suggest how to go about debugging this?
>>
>> If you've "scrubbed" your system before, then you might not be far enough
>> into customizing your environment that you shun the idea of reinstalling.
>> If that's the case, you might try removing Cygwin again and then create
>> the install directory as the user who will install Cygwin and then run
>> 'setup.exe' using that as the install directory. You clearly have
>> permission problems or issues with an incomplete installation (i.e.
>> '/etc/group' is not accessible). But you may be better served by following
>> the prescribed steps at:
>>
>> >Problem reports: http://cygwin.com/problems.html
>>
>> If or when you reinstall, pay close attention to any errors that show up
>> and inspect the '/var/log/setup.log' file.
>
>/etc/group and /etc/passwd do not exist. The postinstall scripts are
>not being executed successfully (since every cygwin command, including
>sh, just quietly exits without doing anything). Setup.log.full looks
>clean; everything installs successfully, apparently with no errors,
>right through running the postinstall scripts, since they don't report
>that they're not actually doing anything.
>
>Your comment on permissions prompted me to do another clean reinstall
>for "just me" rather than "all users". No change.
>
>I've included the output of 'cygcheck -s -v -r' below.
>



We prefer *attached* output. Anyway, I agree with Chris's comments, even though it's not obvious that this is the problem. Look for duplicate cygwin1.dlls, remove them, and reboot.

You need to figure out why the postinstall scripts aren't running.  It's
likely to be some permission issue as well.  As far as I can see, with the
exception that your home directory isn't local, the '/etc/passwd' and
'/etc/group' files should have been created fine.  Maybe your PDC isn't
available?  More than likely that's not it.  I'd concentrate on the
permissions.

Oh, and not that this is a problem but since you mentioned that you did
a clean install as "just me", the output you sent was for "all users".
The latter is really what you want anyway, if you ever think you'll
run a Cygwin service.




-- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746


-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/




-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]