Page MenuHomePhabricator

puppet has a problem with versions
Closed, DeclinedPublic

Description

This used to be an e-mail conversation between Andrew Bogott and me. As the error has come back, I'm opening this bug.

Puppet doesn't run because of an apt / versions problem, it's giving the error below. Fixing it manually seems to get overridden by puppet.

The webserver.pp lines referred to in the error:

Line 42 ;)
package { [ "apache2", "libapache2-mod-php5" ]:

ensure => latest;

}

Line 79
package { php5-mysql:

ensure => latest;

}

err: /Stage[main]/Webserver::Php5-mysql/Package[php5-mysql]/ensure:
change from 5.3.10-1ubuntu3.5 to 5.3.10-1ubuntu3.4+wmf1 failed: Could
not update: Execution of '/usr/bin/apt-get -q -y -o
DPkg::Options::=--force-confold install php5-mysql' returned 100:
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:

libapache2-mod-php5 php5-cli php5-common

Suggested packages:

php-pear php5-suhosin

The following packages will be DOWNGRADED:

libapache2-mod-php5 php5-cli php5-common php5-mysql

0 upgraded, 0 newly installed, 4 downgraded, 0 to remove and 0 not
upgraded.
Need to get 6598 kB of archives.
After this operation, 264 kB disk space will be freed.
E: There are problems and -y was used without --force-yes

at /etc/puppet/manifests/webserver.pp:79

err: /Stage[main]/Webserver::Php5/Package[libapache2-mod-php5]/ensure:
change from 5.3.10-1ubuntu3.5 to 5.3.10-1ubuntu3.4+wmf1 failed: Could
not update: Execution of '/usr/bin/apt-get -q -y -o
DPkg::Options::=--force-confold install libapache2-mod-php5' returned
100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:

php5-cli php5-common php5-mysql

Suggested packages:

php-pear php5-suhosin

The following packages will be DOWNGRADED:

libapache2-mod-php5 php5-cli php5-common php5-mysql

0 upgraded, 0 newly installed, 4 downgraded, 0 to remove and 0 not
upgraded.
Need to get 6598 kB of archives.
After this operation, 264 kB disk space will be freed.
E: There are problems and -y was used without --force-yes

at /etc/puppet/manifests/webserver.pp:42

Version: unspecified
Severity: normal

Details

Reference
bz45897

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:30 AM
bzimport added a project: Cloud-VPS.
bzimport set Reference to bz45897.

This isn't exactly a puppet bug... it's something a little bit off in the apt repository. Someone pinned a downgraded version of php5-mysql, and puppet won't automatically downgrade packages.

I can't find any explanation for this in the server log, but in the meantime you can resolve the problem by just running 'sudo apt-get install php-mysql'

I'm closing this because I haven't seen it in ages.