RE: Liferay 7: AutoDeployScanner Processing something, doing nothing

Martin Jonik, modified 7 Years ago. Junior Member Posts: 69 Join Date: 8/14/12 Recent Posts

I noticed that (my/some/all) osgi modules won't get deployed reliably.

Sometimes, especially directly after the server start it works but after one or two deployments the system will get stuck at this point:

2018-07-11 06:15:43.540 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:261] Processing com.liferay.blade.model.listener-1.0.0.jar

And nothing happens anymore.
I have to restart the server to be able to do hot-deployment again. 

This happens for all kinds of modules. I tried themes and legacy wars and also some samples from the Internet to be sure it is not my own fault.

I am running the latest version of Oracle's Java 8, Liferay 7.0-GA7/Liferay 7.1-GA1  Wildfly bundle.

thumbnail
Victor Zorin, modified 7 Years ago. Liferay Legend Posts: 1228 Join Date: 4/14/08 Recent Posts

We have noticed if the LR7/DXP says "deploying ..." and nothing happens after this, in most cases it means that the deployment has failed, it is just Liferay does not display the message.

Using gogo shell helps to analyse this, find the component using command 'lb | grep yourcomponentname'. Check its status and the dependencies it is waiting  for or failing due.

You can also issue start and stop commands to try to redeploy the component without dropping it into the deploy directory.

Martin J., modified 7 Years ago. Junior Member Posts: 69 Join Date: 8/14/12 Recent Posts

You are right Victor, sometimes I can see an error when I try to start the bundle.

But sometimes the bundle won't get updated or installed at all.

So when I restart it I still see the previous error, even I made some changes.

Or it does not shop up in the "lb" list at all. So I cannot start it.

thumbnail
Victor Zorin, modified 7 Years ago. Liferay Legend Posts: 1228 Join Date: 4/14/08 Recent Posts

Just a question  for diagnostic purposes:

- are we talking about module hot deploys or

- this deployment problem occurs with the exactly same set of modules but upon restart (i.e. the restart is unstable)

thumbnail
Christoph Rabel, modified 7 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts

Some wild guesses/ideas:

Have you tried "diag" in gogo shell? Maybe it shows some missing dependencies.

You could try to check if it works in tomcat. In that case, it might be a Wildfly specific problem.

You could also try to remove dependencies (or start from a new project and add them). Maybe some library is causing those issues.

Also, the application might get stuck in a lock or something like that. You could try to generate a threaddump to check if your application hangs at some point.

 

 

 

thumbnail
kartik shiroya, modified 5 Years ago. Junior Member Posts: 47 Join Date: 12/29/14 Recent Posts
Hello Team Liferay And My Dear Developers,
I am also facing same issue in my production server and I have to restart my server every time which huge impact business.
Is there any permanent solution for it???
Thanks,Kartik Shiroya
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
kartik shiroya:

I am also facing same issue in my production server and I have to restart my server every time which huge impact business.
Is there any permanent solution for it???
Answering this needs details: Start with the exact version you're running on - and if it's not the latest GA, you might want to try reproducing on the latest GA to see if it has been fixed. Only you have access to your system, so only you can do this test.
As it's unclear what the exact problem is, it's impossible to point to a patch right now.