GithubHelp home page GithubHelp logo

puppet-clickhouse's Issues

Does not add repository

Hi Max,

I use

node /^clickhouse-([0-9][0-9][0-9])-([0-9][0-9])\.test\.me$/ {
  include 'clickhouse::repo'
}

But the repository does not create
Debian 9

Thank you,

clickhouse_database - errors

Could you help me, please, and provide more details about how to use database?
If I use this

clickhouse_database { 'my_database':
  ensure => 'present',
}

I have got the error message

Error: Could not prefetch clickhouse_database provider 'clickhouse': Execution of '/usr/bin/clickhouse-client -c /root/.clickhouse-client/config.xml -q show databases' returned 1: Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = File not found: /root/.clickhouse-client/config.xml
Error: Failed to apply catalog: Execution of '/usr/bin/clickhouse-client -c /root/.clickhouse-client/config.xml -q show databases' returned 1: Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = File not found: /root/.clickhouse-client/config.xml

require 'xmlsimple' broken puppetserver if xml-simple version 1.1.9 is installed

after setup new puppet server we receive errors in /var/log/messages like:
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/rexml-3.2.5/lib/rexml/parsers/baseparser.rb:108: warning: already initialized constant DEFAULT_ENTITIES

https://github.com/maik/xml-simple FAQ

Answer: The reason for this is, that you’re using XmlSimple explicitly in a rails app. XmlSimple is part of rails (you can find it in ./actionpack-1.12.5/lib/action_controller/vendor/xml_simple.rb). Unfortunately, the library is named "xml_simple.rb" and not "xmlsimple.rb". Ruby’s "require" prevents you from loading a library two times and it does so by checking if a file name occurs more than once. In your case somewhere in the rails framework "require 'xml_simple'" is performed and you run "require 'xmlsimple'" afterwards. Hence, the library is loaded twice and all constants are redefined.

A solution is to only require xml-simple unless XmlSimple has not been defined already.

Also the worst thing is:
ERROR [qtp222747617-2185] [puppetserver] Puppet Could not autoload puppet/parser/functions/clickhouse_config: load error: rexml/document -- java.lang.StackOverflowError: null

ERROR [qtp222747617-2185] [puppetserver] Puppet Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Could not autoload puppet/parser/functions/clickhouse_config: load error: rexml/document -- java.lang.StackOverflowError: null (file: /etc/puppetlabs/code/environments/production/modules/cluster/manifests/user.pp, line: 149, column: 24) (file: /etc/puppetlabs/code/environments/production/modules/cluster/manifests/init.pp, line: 31) on node xxxx.be.core.pw

currently we downgraded xml-simple to 1.1.8, but I suppose that require 'xmlsimple' should be changed to something different in lib/puppet/parser/functions/clickhouse_config.rb

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.