[Issue 3272] New - --logfile option no longer usable since 1.277

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 3272] New - --logfile option no longer usable since 1.277

sorokh
https://hudson.dev.java.net/issues/show_bug.cgi?id=3272
                 Issue #|3272
                 Summary|--logfile option no longer usable since 1.277
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|Windows XP
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P1
            Subcomponent|core
             Assigned to|issues@hudson
             Reported by|sorokh






------- Additional comments from [hidden email] Wed Mar 11 15:23:13 +0000 2009 -------
When specifying the --logfile option, you now get the following exception:

Exception in thread "main" java.lang.IllegalArgumentException: Unknown signal: ALRM
        at sun.misc.Signal.<init>(Unknown Source)
        at LogFileOutputStream.<init>(LogFileOutputStream.java:36)
        at Main.main(Main.java:67)

commandline: java -jar hudson-1.291.war --logfile=c:\hudson\run.log

jdk: java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)

Remark that this issue also happens on win2K and I guess on all windows platforms!

Hudson version 1.275 has been verified to work any recent build doesn't work.
Judging by the changelog I guess this is linked to a patch in 1.277:
With the --logfile==/path/to/logfile option, Hudson now reacts SIGALRM and
reopen the log file. This makes Hudson behave nicely wrt log rotation.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3272] --logfile option no longer usable since 1.277

scm_issue_link
https://hudson.dev.java.net/issues/show_bug.cgi?id=3272






------- Additional comments from [hidden email] Thu Jul  9 18:40:01 +0000 2009 -------
Code changed in hudson
User: : kohsuke
Path:
 trunk/hudson/extras/executable-war/src/main/java/LogFileOutputStream.java
http://fisheye4.cenqua.com/changelog/hudson/?cs=19562
Log:
[HUDSON-3272] SIGALRM handling should be only on Unix.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3272] --logfile option no longer usable since 1.277

scm_issue_link
In reply to this post by sorokh
https://hudson.dev.java.net/issues/show_bug.cgi?id=3272



User scm_issue_link changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |FIXED
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Thu Jul  9 18:43:51 +0000 2009 -------
Code changed in hudson
User: : kohsuke
Path:
 trunk/hudson/main/war/pom.xml
 trunk/www/changelog.html
http://fisheye4.cenqua.com/changelog/hudson/?cs=19566
Log:
[FIXED HUDSON-3272] integrated in 1.316.
    The <tt>--logfile</tt> option stopped working on Windows.
    (<a href="https://hudson.dev.java.net/issues/show_bug.cgi?id=3272">issue 3272</a>)


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]