# Nginx\_stage error after upgrading from 1.6 to 1.7

**URL:** <https://discourse.openondemand.org/t/nginx-stage-error-after-upgrading-from-1-6-to-1-7/920>\
**Category:** Get Help\
**Created:** [May 19, 2020, 12:43am UTC](https://discourse.openondemand.org/t/nginx-stage-error-after-upgrading-from-1-6-to-1-7/920 "2020-05-19T00:43:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbpetersen](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@tbpetersen](https://discourse.openondemand.org/u/tbpetersen)\
**Post date:** [May 19, 2020, 12:43am UTC](https://discourse.openondemand.org/t/nginx-stage-error-after-upgrading-from-1-6-to-1-7/920/1 "2020-05-19T00:43:57Z")

</div>

I recently upgraded from 1.6 to 1.7 by following the guide [here](https://osc.github.io/ood-documentation/master/release-notes/v1.7-release-notes.html#upgrading-from-v1-6). I also followed the optional step 5 of removing old dependencies from prior versions of OOD.

After the upgrade, my pun started up without problem. I then logged in and out and restated the pun and everything seemed to work ok. Later in the day, presumably after my pun had been shut down, I tried to reach the site again. I was able to authenticate like before, but was then met with the following error:

```auto
Error -- undefined method `disable_bundle_user_config' for NginxStage:Module
Run 'nginx_stage --help' to see a full list of available command line options.

```

It seems as though I have an older version of nginx\_stage that is missing some newer features. What is the best way to go about fixing this?

---

<div class="post-metadata">

**Author:** ![azric](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/azric/32/63_2.png) [@azric](https://discourse.openondemand.org/u/azric)\
**Post date:** [May 19, 2020, 12:01pm UTC](https://discourse.openondemand.org/t/nginx-stage-error-after-upgrading-from-1-6-to-1-7/920/2 "2020-05-19T12:01:14Z")

</div>

Where is this error being displayed? Is it cron job output or in a log or ??

Also, have you rebooted since doing the “yum erase” to make sure there isn’t something running that was deleted in the cleanup.  
Ric

---

<div class="post-metadata">

**Author:** ![efranz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/efranz/32/27_2.png) [@efranz](https://discourse.openondemand.org/u/efranz)\
**Post date:** [May 19, 2020, 2:54pm UTC](https://discourse.openondemand.org/t/nginx-stage-error-after-upgrading-from-1-6-to-1-7/920/3 "2020-05-19T14:54:38Z")

</div>

That method “disable\_bundle\_user\_config” was added in this commit [https://github.com/OSC/ondemand/commit/d8a27684c1954477144cbf3d0bad63f8905e1b48](https://github.com/OSC/ondemand/commit/d8a27684c1954477144cbf3d0bad63f8905e1b48)

`cat /opt/ood/VERSION` should show v1.7.11 and

```auto
$ grep disable_bundle_user_config /opt/ood/nginx_stage/lib/nginx_stage/views/pun_config_view.rb
    def disable_bundle_user_config?
      NginxStage.disable_bundle_user_config

```

Maybe verify that /opt/ood/nginx\_stage/lib/nginx\_stage/views/pun\_config\_view.rb.new file wasn’t added?

---

<div class="post-metadata">

**Author:** ![tbpetersen](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@tbpetersen](https://discourse.openondemand.org/u/tbpetersen)\
**Post date:** [May 19, 2020, 4:28pm UTC](https://discourse.openondemand.org/t/nginx-stage-error-after-upgrading-from-1-6-to-1-7/920/4 "2020-05-19T16:28:38Z")

</div>

I do see that the version is 1.7.11 . I also do not see pun\_config\_view.rb.new.

```auto
[tbpetersen]# cat /opt/ood/VERSION
v1.7.11
[tbpetersen]# ls /opt/ood/nginx_stage/lib/nginx_stage/views/ -la
total 20
drwxr-xr-x 2 root root 4096 May 18 14:57 .
drwxr-xr-x 4 root root 4096 May 18 15:25 ..
-rw-r--r-- 1 root root 1343 Apr 23 19:25 app_config_view.rb
-rw-r--r-- 1 root root 5297 Apr 23 19:25 pun_config_view.rb

```

---

<div class="post-metadata">

**Author:** ![tbpetersen](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@tbpetersen](https://discourse.openondemand.org/u/tbpetersen)\
**Post date:** [May 19, 2020, 4:31pm UTC](https://discourse.openondemand.org/t/nginx-stage-error-after-upgrading-from-1-6-to-1-7/920/5 "2020-05-19T16:31:59Z")

</div>

The error is being displayed in the web browser after I successfully authenticate.

![image](https://us1.discourse-cdn.com/flex015/uploads/osc/original/1X/a2a5aea72e6e14daf647b13743b10ad4db533ccd.png)

I can’t remember if I rebooted after the upgrade, so I just tried rebooting to make sure. I am still seeing the same error when I try to load the page again.

---

<div class="post-metadata">

**Author:** ![efranz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/efranz/32/27_2.png) [@efranz](https://discourse.openondemand.org/u/efranz)\
**Post date:** [May 19, 2020, 6:29pm UTC](https://discourse.openondemand.org/t/nginx-stage-error-after-upgrading-from-1-6-to-1-7/920/6 "2020-05-19T18:29:04Z")

</div>

Ah sorry `NginxStage#disable_bundle_user_config` is defined here:

```auto
$ grep disable_bundle /opt/ood/nginx_stage/lib/nginx_stage/configuration.rb
    attr_accessor :disable_bundle_user_config
      self.disable_bundle_user_config = true

```

What happens when you do `grep disable_bundle /opt/ood/nginx_stage/lib/nginx_stage/configuration.rb` and might there be a `grep disable_bundle /opt/ood/nginx_stage/lib/nginx_stage/configuration.rb.new` file?

---

<div class="post-metadata">

**Author:** ![tbpetersen](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@tbpetersen](https://discourse.openondemand.org/u/tbpetersen)\
**Post date:** [May 19, 2020, 6:52pm UTC](https://discourse.openondemand.org/t/nginx-stage-error-after-upgrading-from-1-6-to-1-7/920/7 "2020-05-19T18:52:17Z")

</div>

The grep command finds no matching results. I don’t see a configuration.rb.new file there.

```auto
-bash-4.2$ grep disable_bundle /opt/ood/nginx_stage/lib/nginx_stage/configuration.rb
-bash-4.2$ ls -la /opt/ood/nginx_stage/lib/nginx_stage/
total 76
drwxr-xr-x 4 root root 4096 May 18 15:25 .
drwxr-xr-x 3 root root 4096 May 18 14:57 ..
-rw-r--r-- 1 root root 3860 Apr 23 19:25 application.rb
-rw-r--r-- 1 root root 18068 May 18 15:25 configuration.rb
-rw-r--r-- 1 root root 1747 Apr 23 19:25 errors.rb
-rw-r--r-- 1 root root 2250 Apr 23 19:25 generator_helpers.rb
-rw-r--r-- 1 root root 4582 Apr 23 19:25 generator.rb
drwxr-xr-x 2 root root 4096 May 18 14:57 generators
-rw-r--r-- 1 root root 1303 Apr 23 19:25 pid_file.rb
-rw-r--r-- 1 root root 1194 Apr 23 19:25 secret_key_base_file.rb
-rw-r--r-- 1 root root 1887 Apr 23 19:25 socket_file.rb
-rw-r--r-- 1 root root 1924 Apr 23 19:25 user.rb
-rw-r--r-- 1 root root 78 Apr 23 19:25 version.rb
drwxr-xr-x 2 root root 4096 May 18 14:57 views

```

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 3:43pm UTC](https://discourse.openondemand.org/t/nginx-stage-error-after-upgrading-from-1-6-to-1-7/920/8 "2022-05-26T15:43:15Z")

</div>


