Sunday, February 25, 2007

Coldfusion MX 7.02 on Mac Book Pro

Trying to get my dev environment up using CFMX on a Mac Book Pro and have followed Mark Andrachek's [awesome] instructions, http://webmages.com/geek/cfmx-on-intel-macs/, but encoutering a problem.

Symptom: after completing all steps, when I go to: http://localhost/CFIDE/Administrator/ I receive the following error message:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Apache/1.3.33 Server at mark-holtons-computer.local Port 80

- Apache (1.3) is running on my localhost (I know this because when I go to http://10.0.1.196/ I see:

"If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page."

In step 1 of Mark's instructions, I had been able to verify the CF Administrator was up and running, but now I cannot access it via : http://127.0.0.1:8300/CFIDE/Administrator/

I'm thinking this has to do with the connector and perhaps I didn't configure something correctly there. I'm pretty sure I compiled the Apache HTTPD/JRun4 Connector right, as I've followed the directions to the letter:


"Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request."

If I run a cat error_log from the shell, here is what the Apache error_log ("/private/var/log/httpd/error_log") states, line for line, when I make the request to http://localhost/cfide/administrator/ via the browser:

[Sun Feb 25 10:58:13 2007] [notice] jrApache[449:49825] could not initialize proxy for 127.0.0.1:51020
[Sun Feb 25 10:58:13 2007] [notice] jrApache[449:49825] could not open "/Applications/JRun4/lib /wsconfig/1/jrunserver.store": Permission denied
[Sun Feb 25 10:58:13 2007] [notice] jrApache[449:49825] initialized proxy for 127.0.0.1:51020
[Sun Feb 25 10:58:13 2007] [notice] jrApache[449:49825] Couldn't initialize from remote server, JRun server(s) probably down.
[Sun Feb 25 10:58:13 2007] [notice] jrApache[449:49825] could not initialize proxy for 127.0.0.1:51020
[Sun Feb 25 10:58:13 2007] [notice] jrApache[449:49825] could not open "/Applications/JRun4/lib
/wsconfig/1/jrunserver.store": Permission denied
[Sun Feb 25 10:58:13 2007] [notice] jrApache[449:49825] initialized proxy for 127.0.0.1:51020
[Sun Feb 25 10:58:13 2007] [notice] jrApache[449:49825] Couldn't initialize from remote server, JRun server(s) probably down.
[Sun Feb 25 10:58:13 2007] [notice] jrApache[449:49825] JRun will not accept request. Check JRun web server configuration and JRun mappings on JRun server.

That file, jrunserver.store, is one I had to create for connection purposes and has permissions of:
-rwxr-xr-x 1 holtonma holtonma 28B Feb 24 22:50 jrunserver.store

...what properties does this file need to have?? (does this file need to have user/group of "admin admin" instead of "holton holton"?)....

Greatly appreciate any words of wisdom anyone can provide.

8 comments:

trib said...

Mark, for me, this file (and wsconfig.properties) are:

gaiman:~ trib$ ls -l /Applications/JRun4/lib/wsconfig/1
total 16
-rw-r--r-- 1 root admin 29 Jan 30 15:17 jrunserver.store
-rw-r--r-- 1 root admin 56 Jan 30 15:17 wsconfig.properties
gaiman:~ trib$

Everything above them all the way to /Applications/JRun are chowned trib.admin, where trib is my username.

Hope this helps.

Mark Holton said...

Hey Trib,
Thanks for the info. ...so I have modified the permissions, and it doesn't seem to be a permissions issue (but it's good to eliminate possibilities). It seems like it's an error in how JRun has been configured as I'm getting the following now:

Here's what Apache says now when I get a request:
initialized proxy for 127.0.0.:51020

Couldn't initialize from remote server, JRun server(s) probably down.
initialized proxy for 127.0.0.1:51020
Couldn't initialize from remote server, JRun server(s) probably down.
JRun will not accept request. Check JRun web server configuration and JRun mappings on JRun server.


I have the defined "CFMX Service" running per Mark A's instructions in Lingon... hmm.... any clever ideas that pop into your head?

anyone out there have the silver bullet? Should I try to reinstall CFMX and JRun??

Anonymous said...

It looks like apache that's trying to access the file so you probably want to make sure apace can access it.

If it's just on your local machine and you're not that bothered then a dirty "chmod 777 filename" might help.

Anonymous said...

This has nothing to do with the file permissions. mod_jrun is unable to talk to jrun. make sure you have the ports correct, and the jrun proxy setup correctly.

Anonymous said...

I have the same problem, we're you able to figure out what is the solution for this?

Thanks,

einsty said...

I found this thread while going through similar issues and found that the Proxy Service simply was not running. I logged in to the JRun console and navigated to the services tab for the appropriate ColdFusion server and started the Proxy service.

SEO Services Consultants said...

Nice information, many thanks to the author. It is incomprehensible to me now, but in general, the usefulness and significance is overwhelming. Thanks again and good luck! Web Design Company

rocky case said...

Stephen Stapinski

Really your blog is very interesting.... it contains great and unique information. I enjoyed to visiting your blog. It's just amazing.... Thanks very much for the share.