Skip to content

NethSecurity UI configuration not updated on port 443 when upgrading during active use #1834

Description

@Tbaile

Steps to reproduce

  • Have the NethSecurity UI actively serving traffic on port 443 (ns-ui.config.nsui_enable=1)
  • Update the system/package while the UI is being served on that port

Expected behavior

The 00ns.locations nginx configuration file should be updated to the new package version's content on every update.

Actual behavior

The file is not replaced when the UI is actively being served through port 443 during the update. The new content is instead written alongside it as 00ns.locations.apk-new.

Workaround

[ -f /etc/nginx/conf.d/00ns.locations.apk-new ] && mv -f /etc/nginx/conf.d/00ns.locations.apk-new /etc/nginx/conf.d/00ns.locations && /etc/init.d/nginx restart

Components

Affected package: ns-ui 2.23.2

Additional context

Discussion: https://mattermost.nethesis.it/nethesis/pl/ghajfkgcq3d5fdxb7xymco98hc

Metadata

Metadata

Labels

testingPackages are available from testing repositories

Type

Projects

Status
Testing

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions