Forums Alfresco

error installing on SME Server (SELinux)

Subscribe to error installing on SME Server (SELinux) 5 post(s), 3 voice(s)

 
Avatar cristihcd 3 post(s)

Hello,

I have installed the stack in windows as a test and it works great. Excellent work by you :)

Now, I have tried to install it on our production server: SME Server 7.3 (http://www.smeserver.org/) which is based on CentOS4.

1. downloaded the bin file to /root, chmod a+x bitnami….bin
2. execute ./bitnami….bin
3. Chose the port, etc, and the installation started
after reaching 100%, I get the following error:
---------------
Please wait while Setup installs BitNami Alfresco Stack on your computer.

Installing
0% ___ 50% ___ 100%
########################################
Error: There has been an error.
Error running /opt/alfresco/ctlscript.sh restart tomcat : /usr/sbin/setenforce:
SELinux is disabled
Mar 20, 2008 8:28:11 AM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:469) at java.net.Socket.<init>(Socket.java:366) at java.net.Socket.<init>(Socket.java:179) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav a
:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)
/usr/sbin/setenforce: SELinux is disabled
Press [Enter] to continue :
---------------------------------------------

SELinux is indeed disabled on the server, and I don’t want to enable it (to not break anything)

After starting the services again, I can reach the stack page (server:8080) but it is not customized (it shows Access @BITROCK_APPLICATION_TITLE@) etc. I can access server:8080/alfresco, login, etc, but would like to correct errors as I want to use it for production duty.

So it seems the installer did not finish the job. Do you have any advice?

 
Avatar beltran Administrator 389 post(s)

Hi,

It seems a SELinux error. We will try to reproduce the error and fix this issue if it is necessary. Have you tried to install as a non-root user?

 
Avatar antonio Administrator 508 post(s)

I’m not really sure it is a SELinux related issue. From the output of the script the error is given by Tomcat (connection refused). Do you have a firewall installed in the machine?

 
Avatar cristihcd 3 post(s)

Hello, thank you for your responses.

I have not tried to install as a non-root. However, I have succeeded in using the stack by doing the following:
- edit the welcome page and scripts to point to the correct location
- comment out the selinux part in the startup script

There is a firewall active. However, I think it would be best if the installed continued after the SELinux error.

 
Avatar cristihcd 3 post(s)

thanks :)

re version 2.1.0-5

Forums Alfresco