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 =
* Make sure httpd configuration is sane (result should be "'''Syntax OK'''"):
{{Code| httpd -t}}
* The idea is to not delete anything permanently - copy or move things to, say, a folder in /tmp if you have to get something out of their place. For example:
{{code| mkdir /tmp/app-debug/}}
* Then add things there as necessary for later analysis, like:
{{Code| cp -a /var/log/amahi-app-installer.log /tmp/app-debug cp -a /etc/httpd/conf.d /tmp/app-debug}}
The user can provide this information:
* Copy of the app install log:
{{Code|<blockquote><u>Fedora</u></blockquote> tail -300 /var/log/amahi-app-installer.log <nowiki>|</nowiki> fpaste}}
<blockquote><u>Ubuntu</u></blockquote> tail -300 /var/log/amahi-app-installer.log | apaste * Copy of the app error and access logs (i.e. sabnzbd Adminer is the app):{{Code| cat /var/hda/web-apps/sabnzbdadminer/logs/error.log cat /var/hda/web-apps/sabnzbdadminer/logs/access.log}}
* To check if process is running (i.e. sab is the app):
{{Code|ps guax <nowikiblockquote>|</nowiki> grep sab <nowikiu>|Fedora</nowiki> fpaste}} = Miscellaneous ==== <u>Filesystem Corrupt</ublockquote> ===* Filesystems are corrupted, due to a power failure or system crash. Generally, after a system crash or power outage (what? No UPS?), the system will come up and repair itself. If you are using a journalling filesystem like ext3fs, jfs, xfs or resiserfs, it will usually perform a roll-forward recovery from its journal file and carry on. Even with the older ext2fs, the system usually runs an fsck (file system check) on the various file systems and repairs them automatically. However, just occasionally manual intervention is required - ; you might have to answer 'Y' to a string of questions (answering 'N' will get you nowhere unless you intend to perform really low-level repairs yourself in a last-ditch attempt to avoid data loss). In the worst case, you might have to reboot from rescue media and manuall run the e2fsck (or similar) command against each filesystem in turn. For example:{{Code ps guax |e2fsck -p /dev/hda7}} * If the program complains that the superblock - the master block that links to everything else - is corrupted, it is useful to remember that the superblock is so critical that it is duplicated every 8192 blocks through the filesystem and you can tell e2fsck to use one of the backups:{{Codegrep sab |e2fsck -b 8193 /dev/hda7}}fpaste
* One or more filesystems cannot be found and mounted: Check the contents of <blockquote><u>Ubuntu</etcu></fstab - in making quick alterations here, typographical errors are common. You can use the e2label command to view the label of each filesystem: some distributions set these to the mount point so you can figure out what is what.blockquote> ps guax | grep sab | apaste