Hello,
I tried to update my owncloud instance from from 10.12.2 to 10.15.0 but it did not work.
Steps to reproduce
- Follow this guide to update docker instances Installing with Docker
PS F:\Docker\owncloud> docker compose logs owncloud
owncloud_server | Creating volume folders...
owncloud_server | Creating hook folders...
owncloud_server | Waiting for MySQL...
owncloud_server | services are ready!
owncloud_server | Waiting for Redis...
owncloud_server | services are ready!
owncloud_server | Writing config file...
owncloud_server | Fixing base perms...
owncloud_server | Fixing data perms...
owncloud_server | Fixing hook perms...
owncloud_server | Upgrading server database...
owncloud_server | ownCloud is already latest version
owncloud_server | ownCloud is already latest version
owncloud_server | Writing objectstore config...
owncloud_server | Writing php config...
owncloud_server | Updating htaccess config...
owncloud_server | .htaccess has been updated
owncloud_server | Writing apache config...
owncloud_server | Enabling cron background...
owncloud_server | Set mode for background jobs to 'cron'
owncloud_server | Writing crontab file...
owncloud_server | Touching cron configs...
owncloud_server | Starting cron daemon...
owncloud_server | Starting apache daemon...
owncloud_server | [Sun Dec 29 21:28:45.204798 2024] [mpm_prefork:notice] [pid 162] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
-
docker inspect owncloud_server | Select-String "Image"
returns"Image": "sha256:31ef9f5a048989d2b24eef5a0debefd3ada3107e714f50369cfa0d774f15d8b9", "Image": "owncloud/server:10.15", "com.docker.compose.image": "sha256:31ef9f5a048989d2b24eef5a0debefd3ada3107e714f50369cfa0d774f15d8b9", "org.opencontainers.image.authors": "ownCloud DevOps \u003cdevops@owncloud.com\u003e", "org.opencontainers.image.description": "ownCloud - Secure Collaboration Platform", "org.opencontainers.image.documentation": "https://github.com/owncloud-docker/server", "org.opencontainers.image.ref.name": "ubuntu", "org.opencontainers.image.source": "https://github.com/owncloud-docker/server", "org.opencontainers.image.url": "https://hub.docker.com/r/owncloud/server", "org.opencontainers.image.vendor": "ownCloud GmbH",
docker exec -it owncloud_server cat /var/www/owncloud/version.php
returns:
$OC_Version = array(10,12,2,1);
$OC_VersionString = '10.12.2';
$OC_Edition = 'community';
$OC_VersionCanBeUpgradedFrom = [[8,2,11],[9,0,9],[9,1]];
$OC_Build = '2023-06-06T15:12:40+00:00 01ece70d7519e6fbea5b11fd5183c84c795e6862';
$vendor = 'owncloud';
Then I tried to run the commands by hand.
docker compose exec owncloud occ maintenance:mode --on
docker exec -it owncloud_server occ upgrade
ownCloud is in maintenance mode - no app have been loaded
ownCloud is in maintenance mode
Maybe an upgrade is already in process. Please check the logfile (data/owncloud.log). If you want to re-run the upgrade procedure, remove the “maintenance mode” from config.php and call this script again.
docker compose exec owncloud occ maintenance:mode --off
ownCloud is in maintenance mode - no app have been loaded
Maintenance mode disabled
docker exec -it owncloud_server occ upgrade
ownCloud is already latest version
docker exec -it owncloud_server cat /var/www/owncloud/version.php
still returns
<?php
$OC_Version = array(10,12,2,1);
$OC_VersionString = '10.12.2';
$OC_Channel = 'stable';
$OC_Edition = 'community';
$OC_VersionCanBeUpgradedFrom = [[8,2,11],[9,0,9],[9,1]];
$OC_Build = '2023-06-06T15:12:40+00:00 01ece70d7519e6fbea5b11fd5183c84c795e6862';
$vendor = 'owncloud';
Also the DB container is spaming this error:
[ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB')
I changed
mariadb:
image: mariadb:10.11
to
mariadb:
image: mariadb:10.6
in my docker-compose.yml
Does anybody know why this happend or what I could try to successfully upgrade?