PDA

View Full Version : Error to update 1.4.1 to 1.4.2.1


Grejao
01-03-2008, 09:40 PM
I'm trying to update my centreon 1.4.1 to 1.4.2.1.
All steps are ok, but when i try to open http://my-server/oreon/ or http://my-server/centreon/ they open setup.php page and make the same with the first installation.

i do all steps about this article: http://wiki.oreon-project.org/index.php/How_to_update_Centreon-1.4.1_to_Centreon-1.4.2_%3F and got this error, no page to select upgrade option.

julio
01-03-2008, 10:13 PM
did you upgrade in 1.4.2 before 1.4.2.1 ?

it's necessary !

rsoares
01-04-2008, 11:41 AM
Hi Julio,

donwload link to 1.4.2 is disable, only 1.4.2.1 is available now...



did you upgrade in 1.4.2 before 1.4.2.1 ?

it's necessary !

julio
01-04-2008, 12:05 PM
ok yes ok sorry.

it's ok now. I enable the download.

if you have big error in MySQL, juste execute sql script :

on centreon database execute : in www/install/sql/UpdateDB-1.4.1_to_1.4.2.sql

and in ods :

www/install/sql/Update-ODS-1.4.1_to_1.4.2.sql

and after do again the upgrade 1.4.2 to 1.4.2.1.

Grejao
01-04-2008, 12:19 PM
Hi Julio, i downloaded the 1.4.2 version and try to upgrade my 1.4.1 version, but it don't fix the error, When i open http://my-server/oreon/ or http://my-server/centreon/ , they open install page, no update options. Here my steps: http://pastebin.com/m62650a96


and now, after roll back old version, after login i see only a blank page :s

julio
01-04-2008, 12:24 PM
you haven't done the sql upgrade for centreon DB ?

julio
01-04-2008, 12:30 PM
you don't finish this step ? the upgrade with php interface ? This step is juste for upgrading MySQL DB.

If you have upgraded manually with the to file (www/install/sql/UpdateDB-1.4.1_to_1.4.2.sql and www/install/sql/Update-ODS-1.4.1_to_1.4.2.sql) like I write in my last post, you can now do the upgrade 1.4.2 to 1.4.2.1 finish MySQL upgrade. cf wiki page.

rsoares
01-04-2008, 01:57 PM
Hi julio,

I do a fresh install of freebsd and centreon 1.4.1, after that i update to centreon 1.4.2, i´m insert only 1 host and 1 service to have absolute sure that i´m doing the right thing this time. ehheeh ;-)

Whell, my web interface loads without problem, showing 1 host alive and 1 services ok.. but, when i try start ods using: "/usr/local/etc/rc.d/ods start", ods don´t load and put the follow error in ods_demon.log:

#cat ods_demon.log
Can't locate /usr/local/centreon/ODS/etc/conf.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /usr/local/oreon/ODS/ods line 65.

TIA,

Rogério Soares

julio
01-04-2008, 02:41 PM
where is centreon installed ?

can you do

$> ls -la /usr/local/centreon/ODS/etc/conf.pm

thanks

rsoares
01-04-2008, 03:08 PM
the installation dir is: /usr/local/oreon and not /usr/local/centreon ....

s-sewu19# ls -l /usr/local/oreon/ODS/etc/
total 2
-rwxrwxr-x 1 www www 146 Jan 3 16:19 conf.pm


where is centreon installed ?

can you do

$> ls -la /usr/local/centreon/ODS/etc/conf.pm

thanks

julio
01-04-2008, 03:12 PM
/usr/local/oreon/ODS/etc/ ????

Why ods use /usr/local/centreon/ODS/etc ????

change the path line 36 : my $installedPath = "/usr/local/oreon/ODS/";

rsoares
01-04-2008, 03:31 PM
so, i made a symbolic link from /usr/local/oreon to /usr/local/centreon, ods is up, i don´t no why, he not put the pid in pid file.. but he is up...

whatever :)

thanks for while... ;)



the installation dir is: /usr/local/oreon and not /usr/local/centreon ....

s-sewu19# ls -l /usr/local/oreon/ODS/etc/
total 2
-rwxrwxr-x 1 www www 146 Jan 3 16:19 conf.pm