Last modified: 2013-12-27 18:52:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47897, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45897 - puppet has a problem with versions
puppet has a problem with versions
Status: RESOLVED WORKSFORME
Product: Wikimedia Labs
Classification: Unclassified
Infrastructure (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Ryan Lane
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-08 12:59 UTC by Silke Meyer (WMDE)
Modified: 2013-12-27 18:52 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Silke Meyer (WMDE) 2013-03-08 12:59:49 UTC
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
Comment 1 Andrew Bogott 2013-03-08 14:45:32 UTC
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'
Comment 2 Andrew Bogott 2013-12-27 18:52:09 UTC
I'm closing this because I haven't seen it in ages.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links