Giter Club home page Giter Club logo

Comments (10)

mkrakowitzer avatar mkrakowitzer commented on June 17, 2024

I think this may be fixed if you use the github version of the module. Just
busy finishing some other minor updates and plan to push a new version to
the forge which hopefully will fix this for you.

Let me know if that works, if not I'll take a look.
On 12 Jan 2015 23:28, "Zach Daniel" [email protected] wrote:

This question probably leaves much to be desired, and my be resolved
simply with some puppet-fu.

We were receiving errors when starting JIRA in regards to a lack of mysql
drivers. We specified the driver in the dbdriver parameter as
com.mysql.jdbc.Driver, but still ended up needing to add a driver(.jar)
file to <install_directory>/lib/. Due to the fact that JIRA module
declares the directory where this needs to be placed, we can't place the
file in the right place before running the JIRA module. We do it afterwards
then, but by the time we've placed the driver in the right place, JIRA has
finished starting without that required file and is displaying a JIRALocked
page. So we are forced to stop JIRA, place the file, and start JIRA again.
But this means that our nightly puppet runs bounce our JIRA instance. This
could be solved by not needing to add the mysql driver, or by having a good
way to ensure the service is running at the very end of the puppet run.

Any thoughts?


Reply to this email directly or view it on GitHub
#45.

from puppet-jira.

zachdaniel avatar zachdaniel commented on June 17, 2024

Thanks! I'll wait for the forge update and give it a shot.

from puppet-jira.

mkrakowitzer avatar mkrakowitzer commented on June 17, 2024

I have pushed a new version to the forge. Please let me know if it solved your problem.

If you have the time, please consider rating the puppet jira module on the forge :)

from puppet-jira.

mkrakowitzer avatar mkrakowitzer commented on June 17, 2024

Hi Zach

I have been testing the mysql connector on various operating systems.
Both CentOS 6 and Ubuntu 12.04 have this issue: http://bugs.mysql.com/bug.php?id=61201.

MySQL Connector 5.1.16 and 5.1.17 is known not to work with most atlassian products: Ubuntu 12.04 ships 5.1.16. Centos 6 with 5.1.17.

https://confluence.atlassian.com/display/JIRAKB/%27NullPointerException+at+com.mysql.jdbc.ConnectionImpl.getServerCharacterEncoding%27+Error+When+Using+MySQL+Driver+v5.1.16

from puppet-jira.

zachdaniel avatar zachdaniel commented on June 17, 2024

I suspect I'm doing this wrong, but no matter how I configure it I'm getting the Tomcat error 'could not determine database type'

class { '::jira':
    version        => $version,
    installdir     => $install_dir,
    homedir        => $home_dir,
    db             => 'mysql',
    dbuser         => $dbuser,
    dbpassword     => $dbpassword,
    dbserver       => $dbserver,
    dbname         => $dbname,
    dbport         => $dbport,
    dbtype         => 'mysql',
    dbdriver       => 'com.mysql.jdbc.Driver',
    javahome       => '/usr/java/latest/',
    jvm_xmx        => '3584m',
    jvm_permgen    => '3584m',
    require        => File[$install_dir],
    service_ensure => 'running',
    java_opts      => '-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true',
  }

From reading the docs, it looks like everything I want to manage the driver should be defaults.

I wondered if perhaps I shouldn't have been setting $dbdriver, but the documentation is unclear on that topic.

from puppet-jira.

zachdaniel avatar zachdaniel commented on June 17, 2024

I've tried it without dbdriver set, but I see no evidence of it managing or installing any mysql drivers.

from puppet-jira.

zachdaniel avatar zachdaniel commented on June 17, 2024

I think I had a misconception here. I realize now the option to select a jar was all I needed. I just placed the jar before-hand, and pointed to it during the installation. Sorry for the confusion, I would consider this issue addressed, seeing as the MySQL Connector package for CentOS is the reason it wasn't working earlier, not your module.

from puppet-jira.

mkrakowitzer avatar mkrakowitzer commented on June 17, 2024

Hi Zach,

Glad its working, I added a new feature this weekend to download the latest driver and correctly place it. Its not uploaded to the forge yet though. I have just finished testing it on Ubuntu 12.04/14.04/Centos67 and Debian.

I hope to release 1.1.5 this week, just adding some other small features first.

from puppet-jira.

mkrakowitzer avatar mkrakowitzer commented on June 17, 2024

Please consider rating the module on puppet forge if you have time :)

from puppet-jira.

zachdaniel avatar zachdaniel commented on June 17, 2024

Just rated the other day. The module has been a lifesaver in the process of moving from a modified WAR version of JIRA to a standalone.

from puppet-jira.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.