cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot start CIFS on FC8

jsarg
Champ in-the-making
Champ in-the-making
Hello all,

I am currently trying to setup the CIFS on a FC8 linux box using Tomcat that already has a samba server running.  And just to be a pain i didn't use the 'simple' install as i already had MySQL up and running.
I have followed the steps as per http://wiki.alfresco.com/wiki/Changing_Bind_Addresses_and_Ports_for_Samba_and_FTP to use 2 ip addresses and it still wont work.

The log is indicating a java permission problem (java.net.BindException: Permission denied).
I can get rid of this error if  i turn the CIFS off in the file-servers.xml file, so i know this is the problem. But i am severely stuck!

Alfresco.log:

15:32:02,027 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
15:32:07,175 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
15:32:07,885 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
15:32:09,989 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /var/lib/alfresco/extension
15:32:10,035 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
15:32:10,616 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
15:32:10,806 ERROR [org.alfresco.smb.protocol] Server 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 org.alfresco.filesys.smb.server.SessionSocketHandler.initialize(SessionSocketHandler.java:255)
at org.alfresco.filesys.smb.server.TcpipSMBSessionSocketHandler.createSessionHandlers(TcpipSMBSessionSocketHandler.java:165)
at org.alfresco.filesys.smb.server.SMBServer.run(SMBServer.java:505)
at java.lang.Thread.run(Thread.java:619)
15:32:10,985 WARN  [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
15:32:10,991 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_06-b02; maximum heap size 494.938MB
15:32:10,991 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 494.938MB is less than recommended 512MB
15:32:10,992 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.9.0 (B 683) schema 116 - Installed version 2.9.0 (B 683) schema 116

Any help would be greatly appreciated!

Cheers

Jay
1 REPLY 1

jsarg
Champ in-the-making
Champ in-the-making
I have somewhat fixed the problem.

It turned out to be the issue with opening the Ports less than 1024 on linux which are restricted to root access only. I 'believed' i was running it as root, but it appears that it was running that part of the code as another user.  Therefore i used the port remap that is in the file-servers.xml which remaps the ports up by 1000 and CIFS appears to start correctly (ie no errors in the alfresco.log)

However this is not the end of my woes. Given that the i am using 2 ip addresses (as i already am running a samba server) i had to remap those ports specifically for the required IP which i did as follows


iptables -t nat -A PREROUTING -i eth0 -s 192.168.10.129 -p udp –dport 138 -j REDIRECT –to-ports 1138
iptables -t nat -A PREROUTING -i eth0 -s 192.168.10.129 -p udp –dport 137 -j REDIRECT –to-ports 1137
iptables -t nat -A PREROUTING -i eth0 -s 192.168.10.129 -p tcp –dport 445 -j REDIRECT –to-ports 1445
iptables -t nat -A PREROUTING -i eth0 -s 192.168.10.129 -p tcp –dport 139 -j REDIRECT –to-ports 1139
where:
    # ifconfig eth0:0
    eth0:0    Link encap:Ethernet  HWaddr 00:12:3F:65:F3:3D
              inet addr:192.168.10.129  Bcast:192.168.10.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
This part 'appears' to work nicely.

However….i still cannot connect to the thing!  Smiley Sad 
Even with all other firewall rules turned off i still cannot connect.

I can ping the ip from remote pcs, but anything like "net view 192.168.10.129" from an XP machine returns a "System Error 53" (Ie it hasnt found it)

Does anyone have an idea?

Cheers,

Jay