question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting fatal error on `Get list of labels.` task

See original GitHub issue

The task Get list of labels. is failing after updated with ansible_fqdn on https://github.com/atosatto/ansible-dockerswarm/commit/3bb8a49297448325b8feaa9b7a899c78b2fab97e

The node hostname(staging-manager-03) on docker node ls is different from the fqdn string given on following error:

TASK [atosatto.docker-swarm : Get list of labels.] ********************************************************************************************************************************************
fatal: [165.22.48.107 -> 165.22.48.105]: FAILED! => {"changed": false, "cmd": ["docker", "inspect", "--format", "{{ range $key, $value := .Spec.Labels }}{{ printf \"%s\\n\" $key }}{{ end }}", "staging-manager-03.sgp1"], "delta": "0:00:00.412684", "end": "2020-05-14 13:10:42.573599", "msg": "non-zero return code", "rc": 1, "start": "2020-05-14 13:10:42.160915", "stderr": "Error: No such object: staging-manager-03.sgp1", "stderr_lines": ["Error: No such object: staging-manager-03.sgp1"], "stdout": "", "stdout_lines": []}

For now I am using v2.2.0 which gives no error.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:9
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
juanluisbaptistecommented, Aug 1, 2020

I can confirm that the commit 3bb8a49 mentioned in the issue #82 is the one that breaks the labels setup, if it is reverted then the playbook finishes without issues.

1reaction
nununocommented, Jul 18, 2020

Hello. I’m also having this issue. Any plans to reaply the fix? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting a "Fatal error: Index out … | Apple Developer Forums
I've debugged this through and through on Ventura and the element of the array I delete a receipt group from is deleted properly,...
Read more >
Trying to build a helloworld.c program on Visual studio but ...
Executing task: gcc -g o helloworld helloworld.c < cc1: fatal error: helloworld.c: No such file or directory compilation terminated.
Read more >
Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages for SQL Server database engine events.
Read more >
Node Error FATAL ERROR: v8::FromJust Maybe value is ...
I am trying my best to get a sandboxed reproduction, but this is for a corporate project so I am unable to share...
Read more >
VBA Error Handling - A Complete Guide - Excel Macro Mastery
Goes to a specific label when an error occurs. This allows us to handle the error. Err Object, When an error occurs the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found