Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Blank white page during installation after db config

Jacksonlee   ( User )

Commented 3 years 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 )

Commented 3 years ago

Using the latest stable release Akaunting_2.0.15-Stable.zip

Denis Dulici   ( Admin )

Commented 3 years ago

Hello,

You should not use an empty env file.

Regards

Jacksonlee   ( User )

Commented 3 years 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 )

Commented 3 years 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 )

Commented 3 years ago

Detailed installation configurations can be found here: https://github.com/akaunting/akaunting/issues/1529

Ron   ( User )

Commented 3 years ago

Any progress with this issue? I am trying to install and same thing happens to me.

David Swanson   ( User )

Commented 3 years ago

I had the same problem. When I changed to SMTP for email and clicked save I started receiving the blank white page. I then went into the Akaunting directory on the server and checked the .env file. When I commented out the email password and refreshed the web page it all came back. Apparently, it does not like certain characters in my password. Now, mine was due to SMTP but maybe yours is something else. I would recommend checking your .env file and commenting out any line that may have "special" characters to see if that works.

David Swanson   ( User )

Commented 3 years ago

Quick update. I found that if you have a backslash --> \ <-- in your password is what is causing my white page. I would check your .env file and make sure there are no backslashes.
I did file a bug report on GitHub.

Please login or register to leave a response.

Showing 1 to 9 of 9 discussions