Comments (6)
Hangs forever or for how long?
from agent.
I left it for a good 10 minutes before sending a SIGKILL.
from agent.
@vpetersson Did it happen once or does it always happen?
Also, logs? The stack trace should show up in systemd logs after you kill the service.
from agent.
Did it happen once or does it always happen?
Yes, I've been able to reproduce it a number of times on this box.
Here's where it freezes:
Setting up wott-agent (0.1.5.820~f64d919) ...
Created symlink /etc/systemd/system/timers.target.wants/wott-agent-self-update.timer → /lib/systemd/system/wott-agent-self-update.timer.
Created symlink /etc/systemd/system/wott-agent → /lib/systemd/system/wott-agent.service.
Created symlink /etc/systemd/system/multi-user.target.wants/wott-agent.service → /lib/systemd/system/wott-agent.service.
wott-agent-self-update.service is a disabled or a static unit, not starting it.
Logs:
Apr 1 05:52:36 us systemd[1]: Started WoTT Agent.
Apr 1 05:52:38 us wott-agent[27065]: 2020-04-01 05:52:38,053 - agent - MainThread - INFO - start in daemon mode...
Apr 1 05:52:38 us wott-agent[27065]: 2020-04-01 05:52:38,084 - agent - ThreadPoolExecutor-0_2 - INFO - Fetching node metadata...
Apr 1 05:52:38 us wott-agent[27065]: 2020-04-01 05:52:38,087 - agent - ThreadPoolExecutor-0_1 - INFO - Fetching credentials...
Apr 1 05:52:38 us wott-agent[27065]: 2020-04-01 05:52:38,366 - agent - ThreadPoolExecutor-0_1 - INFO - Credentials retrieved.
Apr 1 05:52:38 us wott-agent[27065]: 2020-04-01 05:52:38,379 - agent - ThreadPoolExecutor-0_2 - INFO - metadata retrieved.
Apr 1 05:52:38 us wott-agent[27065]: 2020-04-01 05:52:38,381 - agent - ThreadPoolExecutor-0_2 - INFO - metadata stored.
Apr 1 06:00:03 us systemd[1]: wott-agent.service: Service hold-off time over, scheduling restart.
Apr 1 06:00:03 us systemd[1]: wott-agent.service: Scheduled restart job, restart counter is at 1.
Apr 1 06:00:03 us systemd[1]: Stopped WoTT Agent.
Apr 1 06:00:03 us systemd[1]: Started WoTT Agent.
Apr 1 06:00:04 us wott-agent[27211]: 2020-04-01 06:00:04,481 - agent - MainThread - INFO - start in daemon mode...
Apr 1 06:00:04 us wott-agent[27211]: 2020-04-01 06:00:04,521 - agent - ThreadPoolExecutor-0_2 - INFO - Fetching node metadata...
Apr 1 06:00:04 us wott-agent[27211]: 2020-04-01 06:00:04,514 - agent - ThreadPoolExecutor-0_1 - INFO - Fetching credentials...
Apr 1 06:00:04 us wott-agent[27211]: 2020-04-01 06:00:04,782 - agent - ThreadPoolExecutor-0_1 - INFO - Credentials retrieved.
Apr 1 06:00:04 us wott-agent[27211]: 2020-04-01 06:00:04,833 - agent - ThreadPoolExecutor-0_2 - INFO - metadata retrieved.
Apr 1 06:00:04 us wott-agent[27211]: 2020-04-01 06:00:04,834 - agent - ThreadPoolExecutor-0_2 - INFO - metadata stored.
from agent.
Agent spins in the patched version of find_matches
. This happens when there're some firewall rules applied on the backend.
If I remove the patching everything works just fine. This proves I was right in #289 (comment). Now we just need two things:
- make sure we know exactly since which version of iptables we need to patch
- detect iptables version and decide what to do when. We may need to revert the patch if running
python-iptables > 0.14.0
oniptables <= 1.6.2
because this will be in mainstream python-iptables since 0.15.0.
I will also file an issue on https://gtihub.com/ldx/python-iptables/issues and see what they have to say.
from agent.
The commit which causes our error was added after the release of 1.6.2. Next release is 1.8.0.
Therefore we need to patch anything newer than 1.6.2.
from agent.
Related Issues (20)
- Set User-Agent header
- Implement functinality to patch system based on recommended actions HOT 5
- Installation fails on Debian Jessie HOT 2
- Add audit of Docker containers HOT 2
- Add environment/cloud detection HOT 3
- "Automatic security updates" fail to detect on Debian/Aws Linux HOT 2
- Improve sshd detection/logic HOT 3
- Fix self-update script for agent HOT 2
- Detect and send kernel metapacakages HOT 1
- Detect VirtualBox and suppress heartbleed/spectre
- Add support for Ubuntu 18.10 HOT 2
- Fix installation error on Ubuntu 16.04 HOT 4
- Implement CIS Benchmarks for OpenSSH (section 5.2) the Ubuntu guide. HOT 5
- Audit/Detect SSH keys
- Self-update code is broken on AWS Linux
- Certificate renewal broken on AWS Linux HOT 2
- Resolve kernel detection
- 'python-iptables: match "state" already registered' on AWS Linux HOT 5
- Formatting issue in post-install message
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 agent.