Uninstalling Etherpad for Upgrade

Hi,

i have already updates my UCS Master to 4.2 and i want now to upgrade as well my slave which is still on 4.1.4.
Therefore i need to uninstall the etherpad app. It is currently installed in version 1.6.0, but i have the feeling that there is just the app-center entry available, but no files anymore (why ever). The app center shows me that there is an update available. If i try to uninstall it, i get the following error message:

Ein Fehler ist aufgetreten: No container found. Unable to backup

When i then log out and log in again, it tells me that there are not execute join scripts:
51etherpad-lite-uninstall
I execute this and it tells me that i was executed succesfully.
Unfortunately, the App is still listed in the App Center of the slave. In the app center of the master it is not listed.
As i cannot uninstall the app, i cannot upgrade my system.

Kind Regards,

Tobias Lorentz

Hi,

Has no one an idea?
This is blocking me from upgrading.

Kind Regards,

Tobias Lorentz

Hi,

first of all, you should be able to update to UCS 4.2 with Etherpad 1.6.0 installed. What is the error message of the “Software update” module (or univention-upgrade if you are working with the command line)?

Anyway, your Etherpad installation seems to be broken. On the Slave, is the Docker Container running?

docker ps -a

What does

ucr search --brief appcenter/apps/etherpad-lite

say? If your Slave’s App Center module says it is installed but your Master’s module does not, there is something wrong with the registration of the App (either “false positive” or “false negative”). But I think we should be able to work that out.

Kind regards,
Dirk Wiesenthal

Hi Dirk,

first, thank you very much for your help.
When i execute univention-upgrade i get the following result:

root@ucs2:/home/tobias# univention-upgrade

Starting univention-upgrade. Current UCS version is 4.1-4 errata479

Checking for local repository:                          none
Checking for package updates:                           none
Checking for app updates:                               none
Checking for release updates:                          The update to UCS 4.2 is blocked because the component 'etherpad-lite_20150807' is marked as required.
 none

docker seems to run:

root@ucs2:/home/tobias# docker ps -a
CONTAINER ID        IMAGE                                                                     COMMAND                CREATED             STATUS                       PORTS                   NAMES
36da6c5a7679        nextcloud/univention-app-image:12.0.3-0                                   "/bin/sh -c /usr/sbi   4 weeks ago         Up 3 weeks                   0.0.0.0:40000->80/tcp   evil_mcclintock                                      
f1a4475f75cf        javierprovecho/docker-codebox:latest                                      "/usr/bin/codebox ru   10 months ago       Exited (130) 10 months ago                           stupefied_hopper                                     
9bd1c84f0471        javierprovecho/docker-codebox:latest                                      "/usr/bin/codebox ru   10 months ago       Exited (130) 10 months ago                           serene_nobel                                         
c41e72e450ec        javierprovecho/docker-codebox:latest                                      "/usr/bin/codebox ru   10 months ago       Exited (130) 10 months ago                           prickly_poincare                                     
3576ec6a4d3c        javierprovecho/docker-codebox:latest                                      "/usr/bin/codebox ru   10 months ago       Exited (130) 10 months ago                           drunk_ritchie                                        
9c916c79336d        wernight/codiad:latest                                                    "/entrypoint.sh s6-s   10 months ago       Exited (0) 10 months ago                             angry_wright                                         
1be45a2c01f3        wernight/codiad:latest                                                    "/entrypoint.sh s6-s   10 months ago       Exited (0) 10 months ago                             evil_nobel                                           
d8c22c5a7e27        wernight/codiad:latest                                                    "/entrypoint.sh s6-s   10 months ago                                                            jolly_lovelace                                       
4c757c4ae31e        b847a1e6af8c9c28bd136abc6df4459821412e29a391dd0e6b187dc1ca3900f6:latest   "gitlab-runner-build   11 months ago                                                            runner-81fa22fb-project-12-concurrent-0-predefined

The command ucr search --brief appcenter/apps/etherpad-lite returns nothing on the slave as well as on the master.

Kind Regards,

Tobias Lorentz

Seems to be very old, I think that was before UCS 4.1 was released with docker. So you should check this on the master:

ucr search --brief repository/online/component

Hi,

the output of this command on the master is:

root@ucs:~# ucr search --brief repository/online/component                                                                                                                                                           
repository/online/component/.*/clean: <empty>                                                                                                                                                                        
repository/online/component/.*/description: <empty>                                                                                                                                                                  
repository/online/component/.*/erratalevel: <empty>                                                                                                                                                                  
repository/online/component/.*/localmirror: <empty>                                                                                                                                                                  
repository/online/component/.*/password: <empty>                                                                                                                                                                     
repository/online/component/.*/port: <empty>                                                                                                                                                                         
repository/online/component/.*/prefix: <empty>                                                                                                                                                                       
repository/online/component/.*/server: <empty>                                                                                                                                                                       
repository/online/component/.*/unmaintained: <empty>                                                                                                                                                                 
repository/online/component/.*/username: <empty>                                                                                                                                                                     
repository/online/component/.*/version: <empty>                                                                                                                                                                      
repository/online/component/.*: <empty>                                                                                                                                                                              
repository/online/component/4.0-3-errata/description: Errata updates for UCS 4.0-3                                                                                                                                   
repository/online/component/4.0-3-errata/localmirror: true                                                                                                                                                           
repository/online/component/4.0-3-errata/version: 4.0                                                                                                                                                                
repository/online/component/4.0-3-errata: false                                                                                                                                                                      
repository/online/component/4.0-4-errata/description: Errata updates for UCS 4.0-4                                                                                                                                   
repository/online/component/4.0-4-errata/server: updates.software-univention.de/                                                                                                                                     
repository/online/component/4.0-4-errata/unmaintained: disabled                                                                                                                                                      
repository/online/component/4.0-4-errata/version: 4.0                                                                                                                                                                
repository/online/component/4.0-4-errata: enabled                                                                                                                                                                    
repository/online/component/4.1-0-errata/description: Errata updates for UCS 4.1-0                                                                                                                                   
repository/online/component/4.1-0-errata/localmirror: true                                                                                                                                                           
repository/online/component/4.1-0-errata/version: 4.1                                                                                                                                                                
repository/online/component/4.1-0-errata: false                                                                                                                                                                      
repository/online/component/4.1-1-errata/description: Errata updates for UCS 4.1-1                                                                                                                                   
repository/online/component/4.1-1-errata/localmirror: true                                                                                                                                                           
repository/online/component/4.1-1-errata/version: 4.1                                                                                                                                                                
repository/online/component/4.1-1-errata: false                                                                                                                                                                      
repository/online/component/4.1-2-errata/description: Errata updates for UCS 4.1-2                                                                                                                                   
repository/online/component/4.1-2-errata/localmirror: true                                                                                                                                                           
repository/online/component/4.1-2-errata/version: 4.1                                                                                                                                                                
repository/online/component/4.1-2-errata: false                                                                                                                                                                      
repository/online/component/4.1-3-errata/description: Errata updates for UCS 4.1-3                                                                                                                                   
repository/online/component/4.1-3-errata/localmirror: true                                                                                                                                                           
repository/online/component/4.1-3-errata/version: 4.1                                                                                                                                                                
repository/online/component/4.1-3-errata: false                                                                                                                                                                      
repository/online/component/4.1-4-errata/description: Errata updates for UCS 4.1-4                                                                                                                                   
repository/online/component/4.1-4-errata/unmaintained: disabled                                                                                                                                                      
repository/online/component/4.1-4-errata/version: 4.1                                                                                                                                                                
repository/online/component/4.1-4-errata: enabled                                                                                                                                                                    
repository/online/component/4.2-0-errata/description: Errata updates for UCS 4.2-0                                                                                                                                   
repository/online/component/4.2-0-errata/localmirror: true                                                                                                                                                           
repository/online/component/4.2-0-errata/version: 4.2                                                                                                                                                                
repository/online/component/4.2-0-errata: false                                                                                                                                                                      
repository/online/component/4.2-1-errata/description: Errata updates for UCS 4.2-1                                                                                                                                   
repository/online/component/4.2-1-errata/localmirror: true                                                                                                                                                           
repository/online/component/4.2-1-errata/version: 4.2                                                                                                                                                                
repository/online/component/4.2-1-errata: false                                                                                                                                                                      
repository/online/component/4.2-2-errata/description: Errata updates for UCS 4.2-2                                                                                                                                   
repository/online/component/4.2-2-errata/version: 4.2                                                                                                                                                                
repository/online/component/4.2-2-errata: enabled                                                                                                                                                                    
repository/online/component/cool-solutions/unmaintained: enabled                                                                                                                                                     
repository/online/component/cool-solutions/version: current                                                                                                                                                          
repository/online/component/cool-solutions: disabled                                                                                                                                                                 
repository/online/component/kopano-core_20170530164016/description: Kopano Core                                                                                                                                      
repository/online/component/kopano-core_20170530164016/localmirror: false                                                                                                                                            
repository/online/component/kopano-core_20170530164016/server: https://appcenter.software-univention.de                                                                                                              
repository/online/component/kopano-core_20170530164016/version: current                                                                                                                                              
repository/online/component/kopano-core_20170530164016: enabled                                                                                                                                                      
repository/online/component/kopano-webapp_20170530164135/description: Kopano WebApp                                                                                                                                  
repository/online/component/kopano-webapp_20170530164135/localmirror: false                                                                                                                                          
repository/online/component/kopano-webapp_20170530164135/server: https://appcenter.software-univention.de                                                                                                            
repository/online/component/kopano-webapp_20170530164135/version: current                                                                                                                                            
repository/online/component/kopano-webapp_20170530164135: enabled                                                                                                                                                    
repository/online/component/z-push-kopano_20170630110344/description: Z-Push for Kopano                                                                                                                              
repository/online/component/z-push-kopano_20170630110344/localmirror: false                                                                                                                                          
repository/online/component/z-push-kopano_20170630110344/server: https://appcenter.software-univention.de                                                                                                            
repository/online/component/z-push-kopano_20170630110344/version: current                                                                                                                                            
repository/online/component/z-push-kopano_20170630110344: enabled

Kind Regards,

Tobias Lorentz

Hi,

okay, it seems that Etherpad 1.6 was not installed on your DC Slave. Instead it was / is 1.5.6-2. The one notable difference is that the first is a Docker App, the latter is not. Upgrading from one App to another is tricky most of the times. Therefore, this Article exists: http://wiki.univention.de/index.php?title=Etherpad-lite_App_Migration

But this is probably not working here as the App registration is still broken.

What does

univention-app info

and

ucr search --brief repository/online/component

on your DC Slave say?

Did you actually use Etherpad or was it just installed for testing? Do we need to look into backing up some data or can we just ignore it?

Kind regards,
Dirk Wiesenthal

On your DC Master, what does the following give you?

udm appcenter/app list | grep DN:

Hi,

here are the results of the above commands on the slave:

root@ucs2:~# univention-app info
UCS: 4.1-4 errata479
App Center compatibility: 4
Installed: kde=4 kvm=1.1.2 nextcloud=12.0.3-0 radius=3.0 samba4=4.5 uvmm=5 xrdp=0.8.1
Upgradable:
 root@ucs2:~# ucr search --brief repository/online/component
repository/online/component/.*/clean: <empty>
repository/online/component/.*/description: <empty>
repository/online/component/.*/erratalevel: <empty>
repository/online/component/.*/localmirror: <empty>
repository/online/component/.*/password: <empty>
repository/online/component/.*/port: <empty>
repository/online/component/.*/prefix: <empty>
repository/online/component/.*/server: <empty>
repository/online/component/.*/unmaintained: <empty>
repository/online/component/.*/username: <empty>
repository/online/component/.*/version: <empty>
repository/online/component/.*: <empty>
repository/online/component/4.1-0-errata/description: Errata updates for UCS 4.1-0
repository/online/component/4.1-0-errata/localmirror: true
repository/online/component/4.1-0-errata/version: 4.1
repository/online/component/4.1-0-errata: false
repository/online/component/4.1-1-errata/description: Errata updates for UCS 4.1-1
repository/online/component/4.1-1-errata/localmirror: true
repository/online/component/4.1-1-errata/version: 4.1
repository/online/component/4.1-1-errata: false
repository/online/component/4.1-2-errata/description: Errata updates for UCS 4.1-2
repository/online/component/4.1-2-errata/localmirror: true
repository/online/component/4.1-2-errata/version: 4.1
repository/online/component/4.1-2-errata: false
repository/online/component/4.1-3-errata/description: Errata updates for UCS 4.1-3
repository/online/component/4.1-3-errata/localmirror: true
repository/online/component/4.1-3-errata/version: 4.1
repository/online/component/4.1-3-errata: false
repository/online/component/4.1-4-errata/description: Errata updates for UCS 4.1-4
repository/online/component/4.1-4-errata/version: 4.1
repository/online/component/4.1-4-errata: enabled
repository/online/component/cool-solutions/unmaintained: yes
repository/online/component/cool-solutions/version: current
repository/online/component/cool-solutions: yes
repository/online/component/etherpad-lite_20150807/description: Etherpad
repository/online/component/etherpad-lite_20150807/localmirror: false
repository/online/component/etherpad-lite_20150807/server: appcenter.software-univention.de
repository/online/component/etherpad-lite_20150807/unmaintained: disabled
repository/online/component/etherpad-lite_20150807/version: current
repository/online/component/etherpad-lite_20150807: enabled
repository/online/component/xrdp_20150902/description: RDP Server (xrdp)
repository/online/component/xrdp_20150902/localmirror: false
repository/online/component/xrdp_20150902/server: appcenter.software-univention.de
repository/online/component/xrdp_20150902/unmaintained: disabled
repository/online/component/xrdp_20150902/version: current
repository/online/component/xrdp_20150902: enabled

… and the one on the master:

root@ucs:~# udm appcenter/app list | grep DN:
DN: univentionAppID=kde_4,cn=kde,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=kvm_1.1.2,cn=kvm,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=radius_3.0,cn=radius,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=uvmm_5,cn=uvmm,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=xrdp_0.8.1,cn=xrdp,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=etherpad-lite_1.5.6-2,cn=etherpad-lite,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=samba4_4.5,cn=samba4,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=dudle_1.1.0-1,cn=dudle,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=owncloud82_9.1.4-20170427,cn=owncloud82,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=cups_1.7.5,cn=cups,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=fetchmail_6.3.26,cn=fetchmail,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=kvm_1.2.8,cn=kvm,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=pkgdb_10,cn=pkgdb,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=radius_4.0,cn=radius,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=samba4_4.6,cn=samba4,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=self-service_2.0,cn=self-service,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=uvmm_6,cn=uvmm,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=kopano-core_8.3.1.32,cn=kopano-core,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=kopano-webapp_3.3.0.610,cn=kopano-webapp,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=z-push-kopano_2.3.7,cn=z-push-kopano,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=onlyoffice-ds_4.4.1.38,cn=onlyoffice-ds,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=nextcloud_12.0.3-0,cn=nextcloud,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de
DN: univentionAppID=mattermost_4.2.0,cn=mattermost,cn=apps,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de

I had just installed etherpad for testing, so there is no need for backup up something.

Kind Regards,

Tobias Lorentz

Hi,

somehow the App is registered, but not installed. This may be caused by some software update that automatically removed the package “etherpad-lite” (e.g., due to some conflicts in the package list). The App Center was not involved in uninstalling the App and thus could not unregister it properly. If you search your /var/log/univention/updater.log* files, you may find the answer.

Anyway, to fix it, you should only need to “repair” the installation state:

univention-app register etherpad-lite=1.5.6-2

on the DC Slave should erase any leftovers. After that, the update to UCS 4.2 should be possible as there is not more etherpad-Repository in the way.

Kind regards,
Dirk Wiesenthal

Thank you very much! That helped!

Mastodon