librelist archives

« back to archive

startup problems

startup problems

From:
Ulf Byskov
Date:
2011-10-14 @ 06:03
Hi,

I decided to take Photon for a spin.

Installation was easy, no problems there, but actually
running something is another matter.

When I run the self test I get the following:

>hnu selftest
Photon 0.2.0 by Loïc d'Anterroches and contributors.
Using PHPUnit 3.6.0RC4 by Sebastian Bergmann.

PHP Notice:  Undefined index: addUncoveredFilesFromWhitelist in 
/usr/share/php/PHPUnit/TextUI/TestRunner.php on line 254
PHP Stack trace:
PHP   1. {main}() /usr/bin/phpunit:0
PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46
PHP   3. PHPUnit_TextUI_Command->run() 
/usr/share/php/PHPUnit/TextUI/Command.php:125
PHP   4. PHPUnit_TextUI_TestRunner->doRun() 
/usr/share/php/PHPUnit/TextUI/Command.php:187
PHP Fatal error:  Uncaught exception 'InvalidArgumentException' in 
/usr/share/php/PHP/CodeCoverage.php:386
Stack trace:
#0 /usr/share/php/PHPUnit/TextUI/TestRunner.php(255): 
PHP_CodeCoverage->setProcessUncoveredFilesFromWhitelist(NULL)
#1 /usr/share/php/PHPUnit/TextUI/Command.php(187): 
PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), 
Array)
#2 /usr/share/php/PHPUnit/TextUI/Command.php(125): 
PHPUnit_TextUI_Command->run(Array, true)
#3 /usr/bin/phpunit(46): PHPUnit_TextUI_Command::main()
#4 {main}
  thrown in /usr/share/php/PHP/CodeCoverage.php on line 386
PHP Warning:  file_get_contents(/tmp/phpunitzaH5Y3.xml): failed to open 
stream: No such file or directory in /usr/share/php/photon/manager.php on 
line 1234
PHP Stack trace:
PHP   1. {main}() /usr/share/php/photon.php:0
PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
PHP   3. file_get_contents() /usr/share/php/photon/manager.php:1234
PHP Warning:  unlink(/tmp/phpunitzaH5Y3.xml): No such file or directory in
/usr/share/php/photon/manager.php on line 1236
PHP Stack trace:
PHP   1. {main}() /usr/share/php/photon.php:0
PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
PHP   3. unlink() /usr/share/php/photon/manager.php:1236
PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1238
PHP Stack trace:
PHP   1. {main}() /usr/share/php/photon.php:0
PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1238
PHP Stack trace:
PHP   1. {main}() /usr/share/php/photon.php:0
PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1239
PHP Stack trace:
PHP   1. {main}() /usr/share/php/photon.php:0
PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1239
PHP Stack trace:
PHP   1. {main}() /usr/share/php/photon.php:0
PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
PHP Stack trace:
PHP   1. {main}() /usr/share/php/photon.php:0
PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
PHP Stack trace:
PHP   1. {main}() /usr/share/php/photon.php:0
PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
PHP Stack trace:
PHP   1. {main}() /usr/share/php/photon.php:0
PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
PHP Stack trace:
PHP   1. {main}() /usr/share/php/photon.php:0
PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
PHP Warning:  Division by zero in /usr/share/php/photon/manager.php on line 1240
PHP Stack trace:
PHP   1. {main}() /usr/share/php/photon.php:0
PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
Code coverage / (0%)

I used Mongrel-v1.7.5 and zeromq-v2.1.7 and PHP 5.3.6

Any idea?

Re: [photon.users] startup problems

From:
Loic d'Anterroches
Date:
2011-10-14 @ 07:32
Hello,

For what I can read, the error is coming from PHPUnit. You are using the
3.6.0RC4, which is a release candidate, maybe this is the issue.

I am running PHPUnit 3.5.15 without issues. Is it possible for you to
downgrade PHPUnit?

I think it is time for me to use use phpfarm to run several versions of
PHP/PEAR to run the tests.

http://cweiske.de/tagebuch/Introducing%20phpfarm.htm

Regards,
loïc

> I decided to take Photon for a spin.
> 
> Installation was easy, no problems there, but actually
> running something is another matter.
> 
> When I run the self test I get the following:
> 
>> hnu selftest
> Photon 0.2.0 by Loïc d'Anterroches and contributors.
> Using PHPUnit 3.6.0RC4 by Sebastian Bergmann.
> 
> PHP Notice:  Undefined index: addUncoveredFilesFromWhitelist in 
/usr/share/php/PHPUnit/TextUI/TestRunner.php on line 254
> PHP Stack trace:
> PHP   1. {main}() /usr/bin/phpunit:0
> PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46
> PHP   3. PHPUnit_TextUI_Command->run() 
/usr/share/php/PHPUnit/TextUI/Command.php:125
> PHP   4. PHPUnit_TextUI_TestRunner->doRun() 
/usr/share/php/PHPUnit/TextUI/Command.php:187
> PHP Fatal error:  Uncaught exception 'InvalidArgumentException' in 
/usr/share/php/PHP/CodeCoverage.php:386
> Stack trace:
> #0 /usr/share/php/PHPUnit/TextUI/TestRunner.php(255): 
PHP_CodeCoverage->setProcessUncoveredFilesFromWhitelist(NULL)
> #1 /usr/share/php/PHPUnit/TextUI/Command.php(187): 
PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), 
Array)
> #2 /usr/share/php/PHPUnit/TextUI/Command.php(125): 
PHPUnit_TextUI_Command->run(Array, true)
> #3 /usr/bin/phpunit(46): PHPUnit_TextUI_Command::main()
> #4 {main}
>   thrown in /usr/share/php/PHP/CodeCoverage.php on line 386
> PHP Warning:  file_get_contents(/tmp/phpunitzaH5Y3.xml): failed to open 
stream: No such file or directory in /usr/share/php/photon/manager.php on 
line 1234
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP   3. file_get_contents() /usr/share/php/photon/manager.php:1234
> PHP Warning:  unlink(/tmp/phpunitzaH5Y3.xml): No such file or directory 
in /usr/share/php/photon/manager.php on line 1236
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP   3. unlink() /usr/share/php/photon/manager.php:1236
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1238
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1238
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1239
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1239
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Warning:  Division by zero in /usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> Code coverage / (0%)
> 
> I used Mongrel-v1.7.5 and zeromq-v2.1.7 and PHP 5.3.6
> 
> Any idea?

Re: [photon.users] startup problems

From:
Andrew Nimmo
Date:
2011-10-14 @ 06:44
Do you have the uuid and/or imagick php extensions loaded? There appears 
to be a problem, possibly related to thread local storage, with these 
extensions and the php-zmq extension which causes a segmentation fault. In
the selftest, this happens prior to the creation of the XML file in /tmp. 

Disabling the uuid and imagick extensions should give you a working setup 
which passes the selftest. 

Hope this helps, 
Andrew

----
Andrew Nimmo


On 14 Oct 2011, at 08:03, Ulf Byskov <ulf.byskov@codemate.com> wrote:

> Hi,
> 
> I decided to take Photon for a spin.
> 
> Installation was easy, no problems there, but actually
> running something is another matter.
> 
> When I run the self test I get the following:
> 
>> hnu selftest
> Photon 0.2.0 by Loïc d'Anterroches and contributors.
> Using PHPUnit 3.6.0RC4 by Sebastian Bergmann.
> 
> PHP Notice:  Undefined index: addUncoveredFilesFromWhitelist in 
/usr/share/php/PHPUnit/TextUI/TestRunner.php on line 254
> PHP Stack trace:
> PHP   1. {main}() /usr/bin/phpunit:0
> PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46
> PHP   3. PHPUnit_TextUI_Command->run() 
/usr/share/php/PHPUnit/TextUI/Command.php:125
> PHP   4. PHPUnit_TextUI_TestRunner->doRun() 
/usr/share/php/PHPUnit/TextUI/Command.php:187
> PHP Fatal error:  Uncaught exception 'InvalidArgumentException' in 
/usr/share/php/PHP/CodeCoverage.php:386
> Stack trace:
> #0 /usr/share/php/PHPUnit/TextUI/TestRunner.php(255): 
PHP_CodeCoverage->setProcessUncoveredFilesFromWhitelist(NULL)
> #1 /usr/share/php/PHPUnit/TextUI/Command.php(187): 
PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), 
Array)
> #2 /usr/share/php/PHPUnit/TextUI/Command.php(125): 
PHPUnit_TextUI_Command->run(Array, true)
> #3 /usr/bin/phpunit(46): PHPUnit_TextUI_Command::main()
> #4 {main}
>  thrown in /usr/share/php/PHP/CodeCoverage.php on line 386
> PHP Warning:  file_get_contents(/tmp/phpunitzaH5Y3.xml): failed to open 
stream: No such file or directory in /usr/share/php/photon/manager.php on 
line 1234
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP   3. file_get_contents() /usr/share/php/photon/manager.php:1234
> PHP Warning:  unlink(/tmp/phpunitzaH5Y3.xml): No such file or directory 
in /usr/share/php/photon/manager.php on line 1236
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP   3. unlink() /usr/share/php/photon/manager.php:1236
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1238
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1238
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1239
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1239
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Warning:  Division by zero in /usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> Code coverage / (0%)
> 
> I used Mongrel-v1.7.5 and zeromq-v2.1.7 and PHP 5.3.6
> 
> Any idea?

Re: [photon.users] startup problems

From:
Ulf Byskov
Date:
2011-10-14 @ 15:42
Hi,

I tried several versions of PHPUnit without getting it to work.

I would be good if you listed what versions of the dependencies
are known to work.

Also I suspect that the latest Pear dependencies are fetched
when you are using --alldeps. Just a guess, since I got a RC
version of PHPUnit.

In any case, I was able to run a server successfully, which was
the most important, after all.

Also, thanks for responding so quickly.


Regards
UB

----- Original Message -----
From: "Loic d'Anterroches" <loic@ceondo.com>
To: "photon users" <photon.users@librelist.com>
Sent: Friday, October 14, 2011 10:32:48 AM
Subject: Re: [photon.users] startup problems

Hello,

For what I can read, the error is coming from PHPUnit. You are using the
3.6.0RC4, which is a release candidate, maybe this is the issue.

I am running PHPUnit 3.5.15 without issues. Is it possible for you to
downgrade PHPUnit?

I think it is time for me to use use phpfarm to run several versions of
PHP/PEAR to run the tests.

http://cweiske.de/tagebuch/Introducing%20phpfarm.htm

Regards,
loïc

> I decided to take Photon for a spin.
> 
> Installation was easy, no problems there, but actually
> running something is another matter.
> 
> When I run the self test I get the following:
> 
>> hnu selftest
> Photon 0.2.0 by Loïc d'Anterroches and contributors.
> Using PHPUnit 3.6.0RC4 by Sebastian Bergmann.
> 
> PHP Notice:  Undefined index: addUncoveredFilesFromWhitelist in 
/usr/share/php/PHPUnit/TextUI/TestRunner.php on line 254
> PHP Stack trace:
> PHP   1. {main}() /usr/bin/phpunit:0
> PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46
> PHP   3. PHPUnit_TextUI_Command->run() 
/usr/share/php/PHPUnit/TextUI/Command.php:125
> PHP   4. PHPUnit_TextUI_TestRunner->doRun() 
/usr/share/php/PHPUnit/TextUI/Command.php:187
> PHP Fatal error:  Uncaught exception 'InvalidArgumentException' in 
/usr/share/php/PHP/CodeCoverage.php:386
> Stack trace:
> #0 /usr/share/php/PHPUnit/TextUI/TestRunner.php(255): 
PHP_CodeCoverage->setProcessUncoveredFilesFromWhitelist(NULL)
> #1 /usr/share/php/PHPUnit/TextUI/Command.php(187): 
PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), 
Array)
> #2 /usr/share/php/PHPUnit/TextUI/Command.php(125): 
PHPUnit_TextUI_Command->run(Array, true)
> #3 /usr/bin/phpunit(46): PHPUnit_TextUI_Command::main()
> #4 {main}
>   thrown in /usr/share/php/PHP/CodeCoverage.php on line 386
> PHP Warning:  file_get_contents(/tmp/phpunitzaH5Y3.xml): failed to open 
stream: No such file or directory in /usr/share/php/photon/manager.php on 
line 1234
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP   3. file_get_contents() /usr/share/php/photon/manager.php:1234
> PHP Warning:  unlink(/tmp/phpunitzaH5Y3.xml): No such file or directory 
in /usr/share/php/photon/manager.php on line 1236
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP   3. unlink() /usr/share/php/photon/manager.php:1236
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1238
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1238
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1239
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1239
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Notice:  Trying to get property of non-object in 
/usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> PHP Warning:  Division by zero in /usr/share/php/photon/manager.php on line 1240
> PHP Stack trace:
> PHP   1. {main}() /usr/share/php/photon.php:0
> PHP   2. photon\manager\SelfTest->run() /usr/share/php/photon.php:220
> Code coverage / (0%)
> 
> I used Mongrel-v1.7.5 and zeromq-v2.1.7 and PHP 5.3.6
> 
> Any idea?