Domain-join script 92univention-fetchmail-schema fails

After upgrading to Univention 5.0-3, unable to execute domain join script 92univention-fetchmail-schema.

JOINERR:FAILED: /usr/lib/univention-install/92univention-fetchmail-schema.inst
EXITCODE=1
35b9f8c8-1089-4083-a4ff-708481c6de8a
univention-join-hooks: looking for hook type “join/post-joinscripts” on ucs1.dreamlan.biz
Found hooks:

Same here (no Kopano, though). This is the full log:

univention-run-join-scripts started
So 12. Feb 11:38:34 CET 2023

univention-join-hooks: looking for hook type "join/pre-joinscripts" on lion.xxxx-net.intranet
Found hooks:
  
RUNNING 92univention-fetchmail-schema.inst
2023-02-12 11:38:35.494582780+01:00 (in joinscript_init)
Object exists: cn=ldapschema,cn=univention,dc=xxxx-net,dc=intranet
Object exists: cn=ldapacl,cn=univention,dc=xxxx-net,dc=intranet
INFO: No change of core data of object univention-fetchmail.
INFO: No change of core data of object 58univention-fetchmail-schema.
No modification: cn=univention-fetchmail,cn=ldapschema,cn=univention,dc=xxxx-net,dc=intranet

No modification: cn=58univention-fetchmail-schema,cn=ldapacl,cn=univention,dc=xxxx-net,dc=intranet

Waiting for activation of the extension object univention-fetchmail: OK
Waiting for activation of the extension object 58univention-fetchmail-schema: OK
Object exists: cn=udm_syntax,cn=univention,dc=xxxx-net,dc=intranet
INFO: No change of core data of object fetchmail.
Object modified: cn=fetchmail,cn=udm_syntax,cn=univention,dc=xxxx-net,dc=intranet

Waiting for activation of the extension object fetchmail: OK
Waiting for file /usr/lib/python3/dist-packages/univention/admin/syntax.d/fetchmail.py: OK
Object exists: cn=udm_hook,cn=univention,dc=xxxx-net,dc=intranet
INFO: No change of core data of object fetchmail.
No modification: cn=fetchmail,cn=udm_hook,cn=univention,dc=xxxx-net,dc=intranet

Waiting for activation of the extension object fetchmail: OK
Waiting for file /usr/lib/python3/dist-packages/univention/admin/hooks.d/fetchmail.py: OK
Object exists: cn=mail,cn=custom attributes,cn=univention,dc=xxxx-net,dc=intranet
Object exists: cn=FetchmailConfigSingle,cn=mail,cn=custom attributes,cn=univention,dc=xxxx-net,dc=intranet
Create extended attribute univentionFetchmailSingle univentionFetchmailMulti
Object exists: cn=FetchmailConfigMulti,cn=mail,cn=custom attributes,cn=univention,dc=xxxx-net,dc=intranet
Converting old fetchmail configuration...
Traceback (most recent call last):
  File "/usr/share/univention-fetchmail/migrate-fetchmail.py", line 155, in <module>
    main()
  File "/usr/share/univention-fetchmail/migrate-fetchmail.py", line 150, in main
    c.main()
  File "/usr/share/univention-fetchmail/migrate-fetchmail.py", line 92, in main
    ret = self.convert()
  File "/usr/share/univention-fetchmail/migrate-fetchmail.py", line 123, in convert
    passwd[0] if passwd else get_pw_from_rc(file, attrs['uid'][0].decode('UTF-8')).encode('UTF-8'),
AttributeError: 'NoneType' object has no attribute 'encode'

__JOINERR__:FAILED: /usr/lib/univention-install/92univention-fetchmail-schema.inst
EXITCODE=1
acd70254-ddb7-47d7-9d45-516152271688
univention-join-hooks: looking for hook type "join/post-joinscripts" on lion.xxxx-net.intranet
Found hooks:
  

So 12. Feb 11:38:48 CET 2023
univention-run-join-scripts finished


Can anybody explain what’s going on ?

Thanks - Martin

Hi,

I am experiencing the same issue here after the upgrade to 5.0-3.

fetchmail was installed (from the App-Center) but is not in use, means the fetchmail service is disabled and set to manuell startup. I also tried already to uninstall fetchmail but this is also leading to an error with the join-script (92univention-fetchmail-schema.inst).

Any hint how to perform a “clean” uninstall of fetchmail or how to get rid of the above describe issue with the join-script would be much appreciated.

In my case I am using fetchmail and it still seems to work despite the message.

I have already removed it in 4.x but I get a join-error message on my primary node anyway.

Hello,

I need to install fetchmail but currently it’s not possible.

 fetchmail
 univention-fetchmail
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to install the App
Aborting...
Resolving dependencies for fetchmail
Going to remove Fetchmail (6.3.26)
Showing README for fetchmail=6.3.26
Configuring fetchmail=6.3.26
No hostdn for fetchmail found. Nothing to remove

Has anyone an idea how I can make it?
Thank you in advance.

Regards
Hendrik

Same here with 5.0.3.

Configure 92univention-fetchmail-schema.inst failed


  • Join failed! *
  • Contact your system administrator *


this happens in WebGUI and bash. No fix found untill now.

Hello,

same issue here. I got the error on an exisiting system and an brand new installed.

I got the error code ()
FileNotFoundError: [Errno 2] No such file or directory: ‘/etc/ldap.secret’

This file is really missing but system generated backup are exisiting

This file doesn’t exisit in an backup half a year back. So there are changes with the new version

Mastodon