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

node upgrade doesn't work with snap (should refresh but doesn't) #143

Closed
rlskoeser opened this issue Aug 3, 2023 · 3 comments
Closed

node upgrade doesn't work with snap (should refresh but doesn't) #143

rlskoeser opened this issue Aug 3, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@rlskoeser
Copy link
Contributor

ansible snap builtin is supposed to run refresh instead of install when a package is already installed, but it failed to do the upgrade

Recommendation from @kayiwa is to use PUL's nodejs role that builds it from source based on a specified version; see the nodejs download to see the syntax needed for version numbers.

@rlskoeser rlskoeser added the bug Something isn't working label Aug 3, 2023
@rlskoeser rlskoeser changed the title node upgrade doesn't work with snap; switch to princeton ansible task node upgrade doesn't work with snap; switch to install from source Aug 3, 2023
@rlskoeser
Copy link
Contributor Author

rlskoeser commented Aug 7, 2023

possibly related to #74

@rlskoeser
Copy link
Contributor Author

How to run a princeton ansible task (example from shxco playbooks):

  - import_role:   # timezone needed for twitter bot cron/at jobs
      name: pulibrary.princeton_ansible.timezone

rlskoeser added a commit that referenced this issue Dec 12, 2023
@rlskoeser rlskoeser assigned rlskoeser and quadrismegistus and unassigned kayiwa Dec 12, 2023
@rlskoeser rlskoeser changed the title node upgrade doesn't work with snap; switch to install from source node upgrade doesn't work with snap (should refresh but doesn't) Dec 12, 2023
@rlskoeser
Copy link
Contributor Author

figured out a simpler solution : call snap refresh directly to ensure the version update takes effect; implemented in #154

rlskoeser added a commit that referenced this issue Dec 19, 2023
rlskoeser added a commit that referenced this issue Dec 20, 2023
* start of shxco apache to nginx upgrade

* moving to qa

* node version change

* vars change for passenger

* Skip updating cache for bionic

Co-authored-by: Ryan Heuser <[email protected]>

* Force snap refresh to change node version

resolves #143

Co-authored-by: Ryan Heuser <[email protected]>

* Configure shxco for replication

Co-authored-by: Ryan Heuser <[email protected]>

* Remove postgresql apt repository for bionic machines (no longer avail)

* Update shxco production playbook to match qa, apache2 -> nginx/passenger

---------

Co-authored-by: rlskoeser <[email protected]>
Co-authored-by: Rebecca Sutton Koeser <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants