Project

General

Profile

Actions

tickets #166181

closed

Discourse shows an error when trying to update the theme

Added by hellcp about 2 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Forum
Target version:
-
Start date:
2024-09-02
Due date:
% Done:

0%

Estimated time:

Description

Errors like the following show up in https://forums.opensuse.org/logs/ whenever I try to hit the Check for updates button on https://forums.opensuse.org/admin/customize/themes/2
Errno::ENOENT (No such file or directory - /tmp/discourse_theme_8ce0dc736ef884236395bbe561c444b7)


Files

Actions #1

Updated by crameleon about 2 months ago

  • Private changed from Yes to No
Actions #2

Updated by crameleon about 2 months ago

  • Status changed from New to In Progress
  • Assignee set to crameleon

At the same time the button is pressed, the following denial is logged:

type=AVC msg=audit(1725313485.688:50250): apparmor="DENIED" operation="exec" class="file" profile="/discourse-apps//timeout" name="/usr/libexec/git/git-write-tree" pid=894289 comm="timeout" requested_mask="x" denied_mask="x" fsuid=470 ouid=0
Actions #3

Updated by crameleon about 2 months ago

# rpm -qf /etc/apparmor.d/discourse
discourse-apparmor-1.3.0+git15.2a11136-1.1.noarch

 ~/W/o/h/apparmor-profiles-nordisch> grep url _service
    <param name="url">https://git.nordisch.org/darix/apparmor-profiles-nordisch.git</param>

There does not seem to be a way to register https://git.nordisch.org/darix/apparmor-profiles-nordisch to submit a patch.

I made the attached patch and will ask @darix to apply it.

For now, I applied it manually on discourse01, and confirmed the update check to be working.

Actions #5

Updated by crameleon about 2 months ago

  • Status changed from In Progress to Resolved

Update installed.

Actions

Also available in: Atom PDF