[Puppet Users] Re: new release of puppetsurvey
Hi, I changed line 147 in application/models/PuppetHosts.php and removed the (int) reference - now it works! The new line is as follows: $reportdate = basename($file, '.yaml'); instead of: $reportdate = (int) basename($file, '.yaml'); Kind regards, Matt 2009/11/17 Matthew Macdonald-Wallace : > Philip wrote: >> Thank you for the clue with the max integer Size. Yes i develop on a >> 64bit System and had no problems converting. Will test it on 32Bit >> Systems and provide a Patch. > > Hi, > > If you need someone to test the patch, let me know as at the moment > puppetsurvey is picking up all the nodes I'm using but always gives > the following error: > > > > An error occurred > Application error > Exception information: > > Message: Failed to open file: > fopen(/var/lib/puppet/reports//2147483647.yaml) > [function.fopen]: failed to open stream: No such file or directory > Stack trace: > > #0 /var/www/html/puppetsurvey/application/models/PuppetHost.php(157): > Horde_Yaml::loadFile('/var/lib/puppet...') > #1 /var/www/html/puppetsurvey/application/models/PuppetHost.php(115): > Default_Model_PuppetHost->parsePuppetReports() > #2 /var/www/html/puppetsurvey/application/models/Report.php(55): > Default_Model_PuppetHost->__construct('...') > #3 > /var/www/html/puppetsurvey/application/controllers/ReportController.php(59): > Default_Model_Report->__construct('...') > #4 /var/lib/php/ZendFramework-1.9.5/library/Zend/Controller/Action.php(133): > ReportController->init() > #5 > /var/lib/php/ZendFramework-1.9.5/library/Zend/Controller/Dispatcher/Standard.php(262): > Zend_Controller_Action->__construct(Object(Zend_Controller_Request_Http), > Object(Zend_Controller_Response_Http), Array) > #6 /var/lib/php/ZendFramework-1.9.5/library/Zend/Controller/Front.php(946): > Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), > Object(Zend_Controller_Response_Http)) > #7 > /var/lib/php/ZendFramework-1.9.5/library/Zend/Application/Bootstrap/Bootstrap.php(77): > Zend_Controller_Front->dispatch() > #8 /var/lib/php/ZendFramework-1.9.5/library/Zend/Application.php(358): > Zend_Application_Bootstrap_Bootstrap->run() > #9 /var/www/html/puppetsurvey/public/index.php(26): Zend_Application->run() > #10 {main} > > Request Parameters: > > array ( > 'controller' => 'report', > 'action' => 'index', > 'hostname' => '', > 'module' => 'default', > ) > == > > (I've removed the actual node name and replaced it with in > the error above.) > > It would be great if we could get this working. > > Cheers, > > M. > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~--~~~~--~~--~--~---
[Puppet Users] Re: new release of puppetsurvey
Philip wrote: > Thank you for the clue with the max integer Size. Yes i develop on a > 64bit System and had no problems converting. Will test it on 32Bit > Systems and provide a Patch. Hi, If you need someone to test the patch, let me know as at the moment puppetsurvey is picking up all the nodes I'm using but always gives the following error: An error occurred Application error Exception information: Message: Failed to open file: fopen(/var/lib/puppet/reports//2147483647.yaml) [function.fopen]: failed to open stream: No such file or directory Stack trace: #0 /var/www/html/puppetsurvey/application/models/PuppetHost.php(157): Horde_Yaml::loadFile('/var/lib/puppet...') #1 /var/www/html/puppetsurvey/application/models/PuppetHost.php(115): Default_Model_PuppetHost->parsePuppetReports() #2 /var/www/html/puppetsurvey/application/models/Report.php(55): Default_Model_PuppetHost->__construct('...') #3 /var/www/html/puppetsurvey/application/controllers/ReportController.php(59): Default_Model_Report->__construct('...') #4 /var/lib/php/ZendFramework-1.9.5/library/Zend/Controller/Action.php(133): ReportController->init() #5 /var/lib/php/ZendFramework-1.9.5/library/Zend/Controller/Dispatcher/Standard.php(262): Zend_Controller_Action->__construct(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http), Array) #6 /var/lib/php/ZendFramework-1.9.5/library/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #7 /var/lib/php/ZendFramework-1.9.5/library/Zend/Application/Bootstrap/Bootstrap.php(77): Zend_Controller_Front->dispatch() #8 /var/lib/php/ZendFramework-1.9.5/library/Zend/Application.php(358): Zend_Application_Bootstrap_Bootstrap->run() #9 /var/www/html/puppetsurvey/public/index.php(26): Zend_Application->run() #10 {main} Request Parameters: array ( 'controller' => 'report', 'action' => 'index', 'hostname' => '', 'module' => 'default', ) == (I've removed the actual node name and replaced it with in the error above.) It would be great if we could get this working. Cheers, M. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~--~~~~--~~--~--~---
[Puppet Users] Re: new release of puppetsurvey
Thank you for the clue with the max integer Size. Yes i develop on a 64bit System and had no problems converting. Will test it on 32Bit Systems and provide a Patch. The error about the missing argument is fixed in Release 0.2.1 which is available for dowonload now. Greetings Philip On Nov 6, 6:59 pm, Bostjan Skufca wrote: > I am getting the same error also. > > Also, on 32-bit platform I get incorrectly casted string to int, like > this: > Message: Failed to open file: fopen(/var/puppet/reports/ > sentry.servers.creatim.net/2147483647.yaml) [function.fopen]: failed > to open stream: No such file or directory > > This comes from report file listing, which casts filename called > 20091103212423.yaml into int, in /application/models/PuppetHost, line > 146: > $reportdate = (int) basename($file, '.yaml'); > > Indeed what it does is this: it converts filename 20091103212423.yaml > into integer 2147483647 on 32-bit platform. > > Hope this helps, > b. > > directly translates into number 2.147.xxx.xxx (max positive integer), > for which then file does not exist. This is > > On Nov 6, 12:15 am, Nicolas Brisac wrote: > > > Hi, > > > I'm trying to run puppetsurvey on 64-bit too, with all dependencies > > installed (correctly I think), and I'm getting the following error: > > > Warning : Missing argument 1 for Zend_View_Helper_LinkTo::linkTo() in > > /var/www/puppetsurvey/application/views/helpers/LinkTo.php on line 6 > > > Any idea? > > > Thanks > > Nico > > > - "Bostjan Skufca" wrote: > > > > Are you developing this on 64-bit platform? > > > > b. > > > > PS: Question arised when I started debugging PHP errors I got on my > > > system while trying to run it - again:) > > > > On 4 nov., 20:26, Philip wrote: > > > > I have released a new version of puppetsurvey on sourfeforge. Please > > > > have a look athttp://puppetsurvey.sourceforge.netandletme know > > > > your feedback. > > > > > Thank you > > > > Philip --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~--~~~~--~~--~--~---
[Puppet Users] Re: new release of puppetsurvey
Hi, I'm trying to run puppetsurvey on 64-bit too, with all dependencies installed (correctly I think), and I'm getting the following error: Warning : Missing argument 1 for Zend_View_Helper_LinkTo::linkTo() in /var/www/puppetsurvey/application/views/helpers/LinkTo.php on line 6 Any idea? Thanks Nico - "Bostjan Skufca" wrote: > > Are you developing this on 64-bit platform? > > b. > > PS: Question arised when I started debugging PHP errors I got on my > system while trying to run it - again:) > > On 4 nov., 20:26, Philip wrote: > > I have released a new version of puppetsurvey on sourfeforge. Please > > have a look athttp://puppetsurvey.sourceforge.netand let me know > > your feedback. > > > > Thank you > > Philip > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~--~~~~--~~--~--~---
[Puppet Users] Re: new release of puppetsurvey
Are you developing this on 64-bit platform? b. PS: Question arised when I started debugging PHP errors I got on my system while trying to run it - again:) On 4 nov., 20:26, Philip wrote: > I have released a new version of puppetsurvey on sourfeforge. Please > have a look athttp://puppetsurvey.sourceforge.netand let me know > your feedback. > > Thank you > Philip --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~--~~~~--~~--~--~---