Skip to content

Instantly share code, notes, and snippets.

@mahsoud
Created June 15, 2020 09:47
Show Gist options
  • Save mahsoud/0b710f505d541a9e229dbc461a4b02e8 to your computer and use it in GitHub Desktop.
Save mahsoud/0b710f505d541a9e229dbc461a4b02e8 to your computer and use it in GitHub Desktop.
==> Loaded configuration from C:\ProgramData\nomad\conf\client.hcl
==> Starting Nomad agent...
==> Nomad agent configuration:
Advertise Addrs: HTTP: 10.141.1.1:4646
Bind Addrs: HTTP: 0.0.0.0:4646
Client: true
Log Level: INFO
Region: global (DC: dc1)
Server: false
Version: 0.11.1
==> Nomad agent started! Log data will stream in below:
2020-06-15T10:16:48.093+0100 [WARN] agent.plugin_loader: skipping external plugins since plugin_dir doesn't exist: plugin_dir=C:\ProgramData\nomad\data\plugins
2020-06-15T10:16:48.213+0100 [INFO] agent: detected plugin: name=exec type=driver plugin_version=0.1.0
2020-06-15T10:16:48.213+0100 [INFO] agent: detected plugin: name=qemu type=driver plugin_version=0.1.0
2020-06-15T10:16:48.213+0100 [INFO] agent: detected plugin: name=java type=driver plugin_version=0.1.0
2020-06-15T10:16:48.213+0100 [INFO] agent: detected plugin: name=docker type=driver plugin_version=0.1.0
2020-06-15T10:16:48.213+0100 [INFO] agent: detected plugin: name=raw_exec type=driver plugin_version=0.1.0
2020-06-15T10:16:48.218+0100 [INFO] client: using state directory: state_dir=C:\ProgramData\nomad\data\client
2020-06-15T10:16:48.219+0100 [INFO] client: using alloc directory: alloc_dir=C:\ProgramData\nomad\data\alloc
2020-06-15T10:16:49.017+0100 [INFO] client.fingerprint_mgr.consul: consul agent is available
2020-06-15T10:16:54.044+0100 [WARN] consul.sync: failed to update services in Consul: error="error querying Consul services: Get "http://127.0.0.1:8500/v1/agent/services": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
2020-06-15T10:16:56.107+0100 [INFO] client.plugin: starting plugin manager: plugin-type=csi
2020-06-15T10:16:56.107+0100 [INFO] client.plugin: starting plugin manager: plugin-type=driver
2020-06-15T10:16:56.118+0100 [INFO] client.plugin: starting plugin manager: plugin-type=device
2020-06-15T10:16:56.199+0100 [ERROR] client.driver_mgr.raw_exec: failed to reattach to executor: driver=raw_exec error="error creating rpc client for executor plugin: Reattachment process not found" task_id=107118ec-db45-8332-e9da-55183e5e0b22/test/5683c453
2020-06-15T10:16:56.207+0100 [ERROR] client.driver_mgr.raw_exec: failed to reattach to executor: driver=raw_exec error="error creating rpc client for executor plugin: Reattachment process not found" task_id=13421d8d-95cd-4176-3c5f-ac7edc612724/test/8f84a7ef
2020-06-15T10:16:56.208+0100 [ERROR] client.driver_mgr.raw_exec: failed to reattach to executor: driver=raw_exec error="error creating rpc client for executor plugin: Reattachment process not found" task_id=59a8ae7b-a9b2-c1cf-3cc8-da526d3e8f76/test/89efbbb1
2020-06-15T10:16:56.208+0100 [ERROR] client.driver_mgr.raw_exec: failed to reattach to executor: driver=raw_exec error="error creating rpc client for executor plugin: Reattachment process not found" task_id=7e0f7442-bc12-167f-72b4-fe2c25d735b0/test/deb45c93
2020-06-15T10:16:56.209+0100 [WARN] client.server_mgr: no servers available
2020-06-15T10:16:56.226+0100 [ERROR] client.driver_mgr.raw_exec: failed to reattach to executor: driver=raw_exec error="error creating rpc client for executor plugin: Reattachment process not found" task_id=cb765a67-9198-887c-72c9-01346dc8ac5e/test/12ccb323
2020-06-15T10:16:56.227+0100 [ERROR] client.driver_mgr.raw_exec: failed to reattach to executor: driver=raw_exec error="error creating rpc client for executor plugin: Reattachment process not found" task_id=ef2c3719-ca24-2bb7-4724-291f28bf1dac/test/4c2e86d9
2020-06-15T10:16:56.227+0100 [INFO] client: started client: node_id=c9f7ab36-7475-cc4a-2e13-25bdefcf9697
2020-06-15T10:16:56.265+0100 [WARN] client.server_mgr: no servers available
2020-06-15T10:16:56.265+0100 [INFO] client.gc: marking allocation for GC: alloc_id=7e0f7442-bc12-167f-72b4-fe2c25d735b0
2020-06-15T10:16:56.265+0100 [INFO] client.gc: marking allocation for GC: alloc_id=cb765a67-9198-887c-72c9-01346dc8ac5e
2020-06-15T10:16:56.265+0100 [INFO] client.gc: marking allocation for GC: alloc_id=ef2c3719-ca24-2bb7-4724-291f28bf1dac
2020-06-15T10:16:56.265+0100 [INFO] client.gc: marking allocation for GC: alloc_id=107118ec-db45-8332-e9da-55183e5e0b22
2020-06-15T10:16:56.265+0100 [INFO] client.gc: marking allocation for GC: alloc_id=13421d8d-95cd-4176-3c5f-ac7edc612724
2020-06-15T10:16:56.265+0100 [INFO] client.gc: marking allocation for GC: alloc_id=59a8ae7b-a9b2-c1cf-3cc8-da526d3e8f76
2020-06-15T10:16:56.293+0100 [INFO] consul.sync: successfully updated services in Consul
2020-06-15T10:16:56.395+0100 [INFO] client.consul: discovered following servers: servers=[10.141.1.106:4647, 10.141.1.131:4647, 10.141.1.132:4647]
2020-06-15T10:16:56.482+0100 [INFO] client: node registration complete
2020-06-15T10:17:01.371+0100 [WARN] consul.sync: failed to update services in Consul: error="Put "http://127.0.0.1:8500/v1/agent/service/register": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
2020-06-15T10:17:03.577+0100 [INFO] client: node registration complete
2020-06-15T10:17:06.645+0100 [INFO] consul.sync: successfully updated services in Consul
2020-06-15T10:17:11.567+0100 [INFO] client.alloc_runner.task_runner.task_hook.logmon.nomad.exe: opening fifo: alloc_id=6d7b35c0-98cc-31d9-9e1e-ac7cc97dd2a2 task=test @module=logmon path=//./pipe/test-136fefd9.stdout timestamp=2020-06-15T10:17:11.565+0100
2020-06-15T10:17:11.567+0100 [INFO] client.alloc_runner.task_runner.task_hook.logmon.nomad.exe: opening fifo: alloc_id=6d7b35c0-98cc-31d9-9e1e-ac7cc97dd2a2 task=test @module=logmon path=//./pipe/test-136fefd9.stderr timestamp=2020-06-15T10:17:11.567+0100
2020/06/15 10:17:11.625922 [INFO] (runner) creating new runner (dry: false, once: false)
2020/06/15 10:17:11.625922 [INFO] (runner) creating watcher
2020/06/15 10:17:11.626920 [INFO] (runner) starting
2020/06/15 10:17:11.627932 [INFO] (runner) rendered "(dynamic)" => "C:\\ProgramData\\nomad\\data\\alloc\\6d7b35c0-98cc-31d9-9e1e-ac7cc97dd2a2\\test\\sample.csv"
2020-06-15T10:17:11.634+0100 [INFO] client.driver_mgr.raw_exec: starting task: driver=raw_exec driver_cfg="{Command:powershell.exe Args:[-NoProfile -ExecutionPolicy Bypass -Command Write-Host Hello]}"
2020-06-15T10:17:14.340+0100 [ERROR] client.driver_mgr.raw_exec: destroying executor failed: driver=raw_exec err="rpc error: code = Unknown desc = executor failed to find process: OpenProcess: The parameter is incorrect."
2020-06-15T10:17:14.341+0100 [ERROR] client.driver_mgr.raw_exec: error receiving stream from Stats executor RPC, closing stream: alloc_id=6d7b35c0-98cc-31d9-9e1e-ac7cc97dd2a2 driver=raw_exec task_name=test error="rpc error: code = Unavailable desc = transport is closing"
2020-06-15T10:17:14.342+0100 [ERROR] client.alloc_runner.task_runner.task_hook.stats_hook: failed to start stats collection for task: alloc_id=6d7b35c0-98cc-31d9-9e1e-ac7cc97dd2a2 task=test error="rpc error: code = Canceled desc = grpc: the client connection is closing"
2020-06-15T10:17:14.354+0100 [INFO] client.alloc_runner.task_runner: not restarting task: alloc_id=6d7b35c0-98cc-31d9-9e1e-ac7cc97dd2a2 task=test reason="Restart unnecessary as task terminated successfully"
2020-06-15T10:17:14.358+0100 [INFO] client.gc: marking allocation for GC: alloc_id=6d7b35c0-98cc-31d9-9e1e-ac7cc97dd2a2
2020/06/15 10:17:14.370991 [INFO] (runner) stopping
2020/06/15 10:17:14.370991 [INFO] (runner) received finish
2020-06-15T10:17:24.049+0100 [INFO] client.fingerprint_mgr.consul: consul agent is unavailable
2020-06-15T10:17:29.293+0100 [INFO] client: node registration complete
2020-06-15T10:17:38.475+0100 [INFO] client.fingerprint_mgr.consul: consul agent is available
2020-06-15T10:17:46.022+0100 [INFO] client: node registration complete
2020-06-15T10:19:39.093+0100 [INFO] client.fingerprint_mgr.consul: consul agent is unavailable
2020-06-15T10:19:47.780+0100 [INFO] client: node registration complete
2020-06-15T10:19:49.100+0100 [INFO] client.fingerprint_mgr.consul: consul agent is available
2020-06-15T10:19:55.197+0100 [INFO] client: node registration complete
2020-06-15T10:29:55.443+0100 [INFO] client.alloc_runner.task_runner.task_hook.logmon.nomad.exe: opening fifo: alloc_id=32ea6f6e-be0c-4eac-a15f-5b0105e6c75b task=test @module=logmon path=//./pipe/test-ad16ad68.stdout timestamp=2020-06-15T10:29:55.442+0100
2020-06-15T10:29:55.453+0100 [INFO] client.alloc_runner.task_runner.task_hook.logmon.nomad.exe: opening fifo: alloc_id=32ea6f6e-be0c-4eac-a15f-5b0105e6c75b task=test @module=logmon path=//./pipe/test-ad16ad68.stderr timestamp=2020-06-15T10:29:55.453+0100
2020/06/15 10:29:55.465601 [INFO] (runner) creating new runner (dry: false, once: false)
2020/06/15 10:29:55.466599 [INFO] (runner) creating watcher
2020/06/15 10:29:55.466599 [INFO] (runner) starting
2020/06/15 10:29:55.469601 [INFO] (runner) rendered "(dynamic)" => "C:\\ProgramData\\nomad\\data\\alloc\\32ea6f6e-be0c-4eac-a15f-5b0105e6c75b\\test\\sample.csv"
2020-06-15T10:29:55.486+0100 [INFO] client.driver_mgr.raw_exec: starting task: driver=raw_exec driver_cfg="{Command:powershell.exe Args:[-NoProfile -ExecutionPolicy Bypass -Command Write-Host Hello]}"
2020-06-15T10:30:02.799+0100 [ERROR] client.driver_mgr.raw_exec: destroying executor failed: driver=raw_exec err="rpc error: code = Unknown desc = executor failed to find process: OpenProcess: The parameter is incorrect."
2020-06-15T10:30:02.800+0100 [ERROR] client.driver_mgr.raw_exec: error receiving stream from Stats executor RPC, closing stream: alloc_id=32ea6f6e-be0c-4eac-a15f-5b0105e6c75b driver=raw_exec task_name=test error="rpc error: code = Unavailable desc = transport is closing"
2020-06-15T10:30:02.800+0100 [ERROR] client.alloc_runner.task_runner.task_hook.stats_hook: failed to start stats collection for task: alloc_id=32ea6f6e-be0c-4eac-a15f-5b0105e6c75b task=test error="rpc error: code = Canceled desc = grpc: the client connection is closing"
2020-06-15T10:30:02.832+0100 [INFO] client.alloc_runner.task_runner: not restarting task: alloc_id=32ea6f6e-be0c-4eac-a15f-5b0105e6c75b task=test reason="Restart unnecessary as task terminated successfully"
2020-06-15T10:30:02.835+0100 [INFO] client.gc: marking allocation for GC: alloc_id=32ea6f6e-be0c-4eac-a15f-5b0105e6c75b
2020/06/15 10:30:02.855595 [INFO] (runner) stopping
2020/06/15 10:30:02.855595 [INFO] (runner) received finish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment