org.tmatesoft.svn.core.SVNException: svn: Invalid argument: setsockopt svn: OPTIONS request failed on '/svnroot'

Jenkins JIRA | fk_ | 6 years ago
  1. 0

    Steps to reproduce: * Create project with SVN checkout option as build step. * Open standard Windows task manager. * Set affinity for the java.exe process. * Start project build. * Hudson is unwilling to perform SVN update with errors: {quote} Updating https://example.com/svnroot ERROR: Failed to update https://example.com/svnroot org.tmatesoft.svn.core.SVNException: svn: Invalid argument: setsockopt svn: OPTIONS request failed on '/svnroot' at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:106) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:90) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:629) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:275) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:263) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1001) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getRepositoryUUID(DAVRepository.java:146) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:342) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:330) at org.tmatesoft.svn.core.wc.SVNUpdateClient.update(SVNUpdateClient.java:535) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:401) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:635) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:596) at hudson.FilePath.act(FilePath.java:756) at hudson.FilePath.act(FilePath.java:738) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:589) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:537) at hudson.model.AbstractProject.checkout(AbstractProject.java:1118) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:480) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:412) at hudson.model.Run.run(Run.java:1362) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: java.net.SocketException: Invalid argument: setsockopt at java.net.PlainSocketImpl.socketSetOption(Native Method) at java.net.PlainSocketImpl.setOption(Unknown Source) at java.net.Socket.setTcpNoDelay(Unknown Source) at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.setTcpNoDelay(Unknown Source) at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createSSLSocket(SVNSocketFactory.java:81) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.connect(HTTPConnection.java:185) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:329) ... 23 more {quote} * After 10 attempts Hudson marks project build as FAILURE.

    Jenkins JIRA | 6 years ago | fk_
    org.tmatesoft.svn.core.SVNException: svn: Invalid argument: setsockopt svn: OPTIONS request failed on '/svnroot'
  2. 0

    Steps to reproduce: * Create project with SVN checkout option as build step. * Open standard Windows task manager. * Set affinity for the java.exe process. * Start project build. * Hudson is unwilling to perform SVN update with errors: {quote} Updating https://example.com/svnroot ERROR: Failed to update https://example.com/svnroot org.tmatesoft.svn.core.SVNException: svn: Invalid argument: setsockopt svn: OPTIONS request failed on '/svnroot' at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:106) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:90) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:629) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:275) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:263) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1001) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getRepositoryUUID(DAVRepository.java:146) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:342) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:330) at org.tmatesoft.svn.core.wc.SVNUpdateClient.update(SVNUpdateClient.java:535) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:401) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:635) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:596) at hudson.FilePath.act(FilePath.java:756) at hudson.FilePath.act(FilePath.java:738) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:589) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:537) at hudson.model.AbstractProject.checkout(AbstractProject.java:1118) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:480) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:412) at hudson.model.Run.run(Run.java:1362) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: java.net.SocketException: Invalid argument: setsockopt at java.net.PlainSocketImpl.socketSetOption(Native Method) at java.net.PlainSocketImpl.setOption(Unknown Source) at java.net.Socket.setTcpNoDelay(Unknown Source) at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.setTcpNoDelay(Unknown Source) at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createSSLSocket(SVNSocketFactory.java:81) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.connect(HTTPConnection.java:185) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:329) ... 23 more {quote} * After 10 attempts Hudson marks project build as FAILURE.

    Jenkins JIRA | 6 years ago | fk_
    org.tmatesoft.svn.core.SVNException: svn: Invalid argument: setsockopt svn: OPTIONS request failed on '/svnroot'
  3. 0

    Soap request over tcpmon changes behaviour

    Stack Overflow | 3 years ago | kml_ckr
    java.net.SocketException: Invalid argument: setsockopt
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    why do we get "Connection reset by peer" error when calling bind?

    Stack Overflow | 6 years ago | Itamar
    java.net.SocketException: Connection reset by peer: setsockopt
  6. 0

    java.net.SocketException: Invalid argument (setTcpNoDelay)

    narkive.com | 11 months ago
    java.net.SocketException: Invalid argument

  1. rp 2 times, last 8 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketException

    Invalid argument: setsockopt

    at java.net.PlainSocketImpl.socketSetOption()
  2. Java RT
    Socket.setTcpNoDelay
    1. java.net.PlainSocketImpl.socketSetOption(Native Method)
    2. java.net.PlainSocketImpl.setOption(Unknown Source)
    3. java.net.Socket.setTcpNoDelay(Unknown Source)
    3 frames
  3. Java JSSE
    BaseSSLSocketImpl.setTcpNoDelay
    1. com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.setTcpNoDelay(Unknown Source)
    1 frame
  4. SVNKit Library
    SVNUpdateClient.doUpdate
    1. org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createSSLSocket(SVNSocketFactory.java:81)
    2. org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.connect(HTTPConnection.java:185)
    3. org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:329)
    4. org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:275)
    5. org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:263)
    6. org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516)
    7. org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
    8. org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1001)
    9. org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getRepositoryUUID(DAVRepository.java:146)
    10. org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:342)
    11. org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:330)
    12. org.tmatesoft.svn.core.wc.SVNUpdateClient.update(SVNUpdateClient.java:535)
    13. org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:401)
    13 frames
  5. Hudson
    Executor.run
    1. hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:635)
    2. hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:596)
    3. hudson.FilePath.act(FilePath.java:756)
    4. hudson.FilePath.act(FilePath.java:738)
    5. hudson.scm.SubversionSCM.checkout(SubversionSCM.java:589)
    6. hudson.scm.SubversionSCM.checkout(SubversionSCM.java:537)
    7. hudson.model.AbstractProject.checkout(AbstractProject.java:1118)
    8. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:480)
    9. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:412)
    10. hudson.model.Run.run(Run.java:1362)
    11. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    12. hudson.model.ResourceController.execute(ResourceController.java:88)
    13. hudson.model.Executor.run(Executor.java:145)
    13 frames