Ubuntu 20.04 install help

$ sudo apt install ondemand
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:


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 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








  • /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.

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.

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

Not sure what else to try?

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.

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

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:

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

found error : Permission denied Could not open password file:

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.

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.

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.