cancel
Showing results for 
Search instead for 
Did you mean: 

Linux Tomcat Alfresco.war email and CIFS issues

craig
Champ in-the-making
Champ in-the-making
Mostly working but it seems as though some problems that I can't resolve because user 'tomcat' simply doesn't have enough permissions.

*** Email ****
repository.properties is configured properly, I have to believe, and from the logs, that isn't my issue…when I try to send e-mail, catalina.out says…

11:44:51,787 ERROR [web.bean.TemplateMailHelperBean] Failed to send email to administrator@tobyhouse.com
org.springframework.mail.MailSendException; nested exceptions (0) are:
Caused by:
javax.mail.NoSuchProviderException: smtp
        at javax.mail.Session.getService(Session.java:764)
        at javax.mail.Session.getTransport(Session.java:689)
        at javax.mail.Session.getTransport(Session.java:632)
        at javax.mail.Session.getTransport(Session.java:612)
        at org.springframework.mail.javamail.JavaMailSenderImpl.getTransport(JavaMailSenderImpl.java:421)
        at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:381)

That's enough log, I'm sure that someone will get the idea.

**** CIFS ****
I can't seem to map iptables to adjust for the higher/untypical ports of SMB server configuration.

This is my SMB configuration from file-servers.xml (comments removed)

      <broadcast>192.168.3.255</broadcast>
      <bindto>192.168.3.8</bindto>
      <netBIOSSMB platforms="linux,solaris,macosx"/>
      <tcpipSMB platforms="linux,solaris,macosx"/>
      <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>
      <tcpipSMB port="1445" platforms="linux,solaris,macosx"/>

and this is where I'm at with iptables now…

#!/bin/sh
#
echo 1 > /proc/sys/net/ipv4/ip_forward
modprobe iptable_nat
iptables -F
iptables -t nat -F
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT

iptables -t nat -A PREROUTING -p tcp -d 192.168.3.8 –dport 445 \
-j REDIRECT –to-ports 1445
iptables -t nat -A PREROUTING -p tcp -d 192.168.3.8 –dport 139 \
-j REDIRECT –to-ports 1139
iptables -t nat -A PREROUTING -p udp -d 192.168.3.8 –dport 137 \
-j REDIRECT –to-ports 1137
iptables -t nat -A PREROUTING -p udp -d 192.168.3.8 –dport 138 \
-j REDIRECT –to-ports 1138

iptables -t nat -A OUTPUT -p tcp -d 192.168.3.8 –dport 445 \
-j REDIRECT –to-ports 1445
iptables -t nat -A OUTPUT -p tcp -d 192.168.3.8 –dport 139 \
-j REDIRECT –to-ports 1139
iptables -t nat -A OUTPUT -p udp -d 192.168.3.8 –dport 138 \
-j REDIRECT –to-ports 1138
iptables -t nat -A OUTPUT -p udp -d 192.168.3.8 –dport 137 -\
j REDIRECT –to-ports 1137

but the redirection doesn't help…

# smbclient -L 192.168.3.8
Error connecting to 192.168.3.8 (Connection refused)
Connection to 192.168.3.8 failed

# smbclient -L 192.168.3.8 -p 139
Error connecting to 192.168.3.8 (Connection refused)
Connection to 192.168.3.8 failed

# smbclient -L 192.168.3.8 -p 1445
session request to 192.168.3.8 failed (RAP code 32)
session request to 192 failed (RAP code 32)
session request to *SMBSERVER failed (RAP code 32)

# smbclient -L 192.168.3.8 -p 1139
Password:
Anonymous login successful
Domain=[TH] OS=[Java] Server=[Alfresco CIFS Server 3.5.1]

        Sharename       Type      Comment
        ———       —-      ——-
cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe \srvsvc failed with error NT_STATUS_BUFFER_TOO_SMALL
        Alfresco        Disk
        IPC$            IPC
Error connecting to 192.168.3.8 (Connection refused)
Connection to 192.168.3.8 failed
NetBIOS over TCP disabled – no workgroup available

How do I fix these issues?
4 REPLIES 4

craig
Champ in-the-making
Champ in-the-making
Fixed the mail issue by replacing 'mail.jar' from alfresco with the /usr/share/java/classpathx-mail-1.3.1-monolithic-1.1.1.jar mail.jar from the tomcat installation (CentOS)

Still the problem with CIFS server

peterowc
Champ in-the-making
Champ in-the-making
Hi

I had the same error on Alfresco Labs 3, Tomcat 5.5.23 on Centos 5 with Plesk 8.X (64 bit).
I also had to replace "mail.jar" provided by Alfresco with:

- mail-1.3.1-api-1.1.1.jar
- mail-1.3.1-providers-1.1.1.jar

that I had on /usr/share/java/classpathx-mail

I have also included all mail and smtp settings on custom-repository.properties file.

Regards.

nadaoneal
Champ in-the-making
Champ in-the-making
I'm getting RAP error code 32 as well, on Labs D - I swear I have an identical setup to my old labs C, and this just cropped up spontaneously, but truthfully I've been messing with iptables. I'm still puzzling this out, but I'll try to report back as soon as I can. In the mean time, this might be useful to someone… Some of the RAP error codes are documented in the samba source; the numbers that aren't documented, like "0" and "32", are apparently "DOS errors"? So I'm not sure where to go to translate this number into code or words. I'm going to try double-checking my iptables settings in the mean time.

doiheartwentyon
Champ in-the-making
Champ in-the-making
I'm also getting "RAP code 32" on 3.2 community:

 smbclient //qtvci/alfresco -I 172.16.1.20 -p 8445
session request to QTVCI failed (RAP code 32)
session request to *SMBSERVER failed (RAP code 32)

: dl@qtvukpc073 $ ~/Desktop
smbclient -L 172.16.1.20 -p 8445
session request to 172.16.1.20 failed (RAP code 32)
session request to 172 failed (RAP code 32)
session request to *SMBSERVER failed (RAP code 32)

: dl@qtvukpc073 $ ~/Desktop
smbclient -L 172.16.1.20 -p 8139
Enter dl's password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Java] Server=[Alfresco CIFS Server 5.0.0]

   Sharename       Type      Comment
   ———       —-      ——-
cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe \srvsvc failed with error NT_STATUS_BUFFER_TOO_SMALL
   Alfresco        Disk     
   IPC$            IPC      
   AVM             Disk     

I thought it would be an authentication issue but it seems to precede authentication.