Bug 45787 - Portal: no blog entry after installing from DVD
Portal: no blog entry after installing from DVD
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Portal
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Florian Best
Jürn Brodersen
:
: 47823 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-11-28 17:59 CET by Felix Botner
Modified: 2021-05-25 16:02 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
setup.log (237.28 KB, text/x-log)
2017-11-28 18:00 CET, Felix Botner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2017-11-28 17:59:41 CET
during the setup "something" triggers the blog portal entry ucr handler, but the handler fails at this point

28.11.17 16:20:23.394  LISTENER    ( WARN    ) : initializing module license_uuid
W: The config registry variable 'uuid/license' does not exist
LDAP Error: No such object
Traceback (most recent call last):
...
subprocess.CalledProcessError: Command '['univention-directory-manager', 'settings/portal_entr ... returned non-zero exit status 3

At least one problem might be, that 33univention-portal is called at a later stage!

2017-11-28 16:21:19.532102992+01:00 (in joinscript_save_current_version)
__MSG__:Configure 33univention-portal
Configure /usr/lib/univention-install/33univention-portal.inst
2017-11-28 16:21:19.834778392+01:00 (in joinscript_init)
Object created: cn=portal,cn=univention,dc=test,dc=local
Object created: cn=portal,cn=custom attributes,cn=univention,dc=test,dc=local
...

=> no blog entry in portal after DVD installation of UCS master!
Comment 1 Felix Botner univentionstaff 2017-11-28 18:00:02 CET
Created attachment 9291 [details]
setup.log
Comment 2 Ingo Steuwer univentionstaff 2020-07-03 20:55:25 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
Comment 3 Florian Best univentionstaff 2020-07-03 22:58:35 CEST
I see this traceback every time I look into Jenkins.
Comment 4 Florian Best univentionstaff 2020-07-08 17:13:20 CEST
The reason is that in this early state no joinscripts have run, so that cn=portal,cn=univention does not yet exists.
Either add it to the base.ldif (no really preferred) or ignore the error and re-register the UCR module in the joinscript where this object is created.

Configure 15univention-directory-notifier-post.inst Wed Jul  8 13:23:47 CEST 2020

08.07.20 13:23:56.182  LISTENER    ( WARN    ) : initializing module license_uuid
W: The config registry variable 'uuid/license' does not exist
Create license/base
Module: univention_blog
Exception: Modifying blog entry failed: 3: LDAP Error: No such object
['univention-directory-manager', 'settings/portal_entry', 'create', '--ignore_exists', '--position', 'cn=portal,cn=univention,dc=AutoTest091,dc=local', '--set', 'name=univentionblog', '--set', 'activated=TRUE', …]
Comment 5 Florian Best univentionstaff 2020-07-14 12:38:11 CEST
univention-portal (4.0.0-2)
 Bug #45787: prevent traceback in UCR handler if system is not yet joined

univention-portal (4.0.0-5)
 Bug #45787: re-create univention-blog portal entry

changelog-5.0-0.xml
 Changelog Bug #45787
Comment 6 Jürn Brodersen univentionstaff 2020-07-17 11:11:08 CEST
What I tested:
Installed a ucs 5 system
  -> Blog related join.log error is gone :)
  -> Blog entry is created after setup

-> Verified
Comment 7 Florian Best univentionstaff 2020-08-10 09:56:34 CEST
*** Bug 47823 has been marked as a duplicate of this bug. ***
Comment 8 Florian Best univentionstaff 2021-05-25 16:02:53 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

If this error occurs again, please use "Clone This Bug".