cacti-0.8.7f was release may 26th, please bump ebuild in portage it fixes a lot of bugs, probably also the ones reported here against 0.8.7e (bug #317615 and #324031)
Please bump cacti and spine to 0.8.7g http://forums.cacti.net/viewtopic.php?t=38492
Created attachment 249422 [details] Working ebuild
Created attachment 249424 [details] Working ebuild
Running 0.8.7g here. ~amd64
Created attachment 249647 [details] Cacti-Ebuild 0.8.7g with plugins-patch This cacti-0.8.7g ebuild adds a new USE-Flag "plugins" which leads to inclusion of plugins-patch (see http://cactiusers.org/ for more details) The patch follows ...
Created attachment 249648 [details, diff] Cacti-Plugins-Patch, modified to be applyable in Gentoo-Ebuild This is a slightly modified cacti-plugins-patch to work on gentoo-ebuild 0.8.7g-r1
(In reply to comment #6) > Created an attachment (id=249648) [details] > Cacti-Plugins-Patch, modified to be applyable in Gentoo-Ebuild > > This is a slightly modified cacti-plugins-patch to work on gentoo-ebuild > 0.8.7g-r1 > Forgot to mention, this patch needs to be placed in ${FILESDIR} for the ebuild to build. BR Jens
I am trying to use patch cacti-0.8.7g.ebuild but install fails with error: >>> Install cacti-0.8.7g into /var/tmp/portage/net-analyzer/cacti-0.8.7g/image/ category net-analyzer * (server owned) htdocs/rra * (server owned) htdocs/log/cacti.log * (config) htdocs/include/config.php * ebuild fault: file '/usr/local/portage/net-analyzer/cacti/files/postinstall-en.txt' not found * Please report this as a bug at http://bugs.gentoo.org/ * ERROR: net-analyzer/cacti-0.8.7g failed: * ebuild fault: file '/usr/local/portage/net-analyzer/cacti/files/postinstall-en.txt' not found * * Call stack: * ebuild.sh, line 54: Called src_install * environment, line 3155: Called webapp_postinst_txt 'en' '/usr/local/portage/net-analyzer/cacti/files/postinstall-en.txt' * environment, line 3959: Called webapp_checkfileexists '/usr/local/portage/net-analyzer/cacti/files/p * environment, line 3762: Called die * The specific snippet of code: * die "$msg"; * * If you need support, post the output of 'emerge --info =net-analyzer/cacti-0.8.7g', * the complete build log and the output of 'emerge -pqv =net-analyzer/cacti-0.8.7g'. * This ebuild is from an overlay: '/usr/local/portage/' * The complete build log is located at '/var/log/portage/net-analyzer:cacti-0.8.7g:20101013-194539.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/cacti-0.8.7g/temp/environment' * S: '/var/tmp/portage/net-analyzer/cacti-0.8.7g/work/cacti-0.8.7g' Am I missing a step? ls -alF /usr/local/portage/net-analyzer/cacti/ -rw-r--r-- 1 root root 2123 Oct 13 12:32 cacti-0.8.7g.ebuild -rw-r--r-- 1 root root 1799 Oct 13 12:33 Manifest
(In reply to comment #8) > I am trying to use patch cacti-0.8.7g.ebuild but install fails with error: > >>> Install cacti-0.8.7g into /var/tmp/portage/net-analyzer/cacti-0.8.7g/image/ category net-analyzer > * (server owned) htdocs/rra > * (server owned) htdocs/log/cacti.log > * (config) htdocs/include/config.php > * ebuild fault: file > '/usr/local/portage/net-analyzer/cacti/files/postinstall-en.txt' not found Did you copy original FILESDIR-Contents? You should copy cp -av /usr/portage/net-analyzer/cacti/files /usr/local/portage/net-analyzer/files BR Jens
Created attachment 250491 [details] cacti-spine-0.8.7g-r1.ebuild Hi, I simply forgot to attach last time ... here we go this is the cacti-spine-0.8.7g-r1.ebuild which contains the latest official-upstream patches for spine (as cacti-0.8.7g-r1 does). BR Jens
I managed to install both net-analyzer/cacti-spine-0.8.7g-r1 and net-analyzer/cacti-0.8.7g using your ebuilds, after copying /usr/portage/net-analyzer/cacti/files to /usr/local/portage/net-analyzer/cacti. Thank you. Based on the post install message, I unmerge the old cacti: emerge -Cav =cacti-0.8.7e-r2 Many programs print a post install message with webapp-config upgrade syntax, thought I don't know if this is standard practice. e.g. webapp-config -U -h localhost -d cacti cacti 0.8.7g Upon upgrading my vhost that command, I noticed my include/config.php was over written, so I had to reset the mysql db settings. When using 0.8.7e-r2, I noticed although apache user has write permission to the rra directory, it does not always create rrd files (not due to permission issue), and that problem is still present after the upgrade. Probably unrelated to the ebuild.
Created attachment 250617 [details] cacti-spine-0.8.7g-r1.ebuild with fixed permissions Recommended solution from upstream for rrds not being created correctly (described in comment #11) is setting suid-bit on spine. Added this to cacti-spine-0.8.7g-r1.ebuild BR Jens
(In reply to comment #11) > I managed to install both net-analyzer/cacti-spine-0.8.7g-r1 and > net-analyzer/cacti-0.8.7g using your ebuilds, after copying > /usr/portage/net-analyzer/cacti/files to /usr/local/portage/net-analyzer/cacti. > Thank you. > > Based on the post install message, I unmerge the old cacti: > emerge -Cav =cacti-0.8.7e-r2 > > Many programs print a post install message with webapp-config upgrade syntax, > thought I don't know if this is standard practice. e.g. webapp-config -U -h > localhost -d cacti cacti 0.8.7g I did not change the postinstall-en.txt but you are right, it should be added when pushing ebuild into portage-tree > Upon upgrading my vhost that command, I noticed my include/config.php was over > written, so I had to reset the mysql db settings. This is surprising as the file is correctly set as webapp_configfile inside the ebuild. I tried to reproduce this but in my install it works as expected. > > When using 0.8.7e-r2, I noticed although apache user has write permission to > the rra directory, it does not always create rrd files (not due to permission > issue), and that problem is still present after the upgrade. Probably > unrelated to the ebuild. Upstrean recommends to set suid-bit on spine. I added this to the ebuild (see above) BR Jens
Hi, One short question to the "officials" ... this issue is open for three month now, but there is still no injection to official portage-tree. Official portage tree is still on 0.8.7e, while upstream is already two release further on! If you need a new maintainer for the cacti-project, or better say if the current maintainers do not want to maintain the project any longer, I'd like to offer take-over of this job. BR Jens
Hrm. See also the security bug 324031. Thanks.
Bumped PHP to 5.3.3. Now seeing deprecation warnings. Obviously, stuff still runs. While I don't know if the latest Cacti ameliorates these warnings, still, it would be nice to update. --- PHP Deprecated: Function split() is deprecated in /var/www/localhost/htdocs/cacti/poller.php on line 77 PHP Deprecated: Function split() is deprecated in /var/www/localhost/htdocs/cacti/poller.php on line 178 PHP Deprecated: Function split() is deprecated in /var/www/localhost/htdocs/cacti/cmd.php on line 60 PHP Deprecated: Function eregi_replace() is deprecated in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 367 PHP Deprecated: Function eregi_replace() is deprecated in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 367 PHP Deprecated: Function eregi_replace() is deprecated in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 367 PHP Deprecated: Function eregi_replace() is deprecated in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 367 PHP Deprecated: Function eregi_replace() is deprecated in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 367 PHP Deprecated: Function eregi_replace() is deprecated in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 367 PHP Deprecated: Function eregi_replace() is deprecated in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 367 PHP Deprecated: Function eregi_replace() is deprecated in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 367 PHP Deprecated: Function eregi_replace() is deprecated in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 367 PHP Deprecated: Function eregi_replace() is deprecated in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 367 PHP Deprecated: Function eregi_replace() is deprecated in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 367 PHP Deprecated: Function eregi_replace() is deprecated in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 367 PHP Deprecated: Function eregi_replace() is deprecated in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 367 PHP Deprecated: Function eregi_replace() is deprecated in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 367 <snip>
Please, bumb cacti version in portage. 0.8.7e is broken against PHP 5.3.
Thank you guys for report. New version was just added to the tree. Jens, if I missed anything, please let me know. Sorry for delay, finally fixed.
Hi, thank you for bumping to 0.8.7.g ... but ... the -r1 I submitted contains upstream-patches and cacti-plugins-architecture-patch. Hoping it's worth a look ... Currently working on Plugin-Architecture 2.9 implementation, but still having couple of issues with it. Will open a new bug when 2.9 plugin-architecture runs stable on my site. BR Jens
> thank you for bumping to 0.8.7.g ... but ... the -r1 I submitted contains > upstream-patches In tree ebuild contains them too. Or what do I miss? > and cacti-plugins-architecture-patch. Hoping it's worth a look > Currently working on Plugin-Architecture 2.9 implementation, but still having > couple of issues with it. Will open a new bug when 2.9 plugin-architecture > runs stable on my site. Yes, please, open new bug report with diff attached and I'll look. Thank you!
Hi, sorry, you are right, I somehow overread the patches in your ebuild. BTW: I opened Bug #346741 for cacti-0.8.7g with the plugin-architecture-2.9 patch My issues were not related to the patch but the plugin I used for testing ;-) BR Jens