invoiceninja / dockerfiles

Docker files for Invoice Ninja
https://hub.docker.com/r/invoiceninja/invoiceninja
GNU General Public License v2.0
405 stars 262 forks source link

Cannot log in after the update from 5.8.39 to 5.8.46 #573

Closed johann8 closed 5 months ago

johann8 commented 6 months ago

Setup information

docker-compose Default docker-compose.yml

Describe the bug I cannot log in after the update from 5.8.39 to 5.8.46. The following message appears: FormatException: Not a properly formatted version string. I went back to version 5.8.3.9 and it works again.

To reproduce Steps to reproduce the behavior:

  1. docker-compose pull
  2. docker-compose down && docker-compose up -d
  3. Go to login page and login
  4. See error: FormatException: Not a properly formatted version string

Expected behavior Registration should work

Screenshots/logs Inv_error

tail -f -n2000 /opt/invoiceninja/docker/app/storage/logs/laravel.log

[2024-04-08 23:30:01] production.INFO: updating currencies
[2024-04-09 06:20:00] production.INFO: Performing Autobilling 2024-04-09 06:20:00

docker-compose logs

nginx         | 2024/04/09 12:46:58 [warn] 21#21: *12 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/2/00/0000000002 while reading upstream, client: 172.21.0.4, server: _, request: "POST /api/v1/login?first_load=true&include_static=true HTTP/1.1", upstream: "fastcgi://172.26.5.2:9000", host: "xxxxxxxx.de", referrer: "https://inv.xxxxxxxx.de/"
nginx         | 172.21.0.4 - - [09/Apr/2024:12:46:58 +0200] "POST /api/v1/login?first_load=true&include_static=true HTTP/1.1" 200 927253 "https://inv.xxxxxxx.de/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0" "xx.xx.xx.xx"
invoiceninja  | 172.26.5.1 -  09/Apr/2024:10:46:57 +0000 "POST /index.php" 200
invoiceninja  |   2024-04-09 10:46:58 App\Jobs\Mail\NinjaMailerJob ............. 635.68ms DONE
invoiceninja  |   2024-04-09 10:46:58 App\Jobs\Util\SystemLogger ..................... RUNNING
invoiceninja  |   2024-04-09 10:46:58 App\Jobs\Util\SystemLogger ................ 20.00ms DONE
invoiceninja  |   2024-04-09 10:46:58 App\Listeners\Mail\MailSentListener ............ RUNNING
invoiceninja  |   2024-04-09 10:46:58 App\Listeners\Mail\MailSentListener ....... 15.78ms DONE
invoiceninja  |    INFO  No scheduled commands are ready to run.
invoiceninja  |

cat docker/app/public/version

5.8.46

cat docker/app/public/version.json

{"app_name":"invoiceninja_flutter","version":"5.0.156","build_number":"156","package_name":"invoiceninja_flutter"}
Any Error that sucks

Docker/Kubernetes/Helm:

Server: Docker Engine - Community Engine: Version: 26.0.0 API version: 1.45 (minimum version 1.24) Go version: go1.21.8 Git commit: 8b79278 Built: Wed Mar 20 15:17:57 2024 OS/Arch: linux/amd64 Experimental: true containerd: Version: 1.6.28 GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb runc: Version: 1.1.12 GitCommit: v1.1.12-0-g51d5e94 docker-init: Version: 0.19.0 GitCommit: de40ad0

<!-- Additional info if using helm on k8s, add the info below -->
<!-- Delete this block if not applicable -->
- Output of `helm version`:

(paste your output here)

- Output of `kubectl version`:

(paste your output here)


<!-- End Additional info if using helm on k8s -->

**Additional context**
Add any other context about the problem here.
johann8 commented 5 months ago

I have solved the problem with the login. I have changed in-vhost.conf as follows:

...
    root /var/www/app/public/;
    #index index.php;
...

Now login works. But I have discovered other problems.

  1. See the picture Inv_error1

  2. Night mode is not saved. You have to reactivate it after every login.

turbo124 commented 5 months ago

You may want to open another issues for dark mode.