iRail / gtfs-tdt

Loads GTFS into MySQL and serves next departures and arrivals at a certain stop from The DataTank
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

vagrant provision tdt gives problems #13

Closed pietercolpaert closed 9 years ago

pietercolpaert commented 9 years ago

Problem with installing libapache2-mod-php5 using apt-get

Error stack trace:

==> tdt: [2015-04-15T13:16:25+00:00] INFO: execute[apt-cache gencaches] ran successfully
==> tdt: [2015-04-15T13:16:25+00:00] INFO: Running queued delayed notifications before re-raising exception
==> tdt: [2015-04-15T13:16:25+00:00] ERROR: Running exception handlers
==> tdt: [2015-04-15T13:16:25+00:00] ERROR: Exception handlers complete
==> tdt: [2015-04-15T13:16:25+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> tdt: [2015-04-15T13:16:25+00:00] ERROR: package[libapache2-mod-php5] (tdt::default line 46) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '100'
==> tdt: ---- Begin output of apt-get -q -y install libapache2-mod-php5=5.5.23+dfsg-1+deb.sury.org~trusty+2 ----
==> tdt: STDOUT: Reading package lists...
==> tdt: Building dependency tree...
==> tdt: Reading state information...
==> tdt: The following extra packages will be installed:
==> tdt:   libonig2 libqdbm14 php5-cgi php5-cli php5-common php5-readline
==> tdt: Suggested packages:
==> tdt:   php5-user-cache
==> tdt: The following NEW packages will be installed:
==> tdt:   libapache2-mod-php5 libonig2 libqdbm14
==> tdt: The following packages will be upgraded:
==> tdt:   php5-cgi php5-cli php5-common php5-readline
==> tdt: 4 upgraded, 3 newly installed, 0 to remove and 56 not upgraded.
==> tdt: Need to get 9,246 kB of archives.
==> tdt: After this operation, 9,220 kB of additional disk space will be used.
==> tdt: WARNING: The following packages cannot be authenticated!
==> tdt:   php5-readline php5-cli php5-cgi php5-common libapache2-mod-php5
==> tdt: STDERR: E: There are problems and -y was used without --force-yes
==> tdt: ---- End output of apt-get -q -y install libapache2-mod-php5=5.5.23+dfsg-1+deb.sury.org~trusty+2 ----
==> tdt: Ran apt-get -q -y install libapache2-mod-php5=5.5.23+dfsg-1+deb.sury.org~trusty+2 returned 100
==> tdt: 
==> tdt: ================================================================================
==> tdt: Error executing action `install` on resource 'package[libapache2-mod-php5]'
==> tdt: ================================================================================
==> tdt: 
==> tdt: 
==> tdt: Mixlib::ShellOut::ShellCommandFailed
==> tdt: ------------------------------------
==> tdt: Expected process to exit with [0], but received '100'
==> tdt: ---- Begin output of apt-get -q -y install libapache2-mod-php5=5.5.23+dfsg-1+deb.sury.org~trusty+2 ----
==> tdt: STDOUT: Reading package lists...
==> tdt: Building dependency tree...
==> tdt: Reading state information...
==> tdt: The following extra packages will be installed:
==> tdt:   libonig2 libqdbm14 php5-cgi php5-cli php5-common php5-readline
==> tdt: Suggested packages:
==> tdt:   php5-user-cache
==> tdt: The following NEW packages will be installed:
==> tdt:   libapache2-mod-php5 libonig2 libqdbm14
==> tdt: The following packages will be upgraded:
==> tdt:   php5-cgi php5-cli php5-common php5-readline
==> tdt: 4 upgraded, 3 newly installed, 0 to remove and 56 not upgraded.
==> tdt: Need to get 9,246 kB of archives.
==> tdt: After this operation, 9,220 kB of additional disk space will be used.
==> tdt: WARNING: The following packages cannot be authenticated!
==> tdt:   php5-readline php5-cli php5-cgi php5-common libapache2-mod-php5
==> tdt: STDERR: E: There are problems and -y was used without --force-yes
==> tdt: ---- End output of apt-get -q -y install libapache2-mod-php5=5.5.23+dfsg-1+deb.sury.org~trusty+2 ----
==> tdt: Ran apt-get -q -y install libapache2-mod-php5=5.5.23+dfsg-1+deb.sury.org~trusty+2 returned 100
==> tdt: 
==> tdt: 
==> tdt: Resource Declaration:
==> tdt: ---------------------
==> tdt: # In /tmp/vagrant-chef-2/chef-solo-2/cookbooks/tdt/recipes/default.rb
==> tdt: 
==> tdt:  46: ).each { | pkg | package pkg }
==> tdt:  47: 
==> tdt: 
==> tdt: 
==> tdt: 
==> tdt: Compiled Resource:
==> tdt: ------------------
==> tdt: # Declared in /tmp/vagrant-chef-2/chef-solo-2/cookbooks/tdt/recipes/default.rb:46:in `block in from_file'
==> tdt: 
==> tdt: package("libapache2-mod-php5") do
==> tdt:   action :install
==> tdt:   retries 0
==> tdt:   retry_delay 2
==> tdt:   package_name "libapache2-mod-php5"
==> tdt:   version "5.5.23+dfsg-1+deb.sury.org~trusty+2"
==> tdt:   cookbook_name :tdt
==> tdt:   recipe_name "default"
==> tdt: end
==> tdt: 
==> tdt: 
==> tdt: 
==> tdt: [2015-04-15T13:15:28+00:00] INFO: Forking chef instance to converge...
==> tdt: [2015-04-15T13:16:25+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
brechtvdv commented 9 years ago

Do you get an error when you SSH and ' sudo apt-get install libapache2-mod-php5'?

pietercolpaert commented 9 years ago

I get an extra question on not being able to authenticate something:

vagrant@tdt:~$  sudo apt-get install libapache2-mod-php5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libonig2 libqdbm14 php5-cgi php5-cli php5-common php5-readline
Suggested packages:
  php5-user-cache
The following NEW packages will be installed:
  libapache2-mod-php5 libonig2 libqdbm14
The following packages will be upgraded:
  php5-cgi php5-cli php5-common php5-readline
4 upgraded, 3 newly installed, 0 to remove and 59 not upgraded.
Need to get 9,246 kB of archives.
After this operation, 9,220 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
WARNING: The following packages cannot be authenticated!
  php5-readline php5-cli php5-cgi php5-common libapache2-mod-php5

And an extra question on which php.ini to keep

After that, it works :)

pietercolpaert commented 9 years ago

See #14, I think the problem lies within an unauthorizable software repo