You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Kevin Sumner <ke...@sumner.io> on 2014/10/09 09:25:38 UTC
Jenkins Mesos Plugin: "Unrecognized option: -jnlpCredentials"
Hello,
I'm attempting to run Jenkins 1.583 + Mesos plugin 0.5.0 + Mesos 0.20.1 with project-based matrix authorization and LDAP authentication, but I'm having trouble getting the slaves to launch with -jnlpCredentials option as directed in the README.md and the help tip for "Additional Jenkins Slave Agent JVM arguments “ in the Jenkins system configuration page. Jenkins registers its framework fine and accepts an offer to start the slave. Mesos spins up the executor and it starts launching the slave process, then Java throws an unrecognized option error for -jnlpCredentials. I’m trying to determine if this is misconfiguration or a bug (or something else).
The entirety of the stdout and stderr logs from the task sandbox follow (hostnames, usernames, and passwords sanitized).
[stderr]
WARNING: Logging before InitGoogleLogging() is written to STDERR
I1009 07:00:33.443848 1374128 fetcher.cpp:78] Fetching URI 'https://xxx-jenkins.xxx.com/jnlpJars/slave.jar' <https://xxx-jenkins.xxx.com/jnlpJars/slave.jar'>
I1009 07:00:33.443958 1374128 fetcher.cpp:145] Downloading 'https://xxx-jenkins.xxx.com/jnlpJars/slave.jar' <https://xxx-jenkins.xxx.com/jnlpJars/slave.jar'> to '/tmp/mesos/slaves/20140925-054833-238719761-5050-2252154-33485/frameworks/20141008-214416-255496977-5050-661894-0002/executors/mesos-jenkins-17de3971-0663-489b-9afd-ce41c1005b95/runs/ff959a18-cacf-4f69-abbb-e84be2211425/slave.jar'
I1009 07:00:33.523303 1374128 fetcher.cpp:274] Skipped extracting path '/tmp/mesos/slaves/20140925-054833-238719761-5050-2252154-33485/frameworks/20141008-214416-255496977-5050-661894-0002/executors/mesos-jenkins-17de3971-0663-489b-9afd-ce41c1005b95/runs/ff959a18-cacf-4f69-abbb-e84be2211425/slave.jar'
I1009 07:00:33.646520 1374127 exec.cpp:132] Version: 0.20.1
I1009 07:00:33.649021 1374152 exec.cpp:206] Executor registered on slave 20140925-054833-238719761-5050-2252154-33485
Unrecognized option: -jnlpCredentials
Could not create the Java virtual machine.
[stdout]
Registered executor on xxx.xxx.com <http://xxx.xxx.com/>
Starting task mesos-jenkins-17de3971-0663-489b-9afd-ce41c1005b95
sh -c 'java -DHUDSON_HOME=jenkins -server -Xmx4224m -Xms16m -XX:+UseConcMarkSweepGC -Djava.net.preferIPv4Stack=true -jnlpCredentials xxx:xxx -jar ${MESOS_SANDBOX-.}/slave.jar -jnlpUrl https://xxx-jenkins.xxx.com/computer/mesos-jenkins-17de3971-0663-489b-9afd-ce41c1005b95/slave-agent.jnlp' <https://xxx-jenkins.xxx.com/computer/mesos-jenkins-17de3971-0663-489b-9afd-ce41c1005b95/slave-agent.jnlp'>
Forked command at 1374158
Command exited with status 1 (pid: 1374158)
Thanks!
--
Kevin Sumner
kevin@sumner.io <ma...@sumner.io>