Content
View differences
Updated by Charles Steiger about 5 years ago
Thanks in advance for any help! :)
### **Environment**:
Your OpenProject Version: **11.2.4**
Operating System / Browser / OpenProject language:
```shell
$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 20
Release: 20
Codename: ulyana
$ uname -a
Linux mint-ws 5.8.0-53-generic #60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ firefox --version
Mozilla Firefox 88.0.1
English
```
### **Logs**
No errors observed in logs when running `sudo openproject logs --tail`
### **Steps to reproduce:**
```shell
$ sudo openproject run backup
* Generating database backup... done
/var/db/openproject/backup/postgresql-dump-20210523194357.pgdump
* No SVN repositories folder. Ignoring.
* Generating Git repositories backup... done
/var/db/openproject/backup/git-repositories-20210523194357.tar.gz
* Generating attachments backup... done
/var/db/openproject/backup/attachments-20210523194357.tar.gz
* Saving configuration...tar: ./addons/apache2/includes/vhost/compression.conf: Cannot open: Permission denied
tar: ./addons/apache2/includes/vhost/expiration.conf: Cannot open: Permission denied
tar: ./addons/apache2/includes/vhost/sys.conf: Cannot open: Permission denied
tar: ./addons/apache2/includes/vhost/00_prefix_redirect.conf: Cannot open: Permission denied
tar: ./addons/apache2/includes/vhost/assets.conf: Cannot open: Permission denied
tar: ./addons/apache2/includes/vhost/git_smart_http.conf: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
failed
```
### **Actual Behavior**
Backup completes partially with errors due to file permissions belonging to `root` user in the `/etc/openproject/addons/apache2/includes/[server|vhost]/` directories.
```shell
openproject@ubuntu-2004-openproject-vm:/etc/openproject$ ls -lR addons/
addons/:
total 4
drwxr-xr-x 3 openproject openproject 4096 Dec 18 13:43 apache2
addons/apache2:
total 4
drwxr-xr-x 4 openproject openproject 4096 Dec 18 13:43 includes
addons/apache2/includes:
total 8
drwxr-xr-x 2 openproject openproject 4096 May 23 19:23 server
drwxr-xr-x 2 openproject openproject 4096 May 23 19:23 vhost
addons/apache2/includes/server:
total 8
-rw-r--r-- 1 root root 178 May 23 19:23 00_repositories_perl.conf
-rw-r--r-- 1 root root 29 May 23 19:23 placeholder.conf
addons/apache2/includes/vhost:
total 24
-rw-r----- 1 root root 108 May 23 19:23 00_prefix_redirect.conf
-rw-r----- 1 root root 492 May 23 19:23 assets.conf
-rw-r----- 1 root root 144 May 23 19:23 compression.conf
-rw-r----- 1 root root 314 May 23 19:23 expiration.conf
-rw-r----- 1 root root 1121 May 23 19:23 git_smart_http.conf
-rw-r----- 1 root root 226 May 23 19:23 sys.conf
```
### Expected Behavior
Backup completes successfully without error
### **Question**
Is it okay to change the ownership of the files in the `/etc/openproject/addons/apache2/includes/[server|vhost]/` directories from `root` to `openproject` to resolve this issue?
### Other Notes
* On 2021-05-18
* Took a backup of OpenProject without issue
* Upgraded OpenProject to **11.2.4** without issue
* On 2021-05-23
* Upgraded Ubuntu packages
* Took a backup of OpenProject **with above issue**
```shell
Start-Date: 2021-05-18 13:15:29
Commandline: apt-get install --only-upgrade openproject
Requested-By: csteiger (1000)
Upgrade: openproject:amd64 (11.2.3-1619163264.22513ba8.focal, 11.2.4-1620647730.8aae30fc.focal)
End-Date: 2021-05-18 13:15:38
Start-Date: 2021-05-23 19:14:25
Commandline: apt upgrade
Requested-By: csteiger (1000)
Install: libplist3:amd64 (2.1.0-4build2, automatic), upower:amd64 (0.99.11-1build2, automatic), libusbmuxd6:amd64 (2.0.1-2, automatic), distro-info:amd64 (0.23ubuntu1, automatic), libimobiledevice6:amd64 (1.2.1~git20191129.9f79242-1build1, automatic), libupower-glib3:amd64 (0.99.11-1build2, automatic), usbmuxd:amd64 (1.1.1~git20191130.9af2b12-1, automatic), libevdev2:amd64 (1.9.0+dfsg-1ubuntu0.1, automatic)
Upgrade: postgresql-common:amd64 (225.pgdg20.04+1, 226.pgdg20.04+1), netplan.io:amd64 (0.101-0ubuntu3~20.04.2, 0.102-0ubuntu1~20.04.2), update-manager-core:amd64 (1:20.04.10.6, 1:20.04.10.7), alsa-ucm-conf:amd64 (1.2.2-1ubuntu0.6, 1.2.2-1ubuntu0.7), python3-software-properties:amd64 (0.98.9.4, 0.98.9.5), openssl:amd64 (1.1.1f-1ubuntu2.3, 1.1.1f-1ubuntu2.4), libasound2-data:amd64 (1.2.2-2.1ubuntu2.3, 1.2.2-2.1ubuntu2.4), ubuntu-advantage-tools:amd64 (20.3, 27.0.2~20.04.1), open-iscsi:amd64 (2.0.874-7.1ubuntu6.1, 2.0.874-7.1ubuntu6.2), libpq5:amd64 (13.2-1.pgdg20.04+1, 13.3-1.pgdg20.04+1), initramfs-tools-bin:amd64 (0.136ubuntu6.4, 0.136ubuntu6.5), libxmlb1:amd64 (0.1.15-2, 0.1.15-2ubuntu1~20.04.1), apport:amd64 (2.20.11-0ubuntu27.16, 2.20.11-0ubuntu27.17), postgresql-10:amd64 (10.16-1.pgdg20.04+1, 10.17-1.pgdg20.04+1), python3-update-manager:amd64 (1:20.04.10.6, 1:20.04.10.7), python3-apport:amd64 (2.20.11-0ubuntu27.16, 2.20.11-0ubuntu27.17), sosreport:amd64 (4.1-1ubuntu0.20.04.1, 4.1-1ubuntu0.20.04.2), libasound2:amd64 (1.2.2-2.1ubuntu2.3, 1.2.2-2.1ubuntu2.4), libnetplan0:amd64 (0.101-0ubuntu3~20.04.2, 0.102-0ubuntu1~20.04.2), thermald:amd64 (1.9.1-1ubuntu0.3, 1.9.1-1ubuntu0.4), tmux:amd64 (3.0a-2ubuntu0.2, 3.0a-2ubuntu0.3), linux-firmware:amd64 (1.187.11, 1.187.12), libssl1.1:amd64 (1.1.1f-1ubuntu2.3, 1.1.1f-1ubuntu2.4), postgresql-client-10:amd64 (10.16-1.pgdg20.04+1, 10.17-1.pgdg20.04+1), python3-problem-report:amd64 (2.20.11-0ubuntu27.16, 2.20.11-0ubuntu27.17), initramfs-tools-core:amd64 (0.136ubuntu6.4, 0.136ubuntu6.5), initramfs-tools:amd64 (0.136ubuntu6.4, 0.136ubuntu6.5), postgresql-client-common:amd64 (225.pgdg20.04+1, 226.pgdg20.04+1), software-properties-common:amd64 (0.98.9.4, 0.98.9.5)
End-Date: 2021-05-23 19:15:58
```
### **Environment**:
Your OpenProject Version: **11.2.4**
Operating System / Browser / OpenProject language:
```shell
$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 20
Release: 20
Codename: ulyana
$ uname -a
Linux mint-ws 5.8.0-53-generic #60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ firefox --version
Mozilla Firefox 88.0.1
English
```
### **Logs**
No errors observed in logs when running `sudo openproject logs --tail`
### **Steps to reproduce:**
```shell
$ sudo openproject run backup
* Generating database backup... done
/var/db/openproject/backup/postgresql-dump-20210523194357.pgdump
* No SVN repositories folder. Ignoring.
* Generating Git repositories backup... done
/var/db/openproject/backup/git-repositories-20210523194357.tar.gz
* Generating attachments backup... done
/var/db/openproject/backup/attachments-20210523194357.tar.gz
* Saving configuration...tar: ./addons/apache2/includes/vhost/compression.conf: Cannot open: Permission denied
tar: ./addons/apache2/includes/vhost/expiration.conf: Cannot open: Permission denied
tar: ./addons/apache2/includes/vhost/sys.conf: Cannot open: Permission denied
tar: ./addons/apache2/includes/vhost/00_prefix_redirect.conf: Cannot open: Permission denied
tar: ./addons/apache2/includes/vhost/assets.conf: Cannot open: Permission denied
tar: ./addons/apache2/includes/vhost/git_smart_http.conf: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
failed
```
### **Actual Behavior**
Backup completes partially with errors due to file permissions belonging to `root` user in the `/etc/openproject/addons/apache2/includes/[server|vhost]/` directories.
```shell
openproject@ubuntu-2004-openproject-vm:/etc/openproject$ ls -lR addons/
addons/:
total 4
drwxr-xr-x 3 openproject openproject 4096 Dec 18 13:43 apache2
addons/apache2:
total 4
drwxr-xr-x 4 openproject openproject 4096 Dec 18 13:43 includes
addons/apache2/includes:
total 8
drwxr-xr-x 2 openproject openproject 4096 May 23 19:23 server
drwxr-xr-x 2 openproject openproject 4096 May 23 19:23 vhost
addons/apache2/includes/server:
total 8
-rw-r--r-- 1 root root 178 May 23 19:23 00_repositories_perl.conf
-rw-r--r-- 1 root root 29 May 23 19:23 placeholder.conf
addons/apache2/includes/vhost:
total 24
-rw-r----- 1 root root 108 May 23 19:23 00_prefix_redirect.conf
-rw-r----- 1 root root 492 May 23 19:23 assets.conf
-rw-r----- 1 root root 144 May 23 19:23 compression.conf
-rw-r----- 1 root root 314 May 23 19:23 expiration.conf
-rw-r----- 1 root root 1121 May 23 19:23 git_smart_http.conf
-rw-r----- 1 root root 226 May 23 19:23 sys.conf
```
### Expected Behavior
Backup completes successfully without error
### **Question**
Is it okay to change the ownership of the files in the `/etc/openproject/addons/apache2/includes/[server|vhost]/` directories from `root` to `openproject` to resolve this issue?
### Other Notes
* On 2021-05-18
* Took a backup of OpenProject without issue
* Upgraded OpenProject to **11.2.4** without issue
* On 2021-05-23
* Upgraded Ubuntu packages
* Took a backup of OpenProject **with above issue**
```shell
Start-Date: 2021-05-18 13:15:29
Commandline: apt-get install --only-upgrade openproject
Requested-By: csteiger (1000)
Upgrade: openproject:amd64 (11.2.3-1619163264.22513ba8.focal, 11.2.4-1620647730.8aae30fc.focal)
End-Date: 2021-05-18 13:15:38
Start-Date: 2021-05-23 19:14:25
Commandline: apt upgrade
Requested-By: csteiger (1000)
Install: libplist3:amd64 (2.1.0-4build2, automatic), upower:amd64 (0.99.11-1build2, automatic), libusbmuxd6:amd64 (2.0.1-2, automatic), distro-info:amd64 (0.23ubuntu1, automatic), libimobiledevice6:amd64 (1.2.1~git20191129.9f79242-1build1, automatic), libupower-glib3:amd64 (0.99.11-1build2, automatic), usbmuxd:amd64 (1.1.1~git20191130.9af2b12-1, automatic), libevdev2:amd64 (1.9.0+dfsg-1ubuntu0.1, automatic)
Upgrade: postgresql-common:amd64 (225.pgdg20.04+1, 226.pgdg20.04+1), netplan.io:amd64 (0.101-0ubuntu3~20.04.2, 0.102-0ubuntu1~20.04.2), update-manager-core:amd64 (1:20.04.10.6, 1:20.04.10.7), alsa-ucm-conf:amd64 (1.2.2-1ubuntu0.6, 1.2.2-1ubuntu0.7), python3-software-properties:amd64 (0.98.9.4, 0.98.9.5), openssl:amd64 (1.1.1f-1ubuntu2.3, 1.1.1f-1ubuntu2.4), libasound2-data:amd64 (1.2.2-2.1ubuntu2.3, 1.2.2-2.1ubuntu2.4), ubuntu-advantage-tools:amd64 (20.3, 27.0.2~20.04.1), open-iscsi:amd64 (2.0.874-7.1ubuntu6.1, 2.0.874-7.1ubuntu6.2), libpq5:amd64 (13.2-1.pgdg20.04+1, 13.3-1.pgdg20.04+1), initramfs-tools-bin:amd64 (0.136ubuntu6.4, 0.136ubuntu6.5), libxmlb1:amd64 (0.1.15-2, 0.1.15-2ubuntu1~20.04.1), apport:amd64 (2.20.11-0ubuntu27.16, 2.20.11-0ubuntu27.17), postgresql-10:amd64 (10.16-1.pgdg20.04+1, 10.17-1.pgdg20.04+1), python3-update-manager:amd64 (1:20.04.10.6, 1:20.04.10.7), python3-apport:amd64 (2.20.11-0ubuntu27.16, 2.20.11-0ubuntu27.17), sosreport:amd64 (4.1-1ubuntu0.20.04.1, 4.1-1ubuntu0.20.04.2), libasound2:amd64 (1.2.2-2.1ubuntu2.3, 1.2.2-2.1ubuntu2.4), libnetplan0:amd64 (0.101-0ubuntu3~20.04.2, 0.102-0ubuntu1~20.04.2), thermald:amd64 (1.9.1-1ubuntu0.3, 1.9.1-1ubuntu0.4), tmux:amd64 (3.0a-2ubuntu0.2, 3.0a-2ubuntu0.3), linux-firmware:amd64 (1.187.11, 1.187.12), libssl1.1:amd64 (1.1.1f-1ubuntu2.3, 1.1.1f-1ubuntu2.4), postgresql-client-10:amd64 (10.16-1.pgdg20.04+1, 10.17-1.pgdg20.04+1), python3-problem-report:amd64 (2.20.11-0ubuntu27.16, 2.20.11-0ubuntu27.17), initramfs-tools-core:amd64 (0.136ubuntu6.4, 0.136ubuntu6.5), initramfs-tools:amd64 (0.136ubuntu6.4, 0.136ubuntu6.5), postgresql-client-common:amd64 (225.pgdg20.04+1, 226.pgdg20.04+1), software-properties-common:amd64 (0.98.9.4, 0.98.9.5)
End-Date: 2021-05-23 19:15:58
```