PDA

View Full Version : Incomplete Resin 4.0.7 installation on Centos 5.5


Colojo
06-08-2010, 08:08 PM
After building a fresh Centos 5.5 server (running as a VM under Parallels 5 for Mac) I very carefully followed the Resin 4.0 installation instructions at http://caucho.com/resin-4.0/admin/starting-resin-install.xtp. Everything went exactly according to the instructions. However, when I tried to start resin, I noticed that the Conf directory had not been copied to /usr/local/resin, so Resin wouldn't start until I manually copied the directory over. Is this by design?

emil
06-08-2010, 11:06 PM
Hi,

Sounds like a bug. Can you post the output of running configure and make install?

Thanks,
Emil

Colojo
06-10-2010, 12:51 AM
OK, I figured it out... the configure command given in the instructions installs conf into /etc/resin. How does resin know to find it there? It doesn't. So I changed the configure command to load conf into /usr/local/resin/conf.

The next problem is that make install is unable to install /etc/init.d/resin. I'll split the results of make and make install into separate posts because they're too long for one post.

Here is my configuration:

Resin Configuration summary:

RESIN_HOME: /usr/local/resin
root: /var/www
conf: /usr/local/resin/conf
log : /var/log/resin
init: /etc/init.d/resin
JAVA_HOME: /usr/java/jdk1.6.0_20

+ 64-bit JNI in -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux
+ JNI CFLAGS: -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI
+ epoll() for keepalives
+ OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
OpenSSL include: /usr/include
OpenSSL lib: /usr/lib64
OpenSSL libraries: -lssl -lcrypto

Colojo
06-10-2010, 12:52 AM
Here is the output from the make command:

[root@localhost resin-pro-4.0.7]# make
Makefile:283: warning: overriding commands for target `modules/c/src/Makefile'
Makefile:273: warning: ignoring old commands for target `modules/c/src/Makefile'
(cd modules/c/src; make)
make[1]: Entering directory `/root/resin-pro-4.0.7/modules/c/src'
for dir in common resin_os resin resinssl; do (cd $dir; make); done
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/common'
gcc -c -I/usr/include -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI stream.c
stream.c: In function ??select_host??:
stream.c:1394: warning: cast from pointer to integer of different size
gcc -c -I/usr/include -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI config.c
gcc -c -I/usr/include -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI memory.c
/root/resin-pro-4.0.7/libtool --silent --mode=compile gcc -o stream.lo -c -I/usr/include -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI stream.c
stream.c: In function ??select_host??:
stream.c:1394: warning: cast from pointer to integer of different size
/root/resin-pro-4.0.7/libtool --silent --mode=compile gcc -o config.lo -c -I/usr/include -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI config.c
/root/resin-pro-4.0.7/libtool --silent --mode=compile gcc -o memory.lo -c -I/usr/include -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI memory.c
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/common'
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/resin_os'
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -m64 -fPIC -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -DCPU=\"x86_64\" -DOS= -c -o boot.o boot.c
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -m64 -fPIC -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -DCPU=\"x86_64\" -DOS= -c -o java.o java.c
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -m64 -fPIC -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -DCPU=\"x86_64\" -DOS= -c -o jni_os.o jni_os.c
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -m64 -fPIC -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -DCPU=\"x86_64\" -DOS= -c -o jni_jvmti.o jni_jvmti.c
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -m64 -fPIC -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -DCPU=\"x86_64\" -DOS= -c -o jni_socket.o jni_socket.c
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -m64 -fPIC -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -DCPU=\"x86_64\" -DOS= -c -o memory.o memory.c
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -m64 -fPIC -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -DCPU=\"x86_64\" -DOS= -c -o std.o std.c
gcc -shared -fPIC -L/usr/lib64 -o libresin_os.so boot.o java.o jni_os.o jni_jvmti.o jni_socket.o memory.o std.o -lpthread -lc
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/resin_os'
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/resin'
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -DCPU=\"x86_64\" -DOS= -m64 -fPIC -fpic -c -o jni_vfs.o jni_vfs.c
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -DCPU=\"x86_64\" -DOS= -m64 -fPIC -fpic -c -o profile.o profile.c
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -DCPU=\"x86_64\" -DOS= -m64 -fPIC -fpic -c -o heap.o heap.c
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -DCPU=\"x86_64\" -DOS= -m64 -fPIC -fpic -c -o lru.o lru.c
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -DCPU=\"x86_64\" -DOS= -m64 -fPIC -fpic -c -o symbol.o symbol.c
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -DCPU=\"x86_64\" -DOS= -m64 -fPIC -fpic -c -o crc64.o crc64.c
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -DCPU=\"x86_64\" -DOS= -m64 -fPIC -fpic -c -o stat.o stat.c
gcc -shared -fPIC -L/usr/lib64 -o libresin.so ../resin_os/std.o ../resin_os/memory.o ../resin_os/java.o jni_vfs.o profile.o heap.o lru.o symbol.o crc64.o stat.o -lpthread -lc
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/resin'
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/resinssl'
gcc -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -DRESIN_HOME=\"/usr/local/resin\" -I/usr/include -I/usr/java/jdk1.6.0_20/include -I/usr/java/jdk1.6.0_20/include/linux -I../common -I../resin -DCPU=\"x86_64\" -DOS= -m64 -fPIC -fpic -DSSL_ENGINE -c -o ssl.o ssl.c
gcc -shared -fPIC -L/usr/lib64 -o libresinssl.so ssl.o ../resin_os/memory.o ../resin_os/std.o ../resin_os/java.o -lpthread -lc -lssl -lcrypto
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/resinssl'
make[1]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src'
if test -r ./modules/c/src/Makefile; then \
cd ./modules/c/src; make; \
fi
make[1]: Entering directory `/root/resin-pro-4.0.7/modules/c/src'
for dir in common resin_os resin resinssl; do (cd $dir; make); done
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/common'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/common'
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/resin_os'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/resin_os'
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/resin'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/resin'
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/resinssl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/resinssl'
make[1]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src'

Colojo
06-10-2010, 12:53 AM
Here are the results of make install:

[root@localhost resin-pro-4.0.7]# sudo make install
Makefile:283: warning: overriding commands for target `modules/c/src/Makefile'
Makefile:273: warning: ignoring old commands for target `modules/c/src/Makefile'
make[1]: Entering directory `/root/resin-pro-4.0.7'
Makefile:283: warning: overriding commands for target `modules/c/src/Makefile'
Makefile:273: warning: ignoring old commands for target `modules/c/src/Makefile'
make[1]: Nothing to be done for `install-exec-am'.
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/root/resin-pro-4.0.7'
if test /usr/local/resin != `pwd`; then \
mkdir -p /usr/local/resin/bin; \
mkdir -p /usr/local/resin/keys; \
mkdir -p /usr/local/resin/licenses; \
mkdir -p /usr/local/resin/lib; \
mkdir -p /usr/local/resin/libexec64; \
cp lib/*.jar /usr/local/resin/lib; \
cp bin/* /usr/local/resin/bin; \
fi; \
if test /var/www != `pwd`; then \
mkdir -p /var/www/webapps; \
cp -r -u webapps/* /var/www/webapps; \
mkdir -p /var/www/doc; \
cp -r -u doc/* /var/www/doc; \
mkdir -p /var/log/resin; \
fi; \
if test /usr/local/resin/conf != `pwd`/conf; then \
mkdir -p /usr/local/resin/conf; \
cp -u conf/app-default.xml /usr/local/resin/conf/app-default.xml; \
cp -u conf/resin.xml /usr/local/resin/conf/resin.xml; \
fi; \
(cd modules/c/src; make install)
make[1]: Entering directory `/root/resin-pro-4.0.7/modules/c/src'
for dir in common resin_os resin resinssl; do (cd $dir; make install); done
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/common'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/common'
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/resin_os'
mkdir -p /usr/local/resin/libexec64
cp libresin_os.so /usr/local/resin/libexec64
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/resin_os'
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/resin'
mkdir -p /usr/local/resin/libexec64
cp libresin.so /usr/local/resin/libexec64
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/resin'
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/resinssl'
mkdir -p /usr/local/resin/libexec64
cp libresinssl.so /usr/local/resin/libexec64
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/resinssl'
make[1]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src'
if test -r ./modules/c/src/Makefile; then \
cd ./modules/c/src; make install; \
fi; \
if test -n "/etc/init.d/resin"; then \
if test -w "/etc/init.d/resin"; then \
cp -u init.d/resin /etc/init.d/resin; \
chmod +x /etc/init.d/resin; \
else \
echo ;\
echo ;\
echo "************************************************** **************"; \
echo "WARNING: Unable to install /etc/init.d/resin"; \
echo " Destination is not writable. Usually, only root has";\
echo " permissions to install this file.";\
echo;\
echo " This file is not required, but is used to start Resin"; \
echo " at boot time.";\
echo "************************************************** **************"; \
echo ;\
echo ;\
fi; \
fi;
make[1]: Entering directory `/root/resin-pro-4.0.7/modules/c/src'
for dir in common resin_os resin resinssl; do (cd $dir; make install); done
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/common'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/common'
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/resin_os'
mkdir -p /usr/local/resin/libexec64
cp libresin_os.so /usr/local/resin/libexec64
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/resin_os'
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/resin'
mkdir -p /usr/local/resin/libexec64
cp libresin.so /usr/local/resin/libexec64
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/resin'
make[2]: Entering directory `/root/resin-pro-4.0.7/modules/c/src/resinssl'
mkdir -p /usr/local/resin/libexec64
cp libresinssl.so /usr/local/resin/libexec64
make[2]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src/resinssl'
make[1]: Leaving directory `/root/resin-pro-4.0.7/modules/c/src'


************************************************** **************
WARNING: Unable to install /etc/init.d/resin
Destination is not writable. Usually, only root has
permissions to install this file.

This file is not required, but is used to start Resin
at boot time.
************************************************** **************

Colojo
06-10-2010, 01:00 AM
After installing Resin as root, I logged out as root and logged back in as a normal user. When trying to run Resin here's what happened:

[sc@localhost ~]$ /usr/local/resin/bin/./resin.sh console
com.caucho.config.ConfigRuntimeException: java.io.IOException: Cannot create directory: /usr/local/resin/resin-data/default
at com.caucho.config.ConfigException.create(ConfigExc eption.java:168)
at com.caucho.server.resin.Resin.preConfigureInit(Res in.java:472)
at com.caucho.server.resin.Resin.main(Resin.java:1867 )
Caused by: java.io.IOException: Cannot create directory: /usr/local/resin/resin-data/default
at com.caucho.vfs.FilePath.mkdirs(FilePath.java:486)
at com.caucho.network.server.NetworkServer.<init>(NetworkServer.java:97)
at com.caucho.server.resin.Resin.preConfigureInit(Res in.java:422)
... 1 more

So I logged back in as root and created the following directories with read/write access for everyone:

/usr/local/resin/resin-data
/usr/local/resin/resin-data/default

That solved this problem.

Colojo
06-10-2010, 01:21 AM
Your configure script puts the logs folder in /var/log/resin. Well, Resin doesn't recognize that either. Instead, it tries to create a log folder in /usr/local/resin/log and fails:

[10-06-09 19:06:18.259] {resin-39} Host[default] stopping
[2010-06-09 19:06:18] Can't open archive directory /usr/local/resin/log
java.io.IOException: Cannot create directory: /usr/local/resin/log
at com.caucho.vfs.FilePath.mkdirs(FilePath.java:486)
at com.caucho.log.AbstractRolloverLog.movePathToArchi ve(AbstractRolloverLog.java:594)
at com.caucho.log.AbstractRolloverLog.rolloverLogImpl (AbstractRolloverLog.java:500)
at com.caucho.log.AbstractRolloverLog$RolloverWorker. runTask(AbstractRolloverLog.java:900)
at com.caucho.util.TaskWorker.run(TaskWorker.java:112 )
at com.caucho.util.ThreadPool$PoolThread.runTasks(Thr eadPool.java:901)
at com.caucho.util.ThreadPool$PoolThread.run(ThreadPo ol.java:866)
[2010-06-09 19:07:18] Can't open archive directory /usr/local/resin/log
java.io.IOException: Cannot create directory: /usr/local/resin/log
at com.caucho.vfs.FilePath.mkdirs(FilePath.java:486)
at com.caucho.log.AbstractRolloverLog.movePathToArchi ve(AbstractRolloverLog.java:594)
at com.caucho.log.AbstractRolloverLog.rolloverLogImpl (AbstractRolloverLog.java:500)
at com.caucho.log.AbstractRolloverLog$RolloverWorker. runTask(AbstractRolloverLog.java:900)
at com.caucho.util.TaskWorker.run(TaskWorker.java:112 )
at com.caucho.util.ThreadPool$PoolThread.runTasks(Thr eadPool.java:901)
at com.caucho.util.ThreadPool$PoolThread.run(ThreadPo ol.java:866)

So I manually created this directory as root and made it read/write for everyone. Problem solved.

emil
06-11-2010, 05:34 PM
Hi,

Looks like a permissions problem. Here's the intended order of operations and which permissions are expected when:

[as non-root]
1. Unpack, configure, build resin
[as root]
2. Install resin (make install)
3. Start resin using /etc/init.d/resin (this contains the command line parameters that point Resin to /etc/resin/resin.xml, /var/log/resin, etc.)
4. The Resin watchdog starts as root to bind ports, then the child process drops root permissions.

To sum up, if you had installed with root and run Resin with /etc/init.d/resin, that would have picked up all the correct configuration, log, and data locations and dropped permissions when necessary.

I think we can safely say this is a documentation bug because it sounds like it wasn't that clear... :o

Thanks,
Emil

Colojo
06-11-2010, 08:54 PM
Emil,

The problem is that /etc/init.d/resin didn't get installed, even though I did make install as root:

echo "************************************************* ***************"; \
echo "WARNING: Unable to install /etc/init.d/resin"; \
echo " Destination is not writable. Usually, only root has";\
echo " permissions to install this file.";\
echo;\
echo " This file is not required, but is used to start Resin"; \
echo " at boot time.";\
echo "************************************************* ***************"; \

This BS happens in Linux sometimes and makes no sense to me. Here I am logged in as root and it tells me only root has permission to install the file. So then I tried the command with sudo (shouldn't make a difference) and that didn't work either. So if we can figure out why /etc/init.d/resin couldn't be created we'll be in business. Thanks.

emil
06-11-2010, 09:56 PM
Hi,

Ok, looks like you hit this bug as well then:

http://bugs.caucho.com/view.php?id=3963

We've put in a fix upstream that should be in the next version. For now, the workaround is to copy the resin startup script manually. Sorry for the inconvenience.

Best,
Emil

Colojo
06-11-2010, 11:03 PM
OK, I started over and the installation went well. Then I copied the startup script manually but when I run it I get the following error:

[sc@localhost ~]$ /etc/init.d/resin start
/etc/init.d/resin: line 57: type: log_daemon_msg: not found

Because of this, Resin doesn't start.

Not trying to be a pain; just trying to help you debug this process.

Thanks,

Joe

emil
06-11-2010, 11:53 PM
Hi Joe,

I definitely appreciate the feedback -- keep it coming! :D

We've actually fixed that as well. log_daemon_msg's a function that's available in Ubuntu, but not CentOS/RedHat/etc. I've attached the resin.in file from the upcoming release if you want to try it. Just unzip it and put it in the init.d directory of the Resin distribution, then rerun configure/make/make install.

Thanks again,
Emil

Colojo
06-12-2010, 04:54 PM
Emil,

The Zip file is damaged. Can you repost?

Thanks,

Joe

emil
06-14-2010, 05:24 PM
Hi Joe,

Let's try it as a text file... Just rename it to resin.in when you save it.

Emil

Colojo
06-15-2010, 12:30 AM
OK, I installed this file as instructed, then ran configure, make and make install. Logged off root and logged on as my usual Resin user. Tried to run the startup script and it got this far, but then it hangs my terminal session:

[sc@localhost ~]$ /etc/init.d/resin start
/etc/init.d/resin: line 86: log_daemon_msg: command not found

Opened up Firefox. Can't establish a connection to http://localhost:8080. The watchdog-manager.log file in /var/log/resin tells me nothing.

Colojo
06-15-2010, 09:38 PM
Emil,

Any response to my most recent post? The new resin.in file you sent didn't work either.

Thanks,

Joe

emil
06-15-2010, 11:47 PM
Hi Joe,

Sorry, attached the old version. This should be the new one.

Emil

Colojo
06-17-2010, 11:28 PM
Still no luck. Performed the same steps as before. When I run /etc/init.d/resin start, I get this:

[sc@localhost ~]$ /etc/init.d/resin start
/etc/init.d/resin: line 57: type: log_daemon_msg: not found
Starting resin:

And it just hangs there. Opening another terminal session to retrieve status yields the following:

[sc@localhost ~]$ /etc/init.d/resin status
/etc/init.d/resin: line 57: type: log_daemon_msg: not found
Resin/4.0.7 can't retrieve status of -server '' for watchdog at 127.0.0.1:6600.
com.caucho.bam.RemoteConnectionFailedException: Failed to connect to server at http://127.0.0.1:6600/hmtp

At wit's end here....

Thanks - Joe

emil
06-17-2010, 11:37 PM
Hi Joe,

I'll take a look at this tomorrow with a fresh CentOS install and get back to you with the results.

Thanks,
Emil

Colojo
07-16-2010, 05:25 PM
Emil,

Have you made any progress with Resin 4 and CentOS 5.5?

emil
07-28-2010, 05:25 PM
Hi Joe,

We've updated the init.d script so that it should be compatible with CentOS and Fedora (and chkconfig) now. 4.0.9 should be out this week, so if you could try that and let us know how it goes, that would be great.

Thanks for checking in,

Emil