Skip to content

Commit

Permalink
Merge pull request #184 from rhelmer/install-docs-cleanup
Browse files Browse the repository at this point in the history
Install docs cleanup
  • Loading branch information
rhelmer committed Nov 24, 2011
2 parents 325b189 + 404481a commit 1c231f4
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 925 deletions.
5 changes: 4 additions & 1 deletion docs/development.rst
Expand Up @@ -14,7 +14,6 @@ Development Discussions
standalone
unittesting
crashreprofilteringreport
databasepartitioning
diskperformancetests
dumpingdumptables
jsondumpstorage
Expand All @@ -26,3 +25,7 @@ Development Discussions
schema
databasesetup
commonconfig
creatingmatviews
databaseadminfunctions
databasetablesbysource
populatepostgres
1 change: 0 additions & 1 deletion docs/index.rst
Expand Up @@ -28,7 +28,6 @@ Contents:
middleware
ui
uiinstallation
uitroubleshooting
server
throttling
deployment
Expand Down
4 changes: 0 additions & 4 deletions docs/installation.rst
Expand Up @@ -270,7 +270,3 @@ Attempt to pull up the newly inserted crash: https://crash-stats/report/index/0f

The (syslog "user" facility) logs should show this new crash being inserted for priority processing, and it should be available shortly thereafter.

Known Issues
------------
* aggregate reports (top crashers, etc) do not work without existing data https://bugzilla.mozilla.org/show_bug.cgi?id=698943

2 changes: 1 addition & 1 deletion docs/standalone.rst
Expand Up @@ -46,7 +46,7 @@ Install and configure UI
mv ~/public_html ~/public_html.old
ln -s ./webapp-php ~/public_html

2) configure webapp (also see :ref:`uiinstallation-chapter` and :ref:`uitroubleshooting-chapter`)
2) configure webapp (also see :ref:`uiinstallation-chapter`)
::
cp htaccess-dist .htaccess
pushd webapp-php/application/config/
Expand Down
57 changes: 47 additions & 10 deletions docs/uiinstallation.rst
Expand Up @@ -6,17 +6,20 @@
UI Installation
===============

Installation
---------------

Follow these steps to get the Socorro UI up and running.

Apache
------
````````````

Set up Apache with a vhost as you see fit. You will either need
AllowOverride to enable .htaccess files or you may paste the .htaccess
rules into your vhost.

KohanaPHP Installation
----------------------
``````````````````````

1. Copy .htaccess file and edit the host path if your webapp is not at
the domain root.::
Expand Down Expand Up @@ -79,7 +82,7 @@ $config['display_errors'] to FALSE.
a+rw application/logs application/cache

Dump Files
----------
````````````

Socorro UI needs to access the processed dump files via HTTP. You will
need to setup Apache or some other system to ensure that dump files
Expand All @@ -95,7 +98,7 @@ application/config/application.php to point to the proper directory.


Raw Dump Files
--------------
```````````````

When a user is logged in to Socorro UI as an admin, they may view raw
crash dump files. These raw crashes can be served up by Apache by
Expand All @@ -111,13 +114,13 @@ Next, update the $config['raw_dump_url'] value in
application/config/application.php to point to the proper directory.

Web Services
------------
````````````

Many parts of Socorro UI rely on web services provided by the
Python-based middleware layer.

Middleware
----------
````````````

Copy the scripts/config/webapiconfig.py file, edit it accordingly and
execute the script to listen on the indicated port.::
Expand All @@ -127,7 +130,7 @@ execute the script to listen on the indicated port.::
python scripts/webservices.py 8083

Socorro UI
----------
````````````

Copy application/config/webserviceclient.php, edit the file and change
$config['socorro_hostname'] to contain the proper hostname and port
Expand All @@ -137,12 +140,12 @@ number. If necessary, update $config['basic_auth']::
vim application/config/webserviceclient.php

Testing Your Setup
------------------
```````````````````

There are 2 ways in which you can test your Socorro UI setup.

Search
------
````````````

Visit the website containing the Socorro UI, and click Advanced
Search. Perform a search for the product you've added to the site,
Expand All @@ -151,9 +154,43 @@ table in your database.


Report
------
````````````

Within the search results set you received, click a signature in the
results set. Next click the timestamp for a particular signature,
which will take you to a page that displays an individual crash
report.


Trouble Shooting
-----------------

println the sql
````````````````

To see what SQL queries are being executed: Edit
'webapp-php/system/libraries/Database.php' line 443 Kohana::log('debug', $sql);
Do a svn ignore on this file, if you plan on checking in code.

This will show up in the debug log 'application/logs/date.log.php'

Examine your database and see why you don't get the expected results.

404?
````````````

Is your '.htaccess' properly setup?

/report/pending never goes to /report/index?
`````````````````````````````````````````````

If you see a pending screen and didn't expect one this means that the
record in report and dumps couldn't be joined so it's waiting for the
processor on the backend to populate one or both tables. Investigate
with the uuid and look at reports and dump tables.

Config Files
````````````

Ensure that the appropriate config files in webapp/application/config
have been copied from ``.php-dist`` to ``.php``
39 changes: 0 additions & 39 deletions docs/uitroubleshooting.rst

This file was deleted.

0 comments on commit 1c231f4

Please sign in to comment.