public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Something breaks unattended setup: think it's just version no / filename of latest gt5 release
@ 2012-10-28 11:50 Fergus
  2012-10-28 14:54 ` Christopher Faylor
  0 siblings, 1 reply; 6+ messages in thread
From: Fergus @ 2012-10-28 11:50 UTC (permalink / raw)
  To: Cygwin ML; +Cc: Fergus

Larry Hall (Cygwin) - Re: Cygwin 1.7.17 breaks unattended setup >> .. 
one could then narrow in on the package that's causing
 >> unattended mode to fail.

 >  Assuming that's true, why is there still a "Cygwin 1.7.17"
 >  in the subject?

Sorry, just inherited that subject line. Now changed. Quick repeat:
It's the @gt5 paragraph in setup.ini (I think).
It certainly breaks the build process for me.
Suspect it's the ~ in the filename.
It is indeed the only occurrence of that punctuation under release/:
version: 1.5.0~20111220+bzr29-1
install: release/gt5/gt5-1.5.0~20111220+bzr29-1.tar.bz2 17876 
5665c1607f2b958b7edfa271b4d20aae
source: release/gt5/gt5-1.5.0~20111220+bzr29-1-src.tar.bz2 105709 
1f1ae1e59bf68448216800a4e2938ca0

Fergus

--
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] 6+ messages in thread

* Re: Something breaks unattended setup: think it's just version no / filename of latest gt5 release
  2012-10-28 11:50 Something breaks unattended setup: think it's just version no / filename of latest gt5 release Fergus
@ 2012-10-28 14:54 ` Christopher Faylor
  2012-10-30  0:20   ` Sam Nelson
  0 siblings, 1 reply; 6+ messages in thread
From: Christopher Faylor @ 2012-10-28 14:54 UTC (permalink / raw)
  To: cygwin

On Sun, Oct 28, 2012 at 11:50:33AM +0000, Fergus wrote:
>Larry Hall (Cygwin) - Re: Cygwin 1.7.17 breaks unattended setup >> .. 
>one could then narrow in on the package that's causing
> >> unattended mode to fail.
>
> >  Assuming that's true, why is there still a "Cygwin 1.7.17"
> >  in the subject?
>
>Sorry, just inherited that subject line. Now changed. Quick repeat:
>It's the @gt5 paragraph in setup.ini (I think).
>It certainly breaks the build process for me.
>Suspect it's the ~ in the filename.
>It is indeed the only occurrence of that punctuation under release/:
>version: 1.5.0~20111220+bzr29-1
>install: release/gt5/gt5-1.5.0~20111220+bzr29-1.tar.bz2 17876 
>5665c1607f2b958b7edfa271b4d20aae
>source: release/gt5/gt5-1.5.0~20111220+bzr29-1-src.tar.bz2 105709 
>1f1ae1e59bf68448216800a4e2938ca0

I don't see anything in the setup.exe source code which would break
because there was a '~' in the filename.  It just assigns the version
as the string between the first dash and the last without caring
about what's in between.

cgf

--
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] 6+ messages in thread

* Re: Something breaks unattended setup: think it's just version no / filename of latest gt5 release
  2012-10-28 14:54 ` Christopher Faylor
@ 2012-10-30  0:20   ` Sam Nelson
  2012-10-30  5:46     ` Sam Nelson
  0 siblings, 1 reply; 6+ messages in thread
From: Sam Nelson @ 2012-10-30  0:20 UTC (permalink / raw)
  To: cygwin

Christopher Faylor <cgf-use-the-mailinglist-please <at> cygwin.com> writes:

> 
> On Sun, Oct 28, 2012 at 11:50:33AM +0000, Fergus wrote:
> >Larry Hall (Cygwin) - Re: Cygwin 1.7.17 breaks unattended setup >> .. 
> >one could then narrow in on the package that's causing
> > >> unattended mode to fail.
> >
> > >  Assuming that's true, why is there still a "Cygwin 1.7.17"
> > >  in the subject?
> >
> >Sorry, just inherited that subject line. Now changed. Quick repeat:
> >It's the @gt5 paragraph in setup.ini (I think).
> >It certainly breaks the build process for me.
> >Suspect it's the ~ in the filename.
> >It is indeed the only occurrence of that punctuation under release/:
> >version: 1.5.0~20111220+bzr29-1
> >install: release/gt5/gt5-1.5.0~20111220+bzr29-1.tar.bz2 17876 
> >5665c1607f2b958b7edfa271b4d20aae
> >source: release/gt5/gt5-1.5.0~20111220+bzr29-1-src.tar.bz2 105709 
> >1f1ae1e59bf68448216800a4e2938ca0
> 
> I don't see anything in the setup.exe source code which would break
> because there was a '~' in the filename.  It just assigns the version
> as the string between the first dash and the last without caring
> about what's in between.
> 
> cgf
> 
> 

Hello,

I was running into a identical issue today with the unattended install.  I tried
looking in the log files but they did not indicate specifically what was causing
the failure.

I was able to successfully complete an install if I removed the (-g) unattended
install option and selected the default choices through the setup.exe GUI.  On a
hunch, I turned on the (-M) "Semi-attended chooser-only mode" option to see if
there was some sort of unreported package conflict causing the issue.  I was
specifying the following packages for install on the command line (-P):

  openssh,vim,wget,curl,netcat,rsync,bc,colordiff,file,patch,binutils

I found on the package selection screen that "netcat" was obsolete.  After
changing to the new package name "nc", the unattended install completed
successfully.

Here's an untested patch which should log this condition and would help
troubleshoot this issue in the future.  There is probably a better way to do
this but you get the point :).

diff --git old/choose.cc new/choose.cc
index cf917cd..7e00121 100644
--- old/choose.cc
+++ new/choose.cc
@@ -256,7 +256,11 @@ ChooserPage::OnInit ()
            i != db.packages.end (); ++i)
         {
           packagemeta & pkg = *(i->second);
-          if (pkg.installed)
+          if (isObsolete(pkg.categories))
+            {
+              log (LOG_BABBLE) << "ERROR, Obsolete package: " << pkg.name <<
endLog;
+            }
+          else if (pkg.installed)
             {
               pkg.desired = pkg.installed;
             }

Best regards,

Sam



--
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] 6+ messages in thread

* Re: Something breaks unattended setup: think it's just version no / filename of latest gt5 release
  2012-10-30  0:20   ` Sam Nelson
@ 2012-10-30  5:46     ` Sam Nelson
  2013-09-07  0:35       ` Something breaks unattended setup jacomoman
  0 siblings, 1 reply; 6+ messages in thread
From: Sam Nelson @ 2012-10-30  5:46 UTC (permalink / raw)
  To: cygwin

Sam Nelson <sanelson <at> siliconfuture.net> writes:

The same issue unfortunately returned later.  I'm guessing that the "netcat"
package being obsolete may have not caused any issues and I was just jumping to
conclusions.

I tried using a new cygwin mirror (xmission) and now the install is working
cleanly again.  Only thing I can think at this point is that the previous mirror
I was using had some corrupted files from the latest rsync (it had worked fine
previously).  I wish there was some way to tell from the log output which files
had issues.

Here are some excerpts from the log file, maybe this will help narrow down the
root cause:

Many get_url_to_file calls and "Downloaded" messages.  No errors that I can see
in this section
get_url_to_file
http://mirror.com/mirrors/Cygwin//release/xz/xz-5.0.2_20110517-1.tar.bz2
E:\cygwin\packages/http%3a%2f%2fmirror.com%2fmirrors%2fCygwin%2f/
release/xz/xz-5.0.2_20110517-1.tar.bz2.tmp
2012/10/30 05:33:01 Downloaded 
E:\cygwin\packages/http%3a%2f%2fmirror.com%2fmirrors%2fCygwin%2f/
release/xz/xz-5.0.2_20110517-1.tar.bz2
get_url_to_file
http://mirror.com/mirrors/Cygwin//release/zlib/zlib0/zlib0-1.2.7-1.tar.bz2
E:\cygwin\packages/http%3a%2f%2fmirror.com%2fmirrors%2fCygwin%2f/release
/zlib/zlib0/zlib0-1.2.7-1.tar.bz2.tmp
2012/10/30 05:33:02 Downloaded
E:\sat_cygwin\packages/http%3a%2f%2fmirror.com%2fmirrors%2fCygwin%2f/release
/zlib/zlib0/zlib0-1.2.7-1.tar.bz2

Then I see a general download error, no filename mentioned
2012/10/30 05:33:02 download error in unattended_mode: 3 retries remaining.
2012/10/30 05:33:02 site: http://mirror.com/mirrors/Cygwin/

Downloading the compressed setup.ini
get_url_to_membuf http://mirror.com/mirrors/Cygwin//setup.bz2
getUrlToStream http://mirror.com/mirrors/Cygwin//setup.bz2
get_url_to_membuf http://mirror.com/mirrors/Cygwin//setup.bz2.sig
getUrlToStream http://mirror.com/mirrors/Cygwin//setup.bz2.sig

Comparing package signatures?
package a2ps comparing versions 4.14-1 and 4.14-1, result was 0
package a2ps comparing versions 4.13-1 and 4.13-1, result was 0
package aalib comparing versions 1.4rc5-10 and 1.4rc5-10, result was 0
package aalib comparing versions 1.4rc5-3 and 1.4rc5-3, result was 0
package aalib-devel comparing versions 1.4rc5-10 and 1.4rc5-10, result was 0


These last three sections are repeated until the retries are exhausted (4
total).  For the life of me, I can't see any error indicating exactly what
failed.  Is there any way to turn on extra verbosity when running setup.exe?

Best regards,

Sam



--
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] 6+ messages in thread

* Re: Something breaks unattended setup
  2012-10-30  5:46     ` Sam Nelson
@ 2013-09-07  0:35       ` jacomoman
  2013-09-08  4:51         ` Václav Zeman
  0 siblings, 1 reply; 6+ messages in thread
From: jacomoman @ 2013-09-07  0:35 UTC (permalink / raw)
  To: cygwin

Sam Nelson wrote
> Sam Nelson 
> <sanelson <at>
>  siliconfuture.net> writes:
> 
> These last three sections are repeated until the retries are exhausted (4
> total).  For the life of me, I can't see any error indicating exactly what
> failed.  Is there any way to turn on extra verbosity when running
> setup.exe?

Did this issue ever get resolved?  I'm trying to do automated unattended
install of cygwin and I'm pretty sure I'm running into this exact same
scenario.

Here's my automated install .bat file:



The installer starts and appears to be working fine at first, downloading
all sorts of packages, but then it quits with an error after a while.

Here's the last few lines of /var/log/setup.log:



I'm baffled as to why it's unable to reach mirros.kernel.org site because it
reaches it just fine for all the files before the one it's trying to
download last.

Any ideas as to what might be going on or how to fix this would be greatly
appreciated.

Thanks.
-Jac





--
View this message in context: http://cygwin.1069669.n5.nabble.com/Something-breaks-unattended-setup-think-it-s-just-version-no-filename-of-latest-gt5-release-tp94058p102551.html
Sent from the Cygwin list mailing list archive at Nabble.com.

--
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] 6+ messages in thread

* Re: Something breaks unattended setup
  2013-09-07  0:35       ` Something breaks unattended setup jacomoman
@ 2013-09-08  4:51         ` Václav Zeman
  0 siblings, 0 replies; 6+ messages in thread
From: Václav Zeman @ 2013-09-08  4:51 UTC (permalink / raw)
  To: cygwin

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

On 09/07/2013 02:35 AM, jacomoman wrote:
> Sam Nelson wrote
>> Sam Nelson 
>> <sanelson <at>
>>  siliconfuture.net> writes:
>>
>> These last three sections are repeated until the retries are exhausted (4
>> total).  For the life of me, I can't see any error indicating exactly what
>> failed.  Is there any way to turn on extra verbosity when running
>> setup.exe?
> 
> Did this issue ever get resolved?  I'm trying to do automated unattended
> install of cygwin and I'm pretty sure I'm running into this exact same
> scenario.
> 
> Here's my automated install .bat file:
> 
> 
> 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I only see empty lines there.

> The installer starts and appears to be working fine at first, downloading
> all sorts of packages, but then it quits with an error after a while.
> 
> Here's the last few lines of /var/log/setup.log:
> 
> 
> 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Likewise.

> I'm baffled as to why it's unable to reach mirros.kernel.org site because it
> reaches it just fine for all the files before the one it's trying to
> download last.
> 
> Any ideas as to what might be going on or how to fix this would be greatly
> appreciated.

-- 
VZ




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]

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

end of thread, other threads:[~2013-09-08  4:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-28 11:50 Something breaks unattended setup: think it's just version no / filename of latest gt5 release Fergus
2012-10-28 14:54 ` Christopher Faylor
2012-10-30  0:20   ` Sam Nelson
2012-10-30  5:46     ` Sam Nelson
2013-09-07  0:35       ` Something breaks unattended setup jacomoman
2013-09-08  4:51         ` Václav Zeman

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