Nextcloud, invalid value of port_http

Hi@all,

A message keeps appearing in the system diagnostics. This is the variable:

ucs/web/overview/entries/service/nextcloud/port_http

has an invalid value. In fact, this variable has no value. If I enter 80, the message disappears. From time to time, I assume after an update, the message appears again. When I then check, the variable again has no value.

Access to Nextcloud via HTTPS works without any problems. What is this variable for and what value do I have to set so that the message disappears permanently?

with best
sven

Hi,

This is a false positive which we also get. There was an update some time ago that introduced checking the types of UCR variables. I think this port_http variable is somehow created empty by UCS (other services also have it) and then not set by the Nextcloud app? Then it should be fixed in UCS itself by choosing a default with a valid type.

Best,

Andreas

Thank you for your feedback. I’ll set it back to 80 manually for the time being so that the message disappears.

Is there any easy way to set the default value to 80 in the Registry? Or can we modify any update scripts that set this undefined value? So far I haven’t found where this value is repeatedly overwritten, but the issue is quite annoying (despite it not causing any immediate issues)

EDIT:
Adding “Default=80” to the respective variable entry in /etc/univention/registry.info/variables/univention-apache.cfg and doing a ucr commit works but then shows a modified template warning in the system diagnosis. So I guess it “solves” it by moving the issue somewhere else

[ucs/web/overview/entries/.*/port_http]
Description[en]=Forces the port for URL of the corresponding entry of the UCS start site. Used when the start site is opened with HTTP or when no port_https variable is set. Full format: ucs/web/overview/entries/{admin,service}/<entryID>/port$
Description[de]=Erzwingt den Port für die URL des entsprechenden Eintrages der UCS-Startseite. Findet Verwendung, falls die Startseite per HTTP aufgerufen wird oder falls port_https nicht gesetzt wurde. Vollständiges Format: ucs/web/overview/$
Type=portnumber
Default=80
Categories=service-apache
Mastodon