Installing Flash Media Server 2 on Debian

There are a couple of gotchas with this setup. Eg. I wanted to install it on an Opteron and the installer reported that the platform is not supported.

To get over this, you've to start the installer with an option:
./installFMS -platformWarnOnly

The installer script was written for RedHat and thus it reports two errors:
  • first it is complaining about a missing /sbin/chkconfig binary
  • then it's complaining about some error in the server script that was installed into your /opt/macromedia/fms directory (or whatever you've set as install dir)
The first one would only set the /etc/init.d/fms script to start automatically during every reboot. In Debian you can do this after the FMS installer finished with this:
update-rc.d fms defaults

The second message is a problem with the /opt/macromedia/fms/server script. In line#14 it uses the output of the ulimit -u command in a conditional if expression and assumes that it contains a numeric value. For me ulimit -u returned the unlimited string, thus the script aborted. To fix this you've to add an extra check around that condition, like this:
if [ "$max_processes" != "unlimited" ]; then
  if [ $max_processes -lt 32768 ]; then
        ulimit -u 32768
  fi
fi

You're still not done yet, because the FMS components miss a couple of shared libraries. to be exact, the following:
  • libssl.so.4
  • libcrypto.so.4
  • libnspr4.so
First make sure that the libssl libraries are installed:
apt-get install libssl0.9.8

Now make two symlinks for them (since the FMS server tries to load earlier versions):
cd /usr/lib
ln -s libssl.so.0.9.8 libssl.so.4
ln -s libcrypto.so.0.9.8 libcrypto.so.4

The libnspr4.so can be installed with the libnspr4-dev package, thus issue this command: apt-get install libnspr4-dev

You're now done. FMS should run fine from here. You can start it with a /etc/init.d/fms start manually or reboot the server and FMS will be started automatically.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Impossible to connect to an application

Hello
I'm trying to install FMS2 2.0.3 on Debian Etch. My server is running, I can access the console, but impossible to connect to an application. "NetConnection.Connect.Failed" is what i get.
Any idea?
Thanks

firewall?

The FMS server listens on a couple of TCP ports for incoming connections. The default ports are: 1111 and 11110 ("fmsadmin" process), 1935 and 19350 ("fmsedge" process). The first two are needed for connecting to the server via the FMS admin console, the second two are needed for normal FMS applications (*.swf) to connect to the FMS server.

Most probably you have one of the following three options:
  1. firewall rules on the FMS server prohibit the connection to the fmsedge process
  2. firewall rules on the client (where you run the browser and the FMS app's client side) prohibit the connection to any server's 1935 and 19350 TCP ports
  3. some network appliance between the server and the client blocks the connection
Of course there could be a hundred other reasons, but I think one of the above will be yours.

use netstat

First of all you should check whether your FMS server is listening on the required TCP ports. You can do this with the following command:
netstat --listening -n -p | grep -i fms

It should produce something like this:
tcp        0      0 0.0.0.0:11110           0.0.0.0:*               LISTEN     4228/fmsadmin
tcp        0      0 0.0.0.0:1935            0.0.0.0:*               LISTEN     4081/fmsedge
tcp        0      0 0.0.0.0:19350           0.0.0.0:*               LISTEN     4081/fmsedge
tcp        0      0 0.0.0.0:1111            0.0.0.0:*               LISTEN     4228/fmsadmin

In my logs i have

In my logs i have this
2007-07-31 15:01:00 2832 (e)2581279 Assert failed in /server/edge/TCEdgeControlTransport.cpp line 180
2007-07-31 15:01:00 2832 (i)2581250 Edge disconnected from core (2900).

I saw in other forum that it is a kernel version issue if you have 2.4. But i have kernel 2.6.16

Re: In my logs ...

I have various 2007-07-31 17:46:09 4228 (e)2581279 Assert failed in /server/admin/FCSAdminServer.cpp line 361 errors in the admin.00.log, but the server and the apps are working.

This error is in edge0 log

This error is in edge0 log file

2.6.8?

You could try kernel v2.6.8 as described in this post (among the comments). Or contact the author of that comment ... maybe he can give you further advice. It might be that in Debian Etch some libraries are different from what FMS expects. Maybe FMS requires downgrade of some libraries?

ulucom:/home/FMS3# ldd

ulucom:/home/FMS3# ldd fmsadmin
linux-gate.so.1 => (0xffffe000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf7ef9000)
libasneu.so.1 => not found
librt.so.1 => /lib32/librt.so.1 (0xf7ef1000)
libdl.so.2 => /lib32/libdl.so.2 (0xf7eec000)
libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf7e09000)
libm.so.6 => /lib32/libm.so.6 (0xf7de5000)
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7dda000)
libc.so.6 => /lib32/libc.so.6 (0xf7caf000)
/lib/ld-linux.so.2 (0xf7f14000)
ulucom:/home/FMS3# ldd fmscore
linux-gate.so.1 => (0xffffe000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf7f9f000)
libnspr4.so => not found
libplc4.so => not found
libplds4.so => not found
libasneu.so.1 => not found
librt.so.1 => /lib32/librt.so.1 (0xf7f96000)
libdl.so.2 => /lib32/libdl.so.2 (0xf7f92000)
libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf7eaf000)
libm.so.6 => /lib32/libm.so.6 (0xf7e8a000)
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7e7f000)
libc.so.6 => /lib32/libc.so.6 (0xf7d54000)
/lib/ld-linux.so.2 (0xf7fba000)
ulucom:/home/FMS3# netstat --listening -n -p | grep -i fms
tcp 0 0 127.0.0.1:11110 0.0.0.0:* LISTEN 3727/fmsadmin
tcp 0 0 0.0.0.0:1111 0.0.0.0:* LISTEN 3727/fmsadmin
ulucom:/home/FMS3#
**********************************

But the Lib and the Symbolic Links are avalible. Whats the Problem ?