djoos-cookbooks / phpunit Goto Github PK
View Code? Open in Web Editor NEWRepository for PHPUnit cookbook
Home Page: http://community.opscode.com/cookbooks/phpunit
Repository for PHPUnit cookbook
Home Page: http://community.opscode.com/cookbooks/phpunit
http://community.opscode.com/cookbooks/phpunit/comments#comment_comment_1251
Hi, I started getting this error today, when i tried to run the phpunit cookbook. ================================================================================ Error executing action upgrade
on resource 'php_pear[PHPUnit]' ================================================================================ Mixlib::ShellOut::CommandTimeout -------------------------------- command timed out: ---- Begin output of pear -d preferred_state=stable search -c pear.phpunit.de PHPUnit ---- STDOUT: Retrieving data...0% ....50%... STDERR: ---- End output of pear -d preferred_state=stable search -c pear.phpunit.de PHPUnit ---- Cookbook Trace: --------------- /var/chefrepo/cookbooks/php/providers/pear.rb:253:in pecl?' /var/chefrepo/cookbooks/php/providers/pear.rb:107:in
load_current_resource' Resource Declaration: --------------------- # In /var/chefrepo/cookbooks/phpunit/recipes/pear.rb 32: php_pear "PHPUnit" do 33: channel pearhub_chan.channel_name 34: if node[:phpunit][:version] != "latest" 35: version "#{node[:phpunit][:version]}" 36: end 37: action :upgrade if node[:phpunit][:version] == "latest" Compiled Resource: ------------------ # Declared in /var/chefrepo/cookbooks/phpunit/recipes/pear.rb:32:in `from_file' php_pear("PHPUnit") do package_name "PHPUnit" recipe_name "pear" channel "pear.phpunit.de" cookbook_name :phpunit retry_delay 2 preferred_state "stable" retries 0 action [:upgrade] end
But running the following command on the terminal works. =========== sudo pear -d preferred_state=stable search -c pear.phpunit.de PHPUnit
After following the instructions as per TESTING.md, running bundle exec rake
gives me the following:
No examples found.
Finished in 0.37701 seconds
0 examples, 0 failures
================================================================================
Error executing action `install` on resource 'package[php5-cgi]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '100'
---- Begin output of apt-get -q -y install php5-cgi=5.3.10-1ubuntu3.6 ----
STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
php5-common
Suggested packages:
php-pear php5-suhosin
The following NEW packages will be installed:
php5-cgi php5-common
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 6,533 kB of archives.
After this operation, 17.2 MB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-common amd64 5.3.10-1ubuntu3.6
404 Not Found [IP: 91.189.91.13 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main php5-common amd64 5.3.10-1ubuntu3.6
404 Not Found [IP: 91.189.91.13 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main php5-cgi amd64 5.3.10-1ubuntu3.6
404 Not Found [IP: 91.189.91.13 80]
STDERR: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-common_5.3.10-1ubuntu3.6_amd64.deb 404 Not Found [IP: 91.189.91.13 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-cgi_5.3.10-1ubuntu3.6_amd64.deb 404 Not Found [IP: 91.189.91.13 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
---- End output of apt-get -q -y install php5-cgi=5.3.10-1ubuntu3.6 ----
Ran apt-get -q -y install php5-cgi=5.3.10-1ubuntu3.6 returned 100
Resource Declaration:
---------------------
# In /tmp/kitchen/cookbooks/php/recipes/package.rb
59: package pkg do
60: action :install
61: end
62: end
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cookbooks/php/recipes/package.rb:59:in `block in from_file'
package("php5-cgi") do
action [:install]
retries 0
retry_delay 2
guard_interpreter :default
package_name "php5-cgi"
version "5.3.10-1ubuntu3.6"
cookbook_name :php
recipe_name "package"
end
[2014-04-22T23:22:17+00:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers:
[2014-04-22T23:22:17+00:00] ERROR: Running exception handlers
Running handlers complete
[2014-04-22T23:22:17+00:00] ERROR: Exception handlers complete
[2014-04-22T23:22:17+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 7.215515341 seconds
Is this expected? Assuming not, do you have a solution off-hand? If not, I don't mind taking a look, if this is indeed an issue.
When using a phar as the install method the specified version is not respected.
You should be able to download a version of the phar. Viewing the phar's listed here the URL takes the form of https://phar.phpunit.de/phpunit-5.0.3.phar, therefore it should be trivial to include the version in the URL.
Implement changes - Preparing for PHPUnit 6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.