Actions
tickets #166181
closedDiscourse shows an error when trying to update the theme
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
Updated by crameleon 4 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
Updated by crameleon 4 months ago
- File 0001-Discourse-allow-git-write-tree.patch 0001-Discourse-allow-git-write-tree.patch added
- Status changed from In Progress to Blocked
# 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