1.0.0 beta install issues

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

1.0.0 beta install issues

Post by micke2k »

Hi Bsod,

I just installed 0.8.8h on server 2012 and it worked flawlessly! Great work!

I also upgraded it to v1.0.0 commit 4777(latest as of today) and that also worked fine.

However template imports during installation(new feature) is not working on Windows, PHP gives error:

[28-Mar-2016 16:32:37 America/Los_Angeles] PHP Warning: file_get_contents(compress.zlib:///C:/Apache24/htdocs/cacti/install/templates/Disk IO Usage.xml.gz): failed to open stream: operation failed in C:\Apache24\htdocs\cacti\install\index.php on line 150

Im currently reviewing the code and testing the upgrade/install procedure, if you want to and have the time I would love to get someone to test upgrade/newinstall on windows for version 1.0.0 and give some input.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Windows Installer [Cacti 0.8.8h] [Updated 2016-03-22]

Post by BSOD2600 »

micke2k:
You're busy. I've noticed all your github activity :)

To confirm, you used the installer, upgraded to 1.0.x via github, and that version is broken for importing templates?

Sure, I'm open to suggestions and testers of the upgrade process. I heard there might be a different install wizard within 1.0.x, so I'm kinda waiting on that to finalized before I bake those results into the Windows Installer. Yes, already know I need to update the binaries that are packaged with the installer as they're a few revisions out of date.

The install documentation (http://docs.cacti.net/manual:088:1_inst ... er_windows) will also likely need updating, once they create the 1.0 structure. the more helpers, the better ;)
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Windows Installer [Cacti 0.8.8h] [Updated 2016-03-22]

Post by micke2k »

BSOD2600 wrote:micke2k:

To confirm, you used the installer, upgraded to 1.0.x via github, and that version is broken for importing templates?
Yes:

1. Installed fresh server 2012
2. activated windows snmp
2. downloaded and installed cacti-0.8.8h
3. created a few hosts based on imported templates, made sure graphs were running etc
5. changed the folder htoc/cacti to htoc/cacti-bak
6. went to github downloaded commit as a zip.
7. unpacked it as htoc/cacti
8. edit line 40 in install/index.php

from:

Code: Select all

$old_cacti_version = db_fetch_cell('SELECT cacti FROM version');
to:

Code: Select all

$old_cacti_version = '0.8.8-g';
This is because version -h doesn't exists so installation doesn't want to upgrade otherwise.

9. restarted apache
10. went through with the upgrade.
11. during the upgrade there is a new option for importing templates during the installation(not afterwards as usual), this is what is failing with the error message. The thing is that zlib is supposed to be bundled since php 5.4 so i dont have a clue why the windows template import fails.
12. even though we cant import templates during installation time, the upgrade still works.

So if you have time to look at it, i would really appreciate it, i'm not very fluent on the windows platform :)

So my thought is to test new installation of 1.0 and upgrade of old windows installations with 1.0 to make sure that they run as smooth at Linux installations does before the release.

And yes the documentation will most likely have to be updated as well :)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: 1.0.0 beta install issues

Post by BSOD2600 »

Split off these into their own thread since not related to the installer...

I replicated the upgrade issue too. took a different route for the fix though. \cacti\install\index.php line 38 and added 0.8.8h to the array. Upgrade worked fine then :)

What templates were listed on the upgrade template screen? Mine had a single row, but was empty.
After the upgrade completed and was successful, I was able to import an 0.8.8 data query template with no reported errors. This still work for you?

You mentioned PHP 5.4? The installer bundles PHP 5.6.14. Have left over older install per chance?
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: 1.0.0 beta install issues

Post by micke2k »

What templates were listed on the upgrade template screen? Mine had a single row, but was empty.
Same problem, i believe it is related to the error message, that zlib decompression of the file doesnt work on the windows installation.

This is the problem i need help solving, since it works on Linux.
After the upgrade completed and was successful, I was able to import an 0.8.8 data query template with no reported errors. This still work for you?
Everything else works fine :)
You mentioned PHP 5.4? The installer bundles PHP 5.6.14. Have left over older install per chance?
Sorry, meant it was bundled with php since 5.4. I use your installer on a fresh server.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: 1.0.0 beta install issues

Post by BSOD2600 »

Ah, the errors in the php error log. found them.

Code: Select all

[03-Apr-2016 16:59:30 America/Los_Angeles] PHP Warning:  file_get_contents(compress.zlib:///C:/Apache24/htdocs/cacti/install/templates/Disk IO Usage.xml.gz): failed to open stream: operation failed in C:\Apache24\htdocs\cacti\install\index.php on line 150
Looks like there is an extra forward slash after compress.zlib:/// which per the examples at http://php.net/manual/en/wrappers.compression.php shouldnt work. Guess linux is more forgiving?
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: 1.0.0 beta install issues

Post by micke2k »

BSOD2600 wrote:Ah, the errors in the php error log. found them.

Code: Select all

[03-Apr-2016 16:59:30 America/Los_Angeles] PHP Warning:  file_get_contents(compress.zlib:///C:/Apache24/htdocs/cacti/install/templates/Disk IO Usage.xml.gz): failed to open stream: operation failed in C:\Apache24\htdocs\cacti\install\index.php on line 150
Looks like there is an extra forward slash after compress.zlib:/// which per the examples at http://php.net/manual/en/wrappers.compression.php shouldnt work. Guess linux is more forgiving?

Nice find! i removed one / and it still works as intended on Linux. If you remove it and try, does it work for windows now?

If so well just patch it.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: 1.0.0 beta install issues

Post by BSOD2600 »

Another one of the same to fix on line 186 in install.php. There are other errors though and then after the Template screen, which results in just an error 500 page displayed. More troubleshooting to do...

Code: Select all

[07-Apr-2016 22:24:33 America/Los_Angeles] PHP Fatal error:  Call to undefined function openssl_verify() in C:\Apache24\htdocs\cacti\install\index.php on line 202
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests