Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-26238

The JIRA Linux installer fails to create a JIRA user and does not set permissions correctly.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Highest
    • 4.4.3
    • 5.0
    • Installation
    • Red Hat Enterprise Linux Server release 6.1 (Santiago)
      arch: x86_64

    Description

      There appear to be numerous installation/permission problems on RHEL6.1 x86_64.
      While attempting to install using 'atlassian-jira-5.0-beta3-x64.bin' first the 'useradd' call silently fails. Fixing the useradd problem then leads to start up problems with ownership. The following items are what I found before giving up.

      When attempting to run setup_user.sh the useradd silently fails:
      + useradd jira -c 'Atlassian JIRA' -K UMASK=0077
      useradd: cannot create directory /home/jira

      I modified line 100 of setup_user.sh as follows:
      100c100
      Original < useradd "$username" -c "Atlassian JIRA" -K UMASK=0077

      Modified > useradd "$username" -c "Atlassian JIRA" -K UMASK=0077 -d "$jira_home"

      setup_user.sh runs chmod +x "$install_dir"/bin/*.sh but does not set proper ownership of files in "$install_dir/bin"
      [root bin]# ls -la *.sh
      rwxrr- 1 root root 17592 Oct 25 16:30 catalina.sh
      rwxrr- 1 root root 1065 Oct 25 16:30 config.sh
      rwxrr- 1 root root 1624 Oct 25 16:30 digest.sh
      -rwxr-xr-x 1 root root 1496 Oct 25 16:30 install_linux_service.sh
      rwxrr- 1 root root 1631 Nov 13 17:48 permgen.sh
      rwxrr- 1 root root 4114 Oct 25 16:30 setclasspath.sh
      rwxrr- 1 root root 3986 Oct 25 16:30 setenv.sh
      rwx----- 1 root root 1956 Nov 13 18:21 setup_user_mod.sh
      -rwxr-xr-x 1 root root 1940 Oct 25 16:30 setup_user.sh
      rwxrr- 1 root root 1563 Oct 25 16:30 shutdown.sh
      rwxrr- 1 root root 1257 Oct 25 16:30 start-jira.sh
      rwxrr- 1 root root 1956 Oct 25 16:30 startup.sh
      rwxrr- 1 root root 854 Oct 25 16:30 stop-jira.sh
      rwxrr- 1 root root 3472 Oct 25 16:30 tool-wrapper.sh
      rwxrr- 1 root root 141 Nov 13 17:48 user.sh
      rwxrr- 1 root root 1567 Oct 25 16:30 version.sh
      [root bin]#

      When trying to run start-jira.sh
      [root bin]# ./start-jira.sh

      To run JIRA in the foreground, start the server with start-jira.sh -fg
      executing using dedicated user: jira
      bash: ./startup.sh: Permission denied

      Changing ownership of all of the $install_dir/bin files to jira causes the catalina.sh file to fail:
      [root bin]# ./start-jira.sh

      To run JIRA in the foreground, start the server with start-jira.sh -fg
      executing using dedicated user: jira
      ./startup.sh: line 64: /data/jira/bin/catalina.sh: Permission denied
      ./startup.sh: line 64: exec: /data/jira/bin/catalina.sh: cannot execute: Permission denied
      [root bin]#

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              baa7e465d8e9 Rich Passmore
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: