-
Notifications
You must be signed in to change notification settings - Fork 9
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
Amplify Agent inactive after start. #76
Comments
@PietroLiuzzo based on the logs it seems like there's no network reachability from your instance to Amplify receiver endpoint (https://receiver.amplify.nginx.com/) - could you please check the following:
|
Thanks for your reply! I am not sure about ICMP. I have tried the following and I am not able to get an IP back. If you can tel me how you would check I would be happy to run what you suggest
It worked perfectly until yesterday. Then I reinstalled, in order to change the API key used to that of a colleague taking over the supervision. It did not work and even going back to my own API key is giving this error. |
@PietroLiuzzo could you please show an output of the following commands:
TIA! |
lsb_release -a
dpkg -s nginx-amplify-agent
curl -vi https://receiver.amplify.nginx.com/1.4/45243040b0ec78e52d221cc425f6a439/agent/
|
I am not even sure what TIA! means.... sorry! |
@PietroLiuzzo no worries (TIA is just "thanks in advance"). Could you please change the
and restart the agent? (This is not a permanent solution - we're just trying to understand whether there are any issues with your local resolver as initial logs pointed to that thing.) |
I have done that
saved and run
|
TIA! |
@PietroLiuzzo it seems like you've broken agent.conf somehow. Please try to restore it manually from original default one (https://github.com/nginxinc/nginx-amplify-agent/blob/master/etc/agent.conf.default), or by running install script once again, then change Please note that agent may overwrite |
sorry, I have done this running the install script once again
Here I have changed then
|
@PietroLiuzzo what's in agent logs? (/var/log/amplify-agent/agent.log) |
|
looks to me like the first one, but with the IP instead of the url :) |
@PietroLiuzzo thanks for doing that. You mentioned that you were re-installing the agent (https://github.com/nginxinc/nginx-amplify-agent/issues/215#issue-1106529879) - does it mean you may have running another (older) one before? If so, could you please try to figure out which version was running, and how it was installed? Also, an output of the following commands would help us to check some theory:
|
I had to install pip, then I run the two commands and here are the results.
|
I installed amplify on 14 April 2021 following the standard easy procedure with success on this server, and then never needed to touch it again. I did regular updates and the first time a issue comes up is now. |
(no major setup changes occurred on the server since) |
@PietroLiuzzo thanks for providing additional details. So far it seems like your particular system doesn't work well with new Amplify agent version 1.8.0 running under Python 3. This is a recent update. In April 2021 you were getting older one (1.7.0) which was running under Python 2. You may want to downgrade an agent to check this assumption, though I would encourage to spin up a fresh 18.04 or 20.04 instance / server (if this is acceptable) and try to re-install latest agent. We use 18.04 in our build and testing pipelines, and we weren't noticing anything similar to your issue before. The one difference I noticed is that we are using 5.4 kernel while your installation is still on 4.15, but I've just tested new agent's behavior on Ubuntu 18.04 with older 4.15 kernel and it works fine. Just for the record - in order to downgrade an agent from 1.8.0 to lower one, you'll need to edit your
After the change, run the following:
Then check that (The latest Python 2 based version for Ubuntu 18.04 should be I'm going to leave this one open just in case if we'll get other similar reports. |
Thanks! this solution worked well and I now see metrics again! |
@PietroLiuzzo could you please also show the output of the following (on the same system):
Thanks! |
|
I have a very similar problem, an agent was installed on a fresh system, but it works for a couple of minutes (at https://amplify.nginx.com/) but then goes red. On rare occasions, the nginx graphs show data for those couple of minutes, but the system graphs (like php) are always blank. It never shows CPU or memory load. Some additional information:
log with debug info:
I don't want to roll back to the old version, is there any chance they can fix it for python3? |
@ademaro could you please enable debug logging in the agent, and share full log for like 5 minutes after start? Are you seeing a message similar to this one: https://github.com/nginxinc/nginx-amplify-agent/issues/216#issuecomment-1016648877 ? |
@defanator its already with debug logging:
Full log here: https://paste.c-net.org/TraitsNotch |
Hi! I am trying to re-install Amplify on Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-166-generic x86_64).
I have now done several times the installation procedure but to no avail, I get the following
The log reports
Can anyone suggest how to solve this issue and get amplify back to work?
The text was updated successfully, but these errors were encountered: