You still have not exposed "-p" option as proposed above.
I kindly recommend to move this prototyping discussion to a separate thread
so it does not pollute the project proposal discussion.

Thanks in advance,
Oleg

On Thu, Mar 8, 2018 at 6:22 PM, Pham Vu Tuan <phamvutua...@gmail.com> wrote:

> I resolved the JNLP warning message by passing env variable in Docker run.
> But I still encountered "Connection refused" error although I exposed the
> port 50000 in the Dockerized master.
>
>
> <https://lh3.googleusercontent.com/-uWdhI7tOugo/WqFwLaBUgRI/AAAAAAAABqw/VTxe3Hm-Hvo4wVSLH8Yxkv-h9KxkxnYmACLcBGAs/s1600/Screen%2BShot%2B2018-03-09%2Bat%2B1.16.20%2BAM.png>
>
>
> <https://lh3.googleusercontent.com/-0UATDrdXx6M/WqFwP3F2xVI/AAAAAAAABq0/bBnAmaEg4yQnqpvW5sCpPcigLHqTn7abACLcBGAs/s1600/Screen%2BShot%2B2018-03-09%2Bat%2B1.16.57%2BAM.png>
> My command to start the agent is: "docker run -e JNLP_PROTOCOL_OPTS='-Dorg.
> jenkinsci.remoting.engine.JnlpProtocol3.disabled=false'
> jenkins/jnlp-slave -url http://localhost:8080 abcd test-node".
> Any ideas on this?
>
> On Friday, March 9, 2018 at 12:13:56 AM UTC+8, Oleg Nenashev wrote:
>>
>> Hi Pham,
>>
>> In order to connect an agent to the Dockerized master, you need to expose
>> the port for the agent (make the Agent port fixed in security settings +
>> use "-p" option to expose it).
>> I am not sure how BlueOcean image is configured, the standard Jenkins
>> Docker image has it documented here: https://github.com/jenkinsci/d
>> ocker#usage
>>
>> Hopefully it helps,
>> Oleg
>>
>> P.S: I'd guess it's another case of WEBSITE-474
>> <https://issues.jenkins-ci.org/browse/WEBSITE-474>, right?
>>
>>
>>
>> On Thu, Mar 8, 2018 at 4:59 PM, Pham Vu Tuan <phamvu...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> I am trying to setup the master and agent in my local machine. Server
>>> setup is fine, I used https://hub.docker.com/r/jenkinsci/blueocean/.
>>> But when I tried to connect an agent to it using
>>> https://hub.docker.com/r/jenkins/jnlp-slave/ by this command "docker
>>> run jenkins/jnlp-slave -url http://localhost:8080 abcd test-node" , I
>>> encountered some problems:
>>>
>>> - Warning: JnlpProtocol3 is disabled by default, use JNLP_PROTOCOL_OPTS
>>> to alter the behavior => Athough I set the env variable in the docker
>>> container for the server, I still encountered this warning message, am I
>>> missing to set it somewhere?
>>> - Not sure if this is related to the above issue, then I cannot connect
>>> the agent to server
>>>
>>>> SEVERE: Failed to connect to http://localhost:8080/tcpSlave
>>>> AgentListener/: Connection refused (Connection refused)
>>>> java.io.IOException: Failed to connect to
>>>> http://localhost:8080/tcpSlaveAgentListener/: Connection refused
>>>> (Connection refused)
>>>> at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.reso
>>>> lve(JnlpAgentEndpointResolver.java:199)
>>>> at hudson.remoting.Engine.innerRun(Engine.java:518)
>>>> at hudson.remoting.Engine.run(Engine.java:469)
>>>
>>> Could someone help me with this setup issue?
>>>
>>> Regards,
>>> Pham Vu Tuan
>>>
>>> On Monday, March 5, 2018 at 12:31:29 AM UTC+8, Oleg Nenashev wrote:
>>>>
>>>> Hi all,
>>>>
>>>> Since we have several students interested in this project, I propose to
>>>> spend some time at office hours on Wednesday in order to discuss it.
>>>>
>>>> From what I see, everybody in this thread can attend during the
>>>> APAC/Europe timeslot, right? If yes, let's just talk about the project
>>>> there.
>>>>
>>>> BR, Oleg
>>>>
>>>> On Sunday, March 4, 2018 at 7:48:47 AM UTC+1, ajm...@g.rit.edu wrote:
>>>>>
>>>>> I am Amit Magar a graduate student pursuing masters in Computer
>>>>> Science from Rochester Institute of Technology. I am specializing in
>>>>> Computer Networks and Artificial Intelligence. I have 8 years formal
>>>>> education in Computer Science.
>>>>>
>>>>>  I have 3 years of professional works experience at Accenture.
>>>>> Currently, I am working at Genex Services, Pensylvania as Intern in
>>>>> Advanced Analytics.
>>>>>
>>>>>  In my work experience I worked on Integration of heterogeneous
>>>>> services, packaged and legacy applications (more than 20 applications)
>>>>> using Enterprise Service Bus, Web Services, and JMS queue. Our Continuous
>>>>> Integration stack (DevOps) included Jenkins, GIT, Chef Server and Nexus so
>>>>> I have good knowledge of these Tools. I am well versed in Java,
>>>>> SoftwarPython, XML and Docker technologies too. I have closely worked on
>>>>> each phase of Software development life cycle.
>>>>>
>>>>>  I always wanted to do open source contribution, my long-term goal is
>>>>> to become a contributor(Github) open source code. I think GSoC
>>>>> is good platform to start open source contribution where I will mentorship
>>>>> from experience open source contributor and will get chance interact with
>>>>> open source community which will be helpful for future contribution in 
>>>>> open
>>>>> source.
>>>>>
>>>>> Jenkins caught my attention because I have used Jenkins before for
>>>>> Continuous Integration.I have gone through the detailed information of
>>>>> "Jenkins Remoting over Message Bus/Queue" project. I am particularly
>>>>> interested in "Jenkins Remoting over Message Bus/Queue" Because my 
>>>>> previous
>>>>> work experience in Java, JMS queues will be helpful here and I will be 
>>>>> able
>>>>> actively to contribute from day 1.
>>>>>
>>>>> You can find more information about me on below links,
>>>>> Linkedin: https://www.linkedin.com/in/amit-magar
>>>>> Github: https://github.com/AmitJMagar
>>>>>
>>>>> I would like to request mentors to give me some guidance here as well
>>>>> as in office hour to formulate a good proposal.
>>>>>
>>>>> Thanks and Regard,
>>>>> Amit Magar
>>>>>
>>>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Jenkins Developers" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>> pic/jenkinsci-dev/dMRn4zpSpkk/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> jenkinsci-de...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/jenkinsci-dev/9bc7adfe-b171-4767-822a-2c8ee3a6ac3e%40goo
>>> glegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-dev/9bc7adfe-b171-4767-822a-2c8ee3a6ac3e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Developers" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-dev/dMRn4zpSpkk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-dev/67382d80-2d70-4a91-aa90-a9cac5056bb7%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/67382d80-2d70-4a91-aa90-a9cac5056bb7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAPfivLC4RQF5gO%3DbEhrWzSxrTarprS01epP-KEUizufzrSp21A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to