https://bugzilla.wikimedia.org/show_bug.cgi?id=52872

       Web browser: ---
            Bug ID: 52872
           Summary: eventlogging role requires python server module, port
                    forwarding, and special flags
           Product: Tools
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: MediaWiki-Vagrant
          Assignee: o...@wikimedia.org
          Reporter: sp...@wikimedia.org
                CC: o...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

I added the eventlogging role some time ago, but couldn't run
server/bin/eventlogging-devserver

I followed /vagrant/mediawiki/extensions/EventLogging/server/README.rst with a
couple of modifications.
a)    $ sudo apt-get install -y python-coverage python-mysqldb python-nose \
        python-pip python-sqlalchemy python-zmq python-pymongo
needs a backslash line continuation character at end of first line

b) `setup.py install` didn't work, python setup.py install failed "error: can't
create or remove files in install directory" because it's trying to install to
/usr/local/lib/python2.7/dist-packages/.  Ori suggested `sudo python setup.py
install`, that worked.

Now I can run `eventlogging-devserver --port 8100`.  These fixes could go in
README.rst.

The next problem is my host machine can't connect to port 8100 on the VM, I
added the following to Vagrantfile:
    # To enable client-side event logging in the 'eventlogging' role,
    # uncomment these two lines:
    config.vm.network :forwarded_port,
       guest: 8100, host: 8100, id: 'eventlogging'

The next issue is to get eventlogging-devserver to listen to requests from the
host machine on the virtual ethernet adapter as well as to local requests
within the VM, you need to run `eventlogging-devserver --port 8100 --host
0.0.0.0`.

Some portion of these steps could be automated as part of the eventlogging
puppet role, and/or there could be vagrant-specific documentation of them
somewhere.

FWIW the naive developer expectation might be that enabling eventlogging role
would log both client and server events to vagrant/logs/eventlogging.log.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to