Comments (9)
I was able to resolve this by exporting the OBJC_DISABLE_INITIALIZE_FORK_SAFETY
variable to YES
.
Via ansible/ansible#31869 (comment).
from ansible-node-exporter.
Sure! I use node_exporter to monitor the hosts in my home lab. I'm starting to migrate over to Ansible as a configuration management tool and wanted to avoid re-inventing the wheel, so I came across this role.
from ansible-node-exporter.
Great to see that you solved it! Out of curiosity, may I ask what are you using this role for?
from ansible-node-exporter.
Updated: Running the export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
command on my local machine before running the ansible-playbook
fixes this.
I'm seeing similar results on Ubuntu 16 LTS:
[..]
TASK [node-exporter : Gather variables for each operating system] ****************************************************************************************
ok: [x.x.x.x] => (item=/Users/[..]/vendor/roles/node-exporter/vars/debian.yml)
TASK [node-exporter : Naive assertion of proper listen address] ******************************************************************************************
ok: [x.x.x.x] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [node-exporter : Fail on unsupported init systems] **************************************************************************************************
skipping: [x.x.x.x]
TASK [node-exporter : Check collectors] ******************************************************************************************************************
TASK [node-exporter : Get checksum list from github] *****************************************************************************************************
objc[69118]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called.
objc[69118]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
from ansible-node-exporter.
@lekkerduidelijk this looks like some ansible or python related issue. There is a similar issue in ansible: ansible/ansible#32499
from ansible-node-exporter.
@paulfantom Yeah, also setting the env variable feels a bit 'hacky' to me.
One thing I discovered later on, is that the ansible-node-exporter
playbook runs commands on localhost. Like unzip, untar etc. I'm accustomed to those commands being run on the remote host, so I needed to install some stuff locally first. Like brew install gnu-tar
.
from ansible-node-exporter.
Yes, we run those commands to speed up deployment with large number of target hosts and all requirements should be specified in readme, but somehow I see no gnu-tar
so this should be fixed.
from ansible-node-exporter.
Ok, makes sense. 👍
When running the playbook with the ENV in place I got:
Make sure the required command to extract the file is installed. Command "/usr/bin/tar" detected as tar type bsd. GNU tar required. Command "/usr/bin/unzip" could not handle archive.
The binaries for /usr/bin/tar
and /usr/bin/unzip
both existed. This is on MacOS Mojave 10.14.
Adding gnu-tar
fixed it for me.
Also, I forgot to mention: thanks for your great work on the Ansible playbooks for the Prometheus stack. Huge time savers! 😎
from ansible-node-exporter.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from ansible-node-exporter.
Related Issues (20)
- 'latest' version doesn't work HOT 11
- node_exporter_textfile_dir doesn't enable corresponding collector HOT 1
- Unpack node_exporter binary step fails on cluster HOT 3
- With recent release of node_exporter (1.2.2) the role fails to detect version installed. HOT 7
- Unable to find required 'zipinfo' binary in the path HOT 2
- Allow to install node exporter easily without internet HOT 4
- Create password hash on local machine HOT 3
- Encryption not working for basic authentication HOT 5
- new release? HOT 10
- Support for other RHEL-like packages HOT 1
- Refactor: Unnecessary call to github if node_exporter already installed HOT 1
- Still maintained? HOT 8
- tasks/main.yml wrong parameter in import_tasks: install.yml HOT 1
- Create a new release with changes in master branch HOT 4
- PreventHome works only if mount is directly under /home HOT 1
- Role doesn't work with Ansible 7.0.0 HOT 5
- Crash on get checksum list HOT 1
- Is ansible-node-exporter abandoned? No commits have been made since January 2022 (now December 2022) HOT 5
- Node exporter version 1.5.0 systemd unit unable to start HOT 2
- Example code in the README doesn't generate a CSR file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-node-exporter.