nginxinc / nginx-amplify-agent

NGINX Amplify Agent
BSD 2-Clause "Simplified" License
23 stars 9 forks source link

Start after reboot failed #113

Open dtalens opened 2 months ago

dtalens commented 2 months ago

I can't start service. I've tried reinstalling but to not working.

Amplify version 1.8.2 S.O: Ubuntu 22.04 Python version 3.10

d’ag. 29 13:19:47 amplify-agent[547917]:   File "/usr/local/lib/python3.10/dist-packages/urllib3/util/connection.py", line 3, in <module>
d’ag. 29 13:19:47 amplify-agent[547917]:     from .wait import wait_for_read
d’ag. 29 13:19:47 amplify-agent[547917]:   File "/usr/local/lib/python3.10/dist-packages/urllib3/util/wait.py", line 1, in <module>
d’ag. 29 13:19:47 amplify-agent[547917]:     from .selectors import (
d’ag. 29 13:19:47 amplify-agent[547917]:   File "/usr/local/lib/python3.10/dist-packages/urllib3/util/selectors.py", line 14, in <module>
d’ag. 29 13:19:47  amplify-agent[547917]:     from collections import namedtuple, Mapping
d’ag. 29 13:19:47  amplify-agent[547917]: ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
d’ag. 29 13:19:47  systemd[1]: amplify-agent.service: Control process exited, code=exited, status=1/FAILURE
d’ag. 29 13:19:47  systemd[1]: amplify-agent.service: Failed with result 'exit-code'.
d’ag. 29 13:19:47  systemd[1]: Failed to start NGINX Amplify Agent.
defanator commented 2 months ago

@dtalens could you please show output of dpkg -s nginx-amplify-agent?

dtalens commented 2 months ago

Output:

Package: nginx-amplify-agent
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 1238
Maintainer: NGINX Packaging <nginx-packaging@f5.com>
Architecture: amd64
Version: 1.8.2-1~jammy
Depends: python3:any, python3-daemon, python3-setproctitle, python3-greenlet, python3-gevent, python3-requests, python3-ujson, python3-netifaces, python3-pymysql, python3-psutil, lsb-release, adduser
Conffiles:
 /etc/amplify-agent/agent.conf.default c4831c94e00e9de9cf24bd14a040287c
 /etc/init.d/amplify-agent cac1488d95443fbc0b5f0eeb5da0d250
 /etc/logrotate.d/amplify-agent da238aa3d910729211814d1de3e9ed4c
Description: Agent for NGINX Amplify monitoring platform
 The NGINX Amplify Agent is a small, Python application that provides
 system and NGINX metric collection. It is part of NGINX Amplify -
 the monitoring and configuration assistance service for NGINX.
 .
 This package installs and runs NGINX Amplify Agent daemon.
 .
 See http://nginx.com/amplify for more information