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

Windows XP master + IE7 connecting to Unix slaves don't show NL in log files?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • ssh-slaves-plugin
    • None

      An IRC chat session suggests that the slave connection log from an ssh slaves don't show proper line breaks on IE. The user confirmed that "other browsers" (not sure which one) render things correctly.

      If this is indeed correct, Hudson should be modified to send the right NL sequence (CR+LF?) that gets correctly recognized by all the browsers.

      (09:02:49 PM) alpha: Hello everyone!
      (09:03:27 PM) alpha: I am facing some problem.
      (09:03:42 PM) alpha: I am unable to launch slave agent on RHEL.
      (09:03:52 PM) alpha: Its working well with CentOS.
      (09:04:05 PM) kohsuke: do you get any errors?
      (09:04:07 PM) alpha: I am trying to connect as some user other than root.
      (09:04:46 PM) alpha: ya.
      (09:05:23 PM) alpha: I am getting error as: SFTPException: Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.)
      (09:05:47 PM) kohsuke: is that all you get? Any stack trace?
      (09:07:21 PM) alpha: [SSH] Copying latest slave.jar... hudson.util.IOException2: Could not copy slave.jar to slave at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:376) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:191) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:180) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.con
      (09:07:36 PM) kohsuke: http://hudson.pastebin.com
      (09:09:00 PM) alpha: concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: hudson.util.IOException2: Could not copy slave.jar to slave at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:373) ... 7 more Caused by: com.trilead.ssh2.SFTPException: Permission denied (SSH_FX_PERMISSION_DENIED: The user does not ha
      (09:09:13 PM) alpha: And after wards the connection is closed.
      (09:09:24 PM) alpha: So you know what could be the solution for this.
      (09:09:45 PM) kohsuke: Can you put the whole stack trace in the pastebin and post the URL to that paste?
      (09:09:51 PM) alpha: I mean its working fine with CentOS. Its able to connect with user other than root.
      (09:10:04 PM) alpha: But its failing on RHEL.
      (09:10:08 PM) alpha: Ok.
      (09:14:28 PM) alpha: Hi, this is the URL to that paste: http://hudson.pastebin.com/g4fbLDSe
      (09:14:46 PM) mode (+o kohsuke) by ChanServ
      (09:15:06 PM) kohsuke: Is this how it's displayed? Without any line breaks?
      (09:15:28 PM) Wei Hsu [~whsu@vpn8.sjc.collab.net] entered the room.
      (09:15:42 PM) alpha: ya. Its just displayed like this only.
      (09:17:10 PM) kohsuke: which browser do you use, and which URL gave you this?
      (09:18:46 PM) alpha: ok.Here is the new link. http://hudson.pastebin.com/iExMh3r9
      (09:19:01 PM) alpha: IE7.
      (09:19:40 PM) kohsuke: It looks as if you've manually inserted linebreaks
      (09:19:46 PM) alpha: ya.
      (09:20:15 PM) kohsuke: I guess what I was trying to make sure is that if we are failing to render newlines correctly on some platforms I wanted to know, so that I can fix them.
      (09:20:43 PM) alpha: oh.
      (09:20:45 PM) kohsuke: and which platform do you run your master?
      (09:21:09 PM) kohsuke: (And if you have other browsers can you quickly check if those browsers would render everything without newlines?)
      (09:21:16 PM) alpha: Windows XP Professional SP3.
      (09:21:28 PM) alpha: ok.
      (09:22:41 PM) alpha: Yeah. Its showing with line breaks in other browsers.
      (09:22:50 PM) kohsuke: OK, that's good to know
      (09:23:06 PM) kohsuke: It should be an easy fix
      (09:23:14 PM) alpha: ok.
      (09:23:33 PM) alpha: So can you help me with my problem.
      (09:23:43 PM) kohsuke: As for the original problem,
      (09:23:49 PM) kohsuke: I think it's a permission problem in the file system
      (09:24:03 PM) kohsuke: I'd encourage you to check the "remote FS root" of the slave in question
      (09:24:12 PM) kohsuke: and see if the user that you are using can write to that directory.
      (09:26:11 PM) alpha: ya. It can write.
      (09:27:00 PM) kohsuke: I really think that's the only possible cause of the error
      (09:27:10 PM) kohsuke: the error message is quite clear, IMHO.
      (09:27:27 PM) kohsuke: (I'm modifying the code so that it prints out the path it's trying to write)
      

            kohsuke Kohsuke Kawaguchi
            kohsuke Kohsuke Kawaguchi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: