Details
-
Bug
-
Resolution: Fixed
-
Highest
-
5.0
-
Red Hat Enterprise Linux Server release 6.1 (Santiago)
arch: x86_64
-
5
-
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
- duplicates
-
JRASERVER-25794 On some flavours of Linux, when the automated JIRA Linux installer is executed with root-level privileges, the 'jira' user account is not created.
- Closed