Board index FlightGear Development New features

Heaven or Hell? Phi sneak preview.

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

Re: Heaven or Hell? Phi sneak preview.

Postby sanhozay » Tue Jun 09, 2015 5:45 am

I pull the latest from Git every couple of days and Phi hasn't stopped working for me. The last commit in the Phi directory was June 1st, which was to fix an image caching bug and there hasn't been anything else since mid April. This doesn't cover the underlying http service.

http://sourceforge.net/p/flightgear/fgd ... /tree/Phi/

I guess the logical step is for you to install a build from a week or two ago. If it works, it suggests the problem is source related. If not, it suggests something has gone awry on your system, maybe another unrelated update.

If you are on Linux or Mac, you could use netstat to find if there's anything listening on 8080. You could also try a different port in case something has grabbed that port. Have you rebooted lately? Did you try a different browser to see if it's browser related? Are you ok to clear your browser cache and see if that helps? Have you checked you can ping localhost if that's the address you are using?

Could you also paste the exact URL you are using so that someone can check it?
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: Heaven or Hell? Phi sneak preview.

Postby clrCoda » Tue Jun 09, 2015 5:55 am

The winNightly from last week I still happen to have on hand dated 4/24/15, when re-installed, still works.

That rules out any firewalls, possible antivirus this or thats, or anything, really, that might could be considered capable of blocking.

If I install a winNightly from 3 days ago, or 2 days ago, then PHI can not be reached. I've not installed a new winNightly today. I will here in a few minutes. Doesn't take very long. Try again.

-- Thanks, Ray
Ray St. Marie
clrCoda
 
Posts: 1228
Joined: Wed Apr 07, 2010 11:04 am

Re: Heaven or Hell? Phi sneak preview.

Postby clrCoda » Tue Jun 09, 2015 6:19 am

I downloaded and installed the latest winNightly and launched and turned on a browser, nuth'n.

I uninstalled and re-installed last weeks winNightly and everything works.

-- Ray reporting
Ray St. Marie
clrCoda
 
Posts: 1228
Joined: Wed Apr 07, 2010 11:04 am

Re: Heaven or Hell? Phi sneak preview.

Postby sanhozay » Tue Jun 09, 2015 6:24 am

What exact URL are you using?

Could you also try
Code: Select all
netstat -an
from a command window?

http://commandwindows.com/netstat.htm
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: Heaven or Hell? Phi sneak preview.

Postby clrCoda » Tue Jun 09, 2015 6:37 am

I'm using a url that paths thru my router between my machines. You'll forgive me if I don't advertise it here. It works with last weeks winNightlyBuild just fine. It is not localhost because it's on another machine, like I said, through the router. I got the address of the two machines from directly from the router interface.

I did also a test on the local machine using localhost and FireFox. During that test, I got the name of the page in the TAB, and i got the very top of the page, that blue field, and not much else. I have emptied cache on browsers on both of those machines.

In the local host situation, I do get just the tiniest bit of page, but the rest never loads. On the distributed path end browser, I don't even get that.

And then I re-install last weeks and everything works fine.
Ray St. Marie
clrCoda
 
Posts: 1228
Joined: Wed Apr 07, 2010 11:04 am

Re: Heaven or Hell? Phi sneak preview.

Postby sanhozay » Tue Jun 09, 2015 6:44 am

If you use these URLs, does it work?

http://SERVER:PORT/#Map
http://SERVER:PORT/#Aircraft/Help

where SERVER and PORT are your server and port.
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: Heaven or Hell? Phi sneak preview.

Postby clrCoda » Tue Jun 09, 2015 6:47 am

only on last weeks simulator, not on the last 3 current winNightlies.
Ray St. Marie
clrCoda
 
Posts: 1228
Joined: Wed Apr 07, 2010 11:04 am

Re: Heaven or Hell? Phi sneak preview.

Postby sanhozay » Tue Jun 09, 2015 6:50 am

How about netstat on the machine running Flightgear?
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: Heaven or Hell? Phi sneak preview.

Postby legoboyvdlp » Tue Jun 09, 2015 11:49 am

I use a single machine, and it is broken for me too. How would one set the browser to 8080, 5050, 5500, or whatever?
User avatar
legoboyvdlp
 
Posts: 7780
Joined: Sat Jul 26, 2014 1:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: Heaven or Hell? Phi sneak preview.

Postby clrCoda » Tue Jun 09, 2015 5:49 pm

Hi legoboy, :)

The browser string for running PHI on the same machine as the simulator using port 8080 is

http://localhost:8080/gui/

the word localhost takes the place of a number such as 127.0.0.1 which you could use in the place of the word localhost, but the word localhost usually works unless you are using Mac Yosemite. So the very same string could also read:

http://127.0.0.1:8080/gui/

The backslash at the end is necessary as well.
Ray St. Marie
clrCoda
 
Posts: 1228
Joined: Wed Apr 07, 2010 11:04 am

Re: Heaven or Hell? Phi sneak preview.

Postby clrCoda » Tue Jun 09, 2015 6:02 pm

Hi sanhozay,

This morning I tried 8085 as you requested in PM. I made certain the port was open in the winFirewall on both machines. It is evident thru netstat that the request is getting thru, and also from the fact that if I shut down the sim on one machine, the browser on the other machine notices and reports that fact.

You had mentioned that the last, most recent update to PHI ( which was within the time range of this problem ) didn't appear to be the kind of thing that could cause this problem. You mentioned, and I think wkitty too, said that building on linux, no problem.

These hints suggest to me that it is windows specific, and possibly not anything to do with PHI but with the http deamon instead. Where there any changes recently that could effect the deamon?

Kind regards
--Ray
Ray St. Marie
clrCoda
 
Posts: 1228
Joined: Wed Apr 07, 2010 11:04 am

Re: Heaven or Hell? Phi sneak preview.

Postby sanhozay » Tue Jun 09, 2015 6:35 pm

I agree that this looks like a problem with the Windows version, either Windows related or perhaps a flaw in the Windows nightly build. I didn't notice any commits in the networking code but I didn't search rigorously.

I have an idea. Let me go and try something ...
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: Heaven or Hell? Phi sneak preview.

Postby Torsten » Wed Jun 10, 2015 10:12 am

I have updated the internal httpd (mongoose) end of may, eventually that is causing problems?

clrCoda, can you access your Phi from the same machine that runs fgfs via localhost or 127.0.0.1 ?
Can you check your fgfs.log for anything related to httpd or mongoose? You should find a line
"starting mongoose with these options:" eventually followed by an error message?

Torsten
flightgear.org - where development happens.
User avatar
Torsten
 
Posts: 643
Joined: Fri Feb 01, 2008 9:22 pm
Location: near Hamburg, Germany
Callsign: offline
Version: next
OS: Linux

Re: Heaven or Hell? Phi sneak preview.

Postby clrCoda » Wed Jun 10, 2015 10:19 am

The mongoose section of my fgfs.log

Code: Select all
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:522:starting mongoose with these options:
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > access_control_list: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > access_log_file: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > auth_domain: 'mydomain.com'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > cgi_interpreter: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > cgi_pattern: '**.cgi$|**.pl$|**.php$'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > dav_auth_file: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > dav_root: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > document_root: 'C:\Program Files\FlightGear 3.5.0\data/Docs'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > enable_directory_listing: 'yes'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > enable_proxy: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > extra_mime_types: '.appcache=text/cache-manifest'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > global_auth_file: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > hide_files_patterns: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > hexdump_file: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > index_files: 'index.html'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > listening_port: '8080'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > ssi_pattern: '**.shtml$|**.shtm$'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > url_rewrites: '/gui/=C:\Program Files\FlightGear 3.5.0\data/webgui/,/fonts/=C:\Program Files\FlightGear 3.5.0\data/Fonts/,/aircraft-dir/=C:/Users/joe/Documents/FlightGear/Aircraft/737-300/'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:527:end of mongoose options.
Ray St. Marie
clrCoda
 
Posts: 1228
Joined: Wed Apr 07, 2010 11:04 am

Re: Heaven or Hell? Phi sneak preview.

Postby clrCoda » Wed Jun 10, 2015 10:25 am

Things found searching httpd:

Code: Select all
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:442:httpd: adding screenshot uri handler at /screenshot
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:447:httpd: adding property uri handler at /props/
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:452:httpd: adding json uri handler at /json/
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:457:httpd: adding pkg uri handler at /pkg/
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:462:httpd: adding flighthistory uri handler at /flighthistory/
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:467:httpd: adding run uri handler at /run.cgi
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:472:httpd: adding navdb uri handler at /navdb
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:522:starting mongoose with these options:
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > access_control_list: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > access_log_file: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > auth_domain: 'mydomain.com'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > cgi_interpreter: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > cgi_pattern: '**.cgi$|**.pl$|**.php$'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > dav_auth_file: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > dav_root: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > document_root: 'C:\Program Files\FlightGear 3.5.0\data/Docs'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > enable_directory_listing: 'yes'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > enable_proxy: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > extra_mime_types: '.appcache=text/cache-manifest'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > global_auth_file: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > hide_files_patterns: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > hexdump_file: ''
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > index_files: 'index.html'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > listening_port: '8080'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > ssi_pattern: '**.shtml$|**.shtm$'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:525:  > url_rewrites: '/gui/=C:\Program Files\FlightGear 3.5.0\data/webgui/,/fonts/=C:\Program Files\FlightGear 3.5.0\data/Fonts/,/aircraft-dir/=C:/Users/joe/Documents/FlightGear/Aircraft/737-300/'
network:3:..\..\..\flightgear\src\Network\http\httpd.cxx:527:end of mongoose options.
Ray St. Marie
clrCoda
 
Posts: 1228
Joined: Wed Apr 07, 2010 11:04 am

PreviousNext

Return to New features

Who is online

Users browsing this forum: No registered users and 1 guest