Page MenuHomePhabricator

Role echo throws errors at vagrant
Closed, InvalidPublic

Description

I activated the role echo, and deactivated it later, after it throws errors during running 'vagrant provision'. After removing there is still the same error:

==> default: Error: /usr/bin/mysql -uroot -pvagrant -qfsAe "USE wikishared; SOURCE /vagrant/mediawiki/extensions/Echo/db_patches/echo_unread_wikis.sql;" returned 1 instead of one of [0]
==> default: Error: /Stage[main]/Role::Echo/Mysql::Sql[create echo_unread_wikis]/Exec[create echo_unread_wikis]/returns: change from notrun to 0 failed: /usr/bin/mysql -uroot -pvagrant -qfsAe "USE wikishared; SOURCE /vagrant/mediawiki/extensions/Echo/db_patches/echo_unread_wikis.sql;" returned 1 instead of one of [0]

Is there a way to fix this? It is very annoying if you had to control the whole 'vagrant provision' run, because this commands throws this error now at all runs.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

First, we should figure out why that is failing.

Do:

vagrant ssh
/usr/bin/mysql -uroot -pvagrant -qfsAe "USE wikishared; SOURCE /vagrant/mediawiki/extensions/Echo/db_patches/echo_unread_wikis.sql;"

Maybe you have an old version of Echo without that file (just need to do vagrant git-update or git pull in the Echo directory).

The reason it's still running if you disabled Echo is probably that you are still using something depending on Echo.

vagrant roles list --enabled

shows what roles you have.

git grep include.*echo

shows what uses Echo.

Sorry, I posted the wrong command at first. See edited one.

I got the actual version of echo, (created that cluster temporary today, just for one experiment, and I deleted it two hours ago, but I can try to replicate it in the next days)

Reopen if you can reproduce. See my comment above about what to check.