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. 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.
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.
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 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!)
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:lackstone_finalcfusionwwwrootCFIDEadministratorApplication.cfm: line 80
-1 : Unable to display error's location in a CFML template.
...
Stack Trace
at cfApplication2ecfm105811000.runPage (C:lackstone_finalcfusionwwwrootCFIDEadministratorApplication.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 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...
[root@Leonid ~]# cd /media/cdrecorder/Fedora/RPMS/
Error Occurred While Processing Request
06/17 18:45:50 Information [main] - Starting client...
#1 by Seth on 6/20/05 - 11:25 AM
#2 by Steven Erat on 6/20/05 - 4:56 PM
#3 by Steven Erat on 6/20/05 - 5:10 PM
#4 by Pat on 7/11/05 - 10:33 PM
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
#5 by Steven Erat on 7/11/05 - 11:11 PM
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.
#6 by sarah Novotny on 9/2/05 - 3:18 PM
btw, thanks for all the great cf/linux info, your site gave me confidence to recommend 4.0 to a client.
Sarah
#7 by Steven Erat on 9/14/05 - 1:42 PM
http://www.talkingtree.com/blog/index.cfm?mode=ali...
Red Hat EL 4 is expected to be supported by ColdFusion with the release of CFMX 7.01.
#8 by dean on 10/7/05 - 4:13 PM
#9 by Steven Erat on 10/31/05 - 11:13 AM
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:
[a href="http://www.talkingtree.com/blog/index.cfm?mode=ent...ry&entry=28ED0616-50DA-0559-A0DD2E158FF884F3" target="_blank"]http://www.talkingtree.com/blog/index.cfm?mode=ent......[/a]
#10 by K.M. Ensign on 11/23/05 - 4:59 AM
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
#11 by Steven Erat on 11/23/05 - 10:47 AM
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...
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.
#12 by Steven Erat on 3/19/06 - 12:02 AM
Webserver connector hangs while trying to configure remote ColdFusion MX/JRun server
[a href="http://www.macromedia.com/go/8a0aaf29" target="_blank"]http://www.macromedia.com/go/8a0aaf29[/a]
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.
#13 by Gary Griffith on 10/3/06 - 5:26 PM
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
#14 by Mark Lynch on 5/1/08 - 2:15 AM
[a href="http://www.learnosity.com/techblog/index.cfm/2008/...5/1/CFMX-The-Graphing-service-is-not-available--solved" target="_blank">http://www.learnosity.com/techblog/index.cfm/2008/......" target="_blank"]http://www.learnosity.com/techblog/index.cfm/2008/......[/a]
Cheers,
Mark Lynch