# OOD On Ubuntu 20.04

**URL:** <https://discourse.openondemand.org/t/ood-on-ubuntu-20-04/1021>\
**Category:** Get Help\
**Created:** [July 16, 2020, 3:20pm UTC](https://discourse.openondemand.org/t/ood-on-ubuntu-20-04/1021 "2020-07-16T15:20:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hahnx117](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@hahnx117](https://discourse.openondemand.org/u/hahnx117)\
**Post date:** [July 16, 2020, 3:20pm UTC](https://discourse.openondemand.org/t/ood-on-ubuntu-20-04/1021/1 "2020-07-16T15:20:22Z")

</div>

Good morning!

I am trying to install Open OnDemand as a part of a proof of concept project, but I’m running into an issue. We are using Ubuntu 20.04, and we don’t have a choice of moving to Cent or RHEL. I’m using the playbook to install on Ubuntu, but in trying to build the app I’m hitting a roadblock.

It gets to the step where it builds the program, then fails. It looks like it’s failing on the command

```
`rake build -mj$(nproc)`

```

I went into the directory (/tmp/ood-build/ondemand) that it creates to run it by hand to add `--trace` and see what happens, and I see the following

```auto
$ rake build -mj$(nproc) --trace
** Invoke build (first_time)
** Invoke build:all (first_time)
** Invoke build:activejobs (first_time)
** Invoke build:gems (first_time)
** Execute build:gems
cd /tmp/ood-build/ondemand/apps/dashboard
bin/bundle install --jobs 4 --retry 2 --without doc
** Invoke build:dashboard (first_time)
Traceback (most recent call last):
	2: from bin/bundle:3:in `<main>'
	1: from /usr/lib/ruby/2.7.0/rubygems.rb:252:in `bin_path'
/usr/lib/ruby/2.7.0/rubygems.rb:275:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /tmp/ood-build/ondemand/apps/dashboard/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.17.3`
rake aborted!
** Invoke build:gems 
** Previous invocation of build:gems failed 
** Invoke build:shell (first_time)
** Execute build:shell
Command failed with status (1): [bin/bundle install --jobs 4 --retry 2 --wi...]
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/file_utils.rb:67:in `block in create_shell_runner'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/file_utils.rb:57:in `sh'
/tmp/ood-build/ondemand/Rakefile:83:in `block (4 levels) in <top (required)>'
/usr/lib/ruby/2.7.0/fileutils.rb:139:in `chdir'
/usr/lib/ruby/2.7.0/fileutils.rb:139:in `cd'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/file_utils_ext.rb:35:in `chdir'
/tmp/ood-build/ondemand/Rakefile:82:in `block (3 levels) in <top (required)>'
/tmp/ood-build/ondemand/Rakefile:80:in `each'
/tmp/ood-build/ondemand/Rakefile:80:in `block (2 levels) in <top (required)>'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:281:in `block in execute'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:281:in `each'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:281:in `execute'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:199:in `synchronize'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:253:in `block (2 levels) in invoke_prerequisites_concurrently'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/promise.rb:64:in `chore'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/promise.rb:34:in `block in value'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/promise.rb:32:in `synchronize'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/promise.rb:32:in `value'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:257:in `reverse_each'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:257:in `invoke_prerequisites_concurrently'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:239:in `invoke_prerequisites'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:199:in `synchronize'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:253:in `block (2 levels) in invoke_prerequisites_concurrently'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/promise.rb:64:in `chore'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/promise.rb:34:in `block in value'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/promise.rb:32:in `synchronize'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/promise.rb:32:in `value'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:257:in `reverse_each'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:257:in `invoke_prerequisites_concurrently'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:239:in `invoke_prerequisites'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:199:in `synchronize'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:253:in `block (2 levels) in invoke_prerequisites_concurrently'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/promise.rb:64:in `chore'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/promise.rb:34:in `block in value'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/promise.rb:32:in `synchronize'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/promise.rb:32:in `value'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:257:in `reverse_each'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:257:in `invoke_prerequisites_concurrently'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:239:in `invoke_prerequisites'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:199:in `synchronize'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/task.rb:188:in `invoke'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/application.rb:160:in `invoke_task'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/application.rb:116:in `each'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/application.rb:116:in `block in top_level'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/application.rb:125:in `run_with_threads'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/application.rb:110:in `top_level'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/application.rb:83:in `block in run'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/application.rb:80:in `run'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
PASSENGER_APP_ENV=production /tmp/ood-build/ondemand/apps/shell/bin/setup
Tasks: TOP => build => build:all => build:activejobs => build:gems

```

I’ve tried installing bundler separately from some instructions I’ve found elsewhere, but to no avail. Has anybody else run into this before? Is this a dependency issue since we’re running Ubuntu?

Thank you very much,  
David

---

<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:** [July 16, 2020, 8:00pm UTC](https://discourse.openondemand.org/t/ood-on-ubuntu-20-04/1021/2 "2020-07-16T20:00:14Z")

</div>

Hi and welcome!

I can’t replicate in a container. The role should be [installing these gems through this task](https://github.com/OSC/ood-ansible/blob/5cb8db91cd74039712a6e83a542952aec107f0a9/tasks/deps.yml#L33-L41).

This is what’s being executed that’s failing you.

```auto
cd /tmp/ood-build/ondemand/apps/dashboard
bin/bundle install

```

as root.

It attempts to load the gem through `Gem.bin_path`. Here’s what I get when I execute this.

```ruby
root@5c3015c2fe78:/tmp/ood-build/ondemand/apps/dashboard# irb 
irb(main):001:0> Gem.bin_path('bundler', 'bundle')
=> "/var/lib/gems/2.7.0/gems/bundler-1.13.7/exe/bundle"
irb(main):002:0> 

```

That’s likely because that location is the first path in my gem paths when I look at `gem env`.

```auto
  - GEM PATHS:
     - /var/lib/gems/2.7.0
     - /root/.gem/ruby/2.7.0
     - /usr/lib/ruby/gems/2.7.0
     - /usr/share/rubygems-integration/2.7.0
     - /usr/share/rubygems-integration/all

```

And the installation directory too.

```auto
  - INSTALLATION DIRECTORY: /var/lib/gems/2.7.0

```

And I can see by the timestamps that that gem was installed by me just a little while ago through the role (and the ansible tasks given above).

```auto
root@5c3015c2fe78:/tmp/ood-build/ondemand/apps/dashboard# ls /var/lib/gems/2.7.0/gems/bundler-1.13.7/exe/ -lrt
total 12
-rwxr-xr-x. 1 root root 1161 Jul 16 16:50 bundle
-rwxr-xr-x. 1 root root 1439 Jul 16 16:50 bundle_ruby
-rwxr-xr-x. 1 root root 96 Jul 16 16:50 bundler

```

Are you setting any GEM\_PATH or GEM\_HOME variables? I would say, try to track down where those tasks installed bundler and look at root’s gem env (or sudo gem env as the case may be). You may have to just set GEM\_PATH (it’s just like PATH format, /a/b/c:/other/path). I’ve given my full gem path list above.

Hope that helps!

---

<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:** [December 1, 2020, 9:16pm UTC](https://discourse.openondemand.org/t/ood-on-ubuntu-20-04/1021/3 "2020-12-01T21:16:47Z")

</div>

Hey just a follow up, did you make any progress on your POC?

---

<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:** [February 23, 2022, 8:46pm UTC](https://discourse.openondemand.org/t/ood-on-ubuntu-20-04/1021/4 "2022-02-23T20:46:12Z")

</div>

Closed on February 23, 2022, 8:46pm UTC

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

---

<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:** [August 12, 2022, 5:35pm UTC](https://discourse.openondemand.org/t/ood-on-ubuntu-20-04/1021/5 "2022-08-12T17:35:14Z")

</div>

Open OnDemand 2.0.28 now has support for Ubuntu 18.04 and 20.04. We’re releasing and supporting those `.deb` packages from that version on.

> [@Open OnDemand 2.0 Ubuntu support](https://discourse.openondemand.org/t/open-ondemand-2-0-ubuntu-support/2231):
>
> Open OnDemand 2.0.28 is now available with the notable feature of supporting Ubuntu 20.04 and 18.04 platforms. Added Support for Ubuntu 18.04 & 20.04 platforms. fujitsu\_tcs support. Dex can now be ran behind the apache proxy by setting dex\_uri. This means sites can use apache to proxy to dex instead of opening up 5556 or 5554 ports and accessing dex directly. Fixed passenger\_options can now correctly be used fixing a bug. PUNs environments are now sanitized, removing OIDC and/or other en…
