Bug management/Bugzilla Labs instance

From MediaWiki.org
Jump to: navigation, search

Logging in[edit | edit source]

  • Setting up Labs access: https://wikitech.wikimedia.org/wiki/Help:Access#Accessing_public_and_private_instances
  • ssh -Av <username>@bastion.wmflabs.org
    
  • ssh -v boogs
    
  • sudo -s
    
  • Pull in our Bugzilla custom changes for Gerrit repository
    • cd /srv/bugzilla/modifications
      
    • git pull origin master
      
    • cp -r /srv/bugzilla/modifications /srv/bugzilla/bugzilla-x.y.z/
      
    • cd ..
      
    • ./checksetup.pl
      
  • Bugmail is enabled so you can create a test account on your own. In case you need the Bugzilla default account Bugzilla login information, see
    • more /srv/bugzilla/answerfile.pl
      

Creating new instances / Setting public IPs[edit | edit source]

Other helpful commands[edit | edit source]

  • copying files from your local machine to the Labs instance
    • Create software archive locally and copy to Labs instance:
    • tar -cvzf archive.tgz foldername/
      
    • scp archive.tgz <username>@<instance>.pmtpa.wmflabs:/home/<username>
      
    • On Labs instance, extract the archive (and then move to intended folder):
    • tar -xvzf needinfo.tgz
      
  • Restarting Apache / MySQL daemons
    • /etc/init.d/apache2 restart
      
    • /etc/init.d/mysql restart
      
  • Updating the host system
    • apt-get dist-upgrade
      

Troubleshooting[edit | edit source]