Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
5 tasks
dmnyu opened this issue Jun 27, 2024 · 4 comments
Labels
Status: review The issue's code has been merged and is ready for testing/review.
Milestone

Comments

@dmnyu
Copy link

dmnyu commented Jun 27, 2024

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:

  • All pull requests related to this issue are properly linked
  • All pull requests related to this issue have been merged
  • A testing plan for this issue has been implemented and passed (testing plan information should be included in the issue body or comments)
  • Documentation regarding this issue has been written and merged (if applicable)
  • Details about this issue have been added to the release notes (if applicable)
@replaceafill
Copy link
Member

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
Copy link
Author

dmnyu commented Jun 27, 2024

@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.

@replaceafill replaceafill self-assigned this Sep 14, 2024
@replaceafill replaceafill added Status: in progress Issue that is currently being worked on. and removed triage-release-1.17 labels Sep 14, 2024
@replaceafill replaceafill added this to the 1.17.0 milestone Sep 14, 2024
@replaceafill replaceafill removed their assignment Sep 25, 2024
@replaceafill replaceafill added Status: review The issue's code has been merged and is ready for testing/review. and removed Status: in progress Issue that is currently being worked on. labels Sep 25, 2024
@replaceafill
Copy link
Member

replaceafill commented Nov 8, 2024

I think to verify this issue we could use the Archivematica RPM Packages Test workflow like this:

  1. Click Run workflow and select the dev/am-1.17.0 branch (associated with the PR that updates versions AM 1.17.0 + SS 0.23.0 artefactual-labs/am-packbuild#358)
  2. Uncheck the Build local packages checkbox to download the packages instead of building them from scratch
  3. Click the Run workflow button
  4. Once the workflow run finishes:
    1. Inspect the Install packages step and confirm that:
      1. AM and SS were installed from the packages.archivematica.org repository
      2. Their versions are 1.17.0 and 0.23.0 (they're still RC1 packages)
      3. The collectstatic commands ran successfully after the packages were installed
    2. Inspect the Test AM API - Get processing configurations step worked
    3. Inspect the Test SS API - Get pipeline count step worked

@Dhwaniartefact
Copy link

We have verified this issue by running the workflow as described and it works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: review The issue's code has been merged and is ready for testing/review.
Projects
None yet
Development

No branches or pull requests

3 participants