Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank screen on a new install with Display errors true #12

Open
gurumark opened this issue Aug 28, 2024 · 4 comments
Open

Blank screen on a new install with Display errors true #12

gurumark opened this issue Aug 28, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@gurumark
Copy link

I get a blank screen when I run the following. The logs does not show any error or warning. The database tables are created.

..........
Image: tiredofit/invoiceninja | Version 1.0.124 Type 'image_changelog' for details
Repository/Documentation: https://github.com/tiredofit/docker-invoiceninja/
License: MIT | © 2024 Dave Conroy

If this image provides you value - Consider sponsoring my work for continued
development, timely updates, and feature requests. Commercial support available.

                More Info:  https://www.tiredofit.ca

2024-08-28.09:40:43 [NOTICE] ** [timezone] Timezone: Setting to 'America/New_York' from 'Etc/GMT'
2024-08-28.05:40:44 [NOTICE] ** [monitoring] Container configured for monitoring with 'zabbix modern'
2024-08-28.05:40:44 [NOTICE] ** [scheduling] Container configured for scheduled tasks with 'cron'
2024-08-28.05:40:44 [NOTICE] ** [messaging] Container configured to route mail via SMTP to 'postfix-relay'
2024-08-28.05:40:46 [NOTICE] ** [php-fpm] Creating sample index.php
2024-08-28.05:40:48 [WARN] ** [invoiceninja] Potential New Installation / Standalone Installation Detected - Copying Invoice Ninja Sourcecode
2024-08-28.05:42:05 [INFO] ** [invoiceninja] Generating Configuration for the first time
2024-08-28.05:42:13 [INFO] ** [invoiceninja] Initialization Complete. Please visit https://REDACTED and login with your credentials..
2024-08-28.05:42:14 [STARTING] ** [nginx] [1] Starting nginx 1.27.0
2024-08-28.05:42:14 [STARTING] ** [php-fpm] [1] Starting php-fpm 8.2.22
2024-08-28.05:42:14 [STARTING] ** [monitoring] [1] Starting Zabbix Agent (modern) 7.0.2
2024-08-28.05:42:14 [STARTING] ** [scheduling] [1] Starting cron

................

docker run -d
--ip 172.18.0.134
-p 172.18.0.1:8034:80
--name inv.REDACTED
--net emdnet
--log-opt max-size=10m
--log-opt max-file=3
--restart=unless-stopped
-e "DB_HOST=REDACTED"
-e "DB_NAME=invoiceninjadb"
-e "DB_USER=REDACTED"
-e "DB_PASS=REDACTED"
-e "SITE_URL=https://inv.REDACTED"
-e "ADMIN_EMAIL=REDACTED"
-e "ADMIN_PASS=invoiceninja"
-e "ENABLE_SSL_PROXY=TRUE"
-e "APP_KEY=REDACTED"
-e "DISPLAY_ERRORS=TRUE"
-e "VIRTUAL_HOST=REDACTED"
-e "VIRTUAL_PORT=80"
-e "CERT_NAME=REDACTED"
-e "TIMEZONE=America/New_York"
tiredofit/invoiceninja:1.0.124

@gurumark gurumark added the bug Something isn't working label Aug 28, 2024
@gurumark
Copy link
Author

I turned the DEBUG on, now I see:

  • '[' debug = debug ']'

  • sudo -u nginx php artisan storage:link

    ERROR The [public/storage] link already exists.

  • mysql -u ninja_admin -pH73Dv5PQudRYtgv -h172.18.0.22 -P3306 -e 'use invoiceninjadb; SELECT * FROM users;'

  • '[' 0 -gt 0 ']'

  • cd /www/html

  • chown -R nginx:www-data storage bootstrap/cache public/css public/js

  • chmod -R ug+rwx storage bootstrap/cache public/css public/js

  • chown -R nginx:www-data /www/html

  • chmod ug+rwx /www/html

........
Then I tried to remove the storage directory and recreate it running the command:
sudo -u nginx php artisan storage:link
Now I get:
500 — Server Error
Check storage/logs for more details
on the screen instead of a blank screen.

@gurumark
Copy link
Author

I ran the following but it still shows the blank page and not error:
php artisan config:cache

  • php artisan config:cache

    INFO Configuration cached successfully.

[tiredofit/invoiceninja:1.0.124 10:21:38 /www/html] $ php artisan cache:clear

  • php artisan cache:clear

    INFO Application cache cleared successfully.

@EasyArt
Copy link

EasyArt commented Sep 30, 2024

Same Problem here. I fixed it by switching to the old Flutter GUI because the React app does not respond.

@timwsuqld
Copy link

React app also doesn't work, Flutter does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants