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

MySQL Connector is not installing with correct directory permissions #241

Closed
vrmerlin opened this issue Apr 5, 2018 · 1 comment · Fixed by #356
Closed

MySQL Connector is not installing with correct directory permissions #241

vrmerlin opened this issue Apr 5, 2018 · 1 comment · Fixed by #356

Comments

@vrmerlin
Copy link

vrmerlin commented Apr 5, 2018

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.3.5
  • Ruby: 2.0.0p648
  • Distribution: Puppet Enterprise
  • Module version: 3.4.1

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

I installed JIRA with this configuration (after a successful MySQL installation):

  class { 'jira':
    version             => '7.8.1',
    installdir          => '/opt/atlassian-jira',
    db                  => 'mysql',
    dbtype              => 'mysql',
    dbname              => 'jiradb',
    dbuser              => 'jiradbuser',
    dbdriver            => 'com.mysql.jdbc.Driver',
    dbpassword          => 'xxx',
    dbserver            => 'localhost',
    dbport              => '3306',
    javahome            => '/usr/java/default',
    jvm_xmx             => '3584m',
    jvm_xms             => '3584m',
    download_url        => 'http://localrepo:6000/atlassian',
    mysql_connector_version => '5.1.46',
    mysql_connector_url => 'http://localrepo:6000/atlassian',
  }

What are you seeing

Everything seems to install right in Puppet, but JIRA starts up and complains it can't find the MySQL connector JAR file. I can see it DID install though, in /opt/MySQL-connector.

What behaviour did you expect instead

The problem appears to be that the JIRA module creates the permissions wrong for /opt/MySQL-connector. The directory is given permissions of drwxr-x--- and is owned by root. This means user jira can't see inside the directory. When I manually change the permissions using chmod a+rx /opt/MySQL-connector and restart JIRA, then JIRA can see the database and things work fine.

Is there a workaround, or is it possible to get a new version of the JIRA module that sets the permissions correctly for /opt/MySQL-connector? I'd prefer it not be owned by user jira, as I'll be installing some other Atlassian tools on the same machine (and hopefully, they will use the same connector).

lgooch added a commit to lgooch/puppet-jira that referenced this issue Nov 26, 2020
@lgooch
Copy link

lgooch commented Nov 26, 2020

This issue has recently caused me some pain as well so I've fixed the issue and opened a PR to merge the fix in.

oranenj added a commit to cybercom-finland/puppet-jira that referenced this issue Apr 14, 2021
@ekohl ekohl linked a pull request Apr 14, 2021 that will close this issue
oranenj added a commit that referenced this issue Apr 14, 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