Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5070

lastSuccesful and lastStable symbolic links not being created

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Postponed
    • core
    • None
    • Linux, IBM PPC using IBM JDK

    Description

      In Hudson 1.337, we are still experiencing an issue with creating the lastSuccesfulBuild and lastStableBuild symbolic links. We get the following output in the job:

      ln failed: -1
      Building on master

      This also shows up in the last two line entries. Other symbolics look like they are getting created correctly in the build directory (particullary the build numbers linking to a particular date build directory).

      I'm not seeing anything in the systemlog and no exceptions. This worked with 1.320 and we upgraded to 1.337 due to some other issues, and the need for better master/slave configuration. This is running a master instance and not a slave.

      Attachments

        Activity

          Valgoerad Valgoerad added a comment -

          Thanks for taking interest in this, mindless.

          Anything besides exact java and hudson version? Could you be more specific? I'm asking b/c I actually have to forward your questions to my admin. It's an enterprise environment and I don't have direct access to this system.

          And unfortunately I have finished my work day and I'm at home. I'll answer in 15h.

          Valgoerad Valgoerad added a comment - Thanks for taking interest in this, mindless. Anything besides exact java and hudson version? Could you be more specific? I'm asking b/c I actually have to forward your questions to my admin. It's an enterprise environment and I don't have direct access to this system. And unfortunately I have finished my work day and I'm at home. I'll answer in 15h.
          mindless Alan Harder added a comment -

          Also OS type, running "java -jar hudson.war" or in a container? (what type/version)

          mindless Alan Harder added a comment - Also OS type, running "java -jar hudson.war" or in a container? (what type/version)
          Valgoerad Valgoerad added a comment -

          I'm pretty busy today so just to get things going.

          It's a standalone hudson war (1.352) running on FreeBSD.

          This is from Hudson System Info:

          java.runtime.name	Java(TM) 2 Runtime Environment, Standard Edition
          java.runtime.version	1.5.0_16-p9-root_15_jun_2009_09_23
          java.specification.name	Java Platform API Specification
          java.specification.vendor	Sun Microsystems Inc.
          java.specification.version	1.5
          java.vendor	Sun Microsystems Inc.
          java.vendor.url	http://java.sun.com/
          java.vendor.url.bug	http://java.sun.com/cgi-bin/bugreport.cgi
          java.version	1.5.0_16-p9
          java.vm.info	mixed mode
          java.vm.name	Java HotSpot(TM) Server VM
          java.vm.specification.name	Java Virtual Machine Specification
          java.vm.specification.vendor	Sun Microsystems Inc.
          java.vm.specification.version	1.0
          java.vm.vendor	Sun Microsystems Inc.
          java.vm.version	1.5.0_16-p9-root_15_jun_2009_09_23
          

          Path is set to:
          /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache-maven-2.2.1/bin:/usr/local/jdk1.5.0/bin

          Let me know if you need anything else.

          Valgoerad Valgoerad added a comment - I'm pretty busy today so just to get things going. It's a standalone hudson war (1.352) running on FreeBSD. This is from Hudson System Info: java.runtime.name Java(TM) 2 Runtime Environment, Standard Edition java.runtime.version 1.5.0_16-p9-root_15_jun_2009_09_23 java.specification.name Java Platform API Specification java.specification.vendor Sun Microsystems Inc. java.specification.version 1.5 java.vendor Sun Microsystems Inc. java.vendor.url http: //java.sun.com/ java.vendor.url.bug http: //java.sun.com/cgi-bin/bugreport.cgi java.version 1.5.0_16-p9 java.vm.info mixed mode java.vm.name Java HotSpot(TM) Server VM java.vm.specification.name Java Virtual Machine Specification java.vm.specification.vendor Sun Microsystems Inc. java.vm.specification.version 1.0 java.vm.vendor Sun Microsystems Inc. java.vm.version 1.5.0_16-p9-root_15_jun_2009_09_23 Path is set to: /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache-maven-2.2.1/bin:/usr/local/jdk1.5.0/bin Let me know if you need anything else.
          mindless Alan Harder added a comment -

          sorry, not sure what to suggest.. Hudson tries both libc or posix by default, or uses exec of "ln" with the escape hatch setting.. seems all 3 fail in your env. Perhaps experiment with env vars for finding libraries to help it find libc. Also make sure "ln" is in your path when using symlinkEscapeHatch. If none of these work you can always use -Dhudson.Util.noSymlink=true

          mindless Alan Harder added a comment - sorry, not sure what to suggest.. Hudson tries both libc or posix by default, or uses exec of "ln" with the escape hatch setting.. seems all 3 fail in your env. Perhaps experiment with env vars for finding libraries to help it find libc. Also make sure "ln" is in your path when using symlinkEscapeHatch. If none of these work you can always use -Dhudson.Util.noSymlink=true
          mindless Alan Harder added a comment -

          Closing old issue.. seems pretty specific to this environment.

          mindless Alan Harder added a comment - Closing old issue.. seems pretty specific to this environment.

          People

            Unassigned Unassigned
            kingargyle kingargyle
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: