As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
sudo ln -s /opt/alfresco/tomcat/work/Catalina/localhost/alfresco/ /opt/alfresco/tomcat/webapps/alfresco
sudo /etc/init.d/alfresco start
alex@gcrc-dev:~$ less /var/log/alfresco/alfresco.log <empy lines>Sun Feb 10 21:08:45 EST 2008 Starting Alfresco …/var/log/alfresco/alfresco.log (END)
alex@gcrc-dev:~$ less /var/log/alfresco/tomcat/logs/catalina.out Feb 10, 2008 9:08:46 PM org.apache.coyote.http11.Http11BaseProtocol initINFO: Initializing Coyote HTTP/1.1 on http-8080Feb 10, 2008 9:08:46 PM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 740 msFeb 10, 2008 9:08:46 PM org.apache.catalina.users.MemoryUserDatabase saveWARNING: User database is not persistable - no write permissions on directoryFeb 10, 2008 9:08:46 PM org.apache.catalina.core.StandardService startINFO: Starting service CatalinaFeb 10, 2008 9:08:46 PM org.apache.catalina.core.StandardEngine startINFO: Starting Servlet Engine: Apache Tomcat/5.5.23Feb 10, 2008 9:08:46 PM org.apache.catalina.core.StandardHost startINFO: XML validation disabledFeb 10, 2008 9:08:47 PM org.apache.catalina.startup.HostConfig deployWARINFO: Deploying web application archive alfresco.warFeb 10, 2008 9:08:48 PM org.apache.coyote.http11.Http11BaseProtocol startINFO: Starting Coyote HTTP/1.1 on http-8080Feb 10, 2008 9:08:48 PM org.apache.catalina.storeconfig.StoreLoader loadINFO: Find registry server-registry.xml at classpath resourceFeb 10, 2008 9:08:48 PM org.apache.catalina.startup.Catalina startINFO: Server startup in 2154 ms/var/log/alfresco/tomcat/logs/catalina.out (END)
org.apache.catalina.users.MemoryUserDatabase saveWARNING: User database is not persistable - no write permissions on directory
HTTP Status 404 - /alfresco/type Status reportmessage /alfresco/description The requested resource (/alfresco/) is not available.Apache Tomcat/5.5.23
I tried alfresco-community-tomcat-2.1.0.tar.gz after unsuccessful install of alfresco-community-war-2.1.0.tar.gz (see details in Alfresco war on ubuntu 7.10 topic. I followed Installing Alfresco on Ubuntu 7.10, with some changes reflected in the above wiki page. I also had to create a symbolic link alfresco to /opt/alfresco/tomcat/work/Catalina/localhost/alfresco/ in /opt/alfresco/tomcat/webapps : sudo ln -s /opt/alfresco/tomcat/work/Catalina/localhost/alfresco/ /opt/alfresco/tomcat/webapps/alfresco - otherwise alfresco couldn't find MANIFEST.**** and edit /opt/alfresco/tomcat/work/Catalina/localhost/alfresco/WEB-INF/classes/log4j.properties instead of /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties as per wiki page.Now when I start alfresco with sudo /etc/init.d/alfresco start tomcat starts (I can see default tomcat page at http://gcrc-gev.umdnj.edu:8080/; there are practically no errors in log files: alex@gcrc-dev:~$ less /var/log/alfresco/alfresco.log <empy lines>Sun Feb 10 21:08:45 EST 2008 Starting Alfresco …/var/log/alfresco/alfresco.log (END)alex@gcrc-dev:~$ less /var/log/alfresco/tomcat/logs/catalina.out Feb 10, 2008 9:08:46 PM org.apache.coyote.http11.Http11BaseProtocol initINFO: Initializing Coyote HTTP/1.1 on http-8080Feb 10, 2008 9:08:46 PM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 740 msFeb 10, 2008 9:08:46 PM org.apache.catalina.users.MemoryUserDatabase saveWARNING: User database is not persistable - no write permissions on directoryFeb 10, 2008 9:08:46 PM org.apache.catalina.core.StandardService startINFO: Starting service CatalinaFeb 10, 2008 9:08:46 PM org.apache.catalina.core.StandardEngine startINFO: Starting Servlet Engine: Apache Tomcat/5.5.23Feb 10, 2008 9:08:46 PM org.apache.catalina.core.StandardHost startINFO: XML validation disabledFeb 10, 2008 9:08:47 PM org.apache.catalina.startup.HostConfig deployWARINFO: Deploying web application archive alfresco.warFeb 10, 2008 9:08:48 PM org.apache.coyote.http11.Http11BaseProtocol startINFO: Starting Coyote HTTP/1.1 on http-8080Feb 10, 2008 9:08:48 PM org.apache.catalina.storeconfig.StoreLoader loadINFO: Find registry server-registry.xml at classpath resourceFeb 10, 2008 9:08:48 PM org.apache.catalina.startup.Catalina startINFO: Server startup in 2154 ms/var/log/alfresco/tomcat/logs/catalina.out (END)(The only error that I see org.apache.catalina.users.MemoryUserDatabase saveWARNING: User database is not persistable - no write permissions on directoryis a warning and should not prevent opening of http://gcrc-dev.umdnj.edu:8080/alfresco, right?Nevertheless, this is exactly what I get:HTTP Status 404 - /alfresco/type Status reportmessage /alfresco/description The requested resource (/alfresco/) is not available.Apache Tomcat/5.5.23Database connection (mySQL) seems to be working normally - I see 64 tables in alfresco database.Please help!!!
sudo chown -R alfresco:alfresco /opt/alfresco/tomcat/
10:52:17,839 ERROR [alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP 10:52:17,839 ERROR [alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting) [ … ] 10:52:17,936 ERROR [alfresco.ftp.protocol] FTP Socket error java.net.BindException: Permission denied at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.<init>(ServerSocket.java:185) at java.net.ServerSocket.<init>(ServerSocket.java:141) at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:407) at java.lang.Thread.run(Thread.java:619)
Alfresco includes an in-built FTP server that runs on port 21 (the standard default port used by FTP). If you are not running Alfresco as the root user then you either need to change the port number or use iptables to map the port numbers. See the references to iptables in http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_7.10 for details on how to do this on ubuntu. Note: If you want to use CIFS you will need to do some iptables config for this also.
# redirect FROM TO PROTOCOL # setup port redirect using iptables redirect() { echo "Redirecting port $1 to $2 ($3)" iptables -t nat -A OUTPUT -d localhost -p $3 –dport $1 -j REDIRECT –to -ports $2 iptables -t nat -A PREROUTING -d $HOSTNAME -p $3 –dport $1 -j REDIRECT –to-ports $2 iptables -t nat -A OUTPUT -d $HOSTNAME -p $3 –dport $1 -j REDIRECT –to -ports $2 } # # setup_iptables # setup iptables for redirection of CIFS and FTP setup_iptables () { echo "1" >/proc/sys/net/ipv4/ip_forward # Clear NATing tables iptables -t nat -F # FTP NATing redirect 21 2021 tcp # CIFS NATing redirect 445 1445 tcp redirect 139 1139 tcp redirect 137 1137 udp redirect 138 1138 udp }
ERROR [alfresco.ftp.protocol] FTP Socket error java.net.BindException: Permission denied