Changes

From Amahi Wiki
Jump to: navigation, search
584 bytes added ,  23:08, 6 August 2014
no edit summary
App install Application installs should <u>'''neverNEVER''' </u> fail. Period. App install failures are high priorityto the [https://www.amahi.org/team Amahi Team]
= Debugability =
Debugging app install issues is very important, so any time something permanently destructive is attempted, it should be done with care to preserve the ability to analyze and debug what happened:
# preserve * Preserve as much as possible from the existing (buggy) environment# make * Make sure httpd configuration is sane(result should be "'''Syntax OK'''"): httpd -t  * The idea is to not delete anything permanently - should copy or move things to, say "Syntax OK", a folder in /tmp if you have to get something out of their place. For example: mkdir /tmp/app-debug/
The idea is to not delete anything permanently - copy or move * Then add things to, saythere as necessary for later analysis, like: cp -a folder in /var/log/amahi-app-installer.log /tmp if you have to get something out of their place/app-debug cp -a /etc/httpd/conf. For example:d /tmp/app-debug
{{code|mkdir The user can provide this information:* Copy of the app install log:<blockquote><u>Fedora</u></blockquote> tail -300 /var/tmplog/amahi-app-debug/}}installer.log | fpaste
Then add things there as necessary for later analysis, like:<blockquote><u>Ubuntu</u></blockquote> tail -300 /var/log/amahi-app-installer.log | apaste
cp -a * Copy of the app error and access logs (i.e. Adminer is the app): cat /var/loghda/amahiweb-app-installerapps/adminer/logs/error.log cat /var/tmphda/appweb-debugcp -a apps/etcadminer/httpdlogs/confaccess.d /tmp/app-debuglog
ALso * To check if process is running (i.e. sab is the user can provide this informationapp):<blockquote><u>Fedora</u></blockquote> ps guax | grep sab | fpaste
# tail -300 <blockquote><u>Ubuntu</varu></log/amahi-app-installer.log blockquote> ps guax | grep sab | fpasteapaste
12,424

edits