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: Cygwin install (v2.510.2.2) failure WinXPHome fopen failed 22 invalid argument.


Ugh, top-posting...  Reformatted.

On Fri, 23 Dec 2005, Phil Pollock wrote:

> > From: Igor Peshansky <pechtcha@XX.XXX.XXX>
> > Reply-To: cygwin@XXXXXX.XXX
> > To: Phil Pollock <philpollock@XXXXXXX.XXX>
> > CC: cygwin@XXXXXX.XXX

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Please read this link.
Thanks.

> > Subject: Re: Cygwin install (v2.510.2.2) failure WinXPHome fopen failed 22 invalid argument.
> > Date: Fri, 23 Dec 2005 17:05:41 -0500 (EST)
> >
> > Ugh, top-posting...  Reformatted.
> >
> > On Fri, 23 Dec 2005, Phil Pollock wrote:
> >
> > > > From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@XXXXXX.XXX>
> > > > Reply-To: cygwin@XXXXXX.XXX
> > > > To: Phil Pollock <philpollock@XXXXXXX.XXX>
> > > > CC: cygwin@XXXXXX.XXX
> >
> > <http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.
> >
> > > > Subject: Re: Cygwin install (v2.510.2.2) failure WinXPHome fopen failed 22 invalid argument.
> > > > Date: Fri, 23 Dec 2005 16:21:13 -0500
> > > >
> > > > Phil Pollock wrote:
> > > > > I have attempted to install Cygwin DLL release v1.5.18-1 under my
> > > > > Windows XP Home (SP2) administrative account over the last couple of
> > > > > days - just doesn't work for me.
> >
> > What makes you think it doesn't work?  What are the problems you are
> > having after installation completes?
> >
> > > > > Is there another way to download and install Cygwin? Any help would
> > > > > be appreciated.  Here's what I attempted:
> > > > >
> > > > > =======================
> > > > > INSTALLATION ATTEMPT 1: Standard Internet Install
> > > > > [snip]
> > > > > 5. Progress hung on setting up 'alternatives' for a couple of hours
> > > > > until all Virtual Memory was consumed resulting in termination.
> > > > >
> > > > > =======================
> > > > > INSTALLATION ATTEMPT 2: Download then Install
> > > > >
> > > > > 1. I emptied folders:
> > > > >        C:\Shareware\Cygwin
> > > > >        C:\Shareware\Cygwin\LocalPkg
> > > > > 2. I ran setup.exe and selected:
> > > > >      - 'Download Without Installing'
> > > > >      - Local Package Directory: C:\Shareware\Cygwin\LocalPkg
> > > > >      - Internet Connection: Direct Connection
> > > > >      - Download Site: http://sourceware.mirrors.tds.net
> > > > >      - Select Packages: (left defaults as-is) Clicked Next
> > > > > 4. Cygwin Setup Progress shows activity creating and downloading
> > > > >    directory tree under:
> > > > > C:\SHAREWARE\CYGWIN\LOCALPKG\HTTP%3A%2F%2FSOURCEWARE.MIRRORS.TDS.NET%2FPUB%2FSOURCEWARE.ORG%2FCYGWIN\RELEASE
> > > > >
> > > > >       the tree structure contains one *.tar.bz2 file per branch.
> > > > > 5. Progress continued until a 'Download Complete' dialog appeared.
> >
> > Heh, this seems to have worked...
> >
> > > > > 6. Files 'setup.log' and 'setup.log.full' were also created this
> > > > > time and contained many error messages of the sort:
> > > > >
> > > > > -------
> > > > > 2005/12/23 09:20:04 Starting cygwin install, version 2.510.2.2
> > > > > 2005/12/23 09:20:04 io_stream_cygfile: fopen failed 22 Invalid argument <=== this line repeated
> > > > > ... repeats of previous line
> >
> > This is harmless -- there was a bug in the older version that was
> > fixed in the snapshots.
> >
> > > > > 2005/12/23 09:20:04 Current Directory: C:\Documents and Settings\Owner\Desktop
> > > > > 2005/12/23 09:20:04 Changing gid to Users
> > > > > 2005/12/23 09:20:04 Could not open service McShield for query, start and stop. McAfee may not be installed, or we don't have access.
> >
> > This is also harmless -- it's an informational message.
> >
> > > > > 2005/12/23 09:20:11 io_stream_cygfile: fopen failed 22 Invalid argument
> > > > > 2005/12/23 09:20:15 io_stream_cygfile: fopen failed 22 Invalid argument
> > > > > 2005/12/23 09:20:15 source: download
> > > > > 2005/12/23 09:20:35 io_stream_cygfile: fopen failed 22 Invalid argument
> > > > > 2005/12/23 09:20:35 Selected local directory: C:\Cygwin_localpkg
> > > > > 2005/12/23 09:20:42 net: Direct get_url_to_membuf http://sources.redhat.com/cygwin/mirrors.lst
> > > > > getUrlToStream http://sources.redhat.com/cygwin/mirrors.lst
> > > > > 2005/12/23 09:20:50 io_stream_cygfile: fopen failed 22 Invalid argument <=== this line repeated
> > > > > 2005/12/23 09:20:50 site: http://sourceware.mirrors.tds.net/pub/sourceware.org/cygwin
> > > > > get_url_to_membuf http://sourceware.mirrors.tds.net/pub/sourceware.org/cygwin/setup.bz2
> > > > > ...
> > > > > -------
> >
> > Ok, this is just the download step -- what happened during the install
> > step?
> >
> > > > > INSTALLATION ATTEMPTs 3 - n: Download then Install (all possible combinations)
> > > > >
> > > > > 1. I tried using paths: C:\Cygwin and C:\Cygwin_localpk:  SAME RESULT AS ATTEMPT 2.
> > > > > 2. I tried using different mirrors: SAME RESULT AS ATTEMPT 2.
> > > > > 3. I tried turning off Norton Antivirus:  SAME RESULT AS ATTEMPT 2.
> > > > > 4. I tried using different download protocols: SAME RESULT AS ATTEMPT 2.
> >
> > Meaning the io_stream_cygfile errors in setup.log?
> >
> > > > > INSTALLATION ATTEMPT n+1: Any ideas?
> > > >
> > > > Try a snapshot? <http://cygwin.com/setup/>
> > >
> > > Regarding /setup/snapshots:
> > > [snip]
> > > =======================
> > > INSTALLATION ATTEMPT n+2: Download then Install with setup-2.523.exe
> > >
> > > 1. I emptied folders:
> > >       C:\Shareware\Cygwin
> > >       C:\Shareware\Cygwin\LocalPkg
> > > 2. I ran setup.exe and selected:
> > >     - 'Download Without Installing'
> > >     - Local Package Directory: C:\Shareware\Cygwin\LocalPkg
> > >     - Internet Connection: Direct Connection
> > > - Download Site: http://sourceware.mirrors.tds.net
> > >     - Select Packages: (left defaults as-is) Clicked Next
> > > SAME RESULTS AS INSTALLATION ATTEMPT 2.
> > >
> > > Any more combinations or permutations that might work?
> >
> > Umm, not quite the same results -- this setup version should put more
> > detailed error messages for io_stream_cygfile into the logs.  Does it?
> >
> > Does "same results" mean that you got the "Download complete" message?
> > If so, did you actually try installing afterwards?
> > 	Igor
> > P.S. FYI, Cygwin is not shareware -- it is free software... :-)
>
> I apologize for putting Cygwin into my convenient shareware folder with
> other stuff - but I don't organize my folder for political correctness.

That was an aside, anyway -- you are, of course, free to organize your
folders as you wish.

> Regarding setup-2.523.exe: 'Install from Local Directory' following
> 'Download Without Installing' with error messages in log file:

Hmm, did you mean 'Download' followed by 'Install'?

> I believe that the result will be the same as in 'INSTALLATION ATTEMPT
> 1', i.e., all virtual memory will be consumed and the installation will
> be terminated by XP.  Normally takes at least a couple of hours before
> XP complains.  After doing this a few times (using up a couple of long
> days), I just watch the Windows Task Manager's 'Processes' VM Size for
> setup.exe. Right now it has grown to 500,000K+ and setup is still
> 'installing' the same alternatives-1.3.20a-1 into
> /usr/bin/alternatives.exe with '0%' in the Setup title bar and no change
> in the Total or Disk progress bars.  I don't want to waste my time
> waiting for the VM to expire

That's fair enough.  So, your real problem is setup hogging up all the VM
while installing the alternatives package.  Quite possibly a legitimate
bug -- we just need to figure out how to reproduce it, if you are to have
any hope of getting the bug fixed.

> Don't you think that something is wrong - considering all the error
> messages during the download phase - or is it normal to have hundreds of
> error messages in the log file?

I doubt you'll have hundreds of error messages in the log from the new
snapshot of setup.  What you're likely seeing is old messages from your
previous installation attempt, since messages are appended to setup.log
(unlike setup.log.full, which is overwritten on every run of setup).

You can try deleting /var/log/setup.log to get a completely fresh picture
of what setup is doing.

> Also my system grinds to a halt as time goes by and causes me some
> concern about the stability of Cygwin setup.

Well, it works just fine for me, so unless we can find out exactly what
makes your system different from mine, there isn't much chance that I (or
other setup developers) can reproduce your problem.

Also, please be specific: does it grind to a halt *while* running Cygiwn
setup, or *after* it has exited?  If the latter, then it's very likely not
a problem with Cygwin setup.

> If I hit 'Cancel', setup displays: Cannot open log file
> C:\Shareware\Cygwin\/var/log/setup.log for writing - I click OK.  Note
> the invalid path here ('...\/var...).

This is possibly another bug.  Do you have write permission to your
registry?  Are you installing "Just for me", or "For everyone"?  Please
attach setup.log.full that results from the 'Download' step, and then the
one that results from the 'Install' step (be careful as that file gets
overwritten every time -- you'll have to save it between runs).

> What makes you think it is working?  Is this kind of behavior is
> 'normal' for Cygwin setup?

No, certainly hogging up VM is not 'normal', but neither is it frequent,
or there would have been more complaints by now.  Something on your system
tickles a bug in setup, or setup tickles a bug in whatever software you
have on your system...

You mentioned you have NAV running.  Is the Filesystem AutoProtect turned
on?  Try turning it off temporarily...

Since you're the only one who can reliably reproduce the problem, you'll
need to help us determine what causes it, or it won't get fixed.

Oh, another thing I just noticed is that you're putting your local package
directory under the Cygwin root.  That's usually not a good idea -- can
you try putting it somewhere else (e.g., use C:\Shareware\Cygwin and
C:\Shareware\CygwinLocal) and going through both the 'Download' and
'Install' steps (your previous email implies that you only tried the
'Download' step with such a setup).  FYI, to save time, you can simply
move/rename the local package directory instead of deleting it -- that way
setup won't re-download everything...
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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