Page MenuHomePhabricator

Interface 'Psr\Log\LoggerAwareInterface' not found in /vagrant/mediawiki/includes/profiler/TransactionProfiler.php on line 36
Closed, ResolvedPublic

Description

Got this on a fresh install:

==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: PHP Fatal error:  Interface 'Psr\Log\LoggerAwareInterface' not found in /vagrant/mediawiki/includes/profiler/TransactionProfiler.php on line 36
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: PHP Stack trace:
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: PHP   1. {main}() /vagrant/mediawiki/maintenance/install.php:0
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: PHP   2. require_once() /vagrant/mediawiki/maintenance/install.php:158
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: PHP   3. require_once() /vagrant/mediawiki/maintenance/doMaintenance.php:97
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: PHP   4. Profiler::instance() /vagrant/mediawiki/includes/Setup.php:36
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: PHP   5. Profiler->__construct() /vagrant/mediawiki/includes/profiler/Profiler.php:83
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: PHP   6. spl_autoload_call() /vagrant/mediawiki/includes/profiler/Profiler.php:53
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: PHP   7. AutoLoader::autoload() /vagrant/mediawiki/includes/profiler/Profiler.php:0
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: PHP   8. require() /vagrant/mediawiki/includes/AutoLoader.php:90
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: 
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: Fatal error: Interface 'Psr\Log\LoggerAwareInterface' not found in /vagrant/mediawiki/includes/profiler/TransactionProfiler.php on line 36
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: 
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns: Call Stack:
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns:     0.0029     262936   1. {main}() /vagrant/mediawiki/maintenance/install.php:0
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns:     0.0185     595928   2. require_once('/vagrant/mediawiki/maintenance/doMaintenance.php') /vagrant/mediawiki/maintenance/install.php:158
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns:     0.4161    3187584   3. require_once('/vagrant/mediawiki/includes/Setup.php') /vagrant/mediawiki/maintenance/doMaintenance.php:97
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns:     0.4216    3233752   4. Profiler::instance() /vagrant/mediawiki/includes/Setup.php:36
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns:     0.4273    3248440   5. Profiler->__construct() /vagrant/mediawiki/includes/profiler/Profiler.php:83
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns:     0.4273    3248720   6. spl_autoload_call() /vagrant/mediawiki/includes/profiler/Profiler.php:53
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns:     0.4273    3248760   7. AutoLoader::autoload() /vagrant/mediawiki/includes/profiler/Profiler.php:0
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Wiki[devwiki]/Exec[wiki_setup]/returns:     0.4352    3308928   8. require('/vagrant/mediawiki/includes/profiler/TransactionProfiler.php') /vagrant/mediawiki/includes/AutoLoader.php:90
==> default: Error: /usr/local/bin/multiversion-install /vagrant/mediawiki --wiki wiki --dbname wiki --dbpass vagrant --dbuser root --pass vagrant --scriptpath /w --server http://127.0.0.1:10000 --confpath /vagrant/settings.d/wikis/wiki  wiki admin
==> default:  returned 255 instead of one of [0]

Full log:

Event Timeline

Tgr raised the priority of this task from to Needs Triage.
Tgr updated the task description. (Show Details)
Tgr added a project: MediaWiki-Vagrant.
Tgr subscribed.

I guess composer did not run properly, or there is some sort of circular dependency between composer and the installer?

I guess composer did not run properly, or there is some sort of circular dependency between composer and the installer?

The files are there, and the composer-generated autoloader as well.

Re-running vagrant provision seems to have fixed it.

Tgr triaged this task as High priority.Jul 6 2015, 9:36 PM

Can we change vagrant to use the master branch of the plugin? Or have them do a bugfix release? Setting up new vagrant boxes is broken because of this.

Change 223195 had a related patch set uploaded (by BryanDavis):
Update composer-merge-plugin to v1.2.1

https://gerrit.wikimedia.org/r/223195

Change 223196 had a related patch set uploaded (by BryanDavis):
Update composer-merge-plugin to v1.2.1

https://gerrit.wikimedia.org/r/223196

Change 223195 merged by Legoktm:
Update composer-merge-plugin to v1.2.1

https://gerrit.wikimedia.org/r/223195

Change 223196 merged by jenkins-bot:
Update composer-merge-plugin to v1.2.1

https://gerrit.wikimedia.org/r/223196

Working for me now. Tested by updating mediawiki-core to latest HEAD (eba9321), deleting mediawiki/vendor, and running composer update one and only one time. Composer run ended with "Generating optimized autoload files" as expected.

I seem to have a similar problem to the one described here.

Could you please take a look at https://www.mediawiki.org/w/index.php?title=Topic:Stuowiejd7hdqb8h&topic_showPostId=suf3ebn7c72olrgi&fromnotif=1#flow-post-suf3ebn7c72olrgi ?

Any suggestion?

Thank you in advance!