207 Debugging your application

Posted About 6 years ago. Visible to the public.

If there is an error or if you need to check whether requests are arriving at your server you should check the corresponding logfiles.

Don't forget that you may have multiple application servers and that the log entries will only appear on the server handling the request. You should check on the logfiles on all servers your application is deployed to.

Logfiles

There are several logfiles belonging to your deployments (www.acme.com stands for your application name). The logfiles will be stored for each deployment separately.

/var/www/www.acme.com/log/

Here you will find the access.log and the error.log of the webserver in use..

/var/www/www.acme.com/shared/log/

The logfiles written by your application should be stored here.

/var/log/www.acme.com/log/passenger_all_apps.log

Passenger is the application server used to run your rails application. If your application can not start due to a critical error you will find the error message here (for e.g. syntax errors or missing secret_key_base). Log messages from different applications are all gathered together in this one log file, as the configuration option of passenger can be configured globally only. Due to that, this log is not available on shared hosting servers.

Live Debugger

This feature of Passenger needs Passenger Enterprise Show archive.org snapshot . We can set this up if you provide the necessary license.

With this you are able to attach a irb shell to a running passenger process.

Current state of passenger processes

You can get information about current running passenger processes. As this information is displaying details for all running passenger processes and could be called by every deploy user, it is not allowed by default.
If you want to use this feature please contact our Operations Team.

Claus-Theodor Riegg
Last edit
Over 2 years ago
Marius Schuller
License
Source code in this card is licensed under the MIT License.
Posted by Claus-Theodor Riegg to opscomplete (2018-01-22 11:52)