2 title = "Debugging Errors"
3 description = "How to find the cause of issues in BookStack"
8 This page details how you can find out more information about errors you may face and the resolutions to common problems we often see.
10 - [Showing Error Details](#showing-error-details)
11 - [Common Issues & Resolutions](#common-issues--resolutions)
12 - [Blank White Screen on Access](#blank-white-screen-on-access)
13 - [No Styles and Large Icons on Access](#no-styles-and-large-icons-on-access)
14 - [Submitting Issues](#submitting-issues)
16 ### Showing Error Details
18 When using BookStack, Especially when initially setting it up or after updating, you may come across some errors. While we try to reduce these as much as possible and make them helpful sometimes you may come across a bland, non-helpful 'An error has occurred' message. This is to prevent any potentially sensitive information being shown to all users.
20 _**NOTE: While debugging is enabled it's possible for users to be able to see private credentials used in the BookStack or server configuration. Ensure debugging is only enabled when your instance is not accessible by others. Remember to disable debugging before restoring user access.**_
22 To enable full error displaying edit the `.env` file, in the application root directory, and find the line `APP_DEBUG=false`. Change this to `APP_DEBUG=true` and the errors will be displayed in full with details of where it occurred. Remember to revert this change once you have found the issue so that the detailed error information is hidden from everyone.
24 On top of the above, An error log can be found at the path `storage/logs/laravel.log`. If the `laravel.log` file does not exist the `storage/logs` directory may not be writable by the server.
26 ### Common Issues & Resolutions
28 The below lists some of the common issues we see, when it comes to installing & maintaining BookStack, and their usual resolutions.
30 ##### Blank White Screen on Access
32 A completely blank screen, when attempting to access your BookStack instance, is commonly due to system/folder permission issues.
33 Check that webserver user has read/write access to the `bootstrap/cache`, `storage` and `public/uploads` folders within your BookStack install.
34 On a common Ubuntu install this can usually be done by running `sudo chown -R www-data:www-data bootstrap/cache storage public/uploads` from within the BookStack install folder.
36 If you don't believe this is due to permissions, and you have nothing in the `storage/logs/laravel.log` file as detailed above, you'd next want to look at your webserver error logs which can commonly be found within `/var/log/nginx/` or `/var/logs/apache2/`.
38 ##### No Styles and Large Icons on Access
40 If the page loads, but shows large icons and appears broken, it generally means the system is generating incorrect paths to some required files
41 or those files do not exist.
43 - Check that the `APP_URL` option is set in your `.env` file and ensure it matches the URL you're accessing BookStack on (Including the "https://" or "http://" component).
44 - Check that you're using the `release` code branch. If you cloned the project without a branch flag, or downloaded the files from GitHub, you may be using the development branch files which does not include some of these required files.
46 ##### After changing the `APP_URL` option no images are shown
48 BookStack will store absolute URL paths for some content, such as images, in the database.
49 If you change your base URL for BookStack this can be problematic.
50 This command will essentially run a find & replace operation on all relevant tables in the database.
51 Be sure to take a database backup for running this command.
54 # Searches for <oldUrl> and replaces it with <newUrl>
55 php artisan bookstack:update-url <oldUrl> <newUrl>
58 php artisan bookstack:update-url http://docs.example.com https://demo.bookstackapp.com
63 If you have found the cause of the issue, and it is not an issue with your particular setup, you can submit it on the [GitHub issues page](https://github.com/BookStackApp/BookStack/issues). Please include as much information as possible when creating an issue along with steps detailing how to replicate it so the bug can be fixed by a developer.