mriedmann / humhub-docker

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

Humhub 1.16 #356

Closed mueller-ma closed 2 months ago

mueller-ma commented 2 months ago

Hi, could you update the latest tag to 1.16.0?

mueller-ma commented 2 months ago

When updating to 1.16, I get the following error:

Unknown command: search/rebuild
Caused by: Exception 'yii\base\InvalidRouteException' with message 'Unable to resolve the request "search/rebuild".'

in /var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/base/Module.php:561

Stack trace:
#0 /var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction()
#1 /var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/console/Application.php(147): yii\console\Application->runAction()
#2 /var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/base/Application.php(384): yii\console\Application->handleRequest()
#3 /var/www/localhost/htdocs/protected/yii(31): yii\base\Application->run()
#4 {main}
kritzi-at commented 2 months ago

the command has changed from yii search/rebuild to yii content-search/rebuild

https://docs.humhub.org/docs/admin/search/

mueller-ma commented 2 months ago

Thanks for the hint. I created https://github.com/mriedmann/humhub-docker/pull/358.

mriedmann commented 2 months ago

Merged and released. It should be fixed.

timwsuqld commented 1 month ago

@mriedmann I still have this issue on image a3eb8f463f79 (1.16.1). Is there another tag I should be using to get this fix?

mueller-ma commented 1 month ago

I don't have this issue with ghcr.io/mriedmann/humhub-allinone:1.16.1@sha256:4bb262e82689421a06cfee113a51c91ef4d3885e7dbc90545309ffd0057ac32c. But the latest version from a different image has this issue:

$ docker run -it --entrypoint sh mriedmann/humhub:1.16.1
/ # grep search docker-entrypoint.sh
                php yii search/rebuild
mriedmann commented 1 month ago

@mriedmann I still have this issue on image a3eb8f463f79 (1.16.1). Is there another tag I should be using to get this fix?

I am confused now ... The 1.6.1 Tag on Docker-Hub has this digest: sha256:0c53cc33b4abf4f6550c2cb1e9aaa321294cbf02bf15af56d2aa70bcfc76345e

Not sure where you got the a3eb8f463f79 but maybe try to pull the image again.

mueller-ma commented 1 month ago

That version doesn't include my commit https://github.com/mriedmann/humhub-docker/commit/87bd1800a70d1bb84c0a8a62540057690396c800:

$ docker run -it --entrypoint sh mriedmann/humhub:1.16.1@sha256:0c53cc33b4abf4f6550c2cb1e9aaa321294cbf02bf15af56d2aa70bcfc76345e
/ # grep search docker-entrypoint.sh
                php yii search/rebuild
timwsuqld commented 1 month ago

a3eb8f463f79 is the image ID, not the digest.

$ docker pull mriedmann/humhub:1.16.1
1.16.1: Pulling from mriedmann/humhub
<snip>
Digest: sha256:0c53cc33b4abf4f6550c2cb1e9aaa321294cbf02bf15af56d2aa70bcfc76345e
Status: Downloaded newer image for mriedmann/humhub:1.16.1
docker.io/mriedmann/humhub:1.16.1
$ docker inspect mriedmann/humhub:1.16.1
[
    {
        "Id": "sha256:a3eb8f463f7939418a56e9cee5803045b2dca815d21a867ec06d7d86eed5447d",
        "RepoTags": [
            "mriedmann/humhub:1.16.1"
        ],
        "RepoDigests": [
            "mriedmann/humhub@sha256:0c53cc33b4abf4f6550c2cb1e9aaa321294cbf02bf15af56d2aa70bcfc76345e"
        ],
<snip>

You can see a3eb8f463f79 in the id, but the digest is 0c53cc33b4abf4f6550c2cb1e9aaa321294cbf02bf15af56d2aa70bcfc76345e. Annoyingly when you do docker images it shows the ID.

@mueller-ma is right though, that base tag doesn't include their fix.