I'm trying to test the Wikipedia EventLogging schemas in my local Vagrant setup. But somehow they won't get recognized by the eventlogging server (/vagrant/logs/eventlogging.log is empty):
# /var/log/upstart/eventlogging-devserver.log Traceback (most recent call last): File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run self.result = application(self.environ, self.start_response) File "/vagrant/srv/eventlogging/bin/eventlogging-devserver", line 156, in handle_event event, errors = validate(log_line) File "/vagrant/srv/eventlogging/bin/eventlogging-devserver", line 131, in validate schema = eventlogging.get_schema(scid, encapsulate=True) File "/vagrant/srv/eventlogging/eventlogging/schema.py", line 79, in get_schema validate_scid(scid) File "/vagrant/srv/eventlogging/eventlogging/schema.py", line 153, in validate_scid raise ValidationError('Invalid revision ID %s' % revision) ValidationError: Invalid revision ID -1
I enabled the event logging role via Vagrant:
vagrant roles enable eventlogging vagrant provision
I trigger events via JS console:
mw.loader.load( 'ext.eventLogging' ); mw.eventLog.logEvent( 'CentralAuth', { 'version': 1, 'action': 'sul2-autologin-login', 'userId': 1 } ); # CentralAuth is active ( https://meta.wikimedia.org/wiki/Schema_talk:CentralAuth )
I added schema API url to several config files:
$wgEventLoggingSchemaApiUri = 'https://meta.wikimedia.org/w/api.php'; # /vagrant/LocalSettings.php # /vagrant/settings.d/puppet-managed/05-EventLogging.php # /vagrant/settings.d/01-EventLogging.php
What's wrong with my setup and how can I fix it?