archivematica / Issues

Issues repository for the Archivematica project
GNU Affero General Public License v3.0
16 stars 1 forks source link

PROBLEM rocky9/rhel9 storage-service package install incorrect owner group of/usr/lib/archivematica/storage-service/assets #1700

Open dmnyu opened 3 months ago

dmnyu commented 3 months ago

Expected behaviour owner/group /usr/lib/archivematica/storage-service/assets should be archivematica:archivematica during package installation of archivematica-storage-service

Current behaviour owner/group /usr/lib/archivematica/storage-service/assets is root:root

this causes the /usr/share/archivematica/virtualenvs/archivematica/bin/python manage.py collectstatic step of the package install to fail and the service to unable to start. currently using chown after install to correct

Steps to reproduce install the archivematica-storage-service, view ownership /usr/lib/archivematica/storage-service/assets

Your environment (version of Archivematica, operating system, other relevant details) Tested on Rocky9.4


For Artefactual use:

Before you close this issue, you must check off the following:

replaceafill commented 3 months ago

Thank you for reporting this. I'm able to see the problem after installing both DEB and RPM packages when I try to run the collectstatic command.

this causes the /usr/share/archivematica/virtualenvs/archivematica/bin/python manage.py collectstatic step of the package install to fail and the service to unable to start.

The installation process doesn't fail for me though. I tested with the installation scripts of the archivematica-docs repository in new Rocky Linux 9.4 and Ubuntu 22.04 VMs.

Would you be able to share the trace of the error you get to see what I'm missing?

dmnyu commented 3 months ago

@replaceafill Sorry I could have described that better. The installation completes and the service starts, but I get a 502 in nginx. In nginx's error log, it's trying to load an asset. Let me reload my VM and I'll get you more thorough info. I thought it manage.py was unable to run collectstatic.