Upgrade 4.2 error - system stalled joinscripts

While performing an upgrade from 4.1-4 to 4.2 the system stalled running joinscripts. This process took over 6 hours before reaching to that point.

There are several things left unconfigured. But when running dpkg --configure -a the system stall on the joinscripts without sending any information to the logs ( dpkg.log, updater.log).

Bellow some outputs:


root@mail:/etc/apt/sources.list.d# uname -a
Linux mail 4.1.0-ucs222-amd64 #1 SMP Debian 4.1.6-1.222.201701250821 (2017-01-25) x86_64 GNU/Linux

t@mail:/etc/apt/sources.list.d# cat 20_ucs-online-component.list

deb http://appcenter.software-univention.de/univention-repository/4.1/maintained/component/ oxseforucs_20170123162817/all/
deb http://appcenter.software-univention.de/univention-repository/4.1/maintained/component/ oxseforucs_20170123162817/amd64/
deb http://updates.software-univention.de/3.2/maintained/component/ 3.2-5-errata/all/
deb http://updates.software-univention.de/3.2/maintained/component/ 3.2-5-errata/amd64/
# Configuration error: component not found: oxoutlook783
# Configuration error: component not found: oxdrive783
deb http://appcenter.software-univention.de/univention-repository/4.1/maintained/component/ open-xchange-text_20160901105322/all/
deb http://appcenter.software-univention.de/univention-repository/4.1/maintained/component/ open-xchange-text_20160901105322/amd64/
deb http://updates.software-univention.de/4.1/maintained/component/ 4.1-4-errata/all/
deb http://updates.software-univention.de/4.1/maintained/component/ 4.1-4-errata/amd64/
# Configuration error: component not found: oxdrivehelp200
# Configuration error: component not found: oxmobility783
# Configuration error: component not found: oxofficeweb783
# Configuration error: component not found: oxoffice783
# Configuration error: component not found: oxreaderengine783
# Configuration error: component not found: oxusm783
# Configuration error: component not found: oxdocconv783
deb http://updates.software-univention.de/4.0/maintained/component/ 4.0-4-errata/all/
deb http://updates.software-univention.de/4.0/maintained/component/ 4.0-4-errata/amd64/
# Configuration error: component not found: backend783
deb http://updates.software-univention.de/3.2/maintained/component/ 3.2-7-errata/all/
deb http://updates.software-univention.de/3.2/maintained/component/ 3.2-7-errata/amd64/
# Configuration error: component not found: oxdocconvapi783
# Configuration error: component not found: frontend783
# Configuration error: component not found: frontend62213

root@mail:/etc/apt/sources.list.d# dpkg --audit
The following packages are only half configured, probably due to problems
configuring them the first time.  The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 univention-portal    Univention Portal - Central portal web page for a UCS dom

root@mail:/etc/apt/sources.list.d# dpkg --configure univention-portal
Setting up univention-portal (1.0.12-1A~ …
Calling joinscript 33univention-portal.inst …
2017-05-13 10:29:02.943991237-05:00 (in joinscript_init) < ---- IT STALLS HERE!!!


any help … higly appreciated.

Rolando Riley

Hi! I guess there might be more information in /var/log/univention/join.log
Feel free to attach it here or copy&paste the recent entries.


     Find attached,

join.txt (5.1 KB)



I guess you’re running into this issue that I’ve run into over the weekend as well. You can circumvent the problem this way:

  1. Run the join scripts
  2. When the portal script hangs press Ctrl+D once.
  3. Wait ~10 seconds (that’s how long the nc command’s timeout is, and that timeout only starts when you press Ctrl+D)
  4. The join script should continue now.

Edit: Please post the output of ls -l /etc/alternatives/nc as well.

What to do with join process stalled? Should I kill it ? It has at least 3 days locked.


Like I said: in the console where the seemingly stalled process runs, press Ctrl+D, then wait ~10 seconds. The process should continue.

Okay… Here is the Output aftewards.

Object exists: cn=portal,cn=univention,dc=airesistemas,dc=com
Object exists: cn=portal,cn=custom attributes,cn=univention,dc=airesistemas,dc=com
Object exists: cn=domain,cn=portal,cn=univention,dc=airesistemas,dc=com
Object exists: cn=umc-domain,cn=portal,cn=univention,dc=airesistemas,dc=com
Object exists: cn=local,cn=portal,cn=univention,dc=airesistemas,dc=com
Object exists: cn=umc-local,cn=portal,cn=univention,dc=airesistemas,dc=com
Not updating ucs/web/overview/entries/admin/ucs-local-to-domain/label
Not updating ucs/web/overview/entries/admin/ucs-local-to-domain/label/de
Not updating ucs/web/overview/entries/admin/ucs-local-to-domain/label/fr
Not updating ucs/web/overview/entries/admin/ucs-local-to-domain/description
Not updating ucs/web/overview/entries/admin/ucs-local-to-domain/description/de
Not updating ucs/web/overview/entries/admin/ucs-local-to-domain/description/fr
Not updating ucs/web/overview/entries/admin/ucs-local-to-domain/icon
Not updating ucs/web/overview/entries/admin/ucs-local-to-domain/link
E: object not found
Joinscript 33univention-portal.inst finished with exitcode 3
File: /usr/share/univention-portal/apps.json

… Will proceed with your instructions.


Here is the output for nc

root@mail:/etc/apt/sources.list.d# ls -l /etc/alternatives/nc
lrwxrwxrwx 1 root root 19 Sep 25  2015 /etc/alternatives/nc -> /bin/nc.traditional


Yep, that matches my assumption. That’s most likely the issue I’ve linked to.

Alright Moritz,
CTRL+D helped me to passthrough and now I don’t have any apt-get -f install or dpkg --configure -a issue. Having said that, when checking the interfaces

             1)  No Univention Console is available
             2)  Left with errors on mismatching  Cyrus
15 10:11:19 mail cyrus/imap[18831]: DBERROR: init() on berkeley
May 15 10:12:27 mail cyrus/lmtp[18862]: DBERROR db5: BDB1538 Program version 5.3 doesn't match environment version 5.1
May 15 10:12:27 mail cyrus/lmtp[18862]: DBERROR: dbenv->open '/var/lib/cyrus/db' failed: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
May 15 10:12:27 mail cyrus/lmtp[18862]: DBERROR: init() on berkeley
May 15 10:12:28 mail cyrus/imaps[18863]: DBERROR db5: BDB1538 Program version 5.3 doesn't match environment version 5.1
May 15 10:12:28 mail cyrus/imaps[18863]: DBERROR: dbenv->open '/var/lib/cyrus/db' failed: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch


Will try to continue with upgrading process tonight. What would be the packages to look if install or not for the Management-Console ?


Can you please open a new topic for those problems? They’re unrelated to the topic at hand, the “portal” join script being stalled. Having separate topics for separate issues helps everyone involved and makes looking for information easier for other users affected by only one of those issues. Thanks.

To get you started: try running univention-upgrade again.

Alright I will. Thanks.

Rolando Riley

Good Night,
I am keeping on this thread because after succesfully being able run univention-upgrade; the system now stalls at this point. Please see files attached of the actual updater.log .

     Any advice on how to deal with this process, highly appreciated

Rolando Riley

Again, like I said: press Ctrl+D now, and the process should continue after ~10 seconds or so.

To be clear: in the window where you’ve started the univention-upgrade program, you should press and hold Ctrl, press d once, release both.

                                                           failed (exitcode: 3)
Running 34univention-management-console-server.inst        skipped (already executed)
Running 35univention-appcenter-docker.inst                 skipped (already executed)
Running 35univention-management-console-module-appcenter.inskipped (already executed)
Running 35univention-management-console-module-diagnostic.iskipped (already executed)
Running 35univention-management-console-module-ipchange.insskipped (already executed)
Running 35univention-management-console-module-join.inst   skipped (already executed)
Running 35univention-management-console-module-lib.inst    skipped (already executed)
Running 35univention-management-console-module-mrtg.inst   skipped (already executed)
Running 35univention-management-console-module-quota.inst  skipped (already executed)
Running 35univention-management-console-module-reboot.inst skipped (already executed)
Running 35univention-management-console-module-services.insskipped (already executed)
Running 35univention-management-console-module-setup.inst  skipped (already executed)
Running 35univention-management-console-module-sysinfo.instskipped (already executed)
Running 35univention-management-console-module-top.inst    skipped (already executed)
Running 35univention-management-console-module-ucr.inst    skipped (already executed)
Running 35univention-management-console-module-udm.inst    skipped (already executed)
Running 35univention-management-console-module-updater.instskipped (already executed)
Running 35univention-server-overview.inst                  skipped (already executed)

Everytime de CTRL+D is excuted and exit code 3 with a fail message is received. Will keep you posted. So far NO management console is accesible during this upgrade.


In order to avoid that portal script hanging, you should install the package netcat-openbsd and make sure that the symlink /etc/alternatives/nc points to /bin/nc.openbsd and not nc.traditional. Do not remove the package netcat-traditional; that removal would cause the removal of several important univention-* packages, too.

Then try executing univention-run-join-scripts again.

Good Morning,
Alright, using CTRL+D everytime the system stalls resolved the problem of having the process finish 4.2 upgrade. Some package were left. So running univention-upgrade once again solved that problem aswell.
Currently running apt-get -f install or dpkg --configure -a doesn’t throw any pending package or problem left. sources lists now show everything clean. The system ended with an unable to resolve host which was easy to resolve by resetting UCR variable nameserver1.
Regardless of all good looking signals the univention-management-console is unavailable. I will open a separate topic for this.


Rolando Riley