[
https://issues.apache.org/jira/browse/OPENMEETINGS-2822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18093924#comment-18093924
]
Maxim Solodovnik commented on OPENMEETINGS-2822:
------------------------------------------------
Hello [~greenes2],
I was able to reproduce this issue using following steps:
# Download Ubuntu 26.04 server ISO from https://ubuntu.com/download/server
# Install {{Minimum}} server
# add required packages: {{sudo apt install imagemagick ghostscript
libreoffice}}
# Download latest OM from
https://ci-builds.apache.org/job/OpenMeetings/job/openmeetings/
# Perform basic install with {{H2}} DB
# Upload text file
I've got same error in OM:
{code}
Last OS error: Permission denied
{code}
But also got following apparmor error:
{code}
[ 1840.568279] audit: type=1400 audit(1783322606.954:764): apparmor="DENIED"
operation="open" class="file" profile="gs"
name="/opt/apache-openmeetings-9.1.0-SNAPSHOT/webapps/openmeetings/data/upload/files/a7be4d24-0360-4d7d-a69e-8f62eec136ee/a7be4d24-0360-4d7d-a69e-8f62eec136ee.pdf"
pid=9289 comm="gs" requested_mask="r" denied_mask="r" fsuid=65534 ouid=65534
{code}
Can be observed in system log with {{sudo dmesg}} command
To address this error
you need to create new file on your server: {{/etc/apparmor.d/local/gs}}
with content
{code}
/opt/apache-openmeetings-9.1.0-SNAPSHOT/webapps/openmeetings/data/** r,
{code}
Apparmor need to be reloaded: {{sudo systemctl reload apparmor.service}}
This fixes the issue for me :)))
> Error uploading text or pdf files on Ubuntu 26.04 as server
> -----------------------------------------------------------
>
> Key: OPENMEETINGS-2822
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2822
> Project: Openmeetings
> Issue Type: Test
> Affects Versions: 9.1.0
> Environment: OM 9.1.0 or 9.0.0 on Ubuntu 26.04
> Reporter: Alvaro
> Assignee: Maxim Solodovnik
> Priority: Major
> Attachments: error uploading pdf file on Ubuntu 26.04 server.txt,
> error uploading txt file on Ubuntu 26.04 server.txt
>
>
> OM 9.1.0, 9.0.0,, on Ubuntu 26.04 as server, when upload a text or pdf files,
> nothing happens.
> Uploading png file is Ok.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)