RE: Liferay 7: AutoDeployScanner Processing something, doing nothing

Martin Jonik, 7 Jaren geleden aangepast. Junior Member Berichten: 69 Aanmelddatum: 14-8-12 Recente berichten

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, 7 Jaren geleden aangepast. Liferay Legend Berichten: 1228 Aanmelddatum: 14-4-08 Recente berichten

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., 7 Jaren geleden aangepast. Junior Member Berichten: 69 Aanmelddatum: 14-8-12 Recente berichten

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, 7 Jaren geleden aangepast. Liferay Legend Berichten: 1228 Aanmelddatum: 14-4-08 Recente berichten

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, 7 Jaren geleden aangepast. Liferay Legend Berichten: 1555 Aanmelddatum: 24-9-09 Recente berichten

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, 6 Jaren geleden aangepast. Junior Member Berichten: 47 Aanmelddatum: 29-12-14 Recente berichten
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, 6 Jaren geleden aangepast. Liferay Legend Berichten: 6441 Aanmelddatum: 23-9-08 Recente berichten
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.