cancel
Showing results for 
Search instead for 
Did you mean: 

ftp issue on Alfresco 3.0 stable, Ubuntu

kma
Champ in-the-making
Champ in-the-making
Hi,

I am running Alfresco 3.0 stable on Ubuntu 8.10.

I connect via ftp to Alfresco, login as admin/admin, on port 21 also tried port 1121.
Login is succesfully, I can see the 'Alfresco' root folder.

If I try to open the Alfresco folder, I can't see any folders or content.
Uploading a file or creating a folder in the Alfresco folder, result in a NPE:

java.lang.NullPointerException
        at org.alfresco.filesys.repo.ContentDiskDriver.getFileInformation(ContentDiskDriver.java:640)
        at org.alfresco.filesys.repo.ContentDiskDriver.fileExists(ContentDiskDriver.java:1154)
        at org.alfresco.jlan.ftp.FTPSrvSession.procStoreFile(FTPSrvSession.java:2014)
        at org.alfresco.jlan.ftp.FTPSrvSession.run(FTPSrvSession.java:3919)
        at java.lang.Thread.run(Thread.java:619)

Any  idea ?

Thanks,
Karsten
4 REPLIES 4

deepbluefish
Champ in-the-making
Champ in-the-making
Hi Karston

Just wondered if you got this solved ?  I have the exact same problem, but running on Centos 5.1.

java.lang.NullPointerException
        at org.alfresco.filesys.repo.ContentDiskDriver.getFileInformation(ContentDiskDriver.java:640)
        at org.alfresco.filesys.repo.ContentDiskDriver.fileExists(ContentDiskDriver.java:1154)
        at org.alfresco.jlan.ftp.FTPSrvSession.procStoreFile(FTPSrvSession.java:2014)
        at org.alfresco.jlan.ftp.FTPSrvSession.run(FTPSrvSession.java:3919)
        at java.lang.Thread.run(Thread.java:619)


Can login on port 1121 no problem, have AVM and Alfresco folders, but cant upload and cant see any other folders ?? 

thanks

D

kma
Champ in-the-making
Champ in-the-making
Hi D,

The issue I had was caused by a conflict with samba running on the Linux box,
try to stop samba:
/etc/init.d/samba stop

It should be possible to make both samba and ftp for Alfresco run on the same box, see this link:
http://wiki.alfresco.com/wiki/Changing_Bind_Addresses_and_Ports_for_Samba_and_FTP

Hope this helps.

Karsten

deepbluefish
Champ in-the-making
Champ in-the-making
Hi Karsten

Thanks for that, unfortunately i think it may be something else.  I have normal ftp on port 21, and so have reconfigured alfresco to use 1121, I can login and get the Alfresco and AVM folders, but keep getting a 426 Error during transmission error!  I have ensured samba is off, as Im running on a VPS so not much use having samba running. 

This is my config

   <config evaluator="string-compare" condition="FTP Server">
          <serverEnable enabled="true"/>
          <!– Run on a non-privileged port –>
          <port>1121</port>
      <!– FTP authentication –>
      <authenticator type="alfresco"/>
      <debug flags="File,Search,Error,Directory,Info,DataPort"/>
   </config>

Anyway thanks for your issue, its something else I could check !  thanks.

deepbluefish
Champ in-the-making
Champ in-the-making
Hi

Having problems with Alfresco 3.0c with ftp server.  Moved to open port, 2121, can ftp in using alfresco based user/password.  I can only see the Alfresco and AVM folders, and if I configure a rootDirectory it appears, but disappears?!  If I upload to either of these folders I get the following errors in the log files, one nullpointer exception for each file, no doubt a sympton of the incorrect directory tree.   I havent got samba installed, and can login to the port, seems like permissions or a bean needing something, any help very welcome.

03:45:48,845 User:admin DEBUG [ftp.protocol.auth] Authenticated user admin sts=true via MD4
java.lang.NullPointerException
        at org.alfresco.filesys.repo.ContentDiskDriver.getFileInformation(ContentDiskDriver.java:640)
        at org.alfresco.filesys.repo.ContentDiskDriver.fileExists(ContentDiskDriver.java:1154)
        at org.alfresco.jlan.ftp.FTPSrvSession.procStoreFile(FTPSrvSession.java:2014)
        at org.alfresco.jlan.ftp.FTPSrvSession.run(FTPSrvSession.java:3919)
        at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
        at org.alfresco.filesys.repo.ContentDiskDriver.getFileInformation(ContentDiskDriver.java:640)
        at org.alfresco.filesys.repo.ContentDiskDriver.fileExists(ContentDiskDriver.java:1154)
        at org.alfresco.jlan.ftp.FTPSrvSession.procStoreFile(FTPSrvSession.java:2014)
        at org.alfresco.jlan.ftp.FTPSrvSession.run(FTPSrvSession.java:3919)
        at java.lang.Thread.run(Thread.java:619)