# RHEL 7 upgrade from 1.6 to 1.7 many failed dependency errors

**URL:** <https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330>\
**Category:** Get Help\
**Tags:** question\
**Created:** [March 6, 2024, 6:13pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330 "2024-03-06T18:13:43Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![SomePersonSomeWhereI](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/somepersonsomewherei/32/2147_2.png) [@SomePersonSomeWhereI](https://discourse.openondemand.org/u/SomePersonSomeWhereI)\
**Post date:** [March 6, 2024, 6:13pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330/1 "2024-03-06T18:13:43Z")

</div>

Is there a work around for these errors?

```auto

yum update ondemand
Loaded plugins: fastestmirror, priorities, product-id, search-disabled-repos, subscription-manager
Loading mirror speeds from cached hostfile
 * cm-rhel7-8.1-updates: updates-us-east.brightcomputing.com
 * epel: mirror.pilotfiber.com
rhel-7-server-extras-rpms | 2.0 kB 00:00:00     
rhel-7-server-optional-rpms | 2.0 kB 00:00:00     
rhel-7-server-rpms | 2.0 kB 00:00:00     
418 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package ondemand.x86_64 0:1.6.20-1.el7 will be updated
---> Package ondemand.x86_64 0:1.7.19-1.el7 will be an update
--> Processing Dependency: ondemand-nginx = 1.17.3 for package: ondemand-1.7.19-1.el7.x86_64
--> Processing Dependency: ondemand-passenger = 6.0.4 for package: ondemand-1.7.19-1.el7.x86_64
--> Processing Dependency: ondemand-python < 2.0 for package: ondemand-1.7.19-1.el7.x86_64
--> Processing Dependency: ondemand-python < 1.8 for package: ondemand-1.7.19-1.el7.x86_64
--> Processing Dependency: ondemand-apache >= 1.7-8 for package: ondemand-1.7.19-1.el7.x86_64
--> Processing Dependency: ondemand-ruby >= 1.7-8 for package: ondemand-1.7.19-1.el7.x86_64
--> Processing Dependency: ondemand-python >= 1.7-8 for package: ondemand-1.7.19-1.el7.x86_64
--> Processing Dependency: ondemand-nodejs >= 1.7-8 for package: ondemand-1.7.19-1.el7.x86_64
--> Processing Dependency: ondemand-runtime >= 1.7-8 for package: ondemand-1.7.19-1.el7.x86_64
--> Processing Dependency: ondemand-gems-1.7.19 for package: ondemand-1.7.19-1.el7.x86_64
--> Running transaction check
---> Package ondemand-apache.x86_64 0:1.6-1.el7 will be updated
---> Package ondemand-apache.x86_64 0:1.7-8.el7 will be an update
---> Package ondemand-gems-1.7.19.x86_64 0:1.7.19-1.el7 will be installed
---> Package ondemand-nginx.x86_64 0:1.14.0-2.p5.3.7.el7 will be updated
---> Package ondemand-nginx.x86_64 0:1.17.3-6.p6.0.4.el7 will be obsoleting
---> Package ondemand-nginx-filesystem.noarch 0:1.14.0-2.p5.3.7.el7 will be obsoleted
---> Package ondemand-nodejs.x86_64 0:1.6-1.el7 will be updated
---> Package ondemand-nodejs.x86_64 0:1.7-8.el7 will be an update
--> Processing Dependency: rh-nodejs10 for package: ondemand-nodejs-1.7-8.el7.x86_64
--> Processing Dependency: rh-nodejs10-npm for package: ondemand-nodejs-1.7-8.el7.x86_64
---> Package ondemand-passenger.x86_64 0:5.3.7-2.el7 will be updated
---> Package ondemand-passenger.x86_64 0:6.0.4-6.el7 will be an update
--> Processing Dependency: /opt/rh/rh-ruby25/root/usr/bin/ruby for package: ondemand-passenger-6.0.4-6.el7.x86_64
--> Processing Dependency: libruby.so.2.5()(64bit) for package: ondemand-passenger-6.0.4-6.el7.x86_64
---> Package ondemand-python.x86_64 0:1.7-8.el7 will be installed
---> Package ondemand-ruby.x86_64 0:1.6-1.el7 will be updated
---> Package ondemand-ruby.x86_64 0:1.7-8.el7 will be an update
--> Processing Dependency: ondemand-rubygem-bundler >= 1.17.0 for package: ondemand-ruby-1.7-8.el7.x86_64
--> Processing Dependency: rh-ruby25 for package: ondemand-ruby-1.7-8.el7.x86_64
--> Processing Dependency: rh-ruby25-ruby-devel for package: ondemand-ruby-1.7-8.el7.x86_64
--> Processing Dependency: rh-ruby25-rubygem-rake for package: ondemand-ruby-1.7-8.el7.x86_64
--> Processing Dependency: rh-ruby25-rubygems for package: ondemand-ruby-1.7-8.el7.x86_64
--> Processing Dependency: rh-ruby25-rubygems-devel for package: ondemand-ruby-1.7-8.el7.x86_64
---> Package ondemand-runtime.x86_64 0:1.6-1.el7 will be updated
---> Package ondemand-runtime.x86_64 0:1.7-8.el7 will be an update
--> Processing Dependency: rh-nodejs10-runtime for package: ondemand-runtime-1.7-8.el7.x86_64
--> Processing Dependency: rh-ruby25-runtime for package: ondemand-runtime-1.7-8.el7.x86_64
--> Running transaction check
---> Package ondemand-nodejs.x86_64 0:1.7-8.el7 will be an update
--> Processing Dependency: rh-nodejs10 for package: ondemand-nodejs-1.7-8.el7.x86_64
--> Processing Dependency: rh-nodejs10-npm for package: ondemand-nodejs-1.7-8.el7.x86_64
---> Package ondemand-passenger.x86_64 0:6.0.4-6.el7 will be an update
--> Processing Dependency: /opt/rh/rh-ruby25/root/usr/bin/ruby for package: ondemand-passenger-6.0.4-6.el7.x86_64
--> Processing Dependency: libruby.so.2.5()(64bit) for package: ondemand-passenger-6.0.4-6.el7.x86_64
---> Package ondemand-ruby.x86_64 0:1.7-8.el7 will be an update
--> Processing Dependency: rh-ruby25 for package: ondemand-ruby-1.7-8.el7.x86_64
--> Processing Dependency: rh-ruby25-ruby-devel for package: ondemand-ruby-1.7-8.el7.x86_64
--> Processing Dependency: rh-ruby25-rubygem-rake for package: ondemand-ruby-1.7-8.el7.x86_64
--> Processing Dependency: rh-ruby25-rubygems for package: ondemand-ruby-1.7-8.el7.x86_64
--> Processing Dependency: rh-ruby25-rubygems-devel for package: ondemand-ruby-1.7-8.el7.x86_64
---> Package ondemand-rubygem-bundler.noarch 0:1.17.3-1.el7 will be installed
--> Processing Dependency: /opt/rh/rh-ruby25/root/usr/bin/ruby for package: ondemand-rubygem-bundler-1.17.3-1.el7.noarch
--> Processing Dependency: rh-ruby25-ruby(release) for package: ondemand-rubygem-bundler-1.17.3-1.el7.noarch
--> Processing Dependency: rh-ruby25-ruby(rubygems) for package: ondemand-rubygem-bundler-1.17.3-1.el7.noarch
---> Package ondemand-runtime.x86_64 0:1.7-8.el7 will be an update
--> Processing Dependency: rh-nodejs10-runtime for package: ondemand-runtime-1.7-8.el7.x86_64
--> Processing Dependency: rh-ruby25-runtime for package: ondemand-runtime-1.7-8.el7.x86_64
--> Processing Dependency: /opt/rh/rh-ruby25/root/usr/bin/ruby for package: ondemand-rubygem-bundler-1.17.3-1.el7.noarch
--> Processing Dependency: /opt/rh/rh-ruby25/root/usr/bin/ruby for package: ondemand-passenger-6.0.4-6.el7.x86_64
--> Finished Dependency Resolution
Error: Package: ondemand-runtime-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-nodejs10-runtime
Error: Package: ondemand-nodejs-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-nodejs10-npm
Error: Package: ondemand-rubygem-bundler-1.17.3-1.el7.noarch (ondemand-web)
           Requires: rh-ruby25-ruby(release)
Error: Package: ondemand-ruby-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-ruby25-rubygems-devel
Error: Package: ondemand-ruby-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-ruby25-rubygems
Error: Package: ondemand-ruby-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-ruby25-rubygem-rake
Error: Package: ondemand-ruby-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-ruby25-ruby-devel
Error: Package: ondemand-rubygem-bundler-1.17.3-1.el7.noarch (ondemand-web)
           Requires: rh-ruby25-ruby(rubygems)
Error: Package: ondemand-passenger-6.0.4-6.el7.x86_64 (ondemand-web)
           Requires: /opt/rh/rh-ruby25/root/usr/bin/ruby
Error: Package: ondemand-ruby-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-ruby25
Error: Package: ondemand-rubygem-bundler-1.17.3-1.el7.noarch (ondemand-web)
           Requires: /opt/rh/rh-ruby25/root/usr/bin/ruby
Error: Package: ondemand-nodejs-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-nodejs10
Error: Package: ondemand-passenger-6.0.4-6.el7.x86_64 (ondemand-web)
           Requires: libruby.so.2.5()(64bit)
Error: Package: ondemand-runtime-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-ruby25-runtime
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************

Error: Package: ondemand-runtime-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-nodejs10-runtime
Error: Package: ondemand-nodejs-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-nodejs10-npm
Error: Package: ondemand-rubygem-bundler-1.17.3-1.el7.noarch (ondemand-web)
           Requires: rh-ruby25-ruby(release)
Error: Package: ondemand-ruby-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-ruby25-rubygems-devel
Error: Package: ondemand-ruby-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-ruby25-rubygems
Error: Package: ondemand-ruby-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-ruby25-rubygem-rake
Error: Package: ondemand-ruby-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-ruby25-ruby-devel
Error: Package: ondemand-rubygem-bundler-1.17.3-1.el7.noarch (ondemand-web)
           Requires: rh-ruby25-ruby(rubygems)
Error: Package: ondemand-passenger-6.0.4-6.el7.x86_64 (ondemand-web)
           Requires: /opt/rh/rh-ruby25/root/usr/bin/ruby
Error: Package: ondemand-ruby-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-ruby25
Error: Package: ondemand-rubygem-bundler-1.17.3-1.el7.noarch (ondemand-web)
           Requires: /opt/rh/rh-ruby25/root/usr/bin/ruby
Error: Package: ondemand-nodejs-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-nodejs10
Error: Package: ondemand-passenger-6.0.4-6.el7.x86_64 (ondemand-web)
           Requires: libruby.so.2.5()(64bit)
Error: Package: ondemand-runtime-1.7-8.el7.x86_64 (ondemand-web)
           Requires: rh-ruby25-runtime

```

I do see this directory exists:  
`/opt/rh/rh-ruby24`

```auto
rpm -qa|grep ruby
rh-ruby24-ruby-irb-2.4.6-92.el7.noarch
rh-ruby24-rubygems-devel-2.6.14.4-92.el7.noarch
rh-ruby24-rubygem-io-console-0.4.6-92.el7.x86_64
rh-ruby24-rubygem-bundler-1.13.7-1.el7.noarch
rubygem-bigdecimal-1.2.0-33.el7_4.x86_64
rh-ruby24-rubygem-rake-12.0.0-92.el7.noarch
rh-ruby24-rubygem-openssl-2.0.9-92.el7.x86_64
libselinux-ruby-2.5-14.1.el7.x86_64
rh-ruby24-rubygems-2.6.14.4-92.el7.noarch
rh-ruby24-runtime-2.4-2.el7.x86_64
rh-ruby24-2.4-2.el7.x86_64
rh-ruby24-rubygem-psych-2.2.2-92.el7.x86_64
rubygem-io-console-0.4.2-33.el7_4.x86_64
rh-ruby24-ruby-devel-2.4.6-92.el7.x86_64
rh-ruby24-ruby-libs-2.4.6-92.el7.x86_64
ruby-augeas-0.5.0-1.el7.x86_64
ruby-2.0.0.648-33.el7_4.x86_64
rh-ruby24-rubygem-json-2.0.4-92.el7.x86_64
rh-ruby24-ruby-2.4.6-92.el7.x86_64
ondemand-ruby-1.6-1.el7.x86_64
rubygem-psych-2.0.0-33.el7_4.x86_64
rh-ruby24-rubygem-did_you_mean-1.1.0-92.el7.x86_64
rubygems-2.0.14.1-33.el7_4.noarch
rubygem-rdoc-4.0.0-33.el7_4.noarch
rubygem-json-1.7.7-33.el7_4.x86_64
ruby-devel-2.0.0.648-33.el7_4.x86_64
rh-ruby24-rubygem-bigdecimal-1.3.2-92.el7.x86_64
ruby-libs-2.0.0.648-33.el7_4.x86_64
rh-ruby24-rubygem-rdoc-5.0.0-92.el7.noarch
ruby-irb-2.0.0.648-33.el7_4.noarch
ruby-shadow-1.4.1-23.el7.x86_64
rh-ror50-rubygem-rack-2.0.1-1.el7.noarch

```

```auto
rpm -qa|grep ondeman
ondemand-passenger-5.3.7-2.el7.x86_64
ondemand-nodejs-1.6-1.el7.x86_64
ondemand-nginx-1.14.0-2.p5.3.7.el7.x86_64
ondemand-git-1.6-1.el7.x86_64
ondemand-nginx-filesystem-1.14.0-2.p5.3.7.el7.noarch
ondemand-release-web-1.7-1.noarch
ondemand-ruby-1.6-1.el7.x86_64
ondemand-1.6.20-1.el7.x86_64
ondemand-apache-1.6-1.el7.x86_64
ondemand-runtime-1.6-1.el7.x86_64

```

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [March 6, 2024, 7:17pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330/2 "2024-03-06T19:17:15Z")

</div>

Release notes for this version suggest you need to `yum clean all` before you can update. @tdockendorf please advise - do they need to remove RPMs when upgrading form 1.6 to 1.7?

[https://osc.github.io/ood-documentation/latest/release-notes/v1.7-release-notes.html](https://osc.github.io/ood-documentation/latest/release-notes/v1.7-release-notes.html)

---

<div class="post-metadata">

**Author:** ![SomePersonSomeWhereI](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/somepersonsomewherei/32/2147_2.png) [@SomePersonSomeWhereI](https://discourse.openondemand.org/u/SomePersonSomeWhereI)\
**Post date:** [March 6, 2024, 7:24pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330/3 "2024-03-06T19:24:38Z")

</div>

> [@jeff.ohrstrom](#):
>
> Release notes for this version suggest you need to `yum clean all` before you can update

Yes I saw that and have already run in. I didn’t want to jump ahead past one “dot” version so I’ll wait for a response here.

---

<div class="post-metadata">

**Author:** ![tdockendorf](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/tdockendorf/32/202_2.png) [@tdockendorf](https://discourse.openondemand.org/u/tdockendorf)\
**Post date:** [March 6, 2024, 7:59pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330/4 "2024-03-06T19:59:01Z")

</div>

Packages like `rh-ruby25` are missing. Are you on RHEL7 or CentOS 7? It might be that CentOS 7 removed the dependencies old version of OnDemand rely on. I think RHEL7 tends to keep old RPMs around even when they are past end of life, at least for SCL and DNF modules.

You may have to upgrade directly to OnDemand 3.0 cause versions as old as 1.6 and 1.7 may not be possible to install if the OS removed the packages OnDemand needs from their repos.

If you do go directly to OnDemand 3.0, I’d recommend a full uninstall + reinstall cause we have never tested doing an upgrade from such an old version to a newer version.

Be aware EL7 is no longer supported since OnDemand 3.1 and will be unsupported by RedHat and downstream at the end of June of this year I believe.

---

<div class="post-metadata">

**Author:** ![tdockendorf](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/tdockendorf/32/202_2.png) [@tdockendorf](https://discourse.openondemand.org/u/tdockendorf)\
**Post date:** [March 6, 2024, 8:05pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330/5 "2024-03-06T20:05:02Z")

</div>

If you are on RHEL 7, you have to do this to get the RPMs:

```auto
subscription-manager repos --enable rhel-server-rhscl-7-rpms

```

I verified RHEL 7 has the “rh-ruby25” packages still in repos despite being EOL a long time ago.

[https://osc.github.io/ood-documentation/release-1.7/installation/install-software.html](https://osc.github.io/ood-documentation/release-1.7/installation/install-software.html)

Verified that CentOS 7 still has the packages too so most likely you are just missing the repos you need to provide the SCL packages.

---

<div class="post-metadata">

**Author:** ![SomePersonSomeWhereI](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/somepersonsomewherei/32/2147_2.png) [@SomePersonSomeWhereI](https://discourse.openondemand.org/u/SomePersonSomeWhereI)\
**Post date:** [March 6, 2024, 9:36pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330/6 "2024-03-06T21:36:28Z")

</div>

> [@tdockendorf](#):
>
> `subscription-manager repos --enable rhel-server-rhscl-7-rpms`

That was it! I got us up to version 2.0.32

I noticed my predecessors did some manual editing of the` /opt/rh/httpd24/root/etc/httpd/conf.d/ood-portal.con`f file so there are some diffs I’d like to get clarification on. First we changed the default port from 443 to get Globus working on the same server.

Are all these options recommended to add back into the file?

```auto
< <Directory "/var/www/ood/public/maintenance">
< RewriteCond /etc/ood/maintenance.enable !-f
< ReWriteRule ^.*$ /
< 
< RewriteCond %{REQUEST_URI} !/public/maintenance/.*$
< RewriteRule ^.*$ /public/maintenance/index.html [R=503,L]
< ErrorDocument 503 /public/maintenance/index.html

< # Support maintenance page during outages of OnDemand
< RewriteEngine On
< RewriteCond /var/www/ood/public/maintenance/index.html -f
< RewriteCond /etc/ood/maintenance.enable -f
< RewriteCond %{REQUEST_URI} !/public/maintenance/.*$
< RewriteRule ^.*$ /public/maintenance/index.html [R=302,L]
< 
< Header always set Content-Security-Policy "frame-ancestors https://ourdomain.edu;"
< Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"

```

I also had to manually change these:

```auto
  SetEnv OOD_USER_MAP_MATCH ".*"

  # Authenticated-user to system-user mapping configuration
  #
# SetEnv OOD_USER_MAP_CMD "/opt/ood/ood_auth_map/bin/ood_auth_map.regex"

```

Before trying to get to version 3.0 just wanted to see if anyone had any suggestions before upgrading.

---

<div class="post-metadata">

**Author:** ![alanc](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/alanc/32/2524_2.png) [@alanc](https://discourse.openondemand.org/u/alanc)\
**Post date:** [March 6, 2024, 9:55pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330/7 "2024-03-06T21:55:47Z")

</div>

FYI, we have some Globus integration in version 3.1 that was just released a few weeks ago. I don’t know if that will impact what all you’ve got in place, but you might want to look at it a bit in the docs.

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [March 7, 2024, 2:01pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330/8 "2024-03-07T14:01:21Z")

</div>

> [@SomePersonSomeWhereI](#):
>
> I also had to manually change these:

You shouldn’t manually edit that file. Always specify things in `ood_portal.yml` so that our helper scripts write out the correct conf file. That said - that user map match & user\_map\_cmd is the only breaking change in 2.0 (we don’t ship the user\_map\_cmd ood\_auth\_map.regex you have there anymore).

---

<div class="post-metadata">

**Author:** ![SomePersonSomeWhereI](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/somepersonsomewherei/32/2147_2.png) [@SomePersonSomeWhereI](https://discourse.openondemand.org/u/SomePersonSomeWhereI)\
**Post date:** [March 7, 2024, 3:45pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330/9 "2024-03-07T15:45:43Z")

</div>

> [@jeff.ohrstrom](#):
>
> You shouldn’t manually edit that file. Always specify things in `ood_portal.yml` so that our helper scripts write out the correct conf file.

As I mentioned a colleague already had edited it so I’m trying to sync it to be correct for future upgrades.

> [@jeff.ohrstrom](#):
>
> That said - that user map match & user\_map\_cmd is the only breaking change in 2.0 (we don’t ship the user\_map\_cmd ood\_auth\_map.regex you have there anymore).

Great that’s what I thought. What about the `RewriteCond` for maintenance and `Header` entries, should I manually copy those over?

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [March 7, 2024, 4:00pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330/10 "2024-03-07T16:00:01Z")

</div>

> [@SomePersonSomeWhereI](#):
>
> Great that’s what I thought. What about the `RewriteCond` for maintenance and `Header` entries, should I manually copy those over?

The maintenance directives for example come out of this feature linked below. Which is to say - there’s no need to copy them. If you want them, enable them in `ood_portal.yml` and you’ll get them. If you don’t want them, disable them in `ood_portal.yml` and you won’t get them. There’s a similar toggle for frame-ancestors.

The library that creates the conf file is idempotent and will verify a checksum file to protect against manual edits. Which is to say, once you start editing manually, the library will stop updating the file.

Seems like you should backup the edited file your colleague edited and then edit options `ood_portal.yml` and use our libraries to get a new conf file (you only have to bounce `httpd` to get a new file) until you get an output that looks similar to your edited file. This way you can replicate the conf file not by manual edits but through our libraries.

[https://osc.github.io/ood-documentation/latest/customizations.html?#maintenance-mode](https://osc.github.io/ood-documentation/latest/customizations.html?#maintenance-mode)

---

<div class="post-metadata">

**Author:** ![SomePersonSomeWhereI](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/somepersonsomewherei/32/2147_2.png) [@SomePersonSomeWhereI](https://discourse.openondemand.org/u/SomePersonSomeWhereI)\
**Post date:** [March 22, 2024, 7:14pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330/11 "2024-03-22T19:14:41Z")

</div>

Upgrading from 2.x to 3.0 fails with the following is there a work around for these?

```auto
yum update ondemand
Loaded plugins: fastestmirror, priorities, product-id, search-disabled-repos, subscription-manager
Determining fastest mirrors
epel/x86_64/metalink | 23 kB 00:00:00     
 * cm-rhel7-8.1-updates: updates-us-east.brightcomputing.com
 * epel: epel.mirror.constant.com
Globus-Connect-Server-5-Stable | 3.0 kB 00:00:00     
cm-rhel7-8.1-updates | 1.5 kB 00:00:00     
epel | 4.7 kB 00:00:00     
ondemand-web/7Server/x86_64/signature | 488 B 00:00:00     
ondemand-web/7Server/x86_64/signature | 3.0 kB 00:00:00 !!! 
rhel-7-server-extras-rpms | 2.0 kB 00:00:00     
rhel-7-server-optional-rpms | 2.0 kB 00:00:00     
rhel-7-server-rpms | 2.0 kB 00:00:00     
(1/15): cm-rhel7-8.1-updates/x86_64/primary | 559 kB 00:00:00     
(2/15): Globus-Connect-Server-5-Stable/x86_64/primary_db | 1.2 MB 00:00:00     
(3/15): epel/x86_64/group_gz | 100 kB 00:00:00     
(4/15): epel/x86_64/updateinfo | 1.0 MB 00:00:00     
(5/15): rhel-7-server-extras-rpms/x86_64/group | 124 B 00:00:00     
(6/15): rhel-7-server-extras-rpms/x86_64/updateinfo | 270 kB 00:00:00     
(7/15): ondemand-web/7Server/x86_64/primary_db | 38 kB 00:00:00     
(8/15): rhel-7-server-extras-rpms/x86_64/primary | 449 kB 00:00:00     
(9/15): epel/x86_64/primary_db | 7.0 MB 00:00:00     
(10/15): rhel-7-server-optional-rpms/x86_64/group | 21 kB 00:00:00     
(11/15): rhel-7-server-optional-rpms/x86_64/updateinfo | 3.0 MB 00:00:00     
(12/15): rhel-7-server-optional-rpms/x86_64/primary | 6.6 MB 00:00:00     
(13/15): rhel-7-server-rpms/x86_64/group | 637 kB 00:00:00     
(14/15): rhel-7-server-rpms/x86_64/updateinfo | 4.2 MB 00:00:00     
(15/15): rhel-7-server-rpms/x86_64/primary | 93 MB 00:00:00     
cm-rhel7-8.1-updates 1952/1952
rhel-7-server-extras-rpms 1467/1467
rhel-7-server-optional-rpms 24167/24167
rhel-7-server-rpms 34247/34247
418 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package ondemand.x86_64 0:2.0.32-1.el7 will be updated
---> Package ondemand.x86_64 0:3.0.3-1.el7 will be an update
--> Processing Dependency: ondemand-apache = 3.0.0-1.el7 for package: ondemand-3.0.3-1.el7.x86_64
--> Processing Dependency: ondemand-nginx = 1.20.2-1.p6.0.14.ood3.0.0.el7 for package: ondemand-3.0.3-1.el7.x86_64
--> Processing Dependency: ondemand-passenger = 6.0.14-1.ood3.0.0.el7 for package: ondemand-3.0.3-1.el7.x86_64
--> Processing Dependency: ondemand-ruby = 3.0.0-1.el7 for package: ondemand-3.0.3-1.el7.x86_64
--> Processing Dependency: ondemand-nodejs = 3.0.0-1.el7 for package: ondemand-3.0.3-1.el7.x86_64
--> Processing Dependency: ondemand-runtime = 3.0.0-1.el7 for package: ondemand-3.0.3-1.el7.x86_64
--> Processing Dependency: rclone for package: ondemand-3.0.3-1.el7.x86_64
--> Processing Dependency: ondemand-gems-3.0.3-1 for package: ondemand-3.0.3-1.el7.x86_64
--> Running transaction check
---> Package ondemand-apache.x86_64 0:2.0-3.el7 will be updated
---> Package ondemand-apache.x86_64 0:3.0.0-1.el7 will be an update
---> Package ondemand-gems-3.0.3-1.x86_64 0:3.0.3-1.el7 will be installed
---> Package ondemand-nginx.x86_64 0:1.18.0-2.p6.0.14.el7 will be updated
---> Package ondemand-nginx.x86_64 0:1.20.2-1.p6.0.14.ood3.0.0.el7 will be an update
---> Package ondemand-nodejs.x86_64 0:2.0-3.el7 will be updated
---> Package ondemand-nodejs.x86_64 0:3.0.0-1.el7 will be an update
---> Package ondemand-passenger.x86_64 0:6.0.14-1.el7 will be updated
---> Package ondemand-passenger.x86_64 0:6.0.14-1.ood3.0.0.el7 will be an update
--> Processing Dependency: /opt/rh/rh-ruby30/root/usr/bin/ruby for package: ondemand-passenger-6.0.14-1.ood3.0.0.el7.x86_64
--> Processing Dependency: libruby.so.3.0()(64bit) for package: ondemand-passenger-6.0.14-1.ood3.0.0.el7.x86_64
---> Package ondemand-python.x86_64 0:2.0-3.el7 will be obsoleted
---> Package ondemand-ruby.x86_64 0:2.0-3.el7 will be updated
---> Package ondemand-ruby.x86_64 0:3.0.0-1.el7 will be an update
--> Processing Dependency: rh-ruby30-rubygem-bundler >= 2.1 for package: ondemand-ruby-3.0.0-1.el7.x86_64
--> Processing Dependency: rh-ruby30 for package: ondemand-ruby-3.0.0-1.el7.x86_64
--> Processing Dependency: rh-ruby30-ruby-devel for package: ondemand-ruby-3.0.0-1.el7.x86_64
--> Processing Dependency: rh-ruby30-rubygem-rake for package: ondemand-ruby-3.0.0-1.el7.x86_64
--> Processing Dependency: rh-ruby30-rubygems for package: ondemand-ruby-3.0.0-1.el7.x86_64
--> Processing Dependency: rh-ruby30-rubygems-devel for package: ondemand-ruby-3.0.0-1.el7.x86_64
---> Package ondemand-runtime.x86_64 0:2.0-3.el7 will be updated
---> Package ondemand-runtime.x86_64 0:3.0.0-1.el7 will be obsoleting
--> Processing Dependency: rh-ruby30-runtime for package: ondemand-runtime-3.0.0-1.el7.x86_64
---> Package rclone.x86_64 0:1.55.1-1.el7 will be installed
--> Processing Dependency: /opt/rh/rh-ruby30/root/usr/bin/ruby for package: ondemand-passenger-6.0.14-1.ood3.0.0.el7.x86_64
--> Finished Dependency Resolution
Error: Package: ondemand-ruby-3.0.0-1.el7.x86_64 (ondemand-web)
           Requires: rh-ruby30-rubygems-devel
Error: Package: ondemand-ruby-3.0.0-1.el7.x86_64 (ondemand-web)
           Requires: rh-ruby30-ruby-devel
Error: Package: ondemand-passenger-6.0.14-1.ood3.0.0.el7.x86_64 (ondemand-web)
           Requires: libruby.so.3.0()(64bit)
Error: Package: ondemand-ruby-3.0.0-1.el7.x86_64 (ondemand-web)
           Requires: rh-ruby30-rubygem-bundler >= 2.1
Error: Package: ondemand-ruby-3.0.0-1.el7.x86_64 (ondemand-web)
           Requires: rh-ruby30-rubygem-rake
Error: Package: ondemand-runtime-3.0.0-1.el7.x86_64 (ondemand-web)
           Requires: rh-ruby30-runtime
Error: Package: ondemand-passenger-6.0.14-1.ood3.0.0.el7.x86_64 (ondemand-web)
           Requires: /opt/rh/rh-ruby30/root/usr/bin/ruby
Error: Package: ondemand-ruby-3.0.0-1.el7.x86_64 (ondemand-web)
           Requires: rh-ruby30
Error: Package: ondemand-ruby-3.0.0-1.el7.x86_64 (ondemand-web)
           Requires: rh-ruby30-rubygems
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************

Error: Package: ondemand-ruby-3.0.0-1.el7.x86_64 (ondemand-web)
           Requires: rh-ruby30-rubygems-devel
Error: Package: ondemand-ruby-3.0.0-1.el7.x86_64 (ondemand-web)
           Requires: rh-ruby30-ruby-devel
Error: Package: ondemand-passenger-6.0.14-1.ood3.0.0.el7.x86_64 (ondemand-web)
           Requires: libruby.so.3.0()(64bit)
Error: Package: ondemand-ruby-3.0.0-1.el7.x86_64 (ondemand-web)
           Requires: rh-ruby30-rubygem-bundler >= 2.1
Error: Package: ondemand-ruby-3.0.0-1.el7.x86_64 (ondemand-web)
           Requires: rh-ruby30-rubygem-rake
Error: Package: ondemand-runtime-3.0.0-1.el7.x86_64 (ondemand-web)
           Requires: rh-ruby30-runtime
Error: Package: ondemand-passenger-6.0.14-1.ood3.0.0.el7.x86_64 (ondemand-web)
           Requires: /opt/rh/rh-ruby30/root/usr/bin/ruby
Error: Package: ondemand-ruby-3.0.0-1.el7.x86_64 (ondemand-web)
           Requires: rh-ruby30
Error: Package: ondemand-ruby-3.0.0-1.el7.x86_64 (ondemand-web)
           Requires: rh-ruby30-rubygems
 You could try using --skip-broken to work around the problem

```

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [March 22, 2024, 7:23pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330/12 "2024-03-22T19:23:11Z")

</div>

> [@tdockendorf](#):
>
> subscription-manager repos --enable rhel-server-rhscl-7-rpms

Do you still have this enabled? I don’t see it there in the mirror list in the output.

---

<div class="post-metadata">

**Author:** ![SomePersonSomeWhereI](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/somepersonsomewherei/32/2147_2.png) [@SomePersonSomeWhereI](https://discourse.openondemand.org/u/SomePersonSomeWhereI)\
**Post date:** [March 22, 2024, 10:39pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330/13 "2024-03-22T22:39:13Z")

</div>

Indeed had to run:

```auto
subscription-manager repos --enable=rhel-server-rhscl-7-rpms

Repository 'rhel-server-rhscl-7-rpms' is enabled for this system.

```

Also is there a good guide/how to for [Matlab Proxy](https://github.com/mathworks/matlab-proxy/tree/main) in OOD? I see [New Mexico State has a Git repo](https://gitlab.com/nmsu_hpc/ood-apps-nmsu) but a little sparse on the instructions.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [September 18, 2024, 10:39pm UTC](https://discourse.openondemand.org/t/rhel-7-upgrade-from-1-6-to-1-7-many-failed-dependency-errors/3330/14 "2024-09-18T22:39:54Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
