Publish over CIFS configuration

1,134 views
Skip to first unread message

Ted Winslow

unread,
Aug 26, 2017, 12:24:05 AM8/26/17
to Jenkins Users
I don't seem to be understanding the configuration of the Publish over CIFS plugin.

I installed the plugin and am trying to add a CIFS node to no avail.  It is showing every field as invalid as I look at the configuration page, which I am guessing is not relevant.  I am trying to publish to another server and I even went so far as to mount the drive locally to verify everything was working.  Unfortunately, when I click "Test Configuration" I get this error:

Cannot read share (or directory on share)

jenkins.plugins.publish_over.BapPublisherException: Exception when testing config. URL [smb://192.168.1.201/shared/], Message: [Failed to connect: 0.0.0.0<00>/192.168.1.201]

Any idea what I'm doing wrong?

I can tell you that it is a guest share with public Read/Write that I was able to mount as guest in fstab (but it required the ver=3 flag).  I didn't enter any username or password for that reason.  I want to copy my builds over to my deployment server so it can deploy the builds after they complete.


Ted Winslow

unread,
Aug 29, 2017, 4:29:23 PM8/29/17
to Jenkins Users
Bump.  Anybody?

Slide

unread,
Aug 29, 2017, 9:10:33 PM8/29/17
to Jenkins Users

I've recently taken over maintaining this plugin, I am not super familiar with it yet. Is there anything in the Jenkins logs?


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/11e8057a-1082-4adf-a0ac-d44cd5e91f70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ted Winslow

unread,
Sep 2, 2017, 10:57:03 AM9/2/17
to Jenkins Users
Nope.  Nada. I can tell you that I have tested a bit more.  When I add the functionality anyway (in spite of the errors) running the build results in a crash of Jenkins altogether.  I can check if that logs anything if that will help.

I'm working with samba shares, in case you're curious.

Also, I apologize for taking so long to reply.  I thought I had email notifications on for this thread and apparently I did not.  I do now so it shouldn't be a problem.

Ted

unread,
Sep 2, 2017, 11:11:43 AM9/2/17
to Jenkins Users
nothing on that log either, though it didn't crash this time.

You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/O-DH2XUBRt8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/081ed5fa-1f83-4cb6-9aa5-8c59ec3cbca2%40googlegroups.com.

Slide

unread,
Sep 2, 2017, 11:27:52 AM9/2/17
to Jenkins Users

If you are willing, I can provide a plugin hpi file with additional logging to see if we can't figure out what the problem is. Would you be willing to do that? What is in the logs when Jenkins crashes completely?


Ted

unread,
Sep 2, 2017, 11:43:58 AM9/2/17
to Jenkins Users
I'd be willing to try whatever you need.  I am unable to track down the logs from the crash last time.  As I said, it's not doing it now.

Slide

unread,
Sep 2, 2017, 12:09:36 PM9/2/17
to Jenkins Users

Ok, I'll try and get something up soon with some additional logging.


Ted

unread,
Sep 2, 2017, 12:11:42 PM9/2/17
to Jenkins Users
is there a live chat we can do? irc or something?  I'd even be willing to screen share if necessary.

Slide

unread,
Sep 2, 2017, 3:02:31 PM9/2/17
to Jenkins Users

I and on the jenkins irc channel, though not at the moment or today most likely. If you get on there look for slide-o-mix


Slide

unread,
Sep 4, 2017, 11:26:56 PM9/4/17
to Jenkins Users
I have uploaded a version of the plugin to https://earl-of-code.com/publish-over-cifs.hpi that should give the whole stack trace for the error when using the check connection. Please let me know the full exception message and I'll see what I can find in the code.

Ted

unread,
Sep 5, 2017, 5:22:46 PM9/5/17
to Jenkins Users
this is the full stack trace:

jenkins.plugins.publish_over.BapPublisherException: jenkins.plugins.publish_over.BapPublisherException: Exception when testing config. URL [smb://192.168.1.201/shared/], Message: [Failed to connect: 0.0.0.0<00>/192.168.1.201]
at jenkins.plugins.publish_over_cifs.CifsHostConfiguration.testConfig(CifsHostConfiguration.java:206)
at jenkins.plugins.publish_over_cifs.CifsHostConfiguration.createClient(CifsHostConfiguration.java:97)
at jenkins.plugins.publish_over_cifs.descriptor.CifsPublisherPluginDescriptor.doTestConnection(CifsPublisherPluginDescriptor.java:158)
at java.lang.invoke.MethodHandle.invokeWithArguments(java.base@9-internal/MethodHandle.java:636)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:138)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:80)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:92)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-internal/ThreadPoolExecutor.java:1158)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-internal/ThreadPoolExecutor.java:632)
at java.lang.Thread.run(java.base@9-internal/Thread.java:804)
Caused by: jcifs.smb.SmbException: Failed to connect: 0.0.0.0<00>/192.168.1.201
jcifs.util.transport.TransportException
jcifs.smb.SmbException: This client does not support the negotiated dialect.
at jcifs.smb.SmbTransport.doConnect(SmbTransport.java:329)
at jcifs.util.transport.Transport.run(Transport.java:241)
at java.lang.Thread.run(java.base@9-internal/Thread.java:804)

at jcifs.util.transport.Transport.run(Transport.java:258)
at java.lang.Thread.run(java.base@9-internal/Thread.java:804)

at jcifs.smb.SmbTransport.connect(SmbTransport.java:309)
at jcifs.smb.SmbTree.treeConnect(SmbTree.java:156)
at jcifs.smb.SmbFile.doConnect(SmbFile.java:911)
at jcifs.smb.SmbFile.connect(SmbFile.java:954)
at jcifs.smb.SmbFile.connect0(SmbFile.java:880)
at jcifs.smb.SmbFile.exists(SmbFile.java:1415)
at jenkins.plugins.publish_over_cifs.CifsHostConfiguration.testConfig(CifsHostConfiguration.java:203)
... 67 more

Ted

unread,
Sep 5, 2017, 6:11:17 PM9/5/17
to Jenkins Users
After some examination of logs & discussion on IRC.  Slide & I determined that the problem is that I am requiring a min protocol of SMB2.  While this is an important feature (protects against WannaCry), it is not implemented in jcifs, which is the library currently used for the smbclient connection.  He suggested that there are some Java libraries that may support protocols above SMB1 (e.g. smbj), but for now that is what we've run into.  I will be looking into alternative ways to publish my builds.

OxyOX

unread,
Sep 21, 2017, 10:36:18 AM9/21/17
to jenkins...@googlegroups.com
I have a similar error. What is the reason? help me please


An exception was caught when invoking perform
jcifs.smb.SmbException: Failed to connect: 0.0.0.0<00>/172.26.28.113
jcifs.util.transport.TransportException
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at jcifs.util.transport.Transport.readn(Transport.java:29)
at jcifs.smb.SmbTransport.peekKey(SmbTransport.java:388)
at jcifs.smb.SmbTransport.negotiate(SmbTransport.java:288)
at jcifs.smb.SmbTransport.doConnect(SmbTransport.java:319)
at jcifs.util.transport.Transport.run(Transport.java:241)
at java.lang.Thread.run(Unknown Source)

at jcifs.util.transport.Transport.run(Transport.java:258)
at java.lang.Thread.run(Unknown Source)

at jcifs.smb.SmbTransport.connect(SmbTransport.java:309)
at jcifs.smb.SmbTree.treeConnect(SmbTree.java:156)
at jcifs.smb.SmbFile.doConnect(SmbFile.java:911)
at jcifs.smb.SmbFile.connect(SmbFile.java:954)
at jcifs.smb.SmbFile.connect0(SmbFile.java:880)
at jcifs.smb.SmbFile.exists(SmbFile.java:1415)
at
jenkins.plugins.publish_over_cifs.CifsHostConfiguration.testConfig(CifsHostConfiguration.java:203)
Caused: jenkins.plugins.publish_over.BapPublisherException: Exception when
testing config. URL [smb://172.26.28.113/jenkis/], Message: [Failed to
connect: 0.0.0.0<00>/172.26.28.113]
at
jenkins.plugins.publish_over_cifs.CifsHostConfiguration.testConfig(CifsHostConfiguration.java:206)
at
jenkins.plugins.publish_over_cifs.CifsHostConfiguration.createClient(CifsHostConfiguration.java:97)
at
jenkins.plugins.publish_over_cifs.CifsHostConfiguration.createClient(CifsHostConfiguration.java:47)
at
jenkins.plugins.publish_over.BPHostConfiguration.createClient(BPHostConfiguration.java:96)
at
jenkins.plugins.publish_over.BapPublisher$Performer.perform(BapPublisher.java:229)
at
jenkins.plugins.publish_over.BapPublisher$Performer.access$000(BapPublisher.java:205)
at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:158)
at
jenkins.plugins.publish_over_cifs.CifsPublisher.perform(CifsPublisher.java:63)
at
jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64)
Caused: jenkins.plugins.publish_over.BapPublisherException: Exception when
publishing, exception message [Exception when testing config. URL
[smb://172.26.28.113/jenkis/], Message: [Failed to connect:
0.0.0.0<00>/172.26.28.113]]
at
jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:68)
at
jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37)
at hudson.FilePath.act(FilePath.java:998)
at hudson.FilePath.act(FilePath.java:976)
at
jenkins.plugins.publish_over.BPInstanceConfig.perform(BPInstanceConfig.java:138)
at jenkins.plugins.publish_over.BPPlugin.perform(BPPlugin.java:111)
at
jenkins.plugins.publish_over_cifs.CifsBuilderPlugin.perform(CifsBuilderPlugin.java:61)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490)
at hudson.model.Run.execute(Run.java:1735)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:405)





--
Sent from: http://jenkins-ci.361315.n4.nabble.com/Jenkins-users-f361316.html

Slide

unread,
Sep 21, 2017, 10:58:00 AM9/21/17
to jenkins...@googlegroups.com
The issue with publish-over-cifs right now is that it only supports very old SMB protocol versions (jCIFS, the library used to do the CIFS accesses only supports those old protocols). I am in the process of updating to using SMBJ, which only supports the newer protocols, but I have not made a lot of headway at this point. 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages