# Ubuntu 20.04 install help

**URL:** <https://discourse.openondemand.org/t/ubuntu-20-04-install-help/2190>\
**Category:** Get Help\
**Created:** [July 15, 2022, 7:39pm UTC](https://discourse.openondemand.org/t/ubuntu-20-04-install-help/2190 "2022-07-15T19:39:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![arnoldas500](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/arnoldas500/32/1178_2.png) [@arnoldas500](https://discourse.openondemand.org/u/arnoldas500)\
**Post date:** [July 15, 2022, 7:39pm UTC](https://discourse.openondemand.org/t/ubuntu-20-04-install-help/2190/1 "2022-07-15T19:39:05Z")

</div>

$ sudo apt install ondemand  
Logs:  
"  
Reading package lists… Done

Building dependency tree

Reading state information… Done

The following packages were automatically installed and are no longer required:

linux-headers-5.4.0-91 linux-headers-5.4.0-91-generic linux-image-5.4.0-91-generic linux-modules-5.4.0-91-generic linux-modules-extra-5.4.0-91-generic

Use ‘sudo apt autoremove’ to remove them.

The following NEW packages will be installed:

ondemand

0 upgraded, 1 newly installed, 0 to remove and 47 not upgraded.

Need to get 107 MB of archives.

After this operation, 441 MB of additional disk space will be used.

Get:1 [Index of /ondemand/nightly/web/apt](https://apt.osc.edu/ondemand/nightly/web/apt) focal/main amd64 ondemand amd64 2.1.20220714.124264.fcd4a5d.nightly [107 MB]

Fetched 107 MB in 2s (62.7 MB/s)

Selecting previously unselected package ondemand.

(Reading database … 209340 files and directories currently installed.)

Preparing to unpack …/ondemand\_2.1.20220714.124264.fcd4a5d.nightly\_amd64.deb …

Unpacking ondemand (2.1.20220714.124264.fcd4a5d.nightly) …

Setting up ondemand (2.1.20220714.124264.fcd4a5d.nightly) …

Updating NGINX configs using YAML config: ‘/etc/ood/config/nginx\_stage.yml’

- /opt/ood/nginx\_stage/sbin/nginx\_stage app\_clean

- /opt/ood/nginx\_stage/sbin/nginx\_stage app\_reset --sub-uri=/pun

/var/lib/ondemand-nginx/config/apps/sys/dashboard.conf

/var/lib/ondemand-nginx/config/apps/sys/myjobs.conf

/var/lib/ondemand-nginx/config/apps/sys/activejobs.conf

/var/lib/ondemand-nginx/config/apps/sys/files.conf

/var/lib/ondemand-nginx/config/apps/sys/bc\_desktop.conf

/var/lib/ondemand-nginx/config/apps/sys/file-editor.conf

/var/lib/ondemand-nginx/config/apps/sys/shell.conf

- /opt/ood/nginx\_stage/sbin/nginx\_stage nginx\_clean

Completed successfully!

chown: cannot access ‘/etc/apache2/sites-available/ood-portal.conf’: No such file or directory

chmod: cannot access ‘/etc/apache2/sites-available/ood-portal.conf’: No such file or directory  
"  
Install finishes without creating the ood-portal.conf file.

---

<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 15, 2022, 7:48pm UTC](https://discourse.openondemand.org/t/ubuntu-20-04-install-help/2190/2 "2022-07-15T19:48:28Z")

</div>

I can’t replicate in a container. Maybe make sure that `apache2` is installed and those directories exist then try again? `apache2` should create that directory, so it’s not clear why it wouldn’t exist.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/4/40ebb05dbafb78182c75fcb3c1763c557c89b0c3.jpeg)

---

<div class="post-metadata">

**Author:** ![arnoldas500](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/arnoldas500/32/1178_2.png) [@arnoldas500](https://discourse.openondemand.org/u/arnoldas500)\
**Post date:** [July 15, 2022, 8:06pm UTC](https://discourse.openondemand.org/t/ubuntu-20-04-install-help/2190/3 "2022-07-15T20:06:39Z")

</div>

The directories exist and apache2 is installed:  
/etc/apache2/sites-available$ ls  
000-default.conf default-ssl.conf  
$ pwd  
/etc/apache2/sites-available  
$ which apache2  
/usr/sbin/apache2

Not sure what else to try?

---

<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 15, 2022, 8:13pm UTC](https://discourse.openondemand.org/t/ubuntu-20-04-install-help/2190/4 "2022-07-15T20:13:34Z")

</div>

Try bouncing apache2 and see what comes out of `journalctl`. We run the ood\_portal\_generator on bounces so it’ll run.

Otherwise you may try running it manually.

```auto
/opt/ood/ood-portal-generator/sbin/update_ood_portal
# or
/opt/ood/ood-portal-generator/sbin/update_ood_portal --force

```

---

<div class="post-metadata">

**Author:** ![arnoldas500](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/arnoldas500/32/1178_2.png) [@arnoldas500](https://discourse.openondemand.org/u/arnoldas500)\
**Post date:** [July 19, 2022, 7:06pm UTC](https://discourse.openondemand.org/t/ubuntu-20-04-install-help/2190/5 "2022-07-19T19:06:01Z")

</div>

bouncing apache2 didnt work but running $/opt/ood/ood-portal-generator/sbin/update\_ood\_portal created the file. Now when I go to the page I am greeted with a login page with an internal server error after entering my login information:

 ![Screen Shot 2022-07-19 at 3.04.29 PM](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/a/afa1a7bee4009577d7a6a2f3c8f778c0f516d166.png)

---

<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 19, 2022, 7:29pm UTC](https://discourse.openondemand.org/t/ubuntu-20-04-install-help/2190/6 "2022-07-19T19:29:06Z")

</div>

You can look in `/var/log/apache2/` for apache errors.

---

<div class="post-metadata">

**Author:** ![arnoldas500](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/arnoldas500/32/1178_2.png) [@arnoldas500](https://discourse.openondemand.org/u/arnoldas500)\
**Post date:** [July 19, 2022, 7:45pm UTC](https://discourse.openondemand.org/t/ubuntu-20-04-install-help/2190/7 "2022-07-19T19:45:46Z")

</div>

found error : Permission denied Could not open password file:  
/etc/apache2/.htpasswd

changed permissions from root to www-data

now I can login but once I enter the login credentials I am getting error:  
Error – No such file or directory - /opt/ood/ondemand/root/usr/sbin/nginx  
Run ‘nginx\_stage --help’ to see a full list of available command line options.

---

<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 20, 2022, 4:25pm UTC](https://discourse.openondemand.org/t/ubuntu-20-04-install-help/2190/8 "2022-07-20T16:25:37Z")

</div>

I cannot replicate from a fresh install. From other posts I’m seeing you’re building from the source and now you’re installing a `.deb`?

I’m not quite sure what’s wrong with your system, but my guess is is that the 2 installs are incompatible and are messing each other up.

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

I’d suggest you reset that machine back to it’s original state and start all over with a `.deb` file - not building from source.

---

<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:** [January 16, 2023, 4:26pm UTC](https://discourse.openondemand.org/t/ubuntu-20-04-install-help/2190/9 "2023-01-16T16:26:32Z")

</div>

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