Forum

Blank white page during installation after db config

Posted in CategoryInstallation & Update
  • Jacksonlee    ( User ) 1 month ago
    Hi
    I've managed to get to the point where I can render the installation page.
    At first I was getting a 500 internal server error, but it did not tell me why. I proceeded to create an empty .env file with only APP_DEBUG=true in it, after which I was able to load the first part of the installation.

    Selecting language seemed to work, and setting configs for database connection seems to work, and I can see my .env file being updated, and 46 tables have been created in the database.

    However, from now on I only see a blank white page when I access my akaunting website, which is redirected to the directory /install/settings

    How can I find out what is causing the issue? As mentioned I enabled the APP_DEBUG flag, but I don't see any errors in my nginx error logs.

    There is one error in the laravel log under storage/logs, but I'm unsure if it's related. It doesn't seem to output anything when I refresh this particular page. The error is as below:

    local.ERROR: Trying to get property 'headers' of non-object {"exception":"[object] (ErrorException(code: 0): Trying to get property 'headers' of non-object at /var/www/mysite.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:185)
  • Jacksonlee    ( User ) 1 month ago
    Using the latest stable release Akaunting_2.0.15-Stable.zip
  • Denis Duliçi    ( Admin ) 1 month ago
    Hello,

    You should not use an empty env file.

    Regards
  • Jacksonlee    ( User ) 1 month ago
    Hi, thanks for the reply.

    I found that the original problem of error 500 was caused by missing permission on the root directory of the installation. With correct permission, the installation app successfully moved the .env.example to .env. However, after entering database details in the installation (3 stages), I now again see only a white page.

    There are no logs reported from laravel, and I see the web server returning on the following requests:
    /install/settings HTTP/1.1" 200
    /favicon.ico HTTP/1.1" 200
    /serviceworker.js HTTP/1.1" 304

    If anyone has any idea how to debug please let me know!
  • Jacksonlee    ( User ) 1 month ago
    I installed it on a server running debian 10 with nginx and php 7.3 as detailed here:
    https://www.linuxbabe.com/debian/install-akaunting-self-hosted-accounting-debian-10-buster

    Pretty much just a barebones install from the release zip into nginx www dir, and with MariaDB as the database back-end, and installation of php dependencies etc as debian packages.

    Should this be working, or do I have to install it as described in the readme in the git repo?
  • Jacksonlee    ( User ) 3 weeks ago
    Detailed installation configurations can be found here: https://github.com/akaunting/akaunting/issues/1529

Please login or register to leave a response.