So trying to debug why the console option is not working.

   - Check for a “websockify.py” process on your Foreman server when 
   opening the console page in Foreman
   - If websockify.py is missing, check /var/log/foreman/production.log for 
   stderr output with logging increased to debug
   - Look at the last argument of the process command line, it will have 
   the hypervisor hostname and port - ensure you can resolve and ping this 
   hostname
   - Make sure you access Foreman web UI via FQDN as the certificate does 
   not have shortened hostname.
   - Try a telnet/netcat connection from the Foreman host to the hypervisor 
   hostname/port
   - The penultimate argument of websockify.py is the listening port number, 
   check if your web client host can telnet to it
   - If using Firefox, check the known issues above and set the config 
   appropriately
   - The error “WebSock error: [object Event]” can be caused by a self 
   signed certificate, where the certificate`s algorithm is too weak, e.g. 
   SHA1. Debugging the issue with the Firefox JavaScript Console will show a 
   warning similar to *“This site makes use of a SHA-1 Certificate; it’s 
   recommended you use certificates with signature algorithms that use hash 
   functions stronger than SHA-1”*. See Weak Signature Algorithms 
   <https://developer.mozilla.org/docs/Security/Weak_Signature_Algorithm> 
   on Mozilla website.


* websockify.py exists. 
* looked at production.log for errors, saw none.
2016-08-29 23:52:41 [app] [I] Processing by HostsController#console as HTML
2016-08-29 23:52:41 [app] [I]   Parameters: {"id"=>"george-dev.net"}
2016-08-29 23:52:44 [app] [I]   Rendered hosts/console/vnc.html.erb within 
layouts/application (6.5ms)
2016-08-29 23:52:44 [app] [I]   Rendered 
layouts/_application_content.html.erb (0.8ms)
2016-08-29 23:52:44 [app] [I]   Rendered home/_user_dropdown.html.erb 
(4.3ms)
2016-08-29 23:52:44 [app] [I] Read fragment views/tabs_and_title_records-3 
(0.3ms)
2016-08-29 23:52:44 [app] [I]   Rendered home/_topbar.html.erb (13.6ms)
2016-08-29 23:52:44 [app] [I]   Rendered layouts/base.html.erb (16.2ms)
2016-08-29 23:52:44 [app] [I] Completed 200 OK in 2394ms (Views: 26.4ms | 
ActiveRecord: 3.5ms)


* there is no argument in a "process command line" in said production.log.
* would try telnet but not sure what port it's trying to use. Does it try 
to use the web client ip for console or the foreman host?
* I do get the "WebSock error: [object Event]" but do not use a SHA1 key.

So, where do these commands get logged? I'm kinda stuck trying to figure 
out what it's trying to do.

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to