mriedmann / humhub-docker

Alpine-based PHP-FPM and NGINX HumHub docker-container
MIT License
95 stars 79 forks source link

Since the new update of mariadb, fail to load the app #265

Closed zarevskaya closed 2 years ago

zarevskaya commented 2 years ago

Hi!

This morning i had an update for mariadb.

Now the app cannot run.

/docker-entrypoint.sh: Starting pre-launch ...

/docker-entrypoint.sh: Existing installation found!

/docker-entrypoint.sh: Waiting for database connection...

db (172.26.0.2:3306) open

/docker-entrypoint.sh: Config preprocessing ...

/docker-entrypoint.sh: installation active

/docker-entrypoint.sh: debug disabled

/docker-entrypoint.d/50-humhub-validate.sh

/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration

/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/

/docker-entrypoint.sh: Launching /docker-entrypoint.d/50-humhub-validate.sh

validating ...

*** Performing database integrity checks

Exception 'yii\db\Exception' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'humhub.activity' doesn't exist

The SQL being executed was: SELECT COUNT(*) FROM `activity`'

in /var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/db/Schema.php:678

Error Info:

Array

(

    [0] => 42S02

    [1] => 1146

    [2] => Table 'humhub.activity' doesn't exist

)

Caused by: Exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'humhub.activity' doesn't exist'

in /var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/db/Command.php:1299


zarevskaya commented 2 years ago

Abandoned by its author this account... :D

mriedmann commented 2 years ago

/docker-entrypoint.sh: Existing installation found! but the activity table (most likely the first table) is not found. I assume your new DB is empty, so you have to reinitialize the db-schema. The easiest way is to delete your data-volumes. If you have existing data you want to use, I hope you got a backup of your Database that you can import into the new Database.

zarevskaya commented 2 years ago

Yes, it's okay now ;) Thank you!