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

[video_reserves] Running the playbook does not enable the php module in apache2 #5457

Open
maxkadel opened this issue Oct 23, 2024 · 1 comment
Assignees
Labels

Comments

@maxkadel
Copy link
Contributor

Expected behavior

Running the video_reserves playbook results in a playable video at https://videoreserves-staging.princeton.edu/hrc/vod/clip.php or https://videoreserves-prod.princeton.edu/hrc/vod/clip.php

image

Actual behavior

Displays the php code for the video player, not the video player itself
image

Steps to replicate

I believe if you disable the php8.3 module you will see this happen sudo a2dismod php8.3 and restart apache. We were able to fix this on production by running sudo a2enmod php8.3 manually, but this is not in the playbook.

Impact of this bug

We cannot reliably run the video reserves playbook.

Implementation notes, if any

As of 10/23/2024 this was manually fixed on production, but left in a broken state on staging to allow for testing.

Tried adding the following to the video_reserves role, but it did not fix the issue:

- name: video_reserves | install apache modules
  community.general.apache2_module:
    name: "{{ item }}"
    state: present
  notify: restart apache
  with_items:
    - php{{ php_version }}
@maxkadel maxkadel added the bug label Oct 23, 2024
@acozine
Copy link
Contributor

acozine commented Oct 23, 2024

Error was:

failed: [lib-vr-staging1.princeton.edu] (item=php8.3) => {"ansible_loop_var": "item", "changed": false, "item": "php8.3", "msg": "Failed to set module php8.3 to enabled:\nConsidering dependency mpm_prefork for php8.3:\nConsidering conflict mpm_event for mpm_prefork:\nConsidering conflict mpm_worker for mpm_prefork:\nModule mpm_prefork already enabled\nConsidering conflict php5 for php8.3:\nModule php8.3 already enabled\n\nMaybe the module identifier (php8.3) was guessed incorrectly.Consider setting the \"identifier\" option.", "rc": 0, "stderr": "", "stderr_lines": [], "stdout": "Considering dependency mpm_prefork for php8.3:\nConsidering conflict mpm_event for mpm_prefork:\nConsidering conflict mpm_worker for mpm_prefork:\nModule mpm_prefork already enabled\nConsidering conflict php5 for php8.3:\nModule php8.3 already enabled\n", "stdout_lines": ["Considering dependency mpm_prefork for php8.3:", "Considering conflict mpm_event for mpm_prefork:", "Considering conflict mpm_worker for mpm_prefork:", "Module mpm_prefork already enabled", "Considering conflict php5 for php8.3:", "Module php8.3 already enabled"]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants