Current time: 04-20-2024, 05:07 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database Update failed with nightly
Author Message
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #1
Database Update failed with nightly
Hi...
I merged the nightly to the branch apps-installer...
Now i want to update my installation (branch)... I got an error while database update:

Quote: ispCP database
Update ispCP database schema Failed

FATAL: An error was occured during update process!
Correct it and re-run this program.

In the log i found this error
Quote: more ispcp-update-database.log

Warning: require_once(/var/www/ispcp/gui/include/class.criticalUpdate.php): failed to open stream: No such file or directory in /var/www/ispcp/gui/include/is
pcp-lib.php on line 38

Fatal error: require_once(): Failed opening required '/var/www/ispcp/gui/include/class.criticalUpdate.php' (include_path='/var/www/ispcp/gui/include/htmlpuri
fier:.:/usr/share/php:/usr/share/pear') in /var/www/ispcp/gui/include/ispcp-lib.php on line 38

The message is correct, because yesterday the file "class.criticalUpdate.php" was deleted!

Any solutions?
04-27-2010 04:08 PM
Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #2
RE: Database Update failed with nightly
Could you already fix it? If not check for "criticalUpdate" in your source code. This class name should not be used any more, otherwise ispcp-lib.php tries to include the non-existing file. Regarding your database update I'm not sure, but I will have a look this evening.

Edit:
I think the problem is that your version number has already been 33 and you try to apply the 33-patch in 35 again.
(This post was last modified: 04-27-2010 04:26 PM by RatS.)
04-27-2010 04:25 PM
Visit this user's website Find all posts by this user Quote this message in a reply
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #3
RE: Database Update failed with nightly
I found the problem....

In the file /var/www/ispcp/engine/setup/updDB.php is a section where this function is called
Code:
// Perfom all database critical updates if exists
if (criticalUpdate::getInstance()->checkUpdateExists()) {

    criticalUpdate::getInstance()->executeUpdates();

    if ( ($msg = criticalUpdate::getInstance()->getErrorMessage()) != '') {
        print $msg;
        exit(1);
    }

}
After removing this code. Everything works fine. The Updates of your changes, too!

Should i commit the change?
Or do you want to do this on your own?
(This post was last modified: 04-27-2010 04:45 PM by TheCry.)
04-27-2010 04:32 PM
Find all posts by this user Quote this message in a reply
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #4
RE: Database Update failed with nightly
Good morning Rats...
Did you fix it?
I think this have to be fixed as quickly as possible.
No update is possible.

Should i fix it today?
04-28-2010 03:36 PM
Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #5
RE: Database Update failed with nightly
You are right, I oversaw this occurence. I fixed it in r2892. thanks for the Report.
04-28-2010 04:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #6
RE: Database Update failed with nightly
Thanks!
04-28-2010 04:33 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)