Closed Crazyjavahacking closed 6 years ago
@Crazyjavahacking however unfortunate we have loads of windows users here that use this plugin with no issues to speak of. What version of the plugin are you using? Do you have a reproducible snippet I could try to recreate the issue with?
It turned out that for some reason on Win OS the server URL was still using Unix pipes.
We had to modify each Docker related task to have to following configuration: url = 'tcp://127.0.0.1:2375'
. I was expecting that this will happen automatically on Win OS.
Can you verify?
@Crazyjavahacking the logic we implement can be found HERE but yes, under normal circumstances and assuming you didn't try to override things, we should default to the above URL you noted.
The problem has to be somewhere else. The function is correctly returning the TCP version of the URL, but still failed on the downloading of the artifact.
@Crazyjavahacking think you may be on to something. As of the release v3.2.5
we started using a shaded version of docker-java
(the library we use in the backend to communicate with docker) and I just opened the jar and noticed the jar and noticed the dll you referenced is not there. Poking around for clues now...
@Crazyjavahacking what version of our plugin are you using?
Looks like you may be running into THIS ISSUE. Indeed if you're using tcp on windows you shouldn't need to load a dll file.
We are using 3.2.0 version.
@Crazyjavahacking try using the latest and greatest and see if that helps. Really, if you are in fact pointing at the tcp URL, there should be no reason that the dll is required.
There is no problem with the artifact as it does not exist and newer was published.
My assumption is that some connection factory is only trying to load such native library if the protocol is using Linux pipes, So the problem is more likely to be in not accepting the serverUrl param in version 3.2.0.
Do you have a reproducible snippet I could try here? We have some developers with windows machines I could ask to give things a go on.
Closing this issue. Feel free to re-open if you'd like to talk further.
I met the same problem, how should I do?
@yuluopiaoyang is it reproducible and do you have a snippet we can give a go?
junixsocket 2.2 now supports Windows 10, please give it a try!
Hi,
it looks like the plugin is not working correctly on Windows platform. When we try to use the following task:
we got the following stack trace:
It looks like the plugin is downloading the following Maven artifact:
com.kohlschutter.junixsocket:junixsocket-native-common:2.0.4
which inlib
directory inside the archive does not contain any Windows specific pre-compiled shared libraries, only Linux and MaxOS ones:Is Windows supported by this plugin?