Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade from 10.13.2 to 10.3.3 fails with redis:6.2.14 #116

Open
jnweiger opened this issue Nov 22, 2023 · 2 comments
Open

upgrade from 10.13.2 to 10.3.3 fails with redis:6.2.14 #116

jnweiger opened this issue Nov 22, 2023 · 2 comments

Comments

@jnweiger
Copy link
Contributor

jnweiger commented Nov 22, 2023

  • run the 10.13.3 appliance in virtual box
  • ssh into the system
  • upgrade to the 10.13.3 app from the test-appcenter:
univention-install univention-appcenter-dev
univention-app dev-use-test-appcenter
univention-app list owncloud
univention-app upgrade owncloud

owncloud fails to start. volume mounts are not used any longer. An empty config.php gets created.

# univention-app shell owncloud ls -la /var/lib/univention-appcenter/apps/owncloud/conf
total 48
drwxr-xr-x 2 www-data www-data  4096 Nov 22 19:20 .
drwxr-xr-x 4 www-data www-data  4096 Nov 22 19:19 ..
-rw-r----- 1 www-data www-data  2200 Nov 22 19:20 config.php
-rw-r--r-- 1 www-data www-data   762 Nov 22 19:17 ldap
-rw-r--r-- 1 www-data www-data  1408 Nov 16 17:54 objectstore.config.php
-rw-r--r-- 1 www-data www-data 18915 Nov 16 17:56 overwrite.config.php
-rw-r--r-- 1 www-data www-data   167 Nov 22 19:19 owncloud_app_list
-rw-r--r-- 1 www-data www-data   211 Nov 16 17:58 trusted-domains.config.php

# univention-app shell owncloud ls -la /var/www/owncloud/config
total 112
drwxrwxrwx 1 www-data root      4096 Nov 22 19:19 .
drwxrwxr-x 1 www-data root      4096 Nov 21 16:27 ..
-rw-r--r-- 1 www-data root     30362 Nov 21 16:26 config.apps.sample.php
-rw-r--r-- 1 www-data www-data     0 Nov 22 19:19 config.php
-rw-r--r-- 1 www-data root     65577 Nov 21 16:26 config.sample.php


# cat /var/lib/univention-appcenter/apps/owncloud/data/files/owncloud-appcenter.log:
[01.PRE_INST] Base configuration for ownCloud
[02.DOCKER_SETUP] Enable user_ldap app
[02.DOCKER_SETUP] user_ldap enabled successfully! after 6 tries
[02.DOCKER_SETUP] Waiting for LDAP app testing...
[02.DOCKER_SETUP] user_ldap tested successfully! after 1 tries
[02.DOCKER_SETUP] Read base configs for ldap
[02.DOCKER_SETUP] creating new ldap config in docker setup script
Created new configuration with configID 's01'
[02.DOCKER_SETUP] setting variables from values in docker setup script
Enabled logging backend: owncloud
Log level: Error (3)
Log timezone: UTC
[02.DOCKER_SETUP] Is the collabora certificate is mounted correctly
There is no Collabora Certificate
Analysing known accounts ...

    1 [>---------------------------]

No removed users have been detected.


Inserting new and updating all known users from OCA\User_LDAP\User_Proxy ...
    0 [>---------------------------]


Sync of users finished, encountered 0 errors.
[01.PRE_INST] Base configuration for ownCloud
[02.DOCKER_SETUP] Enable user_ldap app
[02.DOCKER_SETUP] Enabling of user_ldap FAILED! after 20 tries
[02.DOCKER_SETUP] Waiting for LDAP app testing...
[02.DOCKER_SETUP] Testing of user_ldap FAILED! after 40 tries
[02.DOCKER_SETUP] Read base configs for ldap
[02.DOCKER_SETUP] setting variables from values in docker setup script
ownCloud is not installed - only a limited number of commands are available

                                                          
  There are no commands defined in the "ldap" namespace.  
@jnweiger jnweiger changed the title upgrade from 10.13.2 to 10.3.3 fails upgrade from 10.13.2 to 10.3.3 fails with redis:6.2.14 Nov 22, 2023
@jnweiger
Copy link
Contributor Author

In 10.13.2 we had two symlinks, that get lost during the upgrade:

# univention-app shell owncloud ls -la /var/www/owncloud
total 700
drwxrwxr-x 1 www-data root   4096 Nov 16 17:54 .
drwxr-xr-x 1 root     root   4096 Nov  6 20:04 ..
-rw-r--r-- 1 www-data root   5079 Nov 16 19:13 .htaccess
-rw-r--r-- 1 www-data root    163 Oct 10 14:52 .user.ini
-rw-r--r-- 1 www-data root   8859 Oct 10 14:52 AUTHORS
-rw-r--r-- 1 www-data root 515266 Oct 10 14:52 CHANGELOG.md
-rw-r--r-- 1 www-data root  34520 Oct 10 14:52 COPYING
-rw-r--r-- 1 www-data root   3102 Oct 10 14:52 README.md
drwxrwxrwx 1 www-data root   4096 Nov  6 20:04 apps
drwxr-xr-x 2 www-data root   4096 Nov 16 17:54 apps-external
lrwxrwxrwx 1 root     root     48 Nov 16 17:54 config -> /var/lib/univention-appcenter/apps/owncloud/conf
-rw-r--r-- 1 www-data root   3678 Oct 10 14:52 console.php
drwxr-xr-x 1 www-data root   4096 Oct 10 14:53 core
-rw-r--r-- 1 www-data root   1717 Oct 10 14:52 cron.php
lrwxrwxrwx 1 root     root     55 Nov 16 17:54 custom -> /var/lib/univention-appcenter/apps/owncloud/data/custom
-rw-r--r-- 1 www-data root  31204 Oct 10 14:52 db_structure.xml
-rw-r--r-- 1 www-data root    179 Oct 10 14:52 index.html
-rw-r--r-- 1 www-data root   2607 Oct 10 14:52 index.php
drwxr-xr-x 1 www-data root   4096 Oct 10 14:52 lib
-rwxr-xr-x 1 www-data root    283 Oct 10 14:52 occ
drwxr-xr-x 1 www-data root   4096 Oct 10 14:52 ocm-provider
drwxr-xr-x 1 www-data root   4096 Oct 10 14:52 ocs
drwxr-xr-x 1 www-data root   4096 Oct 10 14:52 ocs-provider
-rw-r--r-- 1 www-data root   3135 Oct 10 14:52 public.php
-rw-r--r-- 1 www-data root   5624 Oct 10 14:52 remote.php
drwxr-xr-x 1 www-data root   4096 Oct 10 14:52 resources
-rw-r--r-- 1 www-data root     26 Oct 10 14:52 robots.txt
drwxr-xr-x 1 www-data root   4096 Oct 10 14:52 settings
-rw-r--r-- 1 www-data root   2231 Oct 10 14:52 status.php
drwxr-xr-x 1 www-data root   4096 Jul 13 20:40 updater
-rw-r--r-- 1 www-data root    282 Oct 10 14:52 version.php

@jnweiger
Copy link
Contributor Author

Root cause analysis:

  • docker redis:6.2.14 does not start, it loops in restarting
  • error handling is lacking. scripts just continue. Everything else we see is red herrings.

Downgrading to redis:6.4.7 fixes everything.

Now univention-app upgrade owncloud works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant