polterguy / phosphorusfive

A Full Stack RAD Web Application Development Framework
https://gaiasoul.com
GNU General Public License v3.0
178 stars 36 forks source link

Application crashes at startup #23

Closed ronironatello closed 6 years ago

ronironatello commented 6 years ago

I followed the non-geek installation process on macOS 10.13.4 including adding mySQL root password in connection string. I installed the archive in: ~/dev.

When I run p5.sln I get these errors: [2018-05-10 19:59:01.322596] Notice : Adding applications '/:.'... p5 on macos [2018-05-10 19:59:01.336220] Notice : Registering application: [2018-05-10 19:59:01.336276] Notice : Host: any [2018-05-10 19:59:01.336333] Notice : Port: any [2018-05-10 19:59:01.336389] Notice : Virtual path: / [2018-05-10 19:59:01.336433] Notice : Physical path: /Volumes/Interne/Users/michel/dev/phosphorusfive-8.0/core/p5.webapp/ [2018-05-10 19:59:01.944578] Notice : xsp4 [2018-05-10 19:59:01.978454] Notice : Listening on address: 127.0.0.1 [2018-05-10 19:59:01.978511] Notice : Root directory: /Volumes/Interne/Users/michel/dev/phosphorusfive-8.0/core/p5.webapp [2018-05-10 19:59:02.045911] Error : Address already in use [2018-05-10 19:59:02.050512] Error : at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x00055] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/System/System.Net.Sockets/Socket.cs:780 [2018-05-10 19:59:02.050563] Error : at Mono.WebServer.XSPWebSource.CreateSocket () [0x0001b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-xsp-c98e068/src/Mono.WebServer.XSP/XSPWebSource.cs:97 [2018-05-10 19:59:02.050600] Error : at Mono.WebServer.ApplicationServer.Start (System.Boolean bgThread, System.Int32 backlog) [0x0007c] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-xsp-c98e068/src/Mono.WebServer/ApplicationServer.cs:294 [2018-05-10 19:59:02.050626] Error : at (wrapper remoting-invoke-with-check) Mono.WebServer.ApplicationServer.Start(bool,int) [2018-05-10 19:59:02.050651] Error : at Mono.WebServer.XSP.Server.DebugMain (System.String[] args, System.Boolean root, Mono.WebServer.IApplicationHost ext_apphost, System.Boolean quiet) [0x002cd] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-xsp-c98e068/src/Mono.WebServer.XSP/main.cs:180


How can I see what is the source of the conflict?

polterguy commented 6 years ago

It seems that this is the important line Error : Address already in use. In addition to this line Listening on address: 127.0.0.1. It looks like xsp (Mono's web server) is listening on the default port (80), and that some other process has already take this port.

I assume you are using Visual Studio for OS X. If you double click the "/core/p5.webapp" project inside of your solution, which will bring up the properties for your project, you can change the port setting in the "Run/XSP Web Server" section of your webapp's properties. I use port 8080 myself. In fact I am kind of surprised that yours doesn't too by default ...

The reason why this is happening, is because you probably have some other web server process listening on port 80. If you change the port to 8080, 9000, or 9999 for that matter, this should be fixed. Let me know if this solved it for you ...

Thx for a detailed error report, makes my job easier ...

polterguy commented 6 years ago

This this work out for you ...?

polterguy commented 6 years ago

OK, I'm gonna close this one. Let me know if you've still got the problem ...