I’m trying to setup reverse proxy and the following lines in my ood-portal.yml file
host_regex: ‘[\w.-]+.gsu.edu’
node_uri: ‘/node’
rnode_uri: ‘/rnode’
when i run update_ood_portal it complains about different checksum. If I use --force option it creates me httpd.conf file w/o any of my custom settings. It doesn’t have my ssl info or mellon authentication.
<VirtualHost :>
RewriteEngine On
RewriteCond %{REQUEST_URI} !/public/need_auth.html
RewriteRule ^.*$ /public/need_auth.html [R=301,L]
OK, as long as you have something in the auth section - the installation/configuration can move forward. This was to force folks to setup authentication first before anything else.
I don’t have problems with the dashboard or installation. My problem that Update_ood_portal script is not working. Should I just stop using it and manually edit my http conf file?
Can you share your ood_portal.yml? I see from the first comment there’s no auth section. There needs to be an auth section for update_ood_portal to present any conf file that is not the one you’re looking at.
No because bouncing apache is going to use this program as well.
What I posted in the begining it’s what I get if I run update_ood_portal. My ood_portal.yml is below. I removed all comments. Is spacing important? Maybe it cannot read my ood_portal.yml file?
I was able to modify my apache conf for reverse proxy and I can connect to VNC but I have to manually add domain at the end of the node name in the link to make it work. I’m not sure why it url generates w/o domain. Here are mine settings in cluster yml file:
batch_connect:
This is the relevant piece for your current issue. I would get a shell session to one of your compute nodes and inspect what hostname -A | awk '{print $1}' returns. Modify this section in your cluster config such that the command being issued returns the FQDN (fully qualified domain name) and not the partial domain name.
and/or just hard code the rest of the domain like
set_host: "host=$(hostname -A | awk '{print $1}').osc.edu"
This command hostname -A | awk '{print $1}'
actually returns FQDN on the node and even if I add domain in my cluster.yml file and restart httpd VNC link still generates without domain. It seems like it get stripped somewhere somehow
When you issue the same command - where you on a compute node?
#!/bin/bash
# delme.sh
hostname -A | awk '{print $1}'
If you submit this script to your scheduler through sbatch delme.sh or similar - what’s the output? This command is being issued during a job’s execution on a compute node. That’s important to remember when you test for the same.
It returns FQDN!
Maybe something is in my Apache config is wrong? I was trying to send reverse proxy traffic through just a hostname w/o domain but that was not working either.
OK that’s super weird. I don’t think it has to do with apache configs.
Alright, when you start a brand new VNC application - what’s in your connection.yml? You can find this in the same directory with all the other logs for the job like output.log and so on.