[JIRA] (JENKINS-15061) Wrong LIBPATH when running ssh slave on AIX
Title: Message Title Ivan Fernandez Calvo updated JENKINS-15061 Jenkins / JENKINS-15061 Wrong LIBPATH when running ssh slave on AIX Change By: Ivan Fernandez Calvo Status: Fixed but Unreleased Closed Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.145781.1346937144000.10389.1580577361448%40Atlassian.JIRA.
[JIRA] (JENKINS-15061) Wrong LIBPATH when running ssh slave on AIX
thetaphi commented on JENKINS-15061 Wrong LIBPATH when running ssh slave on AIX I think this is caused by the way how the plugin starts slaves. I have a similar issue on Mac OS X slaves, which have a wrong path, but everything is correctly defined in /etc/profile or the Jenkins users profile. The problem is that the plugin does not start a "login" shell on the remote node, it only does a remote exec through SSH, invoking "bash -c command", instead it should do "bash --login -c command". I have no idea where to configure the shell settings per node, but in general the shell should be a login one, so it executes all profile's settings. On MacOSX it also misses correct locale settings because of this. A workaround on mac to get at least the PATH looking correct is to enter the following into "Prefix Start Slave Command": 'eval `/usr/libexec/path_helper -s` ' (including the trailing space). This makes the process on the slave look like: 'bash -c eval `/usr/libexec/path_helper -s` cd '/Users/jenkins/jenkins-slave' java -jar slave.jar' /usr/libexec/path_helper -s is a utility command (normally used from /etc/profile on mac os x) that builds a "export PATH=" command. It should also be possible to include ". /etc/profile " into the prefix field. But I would fix Jenkins SSH slave plugins to create a login shell and make the shell itsself configureable. 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
[JIRA] (JENKINS-15061) Wrong LIBPATH when running ssh slave on AIX
Yury Pukhalsky created JENKINS-15061 Wrong LIBPATH when running ssh slave on AIX Issue Type: Bug Affects Versions: current Assignee: Kohsuke Kawaguchi Components: ssh-slaves Created: 06/Sep/12 1:12 PM Description: When i make a task that is to be run on AIX 5.3 (or 6.1) by means on ssh slave, it gets /usr/lib added to the LIBPATH envvar. This hinders the normal site's configuration as different versions of libs are installed in different places. Eg. ldd output for ordinary login: /usr/bin/wget needs: /usr/lib/threads/libc.a(shr.o) /usr/lib/libpthreads.a(shr_comm.o) /usr/lib/libpthreads.a(shr_xpg5.o) /opt/freeware/lib/libintl.a(libintl.so.1) /opt/freeware/lib/libiconv.a(libiconv.so.2) /opt/freeware/lib/libidn.a(libidn.so.11) /opt/freeware/lib/libssl.so /opt/freeware/lib/libcrypto.so /unix /usr/lib/libcrypt.a(shr.o) /opt/freeware/lib/libiconv.a(shr4.o) /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.1) /usr/lib/threads/libc.a(shr_64.o) /usr/lib/libpthreads.a(shr_xpg5_64.o) /usr/lib/libcrypt.a(shr_64.o) And the output of the task: + env + grep LIBPATH LIBPATH=/usr/java6_64/jre/lib/ppc64/j9vm:/usr/java6_64/jre/lib/ppc64:/usr/java6_64/jre/../lib/ppc64:/usr/lib + ldd /usr/bin/wget /usr/bin/wget needs: /usr/lib/libc.a(shr.o) /usr/lib/libpthreads.a(shr_comm.o) /usr/lib/libpthreads.a(shr_xpg5.o) /opt/freeware/lib/libintl.a(libintl.so.1) /usr/lib/libiconv.a(libiconv.so.2) /usr/lib/libidn.a(libidn.so.11) /opt/freeware/lib/libssl.so /opt/freeware/lib/libcrypto.so /unix /usr/lib/libcrypt.a(shr.o) /usr/lib/libiconv.a(shr4.o) /usr/lib/libintl.a(libintl.so.1) /usr/lib/libcrypto.a(libcrypto.so.1.0.1) ar: 0707-109 Member name libcrypto.so.1.0.1 does not exist. dump: /tmp/tmpdir852142/extract/libcrypto.so.1.0.1: 0654-106 Cannot open the specified file. + wget http://www.ya.ru exec(): 0509-036 Cannot load program wget because of the following errors: 0509-022 Cannot load module /opt/freeware/lib/libssl.so. 0509-150 Dependent module /usr/lib/libcrypto.a(libcrypto.so.1.0.1) could not be loaded. 0509-152 Member libcrypto.so.1.0.1 is not found in archive 0509-022 Cannot load module wget. 0509-150 Dependent module /opt/freeware/lib/libssl.so could not be loaded. 0509-022 Cannot load module . Environment: Jenkins 1.477 Project: Jenkins Priority: Major Reporter: Yury Pukhalsky 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