antedebaas / Viesti-Reports

DMARC & SMTP-TLS Reports processor and visualizer and BIMI file hoster
https://docs.viestireports.com/
GNU General Public License v2.0
79 stars 16 forks source link

Upgrade to 1.19 fails with Invalid platform version error #143

Closed webdeck closed 2 months ago

webdeck commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

Are you using the Docker image?

Database used

Database version used 15.8

Error Messages

In InvalidPlatformVersion.php line 22:

  Invalid platform version "" specified. The platform version has to be specified in the format: "<major_version>.<minor_version>.<patch_version>".       

Steps to Reproduce Please provide detailed steps to reproduce the problem:

  1. Upgrade to 1.19 from 1.18
  2. See this error both during upgrade and trying to access web page

Expected behavior Upgrade works

antedebaas commented 2 months ago
webdeck commented 2 months ago

Upgrade output: upgrade.txt

Where do I find the full log? mta-sts/var/log is an empty directory.

antedebaas commented 2 months ago

so you ran update.sh? what is your database connection string in .env.local? (remember to remove the password)

webdeck commented 2 months ago

Yes, I ran update.sh. Everything has been working fine on previous versions.

DATABASE_URL="postgresql://dmarcsmtptlsreports:REDACTED@localhost:5432/dmarcsmtptlsreports"

antedebaas commented 2 months ago

Not sure, but try and remove var/cache/prod under the project directory maybe that helps

webdeck commented 2 months ago

Same errors.

antedebaas commented 2 months ago

Maybe add ?serverVersion=15.8 at the end of the database string. Other than that I don’t know. I personally use Postgres 16.1+ so if you can upgrade that could be an solution

webdeck commented 2 months ago

That fixed it. Thank you!