tiredofit / docker-invoiceninja

Dockerized invoicing web application
MIT License
15 stars 3 forks source link

Not running on RPi 5 #11

Open armond-avanes opened 9 months ago

armond-avanes commented 9 months ago

I'm trying to run the latest available image from Docker Hub, which is 1.0.77, on a Raspberry Pi 5. But I get a blank page after a successful installation and container initialization. When I inspect the source code of the page, I see the following comment in the page source:

<!--

If you are reading this, there is a fair change that the react application has not loaded for you. There are a couple of solutions:

1. Download the release file from https://github.com/invoiceninja/invoiceninja and overwrite your current installation.
2. Switch back to the Flutter application by editing the database, you can do this with the following SQL

UPDATE accounts SET
set_react_as_default_ap = 0;

-->

UPDATE: I checked accounts.set_react_as_default_ap for the only record that was in the database (coming from auto-created admin account, using ADMIN_EMAIL and ADMIN_PASS environment variables), the value was "1" for that field. Could the issue be with the admin creation code?

UPDATE 2: I manually updated accounts.set_react_as_default_ap to 0 as directed in the embedded comments in the page source and it fixed the issue! It will be great if you can fix it on the admin account creation side so that no manual update is needed.