02-10-2008 06:30 PM
sudo ln -s /opt/alfresco/tomcat/work/Catalina/localhost/alfresco/ /opt/alfresco/tomcat/webapps/alfresco
- otherwise alfresco couldn't find MANIFEST.MF 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.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(The only error that I see
Feb 10, 2008 9:08:46 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 10, 2008 9:08:46 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 740 ms
Feb 10, 2008 9:08:46 PM org.apache.catalina.users.MemoryUserDatabase save
WARNING: User database is not persistable - no write permissions on directory
Feb 10, 2008 9:08:46 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 10, 2008 9:08:46 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
Feb 10, 2008 9:08:46 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 10, 2008 9:08:47 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
Feb 10, 2008 9:08:48 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 10, 2008 9:08:48 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Feb 10, 2008 9:08:48 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2154 ms
/var/log/alfresco/tomcat/logs/catalina.out (END)
org.apache.catalina.users.MemoryUserDatabase saveis a warning and should not prevent opening of http://gcrc-dev.umdnj.edu:8080/alfresco, right?
WARNING: User database is not persistable - no write permissions on directory
HTTP Status 404 - /alfresco/
type Status report
message /alfresco/
description The requested resource (/alfresco/) is not available.
Apache Tomcat/5.5.23
02-11-2008 08:17 AM
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 :ops: I should have realized that me having to create that symbolic link and this warning message are directory permission issues. Once I made /opt/alfresco/tomcat and below owned by alfresco:- otherwise alfresco couldn't find MANIFEST.MF 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.sudo ln -s /opt/alfresco/tomcat/work/Catalina/localhost/alfresco/ /opt/alfresco/tomcat/webapps/alfresco
Now when I start alfresco withtomcat starts (I can see default tomcat page at http://gcrc-gev.umdnj.edu:8080/; there are practically no errors in log files: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(The only error that I see
Feb 10, 2008 9:08:46 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 10, 2008 9:08:46 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 740 ms
Feb 10, 2008 9:08:46 PM org.apache.catalina.users.MemoryUserDatabase save
WARNING: User database is not persistable - no write permissions on directory
Feb 10, 2008 9:08:46 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 10, 2008 9:08:46 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
Feb 10, 2008 9:08:46 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 10, 2008 9:08:47 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
Feb 10, 2008 9:08:48 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 10, 2008 9:08:48 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Feb 10, 2008 9:08:48 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2154 ms
/var/log/alfresco/tomcat/logs/catalina.out (END)org.apache.catalina.users.MemoryUserDatabase saveis a warning and should not prevent opening of http://gcrc-dev.umdnj.edu:8080/alfresco, right?
WARNING: User database is not persistable - no write permissions on directory
Nevertheless, this is exactly what I get:HTTP Status 404 - /alfresco/
type Status report
message /alfresco/
description The requested resource (/alfresco/) is not available.
Apache Tomcat/5.5.23
Database connection (mySQL) seems to be working normally - I see 64 tables in alfresco database.
Please help!!!
sudo chown -R alfresco:alfresco /opt/alfresco/tomcat/
removed symbolic link, restarted alfresco, stopped it, modified log4j.properties (now in its proper place /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/) and started alfresco, I can see alfresco dashboard!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)
but these seem to be well-known issues and I hope to find solutions already posted.
02-12-2008 06:31 AM
02-15-2008 07:15 AM
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
}
And then during startup the script calls setup_iptables. So it would seem that port 21 should be mapped to port 2021? So why is there ERROR [alfresco.ftp.protocol] FTP Socket error java.net.BindException: Permission deniederror?
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.