theforeman / forklift

Helpful deployment scripts for Foreman and Katello
https://theforeman.github.io/forklift
GNU General Public License v3.0
183 stars 199 forks source link

Unable to load login screen for centos7-katello-devel-stable #1277

Open jeffmcutter opened 3 years ago

jeffmcutter commented 3 years ago

I'm trying to use centos7-katello-devel-stable but when I point my browser to the vagrant managed hosts entry on https it fails to load the login screen. The vagrant box I'm using is:

katello/katello-devel (libvirt, 2021.0114.0700)

vagrant up appears to complete successfully as do the following:

vagrant ssh centos7-katello-devel-stable cd foreman bundle exec foreman start

The browser console messages are:

Strict-Transport-Security: The connection to the site is untrustworthy, so the specified header was ignored.
login
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. login
Loading failed for the <script> with source “https://centos7-katello-devel-stable.example.com:3808/webpack/foreman-vendor.bundle-v6.0.0-development-25a881b2680b8b676d2f.js”. login:31:1
Loading failed for the <script> with source “https://centos7-katello-devel-stable.example.com:3808/webpack/vendor.js”. login:32:1
Loading failed for the <script> with source “https://centos7-katello-devel-stable.example.com:3808/webpack/bundle.js”. login:33:1
Uncaught ReferenceError: jQuery is not defined
    <anonymous> https://centos7-katello-devel-stable.example.com/assets/application-90c9de8f557426d73f0108e4784574fa2abb3c49e42399ac6976bf5812347910.js:9
    <anonymous> https://centos7-katello-devel-stable.example.com/assets/application-90c9de8f557426d73f0108e4784574fa2abb3c49e42399ac6976bf5812347910.js:11
application-90c9de8f557426d73f0108e4784574fa2abb3c49e42399ac6976bf5812347910.js:9:3
Loading failed for the <script> with source “https://centos7-katello-devel-stable.example.com:3808/webpack/katello:fills.js”. login:35:1
Loading failed for the <script> with source “https://centos7-katello-devel-stable.example.com:3808/webpack-dev-server.js”. login:36:1
Source map error: Error: NetworkError when attempting to fetch resource.
Resource URL: moz-extension://0a09f9cb-810c-49fe-b915-6d33d32a59a9/src/js/editor-popup.js
Source Map URL: purify.js.map

Any ideas? Is it just me?

Thanks, -Jeff

P.S. I tried centos-katello-devel also and it is failing on:

TASK [foreman_installer : Run installer] ***************************************
fatal: [centos7-katello-devel]: FAILED! => changed=true 
  cmd: |-
    foreman-installer -v --no-colors --disable-system-checks --scenario katello-devel  --katello-devel-scl-ruby=rh-ruby25 --katello-devel-admin-password changeme
ehelms commented 3 years ago

@jlsherrill @johnpmitsch could one of you take a look at this and help point in a direction that could get working?

johnpmitsch commented 3 years ago

Hi @jeffmcutter, be sure to accept the self-signed certificates at https://$HOSTNAME:3808, see here for more information. You may run into this issue as well.

Check these first, and if you are still seeing issues let me know!

jeffmcutter commented 3 years ago

Thank you @ehelms and @johnpmitsch for the quick responses.

@johnpmitsch I found that both of those were issues for me and I am able to login now. For the first one, I submitted a PR to hopefully help someone like me who didn't read to the end of the URL to see the port number here:

https://github.com/theforeman/forklift/pull/1278

Not sure maybe we should include the link to the issue for h2 also?

Thanks, -Jeff