Hi Kevin, It’s fine that 1085 ports are open… but that doesn’t mean that the fastcgi adaptor knows how to find them. It won’t multicast across all systems on the same LAN to find open 1085 ports.
You need to specify in the fastcgi configuration file where your wotaskd daemons are running. Something like: WebObjectsConfig http://www.server.com:1085,http://www2.server.com:1085 10 Sorry, I don’t remember where the configuration file is. Probably have to look at the source code for it. Yeah you’re right to use nginx, it’s the best and uses little memory. Here’s a reference document on the “theory” in case you haven’t seen it: http://wiki.wocommunity.org/pages/viewpage.action?pageId=7143530 Cheers, AARON ROSENZWEIG / Chat 'n Bike e: [email protected] t: (301) 956-2319 On Feb 5, 2014, at 9:43 AM, Kevin Hinkson <[email protected]> wrote: > Hi everyone, > > I am having some difficulty getting a multi-server setup to work. I was able > to setup nginx + fastcgi adaptor + webobjects to run all on one machine. A > multi-machine setup is showing me that I probably don't know enough about how > the webobjects pieces all work together to set this up. The full setup I am > going for uses jenkins to build and deploy apps to 2 machines with a separate > web server running nginx. > > Server setup: CentOS 6.4, JDK 1.7, the Wonder JavaMonitor and wotaskd > > Machine 1: jenkins, nginx, webobjects fastcgi adaptor, javamonitor, postgres > Jenkins works fine. The nginx -> adaptor config is setup as directed in the > nginx config provided in the FastCGI adaptor source and points to a local > socket. > > Machine 2 + 3: wotaskd and webobjects applications > I can initially setup wotaskd and the applications (via womonitor on machine > 1) which launch correctly. I am unable to shut them down and each app > usually, spits out a broken socket error on launch > > WebObjects ports opened on the local network: 1085 on the app servers, as > well as the application server ports (2001, 2002 etc) > Hostnames: all fqdn setup in /etc/hosts on each machine and used to configure > javamonitor and the fast cgi adaptor > > Problems: > 1. Since womonitor is standalone (without wotaskd) on machine one, a reboot > seems to mean it looses the configuration settings, password etc and it > doesn't seem to read this information from disk on launch since there is no > wotaskd running on that machine. Even after relaunch and when rea-dding the > hosts I get a password error. I have to wipe the SiteConfig.xml on the app > machines to get them to play nice again. Is there a way to avoid any of this > as I would like to use javamonitor so that deployment can be automated > through jenkins. > > 2. I can hit the AdaptorInfo page but it seems to show stale information from > the single machine setup. I launch the adaptor using spawn-fcgi and use > environment variables to pass the config url and user name and password which > I think are working because I can access the AdaptorInfo page using the same > username and password and the WOConfig urls on machine 2 + 3's port 1085 work > (prior to rebooting). I have no idea what else to do here. It's my > understanding that nginx talks to the adaptor through the socket provided and > the configuration urls tell the adaptor where to look for the running > instances and configure itself. > > 3. The webobjects applications aren't reachable via nginx. The launched apps > have no problem connecting to the postgres database on machine one. > > 4. Maybe this should be the first problem, but is the FastCGI adaptor > supposed to work in this kind of setup? I am assuming most people don't use > it so there is little information I could find on how it should be setup. I > would prefer to stick with nginx. > > Does anyone have any pointers? _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/aaron%40chatnbike.com > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
