Steven Erat's Blog
 
 
Viewing By Entry
 
 

TalkingTree  Running ColdFusion MX 7 on Fedora Core 4

 

FC4 Linux was just released this week, and while I was excited to see it ships with a whole Java Development suite, Eclipse 3.1M7, and Tomcat5, one of the first things I tested was running ColdFusion MX 7.

Starting the CFMX7 server configuration at the commandline appeared normal, but the first request to the CF Admin was greeted with the error:

The Graphing service is not available.

The FC4 installation was not an upgrade from FC3, although I did have FC3 on it before. Because FC3 was installed with seperate partitions for /home /opt and /usr/local, I was able to do a full install of FC4 while maintaining the data on those custom partitions. Doing it this way allows the Linux kernel and all the chosen packages to be installed under the / root partition which is reformated first, while allowing me to keep everything on my custom partitions without reformatting those. Since the /opt directory was actually a full partition, I was able to keep my CFMX 6/7 and JRun installations during the FC4 install.

I checked my CFMX 7 jvm.config and noticed that I already had the -Djava.awt.headless=true arg in the jvm.args list, but yet I was getting the "Graphing service is not available" error.

Recalling that someone once commented that the X-Development packages would need to be installed to overcome this, I put the FC4 DVD install disk back in the slot and explored the available RPMS still on that disk. I remember not wanting to fill up my harddisk with the X-devel packages during FC4 installation, so I knew it had to be this.

My goal was to install the xorg-x11-deprecated-libs package, but I found it had a series of dependencies that had to be installed first. Working out all the dependencies, I installed the following packages in this order:

[root@Leonid ~]# cd /media/cdrecorder/Fedora/RPMS/
[root@Leonid RPMS]# ls -l freetype-devel-2.1.9-2.i386.rpm fontconfig-devel-2.2.3-13.i386.rpm xorg-x11-devel-6.8.2-31.i386.rpm xorg-x11-deprecated-libs-*
-rw-r--r-- 13 root root 241204 May 20 13:37 fontconfig-devel-2.2.3-13.i386.rpm
-rw-r--r-- 13 root root 539500 May 20 13:18 freetype-devel-2.1.9-2.i386.rpm
-rw-r--r-- 19 root root 83231 May 20 15:05 xorg-x11-deprecated-libs-6.8.2-31.i386.rpm
-rw-r--r-- 10 root root 90885 May 20 15:05 xorg-x11-deprecated-libs-devel-6.8.2-31.i386.rpm
-rw-r--r-- 19 root root 5249583 May 20 15:05 xorg-x11-devel-6.8.2-31.i386.rpm

[root@Leonid RPMS]# rpm -Uvh freetype-devel-2.1.9-2.i386.rpm
warning: freetype-devel-2.1.9-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ############### [100%]
1:freetype-devel ###############[100%]
[root@Leonid RPMS]# rpm -Uvh fontconfig-devel-2.2.3-13.i386.rpm
warning: fontconfig-devel-2.2.3-13.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ###############[100%]
1:fontconfig-devel ###############[100%]
[root@Leonid RPMS]# rpm -Uvh xorg-x11-devel-6.8.2-31.i386.rpm
warning: xorg-x11-devel-6.8.2-31.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ###############[100%]
1:xorg-x11-devel ############### [100%]
[root@Leonid RPMS]# rpm -Uvh xorg-x11-deprecated-libs-6.8.2-31.i386.rpm
warning: xorg-x11-deprecated-libs-6.8.2-31.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ###############[100%]
1:xorg-x11-deprecated-lib############### [100%]
[root@Leonid RPMS]# rpm -Uvh xorg-x11-deprecated-libs-devel-6.8.2-31.i386.rpm
warning: xorg-x11-deprecated-libs-devel-6.8.2-31.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ############### [100%]
1:xorg-x11-deprecated-lib###############[100%]

Once installed, I started ColdFusion MX 7 server config and multiserver config on JRun and all server instances started just fine and now the CF Admin would run properly.

Most ColdFusion/Linux users know by now that Fedora Linux is not a supported distribution for ColdFusion MX at this time, and that other than this Graphing service problem the only other known issue is that you should run SELinux in permissive mode instead of enforcing mode in order for Apache to be able to load the ColdFusion connector module.

Just for completeness and Google-ability, here's the error as it occured in the CFAdmin and in then in the cfserver.log:
(note the C:\ path... weird!)

Error Occurred While Processing Request
The Graphing service is not available.

This exception is usually caused by service startup failure. Please check your server configuration.
The error occurred in C:\blackstone_final\cfusion\wwwroot\CFIDE\administrator\Application.cfm: line 80
-1 : Unable to display error's location in a CFML template.
...
Stack Trace
at cfApplication2ecfm105811000.runPage (C:\blackstone_final\cfusion\wwwroot\CFIDE\administrator\Application.cfm:80)
coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Graphing service is not available.
at coldfusion.server.ServiceFactory.getGraphingService(ServiceFactory.java:154)

06/17 18:45:50 Information [main] - Starting client...
06/17 18:45:50 Information [main] - Starting xmlrpc...
06/17 18:45:51 Information [main] - Starting graphing...
06/17 18:45:51 Error [main] - Unable to initialize Graphing service: java.lang.UnsatisfiedLinkError: /opt/coldfusionmx7/runtime/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
06/17 18:45:51 Information [main] - Starting verity...
06/17 18:45:51 Information [main] - Starting archive...
06/17 18:45:51 Information [main] - Starting document...

 


Comments

Check out this page, http://www.davidgillard.co.uk/cfmx7fc3.html, he explains how to get the graphing service working on Core 3. I did the same for Core 4 and everything seems to work fine.


The provided was working this morning, but I was just going to read it completely and now the URL throws an Apache 404 as though it got removed.


Ok, now that link is working again. I found the X packages needed for CF on FC4 are fewer than that which is listed on the davidgillard.co.uk entry, but I assume that if you were to install FC4 while choosing the whole X Devel package group that you won't have to worry about any of this from the very beginning.


Hi Steven

Ive got a multi server jrun set up on fedora 4, ive followed all the forums to get graphing service going etc. but i cant find anywhere an example of how to create a bootup script for jrun.

i know the startup command i use manaully is
cd /opt/jrun4/bin
./jrun start cffusion

and it tried copying this into a /etc/init.d/jrun
file, but it didnt work.

im using webmin and it created this script for me:

#!/bin/sh
# description: Jrun Cold Fusion Service
# chkconfig: 2345 99 00

case "$1" in
'start')
   cd /opt/jrun4/bin/
   ./jrun cffusion start
   touch /var/lock/subsys/jrun
   ;;
'stop')
   rm -f /var/lock/subsys/jrun
   ;;
*)
   echo "Usage: $0 { start | stop }"
   ;;
esac
exit 0

just wondering if you could point me to whats wrong with this script ?

cheers

Pat


Pat,

I've got a working version of a multiserver boot script in the office. I'll try to remember to review it one more time, and then I'll provide it tomorrow.


I just installed CFMX7 on RHEL ES4 and am looking for multiserver startup script... did you review, and can you post it?

btw, thanks for all the great cf/linux info, your site gave me confidence to recommend 4.0 to a client.

Sarah


Sarah, here is a link to my working version of multiserver start script for CFMX on Linux:

http://www.talkingtree.com/blog/index.cfm?mode=alias&alias=CFLinuxBootScripts

Red Hat EL 4 is expected to be supported by ColdFusion with the release of CFMX 7.01.


don't forget to disable SELinux.


UPDATE: I just wanted to comment on SELinux for this thread since when I first wrote it I made the recommedation to set it to Permissive mode instead of Enforcing mode, and someone also commented that SELinux should be disabled.

My comment is that there is no need to weaken the SELinux configuration if it is set to active and enforcing. I recently blogged how to configure the ColdFusion connector for SELinux so that Apache would be able to load it.

You can find this blog entry here:

http://www.talkingtree.com/blog/index.cfm?mode=ent...


Hi Steve. Thanks for the info. I have been glued to your site for days. I'm stuck on one problem though and I'm hoping you can help! I am trying to compile the connector with wsconfig.jar. I modified the apache_connector.sh file as you demonstrated in the breeze conference but I am still getting the "Could not connect to any JRun/ColdFusion servers on host localhost." I have been following the manual config directions, http://www.macromedia.com/cfusion/knowledgebase/in... but I'm hung on compiling the connector. I'm running RH FC 4 trying to set up 7.0.1 - professional. I was able to install the server just fine and I had the graphing issues, but I ran the rpms and setting SELinux to permissive fixed that. When I run netstat -an I see this:
tcp 0 0 :::51011 :::* LISTEN
tcp 0 0 :::2920 :::* LISTEN

I'm betting this is why the wsconfig is not working as the CFMX is not listening on the ports correctly. The sysadmin says these ports are open in iptables. I have even stopped and started CF with iptables stopped to no avail. Do you have any ideas? I have added localhost to security.properties. The external firewall isn't involved in this at all is this?

Thanks in advance,

Keith


Keith,

The wsconfig utility that installs the webserver connector tries to establish TCP connections to the JRun server on two ports for the installation process.

First it will scan the port range 2900 - 3000 to find out whats listening, then it will begin to connect to each active port discovered in that range starting at 2900. The target port is referred to as the JNDI port that the JRun server listens on. In your case, the JNDI port is 2920 and its actively listening according to your netstat.

Second, upon successful communication with the JRun server on the JNDI port, the JRun server will instruct wsconfig to complete the second half of the communication on the RMI port. By default, this is a high *random* port. So this is where most Linux folks running a firewall go wrong. They allow for the JNDI port but don't know about the high random port for RMI.

This two part process is described in more detail here:
http://www.talkingtree.com/blog/index.cfm/2005/2/9/WsconfigRandPort

I recently learned that this RMI port can be controlled and not left to default to a high random port. You can edit the file cf_root/runtime/lib/servers/coldfusion/SERVER-INF/jndi.properties to change the value jrun.naming.rmi.port=0 to jrun.naming.rmi.port=[YOUR_PORT_HERE] and then restart ColdFusion and open that port in the firewall.

Try that.


Technote:
Webserver connector hangs while trying to configure remote ColdFusion MX/JRun server
http://www.macromedia.com/go/8a0aaf29
This explains how to control the second (normally random) port used while configuring wsconfig. This will permit you to configure your firewall or tcp filtering rules to allow the exact two ports used when configuring the webserver.


Port problems, remind me of something......

I have FC4 with SELinux and CFMX7 working for the most part, but the problem I ran into was making the DBC to MySQL 5. I preferred the third-party JDBC driver, but it just wouldn't connect - and Yes, MySQL was alive and listening.

I found I had to disable IPv6. Apparently when Java 1.4 senses ipv6 is merely installed in the Linux kernel, it will try that first. Use "alias net-pf-10 off" in modprobe.conf on FedoraCore for example....

I am using MySQL ConnectorJ 3.1.13 BTW and the JRE that came with CFMX7 for Linux.

-Gary


I've just posted a solution for this problem for Ubuntu machines.
http://www.learnosity.com/techblog/index.cfm/2008/...

Cheers,
Mark Lynch


 

 

Calendar

 
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Search This Site

 
This is an exact search only

About This Site

 
I live west of Boston and used to work at Adobe with ColdFusion and Flex, specializing in Unix & Linux. I recently graduated from CDIA in Pro Digital Photography. Curious about my banner image?

More about me

Recent Entries

 
Christmas Eve Service makes F..
How To Filter by File Type in..
Perspective on ColdFusion's B..
Power Mac G5: The lights are ..
My Application to CDIABU in R..

Recent Comments

 
Posted By Yvonne:
Clear video taken! I was looking for such a video through Google & it led me to yours. Wanted to show to my students through a video clip, the whol ...

Posted By Andy Allan:
Fantastic work Steve.

Posted By charlie arehart:
Oh wow, awesome to hear that the relative quiet was an imposed one, and that the gag order has been lifted. Now I'm really excited to hear what may co ...

recently played

 
Snap Judgments
by WNYC, New York Public Radio
on On The Media
On The Media, WNYC, New York Public Radio

now playing, a plug-in for itunes

Categories

 
RSS Adobe (31)
RSS Bicycling (9)
RSS Blogging (37)
RSS Books (13)
RSS Breeze (12)
RSS CFMX Podcasts (10)
RSS ColdFusion (420)
RSS Computer Technology (50)
RSS Events (25)
RSS Flash (3)
RSS Flex (18)
RSS Gadgets (10)
RSS HiTech Industry (16)
RSS Java (25)
RSS Learning (57)
RSS Linux (70)
RSS Mac OS X (22)
RSS Macromedia (28)
RSS Meetup (34)
RSS New England (62)
RSS Odds & Ends (25)
RSS Outdoors (32)
RSS Personal (29)
RSS Photography (109)
RSS Photoshop (29)
RSS Podcasts (18)
RSS Rants (19)
RSS Restaurants (8)
RSS Science (34)
RSS Spain (16)
RSS Travel (42)
RSS Video (20)
RSS Webcam (3)
RSS Writing (10)

Blogs I Read

 
Scrum Sucks
Ben Forta
Ray Camden
Kinky Solutions
Gary Gilbert
Red Hat Blogs
O'Reilly Digital Media
O'Reilly Radar
John Nack
The Strobist
Scott Kelby
Matt Kloskowski
Joe McNally
Digital Photography School
Engadget
Science Blog

RSS

 


Add to Google
Add to My Yahoo!

Aggregated By

 


Consumed By Feed-Squirrel.com
Aggregated by ColdFusionBlogger.org

Credits and Stuff

 
BlogCFC - Free ColdFusion Powered Blog Software
CJM Group - ColdFusion Website Hosting


 
 
blog | photos | flickr | referers | webcam | stats | about | contact
 
Copyright © 2009 Steven Erat. All rights reserved.
This is a personal weblog. The opinions expressed here represent my own and not those of my employer