public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: setup.exe:  Woe is me!
@ 2003-04-27  9:48 Phil Bewig
  2003-04-27 11:25 ` Greg McCrory
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Phil Bewig @ 2003-04-27  9:48 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

I just killed setup.exe after over an hour of inactivity.  A total
of over 125MB of disk space has disappeared in the last few
hours while I have been running setup.exe, reading and
replying to email on the cygwin mailing list in this thread
using MS Outlook, and searching the cygwin mailing list
archives with MSIE.  When I killed setup.exe (using the
"cancel" button on the progress screen), I received a popup
message "Cannot open log file d:\/var/log/setup.log for
writing."  Are there any additional clues here?  What is
consuming disk?  And how do I get it back?

Thanks again,

Phil


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

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

* RE: setup.exe:  Woe is me!
  2003-04-27  9:48 setup.exe: Woe is me! Phil Bewig
@ 2003-04-27 11:25 ` Greg McCrory
  2003-04-27 12:14 ` Igor Pechtchanski
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: Greg McCrory @ 2003-04-27 11:25 UTC (permalink / raw)
  To: pbewig, 'cygwin@cygwin.com'

At 4/26/2003 08:13 PM -0500, Phil Bewig wrote:
>I just killed setup.exe after over an hour of inactivity.  A total
>of over 125MB of disk space has disappeared in the last few
>hours while I have been running setup.exe, reading and
>replying to email on the cygwin mailing list in this thread
>using MS Outlook, and searching the cygwin mailing list
>archives with MSIE.  When I killed setup.exe (using the
>"cancel" button on the progress screen), I received a popup
>message "Cannot open log file d:\/var/log/setup.log for
>writing."  Are there any additional clues here?  What is
>consuming disk?  And how do I get it back?
>
>Thanks again,
>
>Phil


My firewall has gotten in the way many times with cygwin setup.  Try 
disabling your firewall just during setup.  Also, maybe try using a 
different mirror, you may be experiencing long network delays.  My cygwin 
install dir currently contains 145 mb of downloaded data.

GMc



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

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

* RE: setup.exe:  Woe is me!
  2003-04-27  9:48 setup.exe: Woe is me! Phil Bewig
  2003-04-27 11:25 ` Greg McCrory
@ 2003-04-27 12:14 ` Igor Pechtchanski
  2003-04-27 13:10 ` Max Bowsher
  2003-04-28  1:09 ` Robert Collins
  3 siblings, 0 replies; 9+ messages in thread
From: Igor Pechtchanski @ 2003-04-27 12:14 UTC (permalink / raw)
  To: Phil Bewig; +Cc: cygwin

On Sat, 26 Apr 2003, Phil Bewig wrote:

> I just killed setup.exe after over an hour of inactivity.  A total
> of over 125MB of disk space has disappeared in the last few
> hours while I have been running setup.exe, reading and
> replying to email on the cygwin mailing list in this thread
> using MS Outlook, and searching the cygwin mailing list
> archives with MSIE.  When I killed setup.exe (using the
> "cancel" button on the progress screen), I received a popup
> message "Cannot open log file d:\/var/log/setup.log for
> writing."  Are there any additional clues here?  What is
> consuming disk?  And how do I get it back?
>
> Thanks again,
> Phil

Phil,

Setup.exe first downloads the tarballs of the Cygwin packages from your
chosen mirror to your local disk, into a subdirectory of the "Local
Installation Directory".  If you're on a dial-up connection, it may take
quite a while, depending on the number of packages you chose to install.
Once all the packages are downloaded, setup.exe switches to the
installation phase, where it installs the files contained in those
packages (by unpacking them).  The third phase runs whatever postinstall
scripts were in those packages.

My guess is that the space has been taken up by the local cache directory.
Setup.exe runs in multiple threads.  The files are downloaded in a
separate thread from the main thread (that handles Windows messages and
updates the main window).  If the main thread is hung, downloads will
still continue, giving the impression of disappearing disk space.  The
fact that the "Cancel" button works means that the main thread is not
truly hung, but something is probably screwed up with the sequencing logic
somewhere...  It would be really nice to get a gdb backtrace, since it's
so reproducible for you.
	Igor
P.S.  FYI, larger packages (e.g., tetex) easily run into tens of megabytes
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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

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

* Re: setup.exe:  Woe is me!
  2003-04-27  9:48 setup.exe: Woe is me! Phil Bewig
  2003-04-27 11:25 ` Greg McCrory
  2003-04-27 12:14 ` Igor Pechtchanski
@ 2003-04-27 13:10 ` Max Bowsher
  2003-04-27 15:30   ` Hannu E K Nevalainen (garbage mail)
  2003-04-28  1:09 ` Robert Collins
  3 siblings, 1 reply; 9+ messages in thread
From: Max Bowsher @ 2003-04-27 13:10 UTC (permalink / raw)
  To: pbewig, cygwin

Phil Bewig wrote:
> I just killed setup.exe after over an hour of inactivity.  A total
> of over 125MB of disk space has disappeared in the last few
> hours while I have been running setup.exe, reading and
> replying to email on the cygwin mailing list in this thread
> using MS Outlook, and searching the cygwin mailing list
> archives with MSIE.  When I killed setup.exe (using the
> "cancel" button on the progress screen), I received a popup
> message "Cannot open log file d:\/var/log/setup.log for
> writing."  Are there any additional clues here?  What is
> consuming disk?  And how do I get it back?

OK, I'm taking a wild guess here, but just in case setup doesn't like the
'\/' in the install path, try setting your cygwin root to "d:\cygwin".


Also, where is the discspace disappearing? C: or D:? If D:, then if all you
have on that drive is Cygwin stuff, it should be easy to track down where
the space is going to?



Max.


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

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

* RE: setup.exe:  Woe is me!
  2003-04-27 13:10 ` Max Bowsher
@ 2003-04-27 15:30   ` Hannu E K Nevalainen (garbage mail)
  0 siblings, 0 replies; 9+ messages in thread
From: Hannu E K Nevalainen (garbage mail) @ 2003-04-27 15:30 UTC (permalink / raw)
  To: cygwin


D:\> dir /s /o-s /a-d | more

 or maybe

D:\> dir /s /o-d /a-d | more

 might help a little...

/Hannu E K Nevalainen, Mariefred, Sweden 

--END OF MESSAGE-- 


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

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

* RE: setup.exe:  Woe is me!
  2003-04-27  9:48 setup.exe: Woe is me! Phil Bewig
                   ` (2 preceding siblings ...)
  2003-04-27 13:10 ` Max Bowsher
@ 2003-04-28  1:09 ` Robert Collins
  2003-04-28  8:04   ` Igor Pechtchanski
  3 siblings, 1 reply; 9+ messages in thread
From: Robert Collins @ 2003-04-28  1:09 UTC (permalink / raw)
  To: pbewig; +Cc: 'cygwin@cygwin.com'

[-- Attachment #1: Type: text/plain, Size: 1593 bytes --]

On Sun, 2003-04-27 at 11:13, Phil Bewig wrote:
> I just killed setup.exe after over an hour of inactivity.  A total
> of over 125MB of disk space has disappeared in the last few
> hours while I have been running setup.exe, reading and
> replying to email on the cygwin mailing list in this thread
> using MS Outlook, and searching the cygwin mailing list
> archives with MSIE.  When I killed setup.exe (using the
> "cancel" button on the progress screen), I received a popup
> message "Cannot open log file d:\/var/log/setup.log for
> writing."  Are there any additional clues here?  What is
> consuming disk?  And how do I get it back?

my WAG:
setup is looping: trying to create a file, failing, and trying again.

Here's what I'd like you to do:
Check your registry for cygwin mount points, both per user and per
machine. There may be a decompressed cygcheck you can download to do
this. If there isn't, then have a look on this list for other references
to the mount point data. (It's not supported to make registry changes
manually, which is why I'm *not* putting the keys in this email).

If, as I suspect, you have some broken mount points, just delete the
entire cygwin keys in both user and machine subtrees.

Now, run setup again, and when you are installing, be very very sure to
install to somewhere like "D:\cygwin", not to "D:\".

If that doesn't work, then I'll brew up a log-on-the-spot version of
setup.exe for you, which will let us see whats going on.

Cheers,
Rob
-- 
GPG key available at: <http://users.bigpond.net.au/robertc/keys.txt>.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* RE: setup.exe:  Woe is me!
  2003-04-28  1:09 ` Robert Collins
@ 2003-04-28  8:04   ` Igor Pechtchanski
  2003-04-28  8:59     ` Log-on-spot (was: setup.exe: Woe is me!) Max Bowsher
  2003-04-28 13:41     ` setup.exe: Woe is me! Robert Collins
  0 siblings, 2 replies; 9+ messages in thread
From: Igor Pechtchanski @ 2003-04-28  8:04 UTC (permalink / raw)
  To: Robert Collins; +Cc: pbewig, cygwin

On 28 Apr 2003, Robert Collins wrote:

> On Sun, 2003-04-27 at 11:13, Phil Bewig wrote:
> > I just killed setup.exe after over an hour of inactivity.  A total
> > of over 125MB of disk space has disappeared in the last few
> > hours while I have been running setup.exe, reading and
> > replying to email on the cygwin mailing list in this thread
> > using MS Outlook, and searching the cygwin mailing list
> > archives with MSIE.  When I killed setup.exe (using the
> > "cancel" button on the progress screen), I received a popup
> > message "Cannot open log file d:\/var/log/setup.log for
> > writing."  Are there any additional clues here?  What is
> > consuming disk?  And how do I get it back?
>
> my WAG:
> setup is looping: trying to create a file, failing, and trying again.
>
> Here's what I'd like you to do:
> Check your registry for cygwin mount points, both per user and per
> machine. There may be a decompressed cygcheck you can download to do
> this. If there isn't, then have a look on this list for other references
> to the mount point data. (It's not supported to make registry changes
> manually, which is why I'm *not* putting the keys in this email).
>
> If, as I suspect, you have some broken mount points, just delete the
> entire cygwin keys in both user and machine subtrees.
>
> Now, run setup again, and when you are installing, be very very sure to
> install to somewhere like "D:\cygwin", not to "D:\".
>
> If that doesn't work, then I'll brew up a log-on-the-spot version of
> setup.exe for you, which will let us see whats going on.
>
> Cheers,
> Rob

Rob,

I don't know how much extra effort it'll be, but wouldn't a
"log-on-the-spot" command-line option make sense anyway?  Or is that what
you meant?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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

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

* Log-on-spot (was: setup.exe:  Woe is me!)
  2003-04-28  8:04   ` Igor Pechtchanski
@ 2003-04-28  8:59     ` Max Bowsher
  2003-04-28 13:41     ` setup.exe: Woe is me! Robert Collins
  1 sibling, 0 replies; 9+ messages in thread
From: Max Bowsher @ 2003-04-28  8:59 UTC (permalink / raw)
  To: cygwin, cygwin-apps

[-- Attachment #1: Type: text/plain, Size: 466 bytes --]

[This subthread is going development-y, so moving it to
cygwin-apps@cygwin.com]

Igor Pechtchanski wrote:
> Rob,
>
> I don't know how much extra effort it'll be, but wouldn't a
> "log-on-the-spot" command-line option make sense anyway?  Or is that what
> you meant?
> Igor

Attatched is a patch implementing log-on-the-spot.

BEWARE: This patch is very old, and not resynced with HEAD.
Nevertheless, it might save someone 2 minutes or so reimplementing this.


Max.

[-- Attachment #2: Z-flush-log.patch --]
[-- Type: application/octet-stream, Size: 1584 bytes --]

Index: LogFile.cc
===================================================================
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/LogFile.cc,v
retrieving revision 2.6
diff -u -p -r2.6 LogFile.cc
--- LogFile.cc	25 Nov 2002 00:41:24 -0000	2.6
+++ LogFile.cc	9 Mar 2003 00:17:10 -0000
@@ -102,6 +102,25 @@ LogFile::setFile (int minlevel, String c
 }
 
 void
+LogFile::flush_log()
+{
+  for (FileSet::iterator i = files.begin();
+       i != files.end(); ++i)
+    {
+      log_save (i->level, i->key, i->append);
+    }
+  LogEnt *l = first_logent;
+  first_logent = 0;
+  next_logent = &first_logent;
+  while (l)
+    {
+		LogEnt *next = l->next;
+		delete l;
+		l = next;
+    }
+}
+
+void
 LogFile::exit (int const exit_code)
 {
   AntiVirus::AtExit();
@@ -208,6 +227,7 @@ LogFile::endEntry()
        //string(theStream->str()).substr(0,theStream->rdbuf()->pcount()).c_str());
   // theStream->freeze(0);
   delete theStream;
+  flush_log();
   /* reset for next use */
   theStream = new std::stringbuf;
   rdbuf (theStream);
Index: LogFile.h
===================================================================
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/LogFile.h,v
retrieving revision 2.3
diff -u -p -r2.3 LogFile.h
--- LogFile.h	10 Nov 2002 03:56:05 -0000	2.3
+++ LogFile.h	9 Mar 2003 00:11:47 -0000
@@ -39,4 +39,5 @@ protected:
   virtual void endEntry(); // the current in-progress entry is complete.
 private:
   void log_save (int babble, String const &filename, bool append);
+  void flush_log ();
 };


[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

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

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

* RE: setup.exe:  Woe is me!
  2003-04-28  8:04   ` Igor Pechtchanski
  2003-04-28  8:59     ` Log-on-spot (was: setup.exe: Woe is me!) Max Bowsher
@ 2003-04-28 13:41     ` Robert Collins
  1 sibling, 0 replies; 9+ messages in thread
From: Robert Collins @ 2003-04-28 13:41 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 529 bytes --]

On Mon, 2003-04-28 at 05:23, Igor Pechtchanski wrote:


> I don't know how much extra effort it'll be, but wouldn't a
> "log-on-the-spot" command-line option make sense anyway?  Or is that what
> you meant?

Actually, I just meant building setup with the extant patch to change
the logging behaviour.

A command line option we can include for releases would be neat. The
patch Max has just reposted would be a good basis for that..

Rob

-- 
GPG key available at: <http://users.bigpond.net.au/robertc/keys.txt>.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2003-04-28  1:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-27  9:48 setup.exe: Woe is me! Phil Bewig
2003-04-27 11:25 ` Greg McCrory
2003-04-27 12:14 ` Igor Pechtchanski
2003-04-27 13:10 ` Max Bowsher
2003-04-27 15:30   ` Hannu E K Nevalainen (garbage mail)
2003-04-28  1:09 ` Robert Collins
2003-04-28  8:04   ` Igor Pechtchanski
2003-04-28  8:59     ` Log-on-spot (was: setup.exe: Woe is me!) Max Bowsher
2003-04-28 13:41     ` setup.exe: Woe is me! Robert Collins

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