You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@predictionio.apache.org by Noelia Osés Fernández <no...@vicomtech.org> on 2017/12/14 14:56:14 UTC

Error: "unable to undeploy"

Hi,

The first time after reboot that I train and deploy my PIO app everything
works well. However, if I then retrain and deploy again, I get the
following error:

[INFO] [MasterActor] Undeploying any existing engine instance at
http://0.0.0.0:8000
[ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000.
Unable to undeploy.
[ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000
]
[WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
[ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
[WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
[ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000
]
[ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
[ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000
]
[WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
[ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
[ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000
]
[WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
[ERROR] [MasterActor] Bind failed. Shutting down.

I thought it was possible to retrain an app that was running and then
deploy again.
Is this not possible?

How can I kill the running instance?
I've tried the trick in handmade's integration test but it doesn't work:

deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
echo "Killing the deployed test PredictionServer"
kill "$deploy_pid"

I still get the same error after doing this.

Any help is much appreciated.
Best regards,
Noelia

Re: Error: "unable to undeploy"

Posted by Noelia Osés Fernández <no...@vicomtech.org>.
Thanks Pat!

Apparently I was launching it as root without me realizing it.

On 14 December 2017 at 17:56, Pat Ferrel <pa...@occamsmachete.com> wrote:

> kill -9 will always work if you have permission to kill the process. Did
> you launch it as root (not recommended)?
>
>
> On Dec 14, 2017, at 7:51 AM, Noelia Osés Fernández <no...@vicomtech.org>
> wrote:
>
> I use
>
>         jps -lm | grep "onsole deploy" | cut -f 1 -d ' '
>
> to get the IDs of the processes. However, *kill -9 pid* doesn't kill them
> :(
>
>
>
> On 14 December 2017 at 16:43, Александр Лактионов <lo...@gmail.com>
> wrote:
>
>> Yes, pio deploy runs a few processes (usually 2)
>> Just kill all of them :) usually every of them falls after killing at
>> least one
>>
>> 14 дек. 2017 г., в 18:42, Noelia Osés Fernández <no...@vicomtech.org>
>> написал(а):
>>
>>
>> Hi Phong,
>>
>> I have tried your suggestion but I get a few different hits.
>>
>> noelia
>>
>> On 14 December 2017 at 16:28, VI, Tran Tan Phong <tp...@prosodie.com>
>> wrote:
>>
>>> Hi Noelia,
>>>
>>>
>>>
>>> Why don’t you try to identify the process by “ps -ef |grep 8000” then
>>> simply kill it?
>>>
>>>
>>>
>>> Phong
>>>
>>>
>>>
>>> *De :* Noelia Osés Fernández [mailto:noses@vicomtech.org]
>>> *Envoyé :* jeudi 14 décembre 2017 15:56
>>> *À :* user@predictionio.incubator.apache.org
>>> *Objet :* Error: "unable to undeploy"
>>>
>>>
>>>
>>> Hi,
>>>
>>> The first time after reboot that I train and deploy my PIO app
>>> everything works well. However, if I then retrain and deploy again, I get
>>> the following error:
>>>
>>>
>>> [INFO] [MasterActor] Undeploying any existing engine instance at
>>> http://0.0.0.0:8000
>>> [ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000.
>>> Unable to undeploy.
>>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
>>> 0.0.0.0:8000]
>>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
>>> [ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
>>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
>>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
>>> 0.0.0.0:8000]
>>> [ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
>>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
>>> 0.0.0.0:8000]
>>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
>>> [ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
>>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
>>> 0.0.0.0:8000]
>>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
>>> [ERROR] [MasterActor] Bind failed. Shutting down.
>>>
>>>
>>>
>>> I thought it was possible to retrain an app that was running and then
>>> deploy again.
>>>
>>> Is this not possible?
>>>
>>>
>>>
>>> How can I kill the running instance?
>>>
>>> I've tried the trick in handmade's integration test but it doesn't work:
>>>
>>>
>>>
>>> deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
>>> echo "Killing the deployed test PredictionServer"
>>> kill "$deploy_pid"
>>>
>>>
>>>
>>> I still get the same error after doing this.
>>>
>>>
>>>
>>> Any help is much appreciated.
>>>
>>> Best regards,
>>>
>>> Noelia
>>>
>>>
>>>
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> <http://www.vicomtech.org/>
>
> Noelia Osés Fernández, PhD
> Senior Researcher |
> Investigadora Senior
>
> noses@vicomtech.org
> +[34] 943 30 92 30
> Data Intelligence for Energy and
> Industrial Processes | Inteligencia
> de Datos para Energía y Procesos
> Industriales
>
> <https://www.linkedin.com/company/vicomtech>
> <https://www.youtube.com/user/VICOMTech>
> <ht...@Vicomtech_IK4>
>
> member of:  <http://www.graphicsmedia.net/>     <http://www.ik4.es/>
>
> Legal Notice - Privacy policy
> <http://www.vicomtech.org/en/proteccion-datos>
>
>


-- 
<http://www.vicomtech.org>

Noelia Osés Fernández, PhD
Senior Researcher |
Investigadora Senior

noses@vicomtech.org
+[34] 943 30 92 30
Data Intelligence for Energy and
Industrial Processes | Inteligencia
de Datos para Energía y Procesos
Industriales

<https://www.linkedin.com/company/vicomtech>
<https://www.youtube.com/user/VICOMTech>
<ht...@Vicomtech_IK4>

member of:  <http://www.graphicsmedia.net/>     <http://www.ik4.es>

Legal Notice - Privacy policy <http://www.vicomtech.org/en/proteccion-datos>

Re: Error: "unable to undeploy"

Posted by Pat Ferrel <pa...@occamsmachete.com>.
kill -9 will always work if you have permission to kill the process. Did you launch it as root (not recommended)?


On Dec 14, 2017, at 7:51 AM, Noelia Osés Fernández <no...@vicomtech.org> wrote:

I use 

        jps -lm | grep "onsole deploy" | cut -f 1 -d ' '

to get the IDs of the processes. However, kill -9 pid doesn't kill them :(



On 14 December 2017 at 16:43, Александр Лактионов <lokotochek@gmail.com <ma...@gmail.com>> wrote:
Yes, pio deploy runs a few processes (usually 2)
Just kill all of them :) usually every of them falls after killing at least one
> 14 дек. 2017 г., в 18:42, Noelia Osés Fernández <noses@vicomtech.org <ma...@vicomtech.org>> написал(а):
> 
> 
> Hi Phong,
> 
> I have tried your suggestion but I get a few different hits.
> 
> noelia
> 
> On 14 December 2017 at 16:28, VI, Tran Tan Phong <tpvitran@prosodie.com <ma...@prosodie.com>> wrote:
> Hi Noelia,
> 
>  
> 
> Why don’t you try to identify the process by “ps -ef |grep 8000” then simply kill it?
> 
>  
> 
> Phong
> 
>  
> 
> De : Noelia Osés Fernández [mailto:noses@vicomtech.org <ma...@vicomtech.org>] 
> Envoyé : jeudi 14 décembre 2017 15:56
> À : user@predictionio.incubator.apache.org <ma...@predictionio.incubator.apache.org>
> Objet : Error: "unable to undeploy"
> 
>  
> 
> Hi,
> 
> The first time after reboot that I train and deploy my PIO app everything works well. However, if I then retrain and deploy again, I get the following error:
> 
> 
> [INFO] [MasterActor] Undeploying any existing engine instance at http://0.0.0.0:8000 <http://0.0.0.0:8000/>
> [ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000 <http://0.0.0.0:8000/>. Unable to undeploy.
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [MasterActor] Bind failed. Shutting down.
> 
>  
> 
> I thought it was possible to retrain an app that was running and then deploy again.
> 
> Is this not possible?
> 
>  
> 
> How can I kill the running instance?
> 
> I've tried the trick in handmade's integration test but it doesn't work:
> 
>  
> 
> deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
> echo "Killing the deployed test PredictionServer"
> kill "$deploy_pid"
> 
>  
> 
> I still get the same error after doing this.
> 
>  
> 
> Any help is much appreciated.
> 
> Best regards,
> 
> Noelia
> 
> 
> 
> 
> 
> 
> 
> 
> 




-- 
 <http://www.vicomtech.org/>

Noelia Osés Fernández, PhD
Senior Researcher |
Investigadora Senior

noses@vicomtech.org <ma...@vicomtech.org>
+[34] 943 30 92 30
Data Intelligence for Energy and
Industrial Processes | Inteligencia
de Datos para Energía y Procesos
Industriales

 <https://www.linkedin.com/company/vicomtech>  <https://www.youtube.com/user/VICOMTech>  <ht...@Vicomtech_IK4>

member of:  <http://www.graphicsmedia.net/>     <http://www.ik4.es/>

Legal Notice - Privacy policy <http://www.vicomtech.org/en/proteccion-datos>

Re: Error: "unable to undeploy"

Posted by Noelia Osés Fernández <no...@vicomtech.org>.
I use

        jps -lm | grep "onsole deploy" | cut -f 1 -d ' '

to get the IDs of the processes. However, *kill -9 pid* doesn't kill them :(



On 14 December 2017 at 16:43, Александр Лактионов <lo...@gmail.com>
wrote:

> Yes, pio deploy runs a few processes (usually 2)
> Just kill all of them :) usually every of them falls after killing at
> least one
>
> 14 дек. 2017 г., в 18:42, Noelia Osés Fernández <no...@vicomtech.org>
> написал(а):
>
>
> Hi Phong,
>
> I have tried your suggestion but I get a few different hits.
>
> noelia
>
> On 14 December 2017 at 16:28, VI, Tran Tan Phong <tp...@prosodie.com>
> wrote:
>
>> Hi Noelia,
>>
>>
>>
>> Why don’t you try to identify the process by “ps -ef |grep 8000” then
>> simply kill it?
>>
>>
>>
>> Phong
>>
>>
>>
>> *De :* Noelia Osés Fernández [mailto:noses@vicomtech.org]
>> *Envoyé :* jeudi 14 décembre 2017 15:56
>> *À :* user@predictionio.incubator.apache.org
>> *Objet :* Error: "unable to undeploy"
>>
>>
>>
>> Hi,
>>
>> The first time after reboot that I train and deploy my PIO app everything
>> works well. However, if I then retrain and deploy again, I get the
>> following error:
>>
>>
>> [INFO] [MasterActor] Undeploying any existing engine instance at
>> http://0.0.0.0:8000
>> [ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000.
>> Unable to undeploy.
>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
>> 0.0.0.0:8000]
>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
>> [ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
>> 0.0.0.0:8000]
>> [ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
>> 0.0.0.0:8000]
>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
>> [ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
>> 0.0.0.0:8000]
>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
>> [ERROR] [MasterActor] Bind failed. Shutting down.
>>
>>
>>
>> I thought it was possible to retrain an app that was running and then
>> deploy again.
>>
>> Is this not possible?
>>
>>
>>
>> How can I kill the running instance?
>>
>> I've tried the trick in handmade's integration test but it doesn't work:
>>
>>
>>
>> deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
>> echo "Killing the deployed test PredictionServer"
>> kill "$deploy_pid"
>>
>>
>>
>> I still get the same error after doing this.
>>
>>
>>
>> Any help is much appreciated.
>>
>> Best regards,
>>
>> Noelia
>>
>>
>>
>
>
>
>
>
>
>


-- 
<http://www.vicomtech.org>

Noelia Osés Fernández, PhD
Senior Researcher |
Investigadora Senior

noses@vicomtech.org
+[34] 943 30 92 30
Data Intelligence for Energy and
Industrial Processes | Inteligencia
de Datos para Energía y Procesos
Industriales

<https://www.linkedin.com/company/vicomtech>
<https://www.youtube.com/user/VICOMTech>
<ht...@Vicomtech_IK4>

member of:  <http://www.graphicsmedia.net/>     <http://www.ik4.es>

Legal Notice - Privacy policy <http://www.vicomtech.org/en/proteccion-datos>

Re: Error: "unable to undeploy"

Posted by Александр Лактионов <lo...@gmail.com>.
Yes, pio deploy runs a few processes (usually 2)
Just kill all of them :) usually every of them falls after killing at least one
> 14 дек. 2017 г., в 18:42, Noelia Osés Fernández <no...@vicomtech.org> написал(а):
> 
> 
> Hi Phong,
> 
> I have tried your suggestion but I get a few different hits.
> 
> noelia
> 
> On 14 December 2017 at 16:28, VI, Tran Tan Phong <tpvitran@prosodie.com <ma...@prosodie.com>> wrote:
> Hi Noelia,
> 
>  
> 
> Why don’t you try to identify the process by “ps -ef |grep 8000” then simply kill it?
> 
>  
> 
> Phong
> 
>  
> 
> De : Noelia Osés Fernández [mailto:noses@vicomtech.org <ma...@vicomtech.org>] 
> Envoyé : jeudi 14 décembre 2017 15:56
> À : user@predictionio.incubator.apache.org <ma...@predictionio.incubator.apache.org>
> Objet : Error: "unable to undeploy"
> 
>  
> 
> Hi,
> 
> The first time after reboot that I train and deploy my PIO app everything works well. However, if I then retrain and deploy again, I get the following error:
> 
> 
> [INFO] [MasterActor] Undeploying any existing engine instance at http://0.0.0.0:8000 <http://0.0.0.0:8000/>
> [ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000 <http://0.0.0.0:8000/>. Unable to undeploy.
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [MasterActor] Bind failed. Shutting down.
> 
>  
> 
> I thought it was possible to retrain an app that was running and then deploy again.
> 
> Is this not possible?
> 
>  
> 
> How can I kill the running instance?
> 
> I've tried the trick in handmade's integration test but it doesn't work:
> 
>  
> 
> deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
> echo "Killing the deployed test PredictionServer"
> kill "$deploy_pid"
> 
>  
> 
> I still get the same error after doing this.
> 
>  
> 
> Any help is much appreciated.
> 
> Best regards,
> 
> Noelia
> 
> 
> 
> 
> 
> 
> 
> 
> 


Re: Error: "unable to undeploy"

Posted by Noelia Osés Fernández <no...@vicomtech.org>.
Hi Phong,

I have tried your suggestion but I get a few different hits.

noelia

On 14 December 2017 at 16:28, VI, Tran Tan Phong <tp...@prosodie.com>
wrote:

> Hi Noelia,
>
>
>
> Why don’t you try to identify the process by “ps -ef |grep 8000” then
> simply kill it?
>
>
>
> Phong
>
>
>
> *De :* Noelia Osés Fernández [mailto:noses@vicomtech.org]
> *Envoyé :* jeudi 14 décembre 2017 15:56
> *À :* user@predictionio.incubator.apache.org
> *Objet :* Error: "unable to undeploy"
>
>
>
> Hi,
>
> The first time after reboot that I train and deploy my PIO app everything
> works well. However, if I then retrain and deploy again, I get the
> following error:
>
>
> [INFO] [MasterActor] Undeploying any existing engine instance at
> http://0.0.0.0:8000
> [ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000.
> Unable to undeploy.
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Shutting down.
>
>
>
> I thought it was possible to retrain an app that was running and then
> deploy again.
>
> Is this not possible?
>
>
>
> How can I kill the running instance?
>
> I've tried the trick in handmade's integration test but it doesn't work:
>
>
>
> deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
> echo "Killing the deployed test PredictionServer"
> kill "$deploy_pid"
>
>
>
> I still get the same error after doing this.
>
>
>
> Any help is much appreciated.
>
> Best regards,
>
> Noelia
>
>
>

RE: Error: "unable to undeploy"

Posted by "VI, Tran Tan Phong" <tp...@prosodie.com>.
Hi Noelia,

Why don’t you try to identify the process by “ps -ef |grep 8000” then simply kill it?

Phong

De : Noelia Osés Fernández [mailto:noses@vicomtech.org]
Envoyé : jeudi 14 décembre 2017 15:56
À : user@predictionio.incubator.apache.org
Objet : Error: "unable to undeploy"

Hi,
The first time after reboot that I train and deploy my PIO app everything works well. However, if I then retrain and deploy again, I get the following error:

[INFO] [MasterActor] Undeploying any existing engine instance at http://0.0.0.0:8000
[ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000<http://0.0.0.0:8000>. Unable to undeploy.
[ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000<http://0.0.0.0:8000>]
[WARN] [HttpListener] Bind to /0.0.0.0:8000<http://0.0.0.0:8000> failed
[ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
[WARN] [HttpListener] Bind to /0.0.0.0:8000<http://0.0.0.0:8000> failed
[ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000<http://0.0.0.0:8000>]
[ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
[ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000<http://0.0.0.0:8000>]
[WARN] [HttpListener] Bind to /0.0.0.0:8000<http://0.0.0.0:8000> failed
[ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
[ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000<http://0.0.0.0:8000>]
[WARN] [HttpListener] Bind to /0.0.0.0:8000<http://0.0.0.0:8000> failed
[ERROR] [MasterActor] Bind failed. Shutting down.

I thought it was possible to retrain an app that was running and then deploy again.
Is this not possible?

How can I kill the running instance?
I've tried the trick in handmade's integration test but it doesn't work:

deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
echo "Killing the deployed test PredictionServer"
kill "$deploy_pid"

I still get the same error after doing this.

Any help is much appreciated.
Best regards,
Noelia








This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

Re: Error: "unable to undeploy"

Posted by Pat Ferrel <pa...@occamsmachete.com>.
The UR does not require more than one deploy (assuming the server runs forever). Retraining the UR automatically re-deploys the new model. 

All other Engines afaik do require retrain-redeploy.

Users should be aware that PIO is a framework that provides no ML function whatsoever. It supports a workflow but Engines are free to simplify or use it in different ways so always preface a question with what Engine you are using or asking about.



On Jan 3, 2018, at 4:33 AM, Noelia Osés Fernández <no...@vicomtech.org> wrote:

Hi lokotochek,

You mentioned that it wasn't necessary to redeploy after retraining. However, today I have come across a PIO wepage that I hadn't seen before that tells me to redeploy after retraining (section 'Update Model with New Data'):

http://predictionio.incubator.apache.org/deploy/ <http://predictionio.incubator.apache.org/deploy/>

Particularly, this page suggests adding the following line to the crontab to retrain every day:

0 0 * * *   $PIO_HOME/bin/pio train; $PIO_HOME/bin/pio deploy


Here it is clear that it is redeploying after retraining. So does it not actually hot-swap the model? Or the UR does but this page is more general for other templates 
that might not do that?

Thank for your help!



On 14 December 2017 at 15:57, Александр Лактионов <lokotochek@gmail.com <ma...@gmail.com>> wrote:
Hi Noelia,
you dont have to redeploy your app after train. It will be hot-swapped and the previous procces (ran by pio deploy) will change recommendations automatically
> 14 дек. 2017 г., в 17:56, Noelia Osés Fernández <noses@vicomtech.org <ma...@vicomtech.org>> написал(а):
> 
> Hi,
> 
> The first time after reboot that I train and deploy my PIO app everything works well. However, if I then retrain and deploy again, I get the following error: 
> 
> [INFO] [MasterActor] Undeploying any existing engine instance at http://0.0.0.0:8000 <http://0.0.0.0:8000/>
> [ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000 <http://0.0.0.0:8000/>. Unable to undeploy.
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [MasterActor] Bind failed. Shutting down.
> 
> I thought it was possible to retrain an app that was running and then deploy again.
> Is this not possible?
> 
> How can I kill the running instance?
> I've tried the trick in handmade's integration test but it doesn't work:
> 
> deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
> echo "Killing the deployed test PredictionServer"
> kill "$deploy_pid"
> 
> I still get the same error after doing this.
> 
> Any help is much appreciated.
> Best regards,
> Noelia
> 
> 
> 
> 
> 
> 
> 




Re: Error: "unable to undeploy"

Posted by Noelia Osés Fernández <no...@vicomtech.org>.
Hi lokotochek,

You mentioned that it wasn't necessary to redeploy after retraining.
However, today I have come across a PIO wepage that I hadn't seen before
that tells me to redeploy after retraining (section 'Update Model with New
Data'):

http://predictionio.incubator.apache.org/deploy/

Particularly, this page suggests adding the following line to the crontab
to retrain every day:

*0 0 * * *   $PIO_HOME/bin/pio train; $PIO_HOME/bin/pio deploy*


Here it is clear that it is redeploying after retraining. So does it
not actually hot-swap the model? Or the UR does but this page is more
general for other templates
that might not do that?

Thank for your help!



On 14 December 2017 at 15:57, Александр Лактионов <lo...@gmail.com>
wrote:

> Hi Noelia,
> you dont have to redeploy your app after train. It will be hot-swapped and
> the previous procces (ran by pio deploy) will change recommendations
> automatically
>
> 14 дек. 2017 г., в 17:56, Noelia Osés Fernández <no...@vicomtech.org>
> написал(а):
>
> Hi,
>
> The first time after reboot that I train and deploy my PIO app everything
> works well. However, if I then retrain and deploy again, I get the
> following error:
>
> [INFO] [MasterActor] Undeploying any existing engine instance at
> http://0.0.0.0:8000
> [ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000.
> Unable to undeploy.
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Shutting down.
>
> I thought it was possible to retrain an app that was running and then
> deploy again.
> Is this not possible?
>
> How can I kill the running instance?
> I've tried the trick in handmade's integration test but it doesn't work:
>
> deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
> echo "Killing the deployed test PredictionServer"
> kill "$deploy_pid"
>
> I still get the same error after doing this.
>
> Any help is much appreciated.
> Best regards,
> Noelia
>
>
>
>
>
>
>
>

Re: Error: "unable to undeploy"

Posted by Noelia Osés Fernández <no...@vicomtech.org>.
Great!! Thanks for letting me know!

On 14 December 2017 at 15:57, Александр Лактионов <lo...@gmail.com>
wrote:

> Hi Noelia,
> you dont have to redeploy your app after train. It will be hot-swapped and
> the previous procces (ran by pio deploy) will change recommendations
> automatically
>
> 14 дек. 2017 г., в 17:56, Noelia Osés Fernández <no...@vicomtech.org>
> написал(а):
>
> Hi,
>
> The first time after reboot that I train and deploy my PIO app everything
> works well. However, if I then retrain and deploy again, I get the
> following error:
>
> [INFO] [MasterActor] Undeploying any existing engine instance at
> http://0.0.0.0:8000
> [ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000.
> Unable to undeploy.
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Shutting down.
>
> I thought it was possible to retrain an app that was running and then
> deploy again.
> Is this not possible?
>
> How can I kill the running instance?
> I've tried the trick in handmade's integration test but it doesn't work:
>
> deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
> echo "Killing the deployed test PredictionServer"
> kill "$deploy_pid"
>
> I still get the same error after doing this.
>
> Any help is much appreciated.
> Best regards,
> Noelia
>
>
>
>
>
>
>
>
>


-- 
<http://www.vicomtech.org>

Noelia Osés Fernández, PhD
Senior Researcher |
Investigadora Senior

noses@vicomtech.org
+[34] 943 30 92 30
Data Intelligence for Energy and
Industrial Processes | Inteligencia
de Datos para Energía y Procesos
Industriales

<https://www.linkedin.com/company/vicomtech>
<https://www.youtube.com/user/VICOMTech>
<ht...@Vicomtech_IK4>

member of:  <http://www.graphicsmedia.net/>     <http://www.ik4.es>

Legal Notice - Privacy policy <http://www.vicomtech.org/en/proteccion-datos>

Re: Error: "unable to undeploy"

Posted by Noelia Osés Fernández <no...@vicomtech.org>.
Great! Thank you, Phong

On 15 December 2017 at 16:47, VI, Tran Tan Phong <tp...@prosodie.com>
wrote:

> Hi Noelia,
>
>
>
> Yes of course, simply by using another port, for example 8001.
>
>
>
> Phong
>
>
>
> *De :* Noelia Osés Fernández [mailto:noses@vicomtech.org]
> *Envoyé :* jeudi 14 décembre 2017 16:16
> *À :* user@predictionio.apache.org
> *Cc :* user@predictionio.incubator.apache.org
> *Objet :* Re: Error: "unable to undeploy"
>
>
>
> Just one more question :)
>
> Is it possible to deploy more than one app in a single PIO? If so, how can
> I do it?
>
> Thanks!
>
>
>
> On 14 December 2017 at 15:57, Александр Лактионов <lo...@gmail.com>
> wrote:
>
> Hi Noelia,
>
> you dont have to redeploy your app after train. It will be hot-swapped and
> the previous procces (ran by pio deploy) will change recommendations
> automatically
>
> 14 дек. 2017 г., в 17:56, Noelia Osés Fernández <no...@vicomtech.org>
> написал(а):
>
>
>
> Hi,
>
> The first time after reboot that I train and deploy my PIO app everything
> works well. However, if I then retrain and deploy again, I get the
> following error:
>
>
> [INFO] [MasterActor] Undeploying any existing engine instance at
> http://0.0.0.0:8000
> [ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000.
> Unable to undeploy.
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Shutting down.
>
>
>
> I thought it was possible to retrain an app that was running and then
> deploy again.
>
> Is this not possible?
>
>
>
> How can I kill the running instance?
>
> I've tried the trick in handmade's integration test but it doesn't work:
>
>
>
> deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
> echo "Killing the deployed test PredictionServer"
> kill "$deploy_pid"
>
>
>
> I still get the same error after doing this.
>
>
>
> Any help is much appreciated.
>
> Best regards,
>
> Noelia
>
>
>
>
>
>
> --
>
> <http://www.vicomtech.org>
>
>
> *Noelia Osés Fernández, PhD*
> Senior Researcher |
> Investigadora Senior
>
>
> noses@vicomtech.org
> +[34] 943 30 92 30
>
> Data Intelligence for Energy and
> Industrial Processes | Inteligencia
> de Datos para Energía y Procesos
> Industriales
>
>
> <https://www.linkedin.com/company/vicomtech>
> <https://www.youtube.com/user/VICOMTech>
> <ht...@Vicomtech_IK4>
>
>
> member of:  <http://www.graphicsmedia.net/>     <http://www.ik4.es>
>
>
> *Legal Notice - Privacy policy
> <http://www.vicomtech.org/en/proteccion-datos>*
>
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute,
> or use this message or any part thereof. If you receive this message in
> error, please notify the sender immediately and delete all copies of this
> message.
>



-- 
<http://www.vicomtech.org>

Noelia Osés Fernández, PhD
Senior Researcher |
Investigadora Senior

noses@vicomtech.org
+[34] 943 30 92 30
Data Intelligence for Energy and
Industrial Processes | Inteligencia
de Datos para Energía y Procesos
Industriales

<https://www.linkedin.com/company/vicomtech>
<https://www.youtube.com/user/VICOMTech>
<ht...@Vicomtech_IK4>

member of:  <http://www.graphicsmedia.net/>     <http://www.ik4.es>

Legal Notice - Privacy policy <http://www.vicomtech.org/en/proteccion-datos>

RE: Error: "unable to undeploy"

Posted by "VI, Tran Tan Phong" <tp...@prosodie.com>.
Hi Noelia,

Yes of course, simply by using another port, for example 8001.

Phong

De : Noelia Osés Fernández [mailto:noses@vicomtech.org]
Envoyé : jeudi 14 décembre 2017 16:16
À : user@predictionio.apache.org
Cc : user@predictionio.incubator.apache.org
Objet : Re: Error: "unable to undeploy"

Just one more question :)
Is it possible to deploy more than one app in a single PIO? If so, how can I do it?
Thanks!

On 14 December 2017 at 15:57, Александр Лактионов <lo...@gmail.com>> wrote:
Hi Noelia,
you dont have to redeploy your app after train. It will be hot-swapped and the previous procces (ran by pio deploy) will change recommendations automatically
14 дек. 2017 г., в 17:56, Noelia Osés Fernández <no...@vicomtech.org>> написал(а):

Hi,
The first time after reboot that I train and deploy my PIO app everything works well. However, if I then retrain and deploy again, I get the following error:

[INFO] [MasterActor] Undeploying any existing engine instance at http://0.0.0.0:8000<http://0.0.0.0:8000/>
[ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000<http://0.0.0.0:8000/>. Unable to undeploy.
[ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000<http://0.0.0.0:8000/>]
[WARN] [HttpListener] Bind to /0.0.0.0:8000<http://0.0.0.0:8000/> failed
[ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
[WARN] [HttpListener] Bind to /0.0.0.0:8000<http://0.0.0.0:8000/> failed
[ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000<http://0.0.0.0:8000/>]
[ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
[ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000<http://0.0.0.0:8000/>]
[WARN] [HttpListener] Bind to /0.0.0.0:8000<http://0.0.0.0:8000/> failed
[ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
[ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000<http://0.0.0.0:8000/>]
[WARN] [HttpListener] Bind to /0.0.0.0:8000<http://0.0.0.0:8000/> failed
[ERROR] [MasterActor] Bind failed. Shutting down.

I thought it was possible to retrain an app that was running and then deploy again.
Is this not possible?

How can I kill the running instance?
I've tried the trick in handmade's integration test but it doesn't work:

deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
echo "Killing the deployed test PredictionServer"
kill "$deploy_pid"

I still get the same error after doing this.

Any help is much appreciated.
Best regards,
Noelia











--
[http://www.vicomtech.org/firmas/html/Vicomtech209.png]<http://www.vicomtech.org>


Noelia Osés Fernández, PhD
Senior Researcher |
Investigadora Senior


noses@vicomtech.org<ma...@vicomtech.org>
+[34] 943 30 92 30

Data Intelligence for Energy and
Industrial Processes | Inteligencia
de Datos para Energía y Procesos
Industriales


[http://www.vicomtech.org/firmas/html/linkedinCuadrado.png]<https://www.linkedin.com/company/vicomtech> [http://www.vicomtech.org/firmas/html/youtubeCuadrado.png] <https://www.youtube.com/user/VICOMTech>  [http://www.vicomtech.org/firmas/html/twitterCuadrado.png] <ht...@Vicomtech_IK4>


member of: [http://www.vicomtech.org/firmas/html/gmn68.png] <http://www.graphicsmedia.net/>     [http://www.vicomtech.org/firmas/html/IK4_43.png] <http://www.ik4.es>


Legal Notice - Privacy policy<http://www.vicomtech.org/en/proteccion-datos>


This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

Re: Error: "unable to undeploy"

Posted by Noelia Osés Fernández <no...@vicomtech.org>.
Thanks!!

On 14 December 2017 at 16:29, Александр Лактионов <lo...@gmail.com>
wrote:

> We deploy multiple apps on one machine (A/B test shown that mobile and
> desktop data should be separated for better conversion)
> Just put a correct engine.json, run `pio deploy`, wait for a minute,
> replace engine.json for another app and do `pio deploy —port` with
> different port again
> train should be done the same way
>
> 14 дек. 2017 г., в 18:16, Noelia Osés Fernández <no...@vicomtech.org>
> написал(а):
>
> Just one more question :)
>
> Is it possible to deploy more than one app in a single PIO? If so, how can
> I do it?
>
> Thanks!
>
> On 14 December 2017 at 15:57, Александр Лактионов <lo...@gmail.com>
> wrote:
>
>> Hi Noelia,
>> you dont have to redeploy your app after train. It will be hot-swapped
>> and the previous procces (ran by pio deploy) will change recommendations
>> automatically
>>
>> 14 дек. 2017 г., в 17:56, Noelia Osés Fernández <no...@vicomtech.org>
>> написал(а):
>>
>> Hi,
>>
>> The first time after reboot that I train and deploy my PIO app everything
>> works well. However, if I then retrain and deploy again, I get the
>> following error:
>>
>> [INFO] [MasterActor] Undeploying any existing engine instance at
>> http://0.0.0.0:8000
>> [ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000.
>> Unable to undeploy.
>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
>> 0.0.0.0:8000]
>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
>> [ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
>> 0.0.0.0:8000]
>> [ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
>> 0.0.0.0:8000]
>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
>> [ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
>> 0.0.0.0:8000]
>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
>> [ERROR] [MasterActor] Bind failed. Shutting down.
>>
>> I thought it was possible to retrain an app that was running and then
>> deploy again.
>> Is this not possible?
>>
>> How can I kill the running instance?
>> I've tried the trick in handmade's integration test but it doesn't work:
>>
>> deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
>> echo "Killing the deployed test PredictionServer"
>> kill "$deploy_pid"
>>
>> I still get the same error after doing this.
>>
>> Any help is much appreciated.
>> Best regards,
>> Noelia
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> <http://www.vicomtech.org/>
>
> Noelia Osés Fernández, PhD
> Senior Researcher |
> Investigadora Senior
>
> noses@vicomtech.org
> +[34] 943 30 92 30
> Data Intelligence for Energy and
> Industrial Processes | Inteligencia
> de Datos para Energía y Procesos
> Industriales
>
> <https://www.linkedin.com/company/vicomtech>
> <https://www.youtube.com/user/VICOMTech>
> <ht...@Vicomtech_IK4>
>
> member of:  <http://www.graphicsmedia.net/>     <http://www.ik4.es/>
>
> Legal Notice - Privacy policy
> <http://www.vicomtech.org/en/proteccion-datos>
>
>
>


-- 
<http://www.vicomtech.org>

Noelia Osés Fernández, PhD
Senior Researcher |
Investigadora Senior

noses@vicomtech.org
+[34] 943 30 92 30
Data Intelligence for Energy and
Industrial Processes | Inteligencia
de Datos para Energía y Procesos
Industriales

<https://www.linkedin.com/company/vicomtech>
<https://www.youtube.com/user/VICOMTech>
<ht...@Vicomtech_IK4>

member of:  <http://www.graphicsmedia.net/>     <http://www.ik4.es>

Legal Notice - Privacy policy <http://www.vicomtech.org/en/proteccion-datos>

Re: Error: "unable to undeploy"

Posted by Александр Лактионов <lo...@gmail.com>.
We deploy multiple apps on one machine (A/B test shown that mobile and desktop data should be separated for better conversion)
Just put a correct engine.json, run `pio deploy`, wait for a minute, replace engine.json for another app and do `pio deploy —port` with different port again
train should be done the same way
> 14 дек. 2017 г., в 18:16, Noelia Osés Fernández <no...@vicomtech.org> написал(а):
> 
> Just one more question :)
> 
> Is it possible to deploy more than one app in a single PIO? If so, how can I do it? 
> 
> Thanks!
> 
> On 14 December 2017 at 15:57, Александр Лактионов <lokotochek@gmail.com <ma...@gmail.com>> wrote:
> Hi Noelia,
> you dont have to redeploy your app after train. It will be hot-swapped and the previous procces (ran by pio deploy) will change recommendations automatically
>> 14 дек. 2017 г., в 17:56, Noelia Osés Fernández <noses@vicomtech.org <ma...@vicomtech.org>> написал(а):
>> 
>> Hi,
>> 
>> The first time after reboot that I train and deploy my PIO app everything works well. However, if I then retrain and deploy again, I get the following error: 
>> 
>> [INFO] [MasterActor] Undeploying any existing engine instance at http://0.0.0.0:8000 <http://0.0.0.0:8000/>
>> [ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000 <http://0.0.0.0:8000/>. Unable to undeploy.
>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
>> [ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
>> [ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
>> [ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
>> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
>> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
>> [ERROR] [MasterActor] Bind failed. Shutting down.
>> 
>> I thought it was possible to retrain an app that was running and then deploy again.
>> Is this not possible?
>> 
>> How can I kill the running instance?
>> I've tried the trick in handmade's integration test but it doesn't work:
>> 
>> deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
>> echo "Killing the deployed test PredictionServer"
>> kill "$deploy_pid"
>> 
>> I still get the same error after doing this.
>> 
>> Any help is much appreciated.
>> Best regards,
>> Noelia
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> 
> 
> 
> 
> -- 
>  <http://www.vicomtech.org/>
> 
> Noelia Osés Fernández, PhD
> Senior Researcher |
> Investigadora Senior
> 
> noses@vicomtech.org <ma...@vicomtech.org>
> +[34] 943 30 92 30
> Data Intelligence for Energy and
> Industrial Processes | Inteligencia
> de Datos para Energía y Procesos
> Industriales
> 
>  <https://www.linkedin.com/company/vicomtech>  <https://www.youtube.com/user/VICOMTech>  <ht...@Vicomtech_IK4>
> 
> member of:  <http://www.graphicsmedia.net/>     <http://www.ik4.es/>
> 
> Legal Notice - Privacy policy <http://www.vicomtech.org/en/proteccion-datos>

Re: Error: "unable to undeploy"

Posted by Noelia Osés Fernández <no...@vicomtech.org>.
Just one more question :)

Is it possible to deploy more than one app in a single PIO? If so, how can
I do it?

Thanks!

On 14 December 2017 at 15:57, Александр Лактионов <lo...@gmail.com>
wrote:

> Hi Noelia,
> you dont have to redeploy your app after train. It will be hot-swapped and
> the previous procces (ran by pio deploy) will change recommendations
> automatically
>
> 14 дек. 2017 г., в 17:56, Noelia Osés Fernández <no...@vicomtech.org>
> написал(а):
>
> Hi,
>
> The first time after reboot that I train and deploy my PIO app everything
> works well. However, if I then retrain and deploy again, I get the
> following error:
>
> [INFO] [MasterActor] Undeploying any existing engine instance at
> http://0.0.0.0:8000
> [ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000.
> Unable to undeploy.
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/
> 0.0.0.0:8000]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 failed
> [ERROR] [MasterActor] Bind failed. Shutting down.
>
> I thought it was possible to retrain an app that was running and then
> deploy again.
> Is this not possible?
>
> How can I kill the running instance?
> I've tried the trick in handmade's integration test but it doesn't work:
>
> deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
> echo "Killing the deployed test PredictionServer"
> kill "$deploy_pid"
>
> I still get the same error after doing this.
>
> Any help is much appreciated.
> Best regards,
> Noelia
>
>
>
>
>
>
>
>
>


-- 
<http://www.vicomtech.org>

Noelia Osés Fernández, PhD
Senior Researcher |
Investigadora Senior

noses@vicomtech.org
+[34] 943 30 92 30
Data Intelligence for Energy and
Industrial Processes | Inteligencia
de Datos para Energía y Procesos
Industriales

<https://www.linkedin.com/company/vicomtech>
<https://www.youtube.com/user/VICOMTech>
<ht...@Vicomtech_IK4>

member of:  <http://www.graphicsmedia.net/>     <http://www.ik4.es>

Legal Notice - Privacy policy <http://www.vicomtech.org/en/proteccion-datos>

Re: Error: "unable to undeploy"

Posted by Александр Лактионов <lo...@gmail.com>.
Hi Noelia,
you dont have to redeploy your app after train. It will be hot-swapped and the previous procces (ran by pio deploy) will change recommendations automatically
> 14 дек. 2017 г., в 17:56, Noelia Osés Fernández <no...@vicomtech.org> написал(а):
> 
> Hi,
> 
> The first time after reboot that I train and deploy my PIO app everything works well. However, if I then retrain and deploy again, I get the following error: 
> 
> [INFO] [MasterActor] Undeploying any existing engine instance at http://0.0.0.0:8000 <http://0.0.0.0:8000/>
> [ERROR] [MasterActor] Another process might be occupying 0.0.0.0:8000 <http://0.0.0.0:8000/>. Unable to undeploy.
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [MasterActor] Bind failed. Retrying... (2 more trial(s))
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [ERROR] [MasterActor] Bind failed. Retrying... (1 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [MasterActor] Bind failed. Retrying... (0 more trial(s))
> [ERROR] [TcpListener] Bind failed for TCP channel on endpoint [/0.0.0.0:8000 <http://0.0.0.0:8000/>]
> [WARN] [HttpListener] Bind to /0.0.0.0:8000 <http://0.0.0.0:8000/> failed
> [ERROR] [MasterActor] Bind failed. Shutting down.
> 
> I thought it was possible to retrain an app that was running and then deploy again.
> Is this not possible?
> 
> How can I kill the running instance?
> I've tried the trick in handmade's integration test but it doesn't work:
> 
> deploy_pid=`jps -lm | grep "onsole deploy" | cut -f 1 -d ' '`
> echo "Killing the deployed test PredictionServer"
> kill "$deploy_pid"
> 
> I still get the same error after doing this.
> 
> Any help is much appreciated.
> Best regards,
> Noelia
> 
> 
> 
> 
> 
> 
>