Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay 7: AutoDeployScanner Processing something, doing nothing
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.
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.
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.
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)
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.
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
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.
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???
As it's unclear what the exact problem is, it's impossible to point to a patch right now.
Powered by Liferay™