I run chronos authentication failedchronos :
--mesos_authentication_principal tjop_chronos 
--mesos_authentication_secret_file 
/usr/local/services/tjop_chronos/bin/../conf/chronos.secret
/usr/local/services/tjop_chronos/bin/../conf/chronos.secret only one line
tjop_chronos




chronos log:


17:48:20.573 [main] INFO org.apache.mesos.chronos.scheduler.Main$ - 
---------------------
17:48:20.576 [main] INFO org.apache.mesos.chronos.scheduler.Main$ - 
Initializing chronos.
17:48:20.576 [main] INFO org.apache.mesos.chronos.scheduler.Main$ - 
---------------------
17:48:20.901 [main] INFO org.apache.mesos.chronos.scheduler.config.MainModule - 
Wiring up the application
2017-02-21 17:48:21,316:22123(0x7f89cc4aa700):ZOO_INFO@log_env@726: Client 
environment:zookeeper.version=zookeeper C client 3.4.8
2017-02-21 17:48:21,316:22123(0x7f89cc4aa700):ZOO_INFO@log_env@730: Client 
environment:host.name=
2017-02-21 17:48:21,316:22123(0x7f89cc4aa700):ZOO_INFO@log_env@737: Client 
environment:os.name=Linux
2017-02-21 17:48:21,316:22123(0x7f89cc4aa700):ZOO_INFO@log_env@738: Client 
environment:os.arch=
2017-02-21 17:48:21,316:22123(0x7f89cc4aa700):ZOO_INFO@log_env@739: Client 
environment:os.version=
2017-02-21 17:48:21,316:22123(0x7f89cc4aa700):ZOO_INFO@log_env@747: Client 
environment:user.name=
2017-02-21 17:48:21,316:22123(0x7f89cc4aa700):ZOO_INFO@log_env@755: Client 
environment:user.home=/root
2017-02-21 17:48:21,316:22123(0x7f89cc4aa700):ZOO_INFO@log_env@767: Client 
environment:user.dir=/usr/local/services/tjop_chronos301-1.0
2017-02-21 17:48:21,316:22123(0x7f89cc4aa700):ZOO_INFO@zookeeper_init@800: 
Initiating client connection, 
host=10.168.23.11:2181,10.171.43.37:2181,10.170.15.211:2181 
sessionTimeout=10000 watcher=0x7f89d2440568 sessionId=0 sessionPasswd=<null> 
context=0x7f89ac0019e0 flags=0
2017-02-21 17:48:21,317:22123(0x7f89b7fff700):ZOO_INFO@check_events@1728: 
initiated connection to server [10.171.43.37:2181]
2017-02-21 17:48:21,325:22123(0x7f89b7fff700):ZOO_INFO@check_events@1775: 
session establishment complete on server [10.171.43.37:2181], 
sessionId=0x259d9cb0da2007e, negotiated timeout=10000
17:48:21.387 [main] INFO org.apache.curator.framework.imps.CuratorFrameworkImpl 
- Starting
17:48:21.388 [main] DEBUG org.apache.curator.CuratorZookeeperClient - Starting
17:48:21.389 [main] DEBUG org.apache.curator.ConnectionState - Starting
17:48:21.389 [main] DEBUG org.apache.curator.ConnectionState - reset
17:48:21.394 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
17:48:21.395 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:host.name=
17:48:21.395 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:java.version=1.8.0_20
17:48:21.395 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:java.vendor=Oracle Corporation
17:48:21.395 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:java.home=/usr/local/services/jdk1_8u20-1.0/jre
17:48:21.395 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:java.class.path=/usr/local/services/tjop_chronos/bin/../lib/chronos.jar
17:48:21.395 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
17:48:21.395 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:java.io.tmpdir=/tmp
17:48:21.395 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:java.compiler=<NA>
17:48:21.395 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:os.name=Linux
17:48:21.395 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:os.arch=amd64
17:48:21.395 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:os.version=
17:48:21.395 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:user.name=root
17:48:21.395 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:user.home=/root
17:48:21.395 [main] INFO org.apache.zookeeper.ZooKeeper - Client 
environment:user.dir=/usr/local/services/tjop_chronos301-1.0
17:48:21.396 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client 
connection, 
connectString=10.168.23.11:2181,10.171.43.37:2181,10.170.15.211:2181 
sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@250b236d
17:48:21.399 [main] DEBUG org.apache.zookeeper.ClientCnxn - 
zookeeper.disableAutoWatchReset is false
17:48:21.424 [main] INFO 
org.apache.mesos.chronos.scheduler.config.ZookeeperModule - Connecting to ZK...
17:48:21.424 [main-SendThread(10.170.15.211:2181)] INFO 
org.apache.zookeeper.ClientCnxn - Opening socket connection to server 
10.170.15.211/10.170.15.211:2181. Will not attempt to authenticate using SASL 
(unknown error)
17:48:21.469 [main-SendThread(10.170.15.211:2181)] INFO 
org.apache.zookeeper.ClientCnxn - Socket connection established to 
10.170.15.211/10.170.15.211:2181, initiating session
17:48:21.471 [main-SendThread(10.170.15.211:2181)] DEBUG 
org.apache.zookeeper.ClientCnxn - Session establishment request sent on 
10.170.15.211/10.170.15.211:2181
17:48:21.480 [main-SendThread(10.170.15.211:2181)] INFO 
org.apache.zookeeper.ClientCnxn - Session establishment complete on server 
10.170.15.211/10.170.15.211:2181, sessionid = 0x359d9cb12ea0060, negotiated 
timeout = 40000
17:48:21.485 [main-EventThread] INFO 
org.apache.curator.framework.state.ConnectionStateManager - State change: 
CONNECTED
17:48:21.520 [main-SendThread(10.170.15.211:2181)] DEBUG 
org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x359d9cb12ea0060, 
packet:: clientPath:null serverPath:null finished:false header:: 1,1  
replyHeader:: 1,8590229173,-110  request:: 
'/chronos/state/state,#3132372e302e302e31,v{s{31,s{'world,'anyone}}},0  
response::  
17:48:21.908 [main-SendThread(10.170.15.211:2181)] DEBUG 
org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x359d9cb12ea0060, 
packet:: clientPath:null serverPath:null finished:false header:: 2,1  
replyHeader:: 2,8590229174,-110  request:: 
'/chronos/state/candidate,#3132372e302e302e31,v{s{31,s{'world,'anyone}}},0  
response::  
2017-02-21 17:48:22.018:INFO::main: Logging initialized @3029ms
17:48:22.063 [main] INFO mesosphere.chaos.http.HttpModule - Adding HTTP support.
17:48:22.063 [main] INFO mesosphere.chaos.http.HttpModule - No HTTPS support 
configured.
17:48:22.100 [HttpService STARTING] DEBUG mesosphere.chaos.http.HttpService - 
Starting up HttpServer.
17:48:22.101 [JobScheduler STARTING] INFO 
org.apache.mesos.chronos.scheduler.jobs.JobScheduler - Trying to become leader.
2017-02-21 17:48:22.104:INFO:oejs.Server:HttpService STARTING: 
jetty-9.3.z-SNAPSHOT
17:48:22.117 [main-SendThread(10.170.15.211:2181)] DEBUG 
org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x359d9cb12ea0060, 
packet:: 
clientPath:/chronos/state/candidate/_c_f12bdc6f-e45e-4465-8de7-667a1ef189d7-latch-
 
serverPath:/chronos/state/candidate/_c_f12bdc6f-e45e-4465-8de7-667a1ef189d7-latch-
 finished:false header:: 3,1  replyHeader:: 3,8590229175,0  request:: 
'/chronos/state/candidate/_c_f12bdc6f-e45e-4465-8de7-667a1ef189d7-latch-,#31302e3137312e34332e33373a34303430,v{s{31,s{'world,'anyone}}},3
  response:: 
'/chronos/state/candidate/_c_f12bdc6f-e45e-4465-8de7-667a1ef189d7-latch-0000000025
 
17:48:22.127 [main-SendThread(10.170.15.211:2181)] DEBUG 
org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x359d9cb12ea0060, 
packet:: clientPath:/chronos/state/candidate 
serverPath:/chronos/state/candidate finished:false header:: 4,12  replyHeader:: 
4,8590229175,0  request:: '/chronos/state/candidate,F  response:: 
v{'_c_f12bdc6f-e45e-4465-8de7-667a1ef189d7-latch-0000000025},s{8590228832,8590228832,1487663757675,1487663757675,0,51,0,0,9,1,8590229175}
 
17:48:22.130 [pool-5-thread-1] INFO 
org.apache.mesos.chronos.scheduler.jobs.JobScheduler - Elected as leader.
17:48:22.130 [pool-5-thread-1] INFO 
org.apache.mesos.chronos.scheduler.jobs.JobScheduler - Starting chronos driver
17:48:22.131 [pool-4-thread-1] INFO 
org.apache.mesos.chronos.scheduler.jobs.JobScheduler - Running background thread
17:48:22.153 [pool-4-thread-1] INFO 
org.apache.mesos.chronos.scheduler.jobs.JobScheduler - Starting main loop for 
JobScheduler. CurrentTime: 2017-02-21T09:48:22.131Z
2017-02-21 17:48:22,189:22123(0x7f89cbca9700):ZOO_INFO@log_env@726: Client 
environment:zookeeper.version=zookeeper C client 3.4.8
2017-02-21 17:48:22,189:22123(0x7f89cbca9700):ZOO_INFO@log_env@730: Client 
environment:host.name=
2017-02-21 17:48:22,189:22123(0x7f89cbca9700):ZOO_INFO@log_env@737: Client 
environment:os.name=Linux
2017-02-21 17:48:22,189:22123(0x7f89cbca9700):ZOO_INFO@log_env@738: Client 
environment:os.arch=
2017-02-21 17:48:22,189:22123(0x7f89cbca9700):ZOO_INFO@log_env@739: Client 
environment:os.version=
2017-02-21 17:48:22,189:22123(0x7f89cbca9700):ZOO_INFO@log_env@747: Client 
environment:user.name=
2017-02-21 17:48:22,189:22123(0x7f89cbca9700):ZOO_INFO@log_env@755: Client 
environment:user.home=/root
2017-02-21 17:48:22,189:22123(0x7f89cbca9700):ZOO_INFO@log_env@767: Client 
environment:user.dir=/usr/local/services/tjop_chronos301-1.0
2017-02-21 17:48:22,189:22123(0x7f89cbca9700):ZOO_INFO@zookeeper_init@800: 
Initiating client connection, 
host=10.168.23.11:2181,10.171.43.37:2181,10.170.15.211:2181 
sessionTimeout=10000 watcher=0x7f89d2440568 sessionId=0 sessionPasswd=<null> 
context=0x7f89a4000bc0 flags=0
2017-02-21 17:48:22,190:22123(0x7f89b4cdb700):ZOO_INFO@check_events@1728: 
initiated connection to server [10.171.43.37:2181]
I0221 17:48:22.192554 22193 sched.cpp:226] Version: 1.1.0
2017-02-21 17:48:22,199:22123(0x7f89b4cdb700):ZOO_INFO@check_events@1775: 
session establishment complete on server [10.171.43.37:2181], 
sessionId=0x259d9cb0da2007f, negotiated timeout=10000
I0221 17:48:22.200115 22146 group.cpp:340] Group process 
(zookeeper-group(1)@10.171.43.37:36199) connected to ZooKeeper
I0221 17:48:22.200328 22146 group.cpp:828] Syncing group operations: queue size 
(joins, cancels, datas) = (0, 0, 0)
I0221 17:48:22.200387 22146 group.cpp:418] Trying to create path '/mesos' in 
ZooKeeper
I0221 17:48:22.206718 22152 detector.cpp:152] Detected a new leader: (id='31')
I0221 17:48:22.207413 22152 group.cpp:697] Trying to get 
'/mesos/json.info_0000000031' in ZooKeeper
I0221 17:48:22.210199 22146 zookeeper.cpp:259] A new leading master 
([email protected]:5050) is detected
I0221 17:48:22.210649 22152 sched.cpp:330] New master detected at 
[email protected]:5050
I0221 17:48:22.211802 22152 sched.cpp:396] Authenticating with master 
[email protected]:5050
I0221 17:48:22.211843 22152 sched.cpp:403] Using default CRAM-MD5 authenticatee
I0221 17:48:22.212695 22148 authenticatee.cpp:97] Initializing client SASL
I0221 17:48:22.213500 22148 authenticatee.cpp:121] Creating new client SASL 
connection
17:48:22.239 [HttpService STARTING] INFO 
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering 
com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider as a provider class
17:48:22.240 [HttpService STARTING] INFO 
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering 
com.codahale.metrics.jersey.InstrumentedResourceMethodDispatchAdapter as a 
provider class
17:48:22.240 [HttpService STARTING] INFO 
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering 
mesosphere.chaos.validation.ConstraintViolationExceptionMapper as a provider 
class
17:48:22.240 [HttpService STARTING] INFO 
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering 
org.apache.mesos.chronos.scheduler.api.LeaderResource as a root resource class
17:48:22.240 [HttpService STARTING] INFO 
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering 
org.apache.mesos.chronos.scheduler.api.Iso8601JobResource as a root resource 
class
17:48:22.240 [HttpService STARTING] INFO 
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering 
org.apache.mesos.chronos.scheduler.api.DependentJobResource as a root resource 
class
17:48:22.241 [HttpService STARTING] INFO 
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering 
org.apache.mesos.chronos.scheduler.api.JobManagementResource as a root resource 
class
17:48:22.241 [HttpService STARTING] INFO 
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering 
org.apache.mesos.chronos.scheduler.api.TaskManagementResource as a root 
resource class
17:48:22.241 [HttpService STARTING] INFO 
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering 
org.apache.mesos.chronos.scheduler.api.GraphManagementResource as a root 
resource class
17:48:22.241 [HttpService STARTING] INFO 
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering 
org.apache.mesos.chronos.scheduler.api.StatsResource as a root resource class
17:48:22.243 [HttpService STARTING] INFO 
com.sun.jersey.server.impl.application.WebApplicationImpl - Initiating Jersey 
application, version 'Jersey: 1.18.1 02/19/2014 03:28 AM'
17:48:22.301 [HttpService STARTING] INFO 
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Binding 
com.codahale.metrics.jersey.InstrumentedResourceMethodDispatchAdapter to 
GuiceManagedComponentProvider with the scope "Singleton"
17:48:22.319 [HttpService STARTING] INFO 
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Binding 
mesosphere.chaos.validation.ConstraintViolationExceptionMapper to 
GuiceManagedComponentProvider with the scope "Singleton"
17:48:22.320 [HttpService STARTING] INFO 
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Binding 
com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider to 
GuiceManagedComponentProvider with the scope "Singleton"
I0221 17:48:22.360680 22152 authenticatee.cpp:213] Received SASL authentication 
mechanisms: CRAM-MD5
I0221 17:48:22.360770 22152 authenticatee.cpp:239] Attempting to authenticate 
with mechanism 'CRAM-MD5'
I0221 17:48:22.362514 22152 authenticatee.cpp:259] Received SASL authentication 
step
E0221 17:48:22.364118 22151 sched.cpp:496] Master [email protected]:5050 
refused authentication
I0221 17:48:22.364186 22151 sched.cpp:1171] Got error 'Master refused 
authentication'
I0221 17:48:22.364212 22151 sched.cpp:2029] Asked to abort the driver
17:48:22.364 [Thread-11] ERROR 
org.apache.mesos.chronos.scheduler.mesos.MesosJobFramework - Master refused 
authentication
17:48:22.364 [Thread-11] INFO 
org.apache.mesos.chronos.scheduler.jobs.JobScheduler - Shutting down job 
scheduler
I0221 17:48:22.370010 22193 sched.cpp:1995] Asked to stop the driver
17:48:22.370 [pool-5-thread-1] INFO 
org.apache.mesos.chronos.scheduler.jobs.JobScheduler - Defeated. Not the 
current leader.
17:48:22.370 [shutdownHook1] INFO org.apache.mesos.chronos.scheduler.Main$ - 
Shutting down services





mesos :
credentials
{
  "credentials": [
    {
      "principal": "tjop_marathon",
      "secret": "tjop_marathon"
    },
{
      "principal": "tjop_chronos",
      "secret": "tjop_chronos"
    },
{
      "principal": "tjop_mesos_slave",
      "secret": "tjop_mesos_slave"
    }
  ]
}

acls:
{
  "register_frameworks": [
    {
      "principals": { "type": "ANY"},
      "roles": { "type": "ANY" }
    }
  ],
  "run_tasks": [
    {
      "principals": { "type": "ANY"},
      "users": {"type": "ANY" }
    }
  ]
}

mesos log:
I0221 17:56:04.496440 20166 master.cpp:6688] Authenticating 
[email protected]:57494
I0221 17:56:04.496919 20173 authenticator.cpp:98] Creating new server SASL 
connection
I0221 17:56:04.499248 20169 authenticator.cpp:204] Received SASL authentication 
start
I0221 17:56:04.499313 20169 authenticator.cpp:326] Authentication requires more 
steps
I0221 17:56:04.500385 20170 authenticator.cpp:232] Received SASL authentication 
step
W0221 17:56:04.500468 20170 authenticator.cpp:332] Authentication failure: 
authentication failure
W0221 17:56:04.500690 20168 master.cpp:6715] Failed to authenticate 
[email protected]:57494: Refused 
authentication



please help me,thanks

Reply via email to