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

Ansible playbook errors in New year #2277

Closed
BrzIGH opened this issue Jan 8, 2024 · 10 comments
Closed

Ansible playbook errors in New year #2277

BrzIGH opened this issue Jan 8, 2024 · 10 comments
Labels
Type: bug identifies a problem in the software with clear steps to reproduce

Comments

@BrzIGH
Copy link

BrzIGH commented Jan 8, 2024

When running this task in the ansible playbook:

ansible-playbook -kK -i inventory/production playbook.yml -e "islandora_distro=ubuntu/jammy64" -e "islandora_profile=starter" -e "islandora_build_base_box=false"

I get the following error:

TASK [geerlingguy.drupal : Install dependencies with composer require (this may take a while).] *****************************************************************************************
Monday 08 January 2024 14:36:35 -0800 (0:00:04.621) 0:00:33.762 ********
failed: [default] (item=drush/drush:^10.1) => {"ansible_loop_var": "item", "changed": false, "item": "drush/drush:^10.1", "msg": "./composer.json has been updated Running composer update drush/drush Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - drush/drush[10.1.0, ..., 10.3.1] require chi-teck/drupal-code-generator ^1.30.5 -> found chi-teck/drupal-code-generator[1.30.5, ..., 1.x-dev] but the package is fixed to 3.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - drush/drush[10.3.2, ..., 10.x-dev] require chi-teck/drupal-code-generator ^1.32.1 -> found chi-teck/drupal-code-generator[1.32.1, 1.33.0, 1.33.1, 1.x-dev] but the package is fixed to 3.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - Root composer.json requires drush/drush ^10.1 -> satisfiable by drush/drush[10.1.0, ..., 10.x-dev]. Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. Installation failed, reverting ./composer.json and ./composer.lock to their original content.", "stdout": "./composer.json has been updated\nRunning composer update drush/drush\nLoading composer repositories with package information\nUpdating dependencies\nYour requirements could not be resolved to an installable set of packages.\n\n Problem 1\n - drush/drush[10.1.0, ..., 10.3.1] require chi-teck/drupal-code-generator ^1.30.5 -> found chi-teck/drupal-code-generator[1.30.5, ..., 1.x-dev] but the package is fixed to 3.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.\n - drush/drush[10.3.2, ..., 10.x-dev] require chi-teck/drupal-code-generator ^1.32.1 -> found chi-teck/drupal-code-generator[1.32.1, 1.33.0, 1.33.1, 1.x-dev] but the package is fixed to 3.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.\n - Root composer.json requires drush/drush ^10.1 -> satisfiable by drush/drush[10.1.0, ..., 10.x-dev].\n\nUse the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.\n\nInstallation failed, reverting ./composer.json and ./composer.lock to their original content.\n", "stdout_lines": ["./composer.json has been updated", "Running composer update drush/drush", "Loading composer repositories with package information", "Updating dependencies", "Your requirements could not be resolved to an installable set of packages.", "", " Problem 1", " - drush/drush[10.1.0, ..., 10.3.1] require chi-teck/drupal-code-generator ^1.30.5 -> found chi-teck/drupal-code-generator[1.30.5, ..., 1.x-dev] but the package is fixed to 3.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.", " - drush/drush[10.3.2, ..., 10.x-dev] require chi-teck/drupal-code-generator ^1.32.1 -> found chi-teck/drupal-code-generator[1.32.1, 1.33.0, 1.33.1, 1.x-dev] but the package is fixed to 3.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.", " - Root composer.json requires drush/drush ^10.1 -> satisfiable by drush/drush[10.1.0, ..., 10.x-dev].", "", "Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.", "", "Installation failed, reverting ./composer.json and ./composer.lock to their original content."]}

PLAY RECAP ******************************************************************************************************************************************************************************
default : ok=22 changed=5 unreachable=0 failed=1 skipped=122 rescued=0 ignored=0

I get a similar problem when trying to install the Drupal 10 version of Islandora.

Both of these worked fine back in December but now I am getting consistent playbook errors.

Thanks

@BrzIGH BrzIGH added the Type: bug identifies a problem in the software with clear steps to reproduce label Jan 8, 2024
@rosiel
Copy link
Member

rosiel commented Jan 9, 2024

There is an open PR that should fix this. Feel free to apply it.

https://github.com/Islandora-Devops/islandora-playbook/pull/271/files

(also, the playbook defaults to installing drupal 10 now, that's what changed things over the break.)

@BrzIGH
Copy link
Author

BrzIGH commented Jan 9, 2024

Thanks. Will just redownload the playbook and redo the installs using the instructions to "Deploy to a remote environment."

@BrzIGH
Copy link
Author

BrzIGH commented Jan 10, 2024

It keeps failing on me with the same message...

Is it possible to update the scripts at https://github.com/Islandora-Devops/Islandora-playbook so that I do not need to edit anything after downloading and editing only what is in "Deploying to a remote environment" document ?

Thanks

@rosiel
Copy link
Member

rosiel commented Jan 11, 2024

If you go to the pull request page I linked above, and go to the Conversation (first) tab, and scroll down to where it says "View Command line instructions" then you will get a simple 2 steps to "pull" this pull request into your own code. Execute "Step 1" (2 commands) from within the islandora-playbook directory. (Don't execute the merge stuff, which they call Step 2)
Screenshot 2024-01-11 at 9 49 57 AM

We're also trying to get that PR merged in but sometimes it takes a while.

@BrzIGH
Copy link
Author

BrzIGH commented Jan 11, 2024

I cannot find the command-line instructions from the "Conversation" tab. But I can execute the code manually. Thanks for the screenshot.

I presume I will do this after downloading galaxy requirements and before running the first of the two ansible scripts ?

@rosiel
Copy link
Member

rosiel commented Jan 11, 2024

Sorry about that - I forgot that the command-line instructions only show up if you're logged into github and probably a member of this org.

The git checkout and git pull commands should be done before downloading requirements, but in this case probably won't make much difference if you do it before or after.

@BrzIGH
Copy link
Author

BrzIGH commented Jan 11, 2024

Running the git pull command gives me access denied..."Please make sure you have access rights"

@BrzIGH
Copy link
Author

BrzIGH commented Jan 12, 2024

Tried one more time. No joy. Fails at Drupal dependencies stage (same as above).

Will try again next week.

@ysuarez
Copy link
Contributor

ysuarez commented Jan 24, 2024

This issue came up at today's weekly "Tech Call." Are you still having an issue or is this resolved?

@BrzIGH
Copy link
Author

BrzIGH commented Jan 24, 2024

I eventually ended up by downloading the playbook and following the instructions. Had to make sure the external drupal role pointed to 12 rather than 10 (geerlingguy.drupal). After that Islandora gets installed in a Drupal 10 environment just fine.

@ysuarez ysuarez closed this as completed Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug identifies a problem in the software with clear steps to reproduce
Projects
None yet
Development

No branches or pull requests

3 participants