GithubHelp home page GithubHelp logo

Comments (5)

j1n6 avatar j1n6 commented on August 19, 2024

from bamboo.

mrz001 avatar mrz001 commented on August 19, 2024

How to set BAMBOO_ZK_HOST?

from bamboo.

j1n6 avatar j1n6 commented on August 19, 2024

it would be the same format:

zk://username:password@host1:port1,host2:port2,.../path

from bamboo.

mrz001 avatar mrz001 commented on August 19, 2024

I have set BAMBOO_ZK_HOST=dcos:[email protected]:2181,172.24.4.113:2181,172.24.4.114:2181 ,
but it still shows "zk: not authenticated".

  • set -ex
  • export HA_PORT=20011
  • dockerize -template /opt/bamboo/config/haproxy.tmplt.cfg.dockerize:/opt/bamboo/config/haproxy_template.cfg
  • cat /opt/bamboo/config/haproxy_template.cfg
  • cat /opt/bamboo/config/haproxy.tmplt.cfg.bamboo
  • export HAPROXY_STATS_USERNAME=admin
  • export HAPROXY_STATS_PASSWORD=admin
  • export HAPROXY_STATS_ENDPOINT=/haproxy_stats
  • export HAPROXY_PORT=20011
  • export HAPROXY_STATS_PORT=9001
  • /usr/local/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid
    [WARNING] 290/124510 (13) : config : log format ignored for frontend 'http-stats' since it has no log address.
    [WARNING] 290/124510 (13) : config : log format ignored for frontend 'http-in' since it has no log address.
    [WARNING] 290/124510 (13) : stats socket will not work as expected in multi-process mode (nbproc > 1), you should force process binding globally using 'stats bind-process' or per socket using the 'process' attribute.
    [WARNING] 290/124510 (13) : Proxy 'http-stats': in multi-process mode, stats will be limited to process assigned to the current request.
  • /opt/bamboo/bamboo -config=/opt/bamboo/config/production.json -bind=:8001
    2017/10/18 12:45:10 Using environment override MARATHON_ENDPOINT=http://172.24.4.112:8081,http://172.24.4.113:8081,http://172.24.4.114:8081
    2017/10/18 12:45:10 Using environment override MARATHON_USER=dcos
    2017/10/18 12:45:10 Using environment override MARATHON_PASSWORD=dcos
    2017/10/18 12:45:10 Environment variable not set: MARATHON_USE_EVENT_STREAM
    2017/10/18 12:45:10 Using environment override BAMBOO_ENDPOINT=http://172.24.4.112:8001
    2017/10/18 12:45:10 Using environment override BAMBOO_ZK_HOST=dcos:[email protected]:2181,172.24.4.113:2181,172.24.4.114:2181
    2017/10/18 12:45:10 Using environment override BAMBOO_ZK_PATH=/bamboo8081
    2017/10/18 12:45:10 Environment variable not set: STATSD_ENABLED
    2017/10/18 12:45:10 Starting update loop
    2017/10/18 12:45:10 bamboo_startup => 2017-10-18T12:45:10+08:00
    2017/10/18 12:45:10 Queuing an haproxy update.
    panic: zk: not authenticated

from bamboo.

mrz001 avatar mrz001 commented on August 19, 2024

I find there is a TODO list in bamboo/configuration/zookeeper.go .

package configuration

import (
"strings"
"time"
)

/*
Zookeeper configuration set
*/
type Zookeeper struct {
// comma separated host:port connection strings set
Host string
// zookeeper path
Path string
// Delay n seconds to report change event
ReportingDelay int64

// TODO: authentication parameters for zookeeper

}

func (zk Zookeeper) Delay() time.Duration {
return time.Duration(zk.ReportingDelay) * time.Second
}

func (zk Zookeeper) ConnectionString() []string {
return strings.Split(zk.Host, ",")
}

from bamboo.

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.