Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Can't connect to Jetty/Admin service remotely

Participant ,
Jul 04, 2012 Jul 04, 2012

I have Jetty installed on our local CF dev server so I can take advantage of stopping & starting CF from my dev box (on the same LAN as the CF dev server). CF 10 on a Win7 Pro 64-bit box.

I can connect to Jetty from the dev server via http://localhost:8985.

I've added firewall exceptions for it (tried both specific ports and allowing jetty.exe through).

But I just can't connect to it from any machine other than the one where Jetty is installed - it times out as if the port is blocked. I looked over the jetty director at the connector (which I'm admittedly not too familiar with) but I didn't see anything in there about 'localhost only' especially as the whole point is to be able to access the service remotely.

Am I missing something? I get not wanting to expose it to the wild, but our external firewall handles that. Do I need to mess with the internal tomcat setup for this to work?

4.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Jul 05, 2012 Jul 05, 2012

Interesting..

1) Open C:\ColdFusion10\cfusion\jetty\etc\jetty.xml

2) Search for "<Set name="Host">127.0.0.1</Set>"

3) Replace 127.0.0.1 w/ the CF server's IP address (same as the Host Name field on the 1st page of Remote Server setup wizard)

4) Restart the "ColdFusion 10 Jetty Server" service

5) Attempt stop or restart via CFB

6) See CFB's Servers view shows the server's status has changed from "Running" to "Stopping"

7) See no error logged to CFB's Console view

HOWEVER:  The remote CF server never actu

...
Translate
Engaged ,
Jul 05, 2012 Jul 05, 2012

Aquitaine wrote:

I have Jetty installed on our local CF dev server so I can take advantage of stopping & starting CF from my dev box (on the same LAN as the CF dev server). CF 10 on a Win7 Pro 64-bit box.

I can connect to Jetty from the dev server via http://localhost:8985.

[...]

But I just can't connect to it from any machine other than the one where Jetty is installed - it times out as if the port is blocked.

Hi Aquitaine,

I have reproduced this issue.  My setup:

- Two Win7 Pro 64-bit boxes.  CF10 Developer Edition on both.  Firewall disabled on both.  CFB 2.0.1 on both.

- Workspace contains both servers configured as Remote servers (so that I can close CFB on one machine, and jump to other machine, and use same workspace).

- CFB's "Remote Server Settings" tab is configured per the 2nd screenshot on this "What's new in ColdFusion Builder 2.0.1" article (Username and Password are same as defined in CF Admin > Solr Server > Advanced Settings.  Document Root is "C:\ColdFusion10\cfusion\wwwroot".).

- When attempting to start/stop/restart one of these remote servers via CFB on either machine, the following error is logged to CFB's Console view: "Cannot perform the operation. Admin server for the remote server SERVER_NAME_HERE is not running."

- In browser, I'm only able to hit Jetty at http://localhost:8985.  Any attempt to access it via the machine's IP results in a page-cannot-be-displayed message.  Of course means I cannot access each machine's Jetty via the other machine either.

I understand this does not help you.  Just verifying that I see exactly the same thing.

Thanks,

-Aaron

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 05, 2012 Jul 05, 2012

Interesting..

1) Open C:\ColdFusion10\cfusion\jetty\etc\jetty.xml

2) Search for "<Set name="Host">127.0.0.1</Set>"

3) Replace 127.0.0.1 w/ the CF server's IP address (same as the Host Name field on the 1st page of Remote Server setup wizard)

4) Restart the "ColdFusion 10 Jetty Server" service

5) Attempt stop or restart via CFB

6) See CFB's Servers view shows the server's status has changed from "Running" to "Stopping"

7) See no error logged to CFB's Console view

HOWEVER:  The remote CF server never actually stops or restarts.   And the status, in CFB's Servers view, hangs on "Stopping".

So..  got further..  but still no solution =P  (and of course Jetty can now be accessed in browser via server's IP, but no longer via localhost)

Thanks,

-Aaron

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 05, 2012 Jul 05, 2012

Changing the host in .xml file actually did the trick for me - it doesn't hang on 'stopping' and I am able to start/stop the server from CF builder.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 05, 2012 Jul 05, 2012
LATEST

Aquitaine wrote:

Changing the host in .xml file actually did the trick for me - it doesn't hang on 'stopping' and I am able to start/stop the server from CF builder.

Hi Aquitaine,

Thanks for verifying.  I also can now confirm that this works.  My issue was beta-testing related (a password issue), which I've resolved and now see the same fixed result you see.  I'll file an ER w/ Adobe to allow the Jetty/Admin service hostname to be config'd via CF Admin.  I'll follow-up w/ the ticket#.  I have a few tickets to file, so gonna handle them all in one swoop sometime soon.

Random note for Adobe:  Immediately after clicking restart for a remote server in CFB's Servers view, I then proceeded to rapidly click 'refresh' on the "ColdFusion 10 Application Server" service entry in that server's Services applet.  I was doing this to see how much delay there was btwn CFB's server status changes and the same in that server's Services applet.  ONCE while doing this, CFB's server status came out-of-sync w/ that in Windows Services.  CFB hung on 'stopping' while the Services applet progressed thru to stopped and then 'Starting' and then 'Started'.  I wasn't able to reproduce this (I tried a few more stop/restart remote server attempts in CFB).  Anyhow, just mentioning this FWIW.

Thanks,

-Aaron

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources