Quantcast

[JIRA] (JENKINS-14021) readlink not working on HP Itanium

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14021) readlink not working on HP Itanium

JIRA noreply@jenkins-ci.org
Fulvio Cavarretta created JENKINS-14021:
-------------------------------------------

             Summary: readlink not working on HP Itanium
                 Key: JENKINS-14021
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-14021
             Project: Jenkins
          Issue Type: Bug
          Components: build-publisher
    Affects Versions: current
         Environment: slave running on HP Itaniunm B.11.23 U ia64  with java 1.6
            Reporter: Fulvio Cavarretta
            Assignee: vjuranek


We have a slave running on an HP Itanium host (ver. HP-UX unknown B.11.23 U ia64) where the readlink command does not exists. So when trying to resolve symlinks, slave agent fails with the following error:



hudson.util.IOException2: java.io.IOException: Cannot run program "readlink" (in directory "/misc/home_tmp_dstk110/."): readlink: not found
        at hudson.FilePath.copyRecursiveTo(FilePath.java:1771)
        at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:116)
        at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
        at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:711)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:686)
        at hudson.model.Build$RunnerImpl.post2(Build.java:162)
        at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:633)
        at hudson.model.Run.run(Run.java:1463)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:239)
Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Cannot run program "readlink" (in directory "/misc/home_tmp_dstk110/."): readlink: not found
        at hudson.remoting.Channel$3.adapt(Channel.java:679)
        at hudson.remoting.Channel$3.adapt(Channel.java:674)
        at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
        at hudson.FilePath.copyRecursiveTo(FilePath.java:1769)
        ... 10 more
Caused by: java.io.IOException: Cannot run program "readlink" (in directory "/misc/home_tmp_dstk110/."): readlink: not found
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
        at java.lang.Runtime.exec(Runtime.java:593)
        at org.jruby.ext.posix.util.ExecIt.run(ExecIt.java:61)
        at org.jruby.ext.posix.util.ExecIt.runAndWait(ExecIt.java:51)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14021) readlink not working on HP Itanium

JIRA noreply@jenkins-ci.org

     [ https://issues.jenkins-ci.org/browse/JENKINS-14021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fulvio Cavarretta updated JENKINS-14021:
----------------------------------------

    Environment:
Jenkins ver. 1.467.
slave running on HP Itaniunm B.11.23 U ia64  with java 1.6

  was:slave running on HP Itaniunm B.11.23 U ia64  with java 1.6

   

> readlink not working on HP Itanium
> ----------------------------------
>
>                 Key: JENKINS-14021
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-14021
>             Project: Jenkins
>          Issue Type: Bug
>          Components: build-publisher
>    Affects Versions: current
>         Environment: Jenkins ver. 1.467.
> slave running on HP Itaniunm B.11.23 U ia64  with java 1.6
>            Reporter: Fulvio Cavarretta
>            Assignee: vjuranek
>              Labels: hpitanium, slave, symlink
>
> We have a slave running on an HP Itanium host (ver. HP-UX unknown B.11.23 U ia64) where the readlink command does not exists. So when trying to resolve symlinks, slave agent fails with the following error:
> hudson.util.IOException2: java.io.IOException: Cannot run program "readlink" (in directory "/misc/home_tmp_dstk110/."): readlink: not found
> at hudson.FilePath.copyRecursiveTo(FilePath.java:1771)
> at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:116)
> at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
> at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:711)
> at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:686)
> at hudson.model.Build$RunnerImpl.post2(Build.java:162)
> at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:633)
> at hudson.model.Run.run(Run.java:1463)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
> at hudson.model.ResourceController.execute(ResourceController.java:88)
> at hudson.model.Executor.run(Executor.java:239)
> Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Cannot run program "readlink" (in directory "/misc/home_tmp_dstk110/."): readlink: not found
> at hudson.remoting.Channel$3.adapt(Channel.java:679)
> at hudson.remoting.Channel$3.adapt(Channel.java:674)
> at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
> at hudson.FilePath.copyRecursiveTo(FilePath.java:1769)
> ... 10 more
> Caused by: java.io.IOException: Cannot run program "readlink" (in directory "/misc/home_tmp_dstk110/."): readlink: not found
> at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
> at java.lang.Runtime.exec(Runtime.java:593)
> at org.jruby.ext.posix.util.ExecIt.run(ExecIt.java:61)
> at org.jruby.ext.posix.util.ExecIt.runAndWait(ExecIt.java:51)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14021) readlink not working on HP Itanium

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Do you know any equiavlent command in HP-UX that works instead of readlink?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14021) HP-UX doesn't have readlink

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: Kohsuke Kawaguchi (13/Jun/12 6:51 PM)
Summary: readlink not working on  HP  Itanium -UX doesn't have readlink
Assignee: vjuranek
Component/s: core
Component/s: build-publisher
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14021) HP-UX doesn't have readlink

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Well, no ... But why do you need to use it to retrieve artifacts ?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14021) HP-UX doesn't have readlink

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Hi Kohsuke, i am a colleague of Fulvio.
jna and jna-posix libraries does not support HP Platform.
In jna-posix there is a Posix Factory with following method:

public static POSIX getPOSIX(POSIXHandler handler, boolean useNativePOSIX)
{
POSIX posix = null;

if (useNativePOSIX) {
try {
if (Platform.IS_MAC)
posix = loadMacOSPOSIX(handler);
else if (Platform.IS_LINUX)
posix = loadLinuxPOSIX(handler);
else if (Platform.IS_FREEBSD)
posix = loadFreeBSDPOSIX(handler);
else if (Platform.IS_OPENBSD)
posix = loadOpenBSDPOSIX(handler);
else if (Platform.IS_32_BIT) {
if (Platform.IS_WINDOWS)
posix = loadWindowsPOSIX(handler);
else if (Platform.IS_SOLARIS) { posix = loadSolarisPOSIX(handler); }

}

if (handler.isVerbose())
if (posix != null)
System.err.println("Successfully loaded native POSIX impl.");
else
System.err.println("Failed to load native POSIX impl; falling back on Java impl. Unsupported OS.");
}
catch (Throwable t)
{
if (handler.isVerbose()) { System.err.println("Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows."); t.printStackTrace(); }
}
}

Any executable can not be run on this platform using the posix library.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14021) HP-UX doesn't have readlink

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

the closest I come is:

$ touch aFile
$ ln -s aFile aLink
$ file -h aLink 
aLink:          symbolic link to aFile
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14021) HP-UX doesn't have readlink

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
jglick resolved Bug JENKINS-14021 as Duplicate

JENKINS-13202 already mentioned the readlink issue.

Change By: jglick (06/Sep/12 3:18 PM)
Status: Open Resolved
Resolution: Duplicate
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Loading...