Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start after reboot failed #113

Open
dtalens opened this issue Aug 29, 2024 · 2 comments
Open

Start after reboot failed #113

dtalens opened this issue Aug 29, 2024 · 2 comments

Comments

@dtalens
Copy link

dtalens commented Aug 29, 2024

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
Copy link
Contributor

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

@dtalens
Copy link
Author

dtalens commented Aug 30, 2024

Output:

Package: nginx-amplify-agent
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 1238
Maintainer: NGINX Packaging <[email protected]>
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants