Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Simone Taliercio
[newbie] Liferay 5.2.2 - changes disappears when restart tomcat! :_(
March 9, 2009 9:38 AM
Answer

Simone Taliercio

Rank: New Member

Posts: 14

Join Date: March 4, 2009

Recent Posts

Hi great Community,

I'm new about Liferay. I have a problem that it is killing me emoticon

I've created several virtual domain.. all ok. So, I did add some contents (web container display,polls, blog, etc)..
BUT if I restart tomcat (bundle wit liferay) then ALL contents disappears :_(

Liferay with tomcat are on Windows Server 2003, and RDBMS is Mysql 5.0.

Where I do mistake??


Thanks for all,

Simone
Simone Taliercio
RE: [newbie] Liferay 5.2.2 - changes disappears when restart tomcat! :
March 9, 2009 10:48 AM
Answer

Simone Taliercio

Rank: New Member

Posts: 14

Join Date: March 4, 2009

Recent Posts

Jonas Yuan:
Hi Simone,

Can you please give more details about the issues?

Thanks

Jonas Yuan


Hi Jonas,
we are making some tests (with my colleague) .. as soon as possible, we will give you some details emoticon

Thank you for replying!

Simone
Olaf Kock
RE: [newbie] Liferay 5.2.2 - changes disappears when restart tomcat! :
March 9, 2009 12:04 PM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2216

Join Date: September 23, 2008

Recent Posts

I've run into issues when liferay was running on hsqldb (the one preinstalled with the bundle that will probably also be used if you made an error configuring your MySql connection): The issues were about the directory I started tomcat from, especially when I did so from the shell.

Basically:
1cd $TOMCAT_HOME; ./bin/startup.sh

did operate on a different hsqldb than
1cd $TOMCAT_HOME/bin; ./startup.sh

I don't know if this has been fixed in 5.2.2, as I've seen a specific data directory in 5.2. Version 5.1 expected the database files to be in "." - thus the nasty behaviour.

Make extra sure (e.g. examine your MySql tables while liferay is running) that data is actually being written to these tables.

Also some content has been written to the $USER_HOME/liferay directory by default, though I didn't find this directory in the recent version - I'll have to hunt for it in order to see if something there needs backup (or if it's disappeared to the database)

Cheers,
Olaf
Jonas Yuan
RE: [newbie] Liferay 5.2.2 - changes disappears when restart tomcat! :
March 9, 2009 12:58 PM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Hi Olaf,

$LIFERAY_HOME has been changed in 5.2 or above (before 5.2, it was $USER_HOME/liferay).

By default, it is here:

$LIFERAY_INSTALLATION_DIR/data - for data
$LIFERAY_INSTALLATION_DIR/deploy - for data
$LIFERAY_INSTALLATION_DIR/$TOMCAT_DIR - for tomcat ...

Please check this, you will get answers ...

Thanks

Jonas Yuan
Olaf Kock
RE: [newbie] Liferay 5.2.2 - changes disappears when restart tomcat! :
March 10, 2009 3:12 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2216

Join Date: September 23, 2008

Recent Posts

Thanks - I'll immediately update my backup plan.
I like that location - it should play a lot nicer when multiple installations are running on one machine (I'm currently suffering from this requirement and will migrate one instance to another server soon)
Simone Taliercio
RE: [newbie] Liferay 5.2.2 - changes disappears when restart tomcat! :
March 10, 2009 4:02 AM
Answer

Simone Taliercio

Rank: New Member

Posts: 14

Join Date: March 4, 2009

Recent Posts

Hi Jonas,

it seems that we had problems with configurations about our vitual server: with users system, and mysql 's configuration.
Now, all goes well. (I hope :-) ).

If any news happen, I will be here emoticon


Thanks for your patience.

(Sorry about my bad english).

Simone
Simone Taliercio
RE: [newbie] Liferay 5.2.2 - changes disappears when restart tomcat! :
March 11, 2009 9:25 AM
Answer

Simone Taliercio

Rank: New Member

Posts: 14

Join Date: March 4, 2009

Recent Posts

My God :_(

The problem is still there. We have restart with
c:> catalina.bat stop
c:> catalina.bat start

and liferay set himself as if it is the first time; only the theme was the old (an our theme).

I rescue some log lines: (Is it possible that a corrupted theme drop the database? :-/ )

See attachment please.

Heeeelp!

Simone
Attachments: stdout_20090311.log.zip (16.4k)
Amos Fong
RE: [newbie] Liferay 5.2.2 - changes disappears when restart tomcat! :
March 11, 2009 9:59 AM
Answer

Amos Fong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1844

Join Date: October 7, 2008

Recent Posts

Simone,

I think I see the 7-cogs hook is still running on your Liferay. It automatically drops the database and populates it with sample data...

To remove it go to your tomcat webapps folder and delete the 7cogs folder (wiki)

I think it should be made more obvious to users...
Olaf Kock
RE: [newbie] Liferay 5.2.2 - changes disappears when restart tomcat! :
March 11, 2009 2:41 PM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2216

Join Date: September 23, 2008

Recent Posts

Amos Fong:
I think I see the 7-cogs hook is still running on your Liferay. It automatically drops the database and populates it with sample data...

WHAT? You mean that as long as the sample data (and plugin) is there, the database is populated on each restart?
Amos Fong:
I think it should be made more obvious to users...

If so - for sure.
It should be part of the demo site: "As long as you see the 7cogs page you will loose all data that you enter with the next portal restart"

Until now I did understand that this will create the database and demo content. I didn't think it dropped & recreated the database on every restart, even if it was already there.

Please confirm (or preferably deny). On confirmation I'd vote for this to be a "blocker improvement" in Jira
Amos Fong
RE: [newbie] Liferay 5.2.2 - changes disappears when restart tomcat! :
March 11, 2009 3:26 PM
Answer

Amos Fong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1844

Join Date: October 7, 2008

Recent Posts

Hey Olaf,

I think I did not say that correctly. The 7cogs hook is registering, meaning it's still there, but necessarily running.

Looking the hook, it looks like it hinges on this check:

 1protected boolean isAlreadyRan(long companyId) throws Exception {
 2    boolean alreadyRan = false;
 3
 4    try {
 5        // If Bruno exists, do not run again
 6
 7        UserLocalServiceUtil.getUserByScreenName(companyId, "bruno");
 8            alreadyRan = true;
 9    }
10    catch (NoSuchUserException nsue) {
11    }
12
13    return alreadyRan;
14}
steve rieger
Re: [Liferay Forums][1. Installation / Deployment / Setup] RE: [newbie] Lif
March 11, 2009 3:29 PM
Answer

steve rieger

Rank: Expert

Posts: 436

Join Date: September 11, 2006

Recent Posts

are you running this with a mysql backend ?
Olaf Kock
RE: [newbie] Liferay 5.2.2 - changes disappears when restart tomcat! :
March 11, 2009 3:30 PM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2216

Join Date: September 23, 2008

Recent Posts

Hi Amos,
thanks for clarifying. I didn't check because I've just shortly used the demo content and then started over with the minimal content, but I was horrified reading this. Now I can calm down and sleep better.
Cheers,
Olaf
Simone Taliercio
RE: [newbie] Liferay 5.2.2 - changes disappears when restart tomcat! :
March 12, 2009 3:19 AM
Answer

Simone Taliercio

Rank: New Member

Posts: 14

Join Date: March 4, 2009

Recent Posts

I can't believe it!!! :-o

YES, the problem was sevencoogs-hook and user "Bruno". If you drop Bruno, but 7coogs-hook plugin is installed, then database was dropped down!

Yes, I really can't believe emoticon

Thank you very much guys! You did save my poor heart.

Regards from Italy (Rome).

Simone
Thomas Weckert
RE: [newbie] Liferay 5.2.2 - changes disappears when restart tomcat! :
January 8, 2010 5:06 AM
Answer

Thomas Weckert

Rank: Junior Member

Posts: 54

Join Date: August 10, 2009

Recent Posts

I trashed this morning my development database when I switched from the 5.2.3 Tomcat 5.5 distribution (without sevencogs-theme) to the 5.2.3 Tomcat 6.0 distribution (with sevencogs-theme).

Bruno is evil!

Cheers,
Thomas