Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JIRA will not start if the installation directory mode is missing o+x #377

Closed
koraz0815 opened this issue Apr 28, 2021 · 2 comments · Fixed by #378
Closed

JIRA will not start if the installation directory mode is missing o+x #377

koraz0815 opened this issue Apr 28, 2021 · 2 comments · Fixed by #378

Comments

@koraz0815
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: v7.6.1
  • Ruby: 2.0.0
  • Distribution: CentOS 7.9
  • Module version: 5.0.1

How to reproduce (e.g Puppet code you use)

I have set the parameter $installdir and the module change the permissions to root not to user jira.

What are you seeing

$installdir => /opt/atlassian-jira
after puppet agent was running on the machine i see that User jira have no permissions to execute the startup-script in this folder

root@jira:/opt# ll /opt/
total 0
drwxr-xr-x.  7 root root 146 28. Apr 10:35 .
dr-xr-xr-x. 20 root root 257 28. Apr 10:34 ..
drwxr-x---.  3 root root  94 28. Apr 10:35 atlassian-jira

systemd cant start jira and I see the following output in the journalctl -xe

Failed at step EXEC spawning /opt/atlassian-jira/atlassian-jira-software-8.13.6-standalone/bin/start-jira.sh: Permission denied

Maybe I think that this https://github.com/voxpupuli/puppet-jira/blob/master/manifests/install.pp#L45 is not working

@oranenj
Copy link
Contributor

oranenj commented May 7, 2021

The problem seems to be the installdir's permissions: you don't have o+x, so JIRA can't enter any subdirectories.

The ownership was changed to root because this solved a dependency issue if you put the data directory under the installation directory. The JIRA application should never need to write into the directory where the binaries reside; that's what the data directory is for, but it does need to read from it.

The module should probably enforce that the installation directory has 0755 mode

@oranenj
Copy link
Contributor

oranenj commented May 7, 2021

@koraz0815 I created a PR to make sure the installation directory has a sane mode. In the meantime, just chmod 0755 /opt/atlassian-jira and it should start again.

@oranenj oranenj changed the title jira not started JIRA will not start if the installation directory mode is missing o+x May 7, 2021
oranenj added a commit to oranenj/puppet-jira that referenced this issue May 7, 2021
cegeka-jenkins pushed a commit to cegeka/puppet-jira that referenced this issue Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants