ClusterHQ / flocker

Container data volume manager for your Dockerized application
https://clusterhq.com
Apache License 2.0
3.39k stars 290 forks source link

node agent cant start #2996

Open sgjcn opened 7 years ago

sgjcn commented 7 years ago

Started Flocker Container Agent. Starting Flocker Container Agent... {"task_uuid": "af6e7a6e-d945-4951-86aa-998a0d6ca8a0", "error": false, "timestamp": 1483759735.964373, "message": "Log opened.", "message_type": "twisted:log", "task_level": [1]} {"task_uuid": "463c7eda-2aa2-4f0b-a2b3-16552a4adaca", "error": true, "timestamp": 1483759735.973113, "message": "Unhandled Error\nTraceback (most recent call last):\n File \"/opt/flocker/lib/python2.7/site-packages/flocker/node/script.py\", line 109, in flocker_container_agent_main\n options=ContainerAgentOptions()\n File \"/opt/flocker/lib/python2.7/site-packages/flocker/common/script.py\", line 295, in main\n self._react(run_and_log, [], _reactor=self._reactor)\n File \"/opt/flocker/lib/python2.7/site-packages/twisted/internet/task.py\", line 908, in react\n finished = main(_reactor, argv)\n File \"/opt/flocker/lib/python2.7/site-packages/flocker/common/script.py\", line 283, in run_and_log\n d = maybeDeferred(self.script.main, reactor, options)\n--- ---\n File \"/opt/flocker/lib/python2.7/site-packages/twisted/internet/defer.py\", line 150, in maybeDeferred\n result = f(args, kw)\n File \"/opt/flocker/lib/python2.7/site-packages/flocker/node/script.py\", line 295, in main\n self.service_factory(reactor, options)\n File \"/opt/flocker/lib/python2.7/site-packages/flocker/node/script.py\", line 335, in get_service\n configuration = get_configuration(options)\n File \"/opt/flocker/lib/python2.7/site-packages/flocker/node/script.py\", line 365, in get_configuration\n configuration = yaml.safe_load(agent_config.getContent())\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/init.py\", line 93, in safe_load\n return load(stream, SafeLoader)\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/init.py\", line 71, in load\n return loader.get_single_data()\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/constructor.py\", line 37, in get_single_data\n node = self.get_single_node()\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/composer.py\", line 36, in get_single_node\n document = self.compose_document()\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/composer.py\", line 55, in compose_document\n node = self.compose_node(None, None)\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/composer.py\", line 84, in compose_node\n node = self.compose_mapping_node(anchor)\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/composer.py\", line 127, in compose_mapping_node\n while not self.check_event(MappingEndEvent):\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/parser.py\", line 98, in check_event\n self.current_event = self.state()\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/parser.py\", line 428, in parse_block_mapping_key\n if self.check_token(KeyToken):\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/scanner.py\", line 116, in check_token\n self.fetch_more_tokens()\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/scanner.py\", line 220, in fetch_more_tokens\n return self.fetch_value()\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/scanner.py\", line 580, in fetch_value\n self.get_mark())\nyaml.scanner.ScannerError: mapping values are not allowed here\n in \"\", line 2, column 20:\n \"control-service\":\n ^\n", "message_type": "twisted:log", "task_level": [1]} {"task_uuid": "7fff2aa4-4627-4c15-bf4d-c56084fda9ab", "error": true, "timestamp": 1483759735.974614, "message": "main function encountered error\nTraceback (most recent call last):\n File \"/opt/flocker/lib/python2.7/site-packages/flocker/node/script.py\", line 109, in flocker_container_agent_main\n options=ContainerAgentOptions()\n File \"/opt/flocker/lib/python2.7/site-packages/flocker/common/script.py\", line 295, in main\n self._react(run_and_log, [], _reactor=self._reactor)\n File \"/opt/flocker/lib/python2.7/site-packages/twisted/internet/task.py\", line 908, in react\n finished = main(_reactor, argv)\n File \"/opt/flocker/lib/python2.7/site-packages/flocker/common/script.py\", line 283, in run_and_log\n d = maybeDeferred(self.script.main, reactor, options)\n--- ---\n File \"/opt/flocker/lib/python2.7/site-packages/twisted/internet/defer.py\", line 150, in maybeDeferred\n result = f(args, kw)\n File \"/opt/flocker/lib/python2.7/site-packages/flocker/node/script.py\", line 295, in main\n self.service_factory(reactor, options)\n File \"/opt/flocker/lib/python2.7/site-packages/flocker/node/script.py\", line 335, in get_service\n configuration = get_configuration(options)\n File \"/opt/flocker/lib/python2.7/site-packages/flocker/node/script.py\", line 365, in get_configuration\n configuration = yaml.safe_load(agent_config.getContent())\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/init.py\", line 93, in safe_load\n return load(stream, SafeLoader)\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/init.py\", line 71, in load\n return loader.get_single_data()\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/constructor.py\", line 37, in get_single_data\n node = self.get_single_node()\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/composer.py\", line 36, in get_single_node\n document = self.compose_document()\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/composer.py\", line 55, in compose_document\n node = self.compose_node(None, None)\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/composer.py\", line 84, in compose_node\n node = self.compose_mapping_node(anchor)\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/composer.py\", line 127, in compose_mapping_node\n while not self.check_event(MappingEndEvent):\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/parser.py\", line 98, in check_event\n self.current_event = self.state()\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/parser.py\", line 428, in parse_block_mapping_key\n if self.check_token(KeyToken):\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/scanner.py\", line 116, in check_token\n self.fetch_more_tokens()\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/scanner.py\", line 220, in fetch_more_tokens\n return self.fetch_value()\n File \"/opt/flocker/lib/python2.7/site-packages/yaml/scanner.py\", line 580, in fetch_value\n self.get_mark())\nyaml.scanner.ScannerError: mapping values are not allowed here\n in \"\", line 2, column 20:\n \"control-service\":\n ^\n", "message_type": "twisted:log", "task_level": [1]} {"task_uuid": "d3751a36-2f21-4eab-aa22-729b54919393", "error": false, "timestamp": 1483759735.97515, "message": "Main loop terminated.", "message_type": "twisted:log", "task_level": [1]} flocker-container-agent.service: main process exited, code=exited, status=1/FAILURE Unit flocker-container-agent.service entered failed state. flocker-container-agent.service failed. flocker-container-agent.service holdoff time over, scheduling restart.

wallnerryan commented 7 years ago

FYI, This project is moving to https://github.com/ScatterHQ/flocker, a small number of the clusterhq folks will try to maintain it to a certain degree if the community wants it.