Fórum

Broken control panel

Tom Picklesimer, modificado 11 Anos atrás.

Broken control panel

New Member Postagens: 24 Data de Entrada: 15/06/12 Postagens Recentes
Hello everyone,

I am having some issues with my control panel on a server I am using to test theme development. Up until yesterday I was able to access the control panel like normal and upload theme war files using the Private Plugins Installer plugin. However, now when I try and access the Plugins Installation tab I am shown nothing but a blank screen. I have tried from different computers and using different browsers and the issue persists. I have rebooted the server multiple times and it still is happening. Any suggestions? Do I just need to do a reinstall or is there some easy fix for this that I don't know about? I have attached a screenshot so you can see what is happening.

Thanks in advance,

Tom Picklesimer
thumbnail
Hitoshi Ozawa, modificado 11 Anos atrás.

RE: Broken control panel

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Not sure what you're asking because the screen shot is of "Portal Instances" and you're saying something about "Plugins Installation tab" in your message.
Tom Picklesimer, modificado 11 Anos atrás.

RE: Broken control panel

New Member Postagens: 24 Data de Entrada: 15/06/12 Postagens Recentes
Whoops, I apologize, I just realized I attached the wrong screenshot! Here is the screenshot from the plugins page:
thumbnail
Hitoshi Ozawa, modificado 11 Anos atrás.

RE: Broken control panel

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Are there any error messages? Have you checked your roles and permissions?

If you were installing your plugins, it may have messed up the control panel program. If you have a backup of the server before you've installed it, it may just be easier to recover from the backup. I usually recommend backing up the server (not just the application server), before installing plugins.
thumbnail
Juan Gonzalez P, modificado 11 Anos atrás.

RE: Broken control panel

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Yep, this happened to me some days ago.

I solved it undeploying some portlets. Probably you could solve it increasing memory for JVM heap size too.
Tom Picklesimer, modificado 11 Anos atrás.

RE: Broken control panel

New Member Postagens: 24 Data de Entrada: 15/06/12 Postagens Recentes
Hitoshi: Well this sucks, I have no backup to restore from. And no, there are no error messages present as far as I can tell.

Juan: How do I go about increasing JVM heap size memory or undeploying portlets if the Server Administration page displays the same was (blank)? Server Administration page and Plugins Installation are exhibiting the same behavior.

Thanks,

Tom
thumbnail
Juan Gonzalez P, modificado 11 Anos atrás.

RE: Broken control panel

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
JVM parameters aren't set in Liferay control panel.

Depending in yor app server you'd have to configure in an specific file(s).

In tomcat for example, you can configure it in setenv.sh (or .bat if you're in windows) and set JAVA_OPTS variable (search if you have any doubt).
Tom Picklesimer, modificado 11 Anos atrás.

RE: Broken control panel

New Member Postagens: 24 Data de Entrada: 15/06/12 Postagens Recentes
Juan,

Here is a dump of what my setenv.sh file has in it right now:

JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF8 -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=256m -Dexternal-properties=portal-developer.properties"

What should I change here? MaxPermSize?

Thanks for your help,

Tom
thumbnail
Juan Gonzalez P, modificado 11 Anos atrás.

RE: Broken control panel

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Mmm seems it should be enough with those values.

Have you many portlets deployed there? If yes, probably you could increase -Xmx to a higher value and test.

I remember I had another problem with control panel when changed Garbage Collector (GC) parameters of JVM.

Do you remember changing anything about that?
Tom Picklesimer, modificado 11 Anos atrás.

RE: Broken control panel

New Member Postagens: 24 Data de Entrada: 15/06/12 Postagens Recentes
I really have no idea how many portlets... it's a city website with probably 1000 pages, so I would bet I have a decent amount of portlets but I'm really not sure.

To my knowledge, I haven't changed anything to do with Garbage Collector. I have been making some edits to portal.properties files and installing plugins, but that's it.

Thanks,

Tom
Tom Picklesimer, modificado 11 Anos atrás.

RE: Broken control panel

New Member Postagens: 24 Data de Entrada: 15/06/12 Postagens Recentes
I changed the -Xmx to 2048,rebooted and nothing is changed. Any other ideas?

Thanks for your help,

Tom
thumbnail
Juan Gonzalez P, modificado 11 Anos atrás.

RE: Broken control panel

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
What is the complete string of Java_OPTS now?

What is you JVM version?
Tom Picklesimer, modificado 11 Anos atrás.

RE: Broken control panel

New Member Postagens: 24 Data de Entrada: 15/06/12 Postagens Recentes
How do I identify what my JVM version is?

Here is the setenv.sh file contents:

JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF8 -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Xmx2048m -XX:MaxPermSize=256m -Dexternal-properties=portal-developer.properties"

Thanks for your help,

Tom
thumbnail
Juan Gonzalez P, modificado 11 Anos atrás.

RE: Broken control panel

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
You should check what is the JVM used by your server.

You can login in your server and check your java version like this: "java -version"

But if you have several java versions installed there then you have to check how the server is started to see our java path.
Tom Picklesimer, modificado 11 Anos atrás.

RE: Broken control panel

New Member Postagens: 24 Data de Entrada: 15/06/12 Postagens Recentes
Here is my output from java -version command:

[Picklesimer@DeathStar ~]$ java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
[Picklesimer@DeathStar ~]$
thumbnail
Juan Gonzalez P, modificado 11 Anos atrás.

RE: Broken control panel

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Ok perhaps that's the problem.

JVM 1.7 isn't well supported yet.

Can you change JVM to latest 1.6 (for example 1.6.0.3xx) and retry?
Tom Picklesimer, modificado 11 Anos atrás.

RE: Broken control panel

New Member Postagens: 24 Data de Entrada: 15/06/12 Postagens Recentes
Juan,

I'm sorry to need so much help with this, but how would I go about changing my JVM version?

Thanks,

Tom
thumbnail
Juan Gonzalez P, modificado 11 Anos atrás.

RE: Broken control panel

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Sorry for answering this, but that's out of Liferay scope.

It's dependant on your server and application server.
Tom Picklesimer, modificado 11 Anos atrás.

RE: Broken control panel

New Member Postagens: 24 Data de Entrada: 15/06/12 Postagens Recentes
No problem, thank you for the help you've given me, I really appreciate it!

Tom
thumbnail
Hitoshi Ozawa, modificado 11 Anos atrás.

RE: Broken control panel

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
JDK version may be the problem but I'm not sure why it was working till now.

To change your JDK version, you'll have to delete the current version and install the new version. Deleting and installing is dependent of the OS which you are running Liferay on. Also, once you change the jdk, you may need to change environmental variables and other settings as well. If you're not the server administrator, better ask the server administrator to do the work because you'll have to shutdown liferay while deleting and installing jdk.