Quick blurbs about my daily struggle with technology. You'll likely to find ramblings about Linux, Java, home networks and Cloud computing.
Search This Blog
Monday, July 26, 2010
Atlassian Stack: Subversion and Mercurial Installation
I've got a few moments so I figured I would take an easy task and install Subversion and Mercurial. I'm not sure if the Atlassian stack supports Mercurial but I'm going to install anyway, just in case. In Greenhopper, I moved the two tasks from the to-do list into my in-progress list by simply dragging and dropping the two cards from one column to the other. I was in the Task Board view at the time. Using Synaptic, I installed the subversion, subversion-tools, mercurial and mercurial-server packages. The mercurial server installation failed with a post-install trigger failure. Since I'm not even sure if I can use that server, I decided not to worry about the problem. I created a subversion user and group who will own the Subversion repository area. I made my local account a member of the subversion group. As my local user, I created the Subversion repository: svnadmin create /opt/svn. I then changed the ownership over to the subversion account and made the group bit sticky: sudo chown -R subversion:subversion /opt/svn followed by sudo chmod -R g+s /opt/svn. Lastly, I modified a copy of the /etc/init/jira.conf so that it would start Subverion in daemon mode at startup. I tested the server by using Subversion over SSH: svn list svn+ssh://localhost/opt/svn. I created a mercurial user and group and added my local account to the mercurial group. I then created a directory that will hold the various mercurial repositories making sure to set the ownership to mercurial:mercurial and making the group bit sticky. I'll admit that I didn't do any real testing but I think that when we discover an issue in the future, I'll be able to use the bug tracking features in Greenhopper. I went into GH, logged the amount of time I worked on each issue and the resolved the task.
Atlassian Stack: GreenHopper Configuration
I'm following the GreenHopper 101 document to make sure that the basic configuration is correct.
- install the recommended Labels plugin so I can make use of Epics
- shutdown Jira: sudo service jira stop
- copy the Labels plug into Jira: sudo -u jira cp jira-labels-plugin-2.4.jar /opt/jira/plugins/installed-plugins/
- restart jira: sudo service jira start
- follow the directions for configuring Jira for Scrum
- create a new project category:Installation
- create a new project: Atlassian
- set the project to use the Scrum template
- add Kanban constraints to the project (I don't see the view that the instructions say I should have). I noticed that the Task view wasn't coming up and the error message said it was because the project didn't have a release date. I added a version to the project and gave it a release date. Now I can get into the Task view but I don't see the Compact (Kanban) they say I should see. I looked and Googled but never found anything. Eventually, I gave up. I might take advantage of my support and see if they can help.
- I had to create a new dashboard based on the default dashboard before I could add the Agile gadget indicated by the directions
- I opened up GHS-1194 to see if Atlassian can help with the missing Compact (Kanban) menu selection.
- Going back into the server after Atlassian commented on my ticket, I found that the missing menu selection was available. I'm guessing I had to reboot the server to make everything appear.
- I was finally able to configure the constraints as described in the document. Multiple columns can be constrained so I just followed the example and did one.
- I should comment that while I was waiting for Atlassian to get back to me, I created 5 stories for Sprint 1 of the project. I'm not sure if that, plus the server reboot, caused the Kanban menu selection to appear but I wanted to note it none the less.
Tuesday, July 20, 2010
Atlassian Stack: Crowd and Jira Integration
- Followed the Crowd Administration Guide, specifically the section on adding an application
- create a Crowd directory for Jira. I called mine Jira
- create three groups in Crowd: jira-users, jira-developers, jira-administrators and add them to the Jira directory
- create at least one user who is in all 3 groups
- define the Jira application in crowd following the instructions provided
- copy the Crowd client libraries into the Jira application. I stopped the jira server. Removed the existing crowd client jar, copied the new one from /opt/crowd/client and set the permissions so that the file was owned by the jira user and group.
- replace Jira's cache configuration file in /opt/jira/atlassian-jira/WEB-INF/classes crowd-ehcache.xml with the one in /opt/crowd/client/conf and reset the file ownership
- edit /opt/jira/atlassian-jira/WEB-INF/classes/osuser.xml and add the Crowd specific section described in the instructions
- edit /opt/jira/atlassian-jira/WEB-INF/classes/seraph-config.xml as instructed
- start jira
- log into Jira using the new Crowd user
- enable external user management as instructed
Atlassian Stack: GreenHopper
- grab a copy of GreenHopper, standalone version
- follow the installation guide
- shutdown jira - sudo service jira stop
- copy the GreenHopper jar to /opt/jira/plugins/installed-plugins. I also had to change permissions on the file to be owned by the jira user and group.
- start jira - sudo service jira start
- hit http://localhost:8080/ and log in as the administrator
- follow the directions for entering in the GreenHopper license
Atlassian Stack: Jira (autostart)
I found these directions for configuring Jira to auto-start. The main recipe is for the old System V mechanism but a reader left a note on how to set things up for Upstart, which is what my Ubuntu installation uses. I'll use his configuration file which I dropped into /etc/init. All I did was edit his configuration to match my directory names, rebooted and then verified that I could hit http://localhost:8080/. Worked like a champ. Onto the next application.
Monday, July 19, 2010
Atlassian Stack: Jira
Next up is Jira, the task/bug tracking portion of the stack.
- Grabbed the standalone version and unpacked into the /opt directory.
- Made a soft link to the install so upgrades will be a bit easier: ln -s atlassian-jira-enterprise-4.1.2-standalone jra
- edit /opt/jira/atlassian-jira/WEB-INF/classes/jira-application.properties so that jira.home points /opt/jira
- used Webmin to create a user just for the Jira process. I called mine, wait for it...jira.
- changed ownership of the jira installation directory to be owned by the jira user
- start up jira as the jira user: sudo -u jira /opt/jira/bin/startup.sh
- I got a PermGen switch warning which pointed me to the troubleshooting guide. Decided not to worry about it until I actually do run out of PermGen space
- I realized that the instructions did not walk me through how to connect Jira to my database so I shutdown the instance and followed those directions.
- using Webmin, I created a new db user named: jirauser and gave it all permissions
- using Webmin, created a new database name jira making sure to set it to use UTF-8 encodings
- copy the MySQL JDBC driver to the /opt/jira/lib directory. Once I did that, I saw that a JDBC driver already existed in that directory, although a slightly older one, so I removed mine and left things as is.
- run the Jira configuration tool: sudo -u jira /opt/jira/bin/config.sh . I had a problem doing this because the jira account isn't meant for logging in and doesn't have an environment. To work around this, I reset the permissions on the installation directory to my account and re-ran the tool. Once I made the proper configuration choices, I reset the files back to being owned by the jira account.
- started jira again using the command in step 6
- connected to Jira via the web browser: http://localhost:8080/
- ran through the configuration wizard. Decided to not accept the default directories and use /opt/jira-home instead. Figured I wouldn't lose data to upgrades if I did a stand alone directory.
Sunday, July 18, 2010
Atlassian Stack: Crowd (auto-start)
One final tweak I need to make to Crowd is to get it to start automatically at system start up. I'm using the Setting Crowd to Run Automatically and Use an Unprivileged System User on UNIX directions to make that happen. Here are the basics of the steps I ran:
- using Webmin, create a crowd user and a crowd group, making sure to not allow the crowd user the ability to actually log in
- changed ownership of the crowd installation directory and the crow-home directory so that they they were owned by the new crowd user and crowd group: sudo chown -R crowd:crowd /opt/atlassian-crowd-2.0.6/ and sudo chown -R crowd:crowd /opt/crowd-home/ (the provided script in the instructions did not appear to change all the permissions needed).
- used the /etc/init/crowd.conf provided by a reader in the notes (current Ubuntu uses a slightly different startup/shutdown mechanism: upstart) instead of the Sys V script provided in the doc
- issued sudo service crowd start from the command line to start up crowd
- verified crowd had started by hitting http://localhost:8095/crowd/
Subscribe to:
Posts (Atom)