container stderr: "-slaveLog" is not a valid option
See original GitHub issueAgent from last Jenkins versions (remoting-4.6.jar) has no -slaveLog parameter, just -agentLog. Parameter name needs to be replaced.
Versions:
- docker-plugin 1.2.1
- jenkins 2.266
- docker engine 19.03.8
- docker-plugin connection to container(s) method: Attach Docker container
Error logs:
WARNING i.j.d.c.DockerMultiplexedInputStream#readInternal: Unexpected data on container stderr: "-slaveLog" is not a valid option
WARNING i.j.d.c.DockerMultiplexedInputStream#readInternal: Unexpected data on container stderr:
java -jar agent.jar [options...]
WARNING i.j.d.c.DockerMultiplexedInputStream#readInternal: Unexpected data on container stderr: -agentLog FILE : Local agent error log destination (overrides
workDir)
-auth user:pass : If your Jenkins is security-enabled, specify
a valid user name and password
......
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
[JENKINS-64251] Remote.jar is not working anymore because ...
When i execute a job, i get the message, that the used parameter "-slaveLog" is invalid. The reason for that is, that Jeff...
Read more >ec2-plugin/Lobby - Gitter
One oddity I've been noticing is that although I'm giving no "Windows Admin Password" for the windowsData for the AMI it still has...
Read more >kartoza/postgis - Docker Image - Docker Hub
docker-postgis. A simple docker container that runs PostGIS. Visit our page on the docker hub at: https://hub.docker.com/r/kartoza/postgis/.
Read more >CHANGELOG - mesos - Git at Google
[MESOS-9536] - Nested container launched with non-root user may not be able to ... to implement a method for returning `ObjectApprover`s that are...
Read more >What's New - Documentation - Altair
VOV-11536, Accelerator, None, The Container Configuration help page has been updated ... You must set nowrapper=True for a job to be run with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@Z9n2JktHlZDmlhSvqc9X2MmL3BwQG7tk FYI you can workaround this issue by overriding the default “EntryPoint Cmd” field in the “Connect method” section of the “Docker Agent template”.
The helptext tells you what the default is, and you’ll see the
-slaveLogline in there; copy & paste the default into the multi-line text box (expand it first!) and change “slave” to “agent”.You’re missing something - the context that was in my head when I wrote that 😉
My previous comment was referring to the “minimum Jenkins version” that the plugin will work with - i.e. very old versions of Jenkins. I had to bump that from 2.60.3 (which only provided the -slaveLog arg) to 2.73.3 (as that supported both slaveLog and agentLog) in order to enable the plugin to compile & self-test using the “agentLog” argument.
i.e. the plugin code was testing against 2.60.3, and that meant that changing from “slaveLog” to “agentLog” then broke everything as “agentLog” wasn’t supported in 2.60.3. Once I’d switched to testing with 2.73.3 the plugin’s code (which I’d changed to use “agentLog”) started working again.
TL;DR: With this fix, you can’t use Jenkins 2.60.3 anymore, you’ll need to use 2.73.3 or later … and anyone using a recent version of Jenkins will be pleased to find that the plugin’s default is “agentLog” instead of “slaveLog” so it’ll now “just work” again.
…however, as I’ve not done a docker-plugin release since I merged this, you’ll need to use a pre-release build, e.g. from https://repo.jenkins-ci.org/incrementals/io/jenkins/docker/docker-plugin/