question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to track down logs / sources of problems?

See original GitHub issue

I’m getting some “502 Bad Gateway (openresty)” error that I’m not able to yet track down.

I assume that I should be using docker logs --follow nginx-proxy-manager or docker exec -it nginx-proxy-manager bash and track them in /var/log… but I’m not seeing any error via these methods when I hit the 502 error.

Where do I look to find such errors? I don’t think the error would be coming from elsewhere due to the openresty message and nothing else behind it is using this, but I’d sure like to understand how to see everything flowing through with as high of a degree of transparency as possible in order to understand what errors are happening from whatever cause, etc.

Could you please clarify this to me in terms of troubleshooting and what you’d do to track such details down @jc21?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jc21commented, Jun 9, 2020

For 502 errors they should show in the Nginx error log, inside the container this is /data/logs/error.log but since you should also be mounting this data folder from outside of the container you can access it without having to enter the container.

0reactions
chaptergycommented, May 12, 2021

I don’t think you should use 127.0.0.1 or localhost as the forward ip / hostname as this will forward the request inside the NPM docker container, where it does not find anything. You will need to use the IP in your local network. So localhost or 127.0.0.1 is NOT your host machine in NPM, it is the NPM docker container itself.

But this is a little off topic for this issue, as it is about how to debug errors.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Awesome Retrace Logging & Error Tracking Features
1. Organize your logs with structured logging and #tags ... Retrace gives developers the ability to see all of their application errors and...
Read more >
Locate error logs to troubleshoot a problem - Microsoft Support
Locate error logs to troubleshoot a problem · Type File Explorer in your start bar and open it. · Copy (Ctrl+C) this command:...
Read more >
Log Analysis for System Troubleshooting | Rapid7 Blog
Identify the problem: Question the user (or make observations) and identify user (or other) changes to the system. Perform backups before making ...
Read more >
7 Best Practices and 8 Best Tools for Log Monitoring
Manage your logs efficiently by following these 7 best practices for log monitoring. Also, find a list of 8 best log monitoring tools....
Read more >
Access and Error Logs - The Ultimate Guide To Logging - Loggly
Access and Error Logs. Log Files. An Apache log is a record of the events that have occurred on your Apache web server....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found