Broken setup page

Hi,

After testing and tweaking ninja we’ve decided to scrap the test invoiceninja and start anew in a production enviroment. However after initial setup we get greeted by this - .

Has anyone had this happen to them before? We have it set up on Ubuntu 16.04 with apache2 (followed this) on port 80. The database is not local however (and its not MariaDB but MySQL) but it worked on the test invoiceninja without problems so that shouldnt be the issue. Also if I input all the info on this setup page it throws the red banner with “Whoops something went wrong”.

Br, Z

Are there any errors in the browser console, it looks like the CSS is failing to load.

Indeed it would seem so.

The log:

Blocked loading mixed active content “http://ninja.sinergise.com/built.js?no_cache=4.5.7”[Learn More] setup
Blocked loading mixed active content “http://ninja.sinergise.com/built.js?no_cache=4.5.7”[Learn More] setup
Loading failed for the <script> with source “http://ninja.sinergise.com/built.js?no_cache=4.5.7”. setup:7:1
Blocked loading mixed active content “http://ninja.sinergise.com/css/built.public.css?no_cache=4.5.7”[Learn More] setup
Blocked loading mixed active content “http://ninja.sinergise.com/css/built.css?no_cache=4.5.7”[Learn More] setup
Blocked loading mixed active content “http://ninja.sinergise.com/css/built.public.css?no_cache=4.5.7”[Learn More] setup
Blocked loading mixed active content “http://ninja.sinergise.com/css/built.css?no_cache=4.5.7”[Learn More] setup
ReferenceError: $ is not defined[Learn More] setup:120:7
mailDriverChange
https://ninja.sinergise.com/setup:120:7
<anonymous>
https://ninja.sinergise.com/setup:97:5
Loading mixed (insecure) display content “http://ninja.sinergise.com/favicon.png?test” on a secure page[Learn More]

It looks like it’s related to HTTPS, it could be a configuration issue.

Am trying but getting nowhere. It goes over http without a problem but if I try to run it through haproxy e.g. https it wont budge… I’ve tried setting .env to require HTTPS, changed APP_URL into http://IP:81 tried https aswell and also ninja.domain.com iterations… added TRUSTED_PROXIES our loadbalancer haproxy IP… what am I missing?

Maybe this will help:

https://github.com/invoiceninja/invoiceninja/issues/1393#issuecomment-288381953