cancel
Showing results for 
Search instead for 
Did you mean: 

FTP problem

quale
Champ in-the-making
Champ in-the-making
I've installed alfresco (version 1.1.2 and 1.2.0RC2) and it works very fine.
But there is a problem using ftp connection.

When I connect using ftp, it is impossible to create a directory or uploading a file. I always get the same error: Invalid path

C:\>ftp localhost
Connesso a pgranato
220 FTP server ready
Utente (pgranatoSmiley Sadnone)): admin
331 User name okay, need password for admin
Password:
230 User logged in, proceed
ftp> dir
200 Port OK
150 File status okay, about to open data connection
226 Closing data connection
ftp> mkdir pippo
550 Invalid path pippo
ftp> put testo.txt
200 Port OK
500 Invalid path
ftp>

I'm using Windows XP and the original alfresco configuration.
I'm sure I'm making some error but I cannot find out where.
Can someone help me?

Pasquale
27 REPLIES 27

rdanner
Champ in-the-making
Champ in-the-making
Hello everybody,

I'm experiencing the same problem Pasquale described. Did you find the solution?

Cheers

I dont see an answer to you question here.  I did a install for a friend, and out of the box I am experiencing the same issue.  If I get to the bottom of it I'll let you know.  Its low priority for me.


This is all I get from the logs is the messagign saying the FTP server is starting.  I turned on many debug statemetns inside the logging configuration.  I can prove I am connecting to alfresco's FTP.  When I shut down alfresco, I can no longer connect.   Also If I put in bad credentials the log responds appropriately.

Once connected I am in a folder / but can do nothing.
I Expected to be able to generate some debug statements in order to get some leads.

heres what the FTP server is putting out:


Resolving X.com… 
Connect socket #5404 to X, port 21…
220 FTP server ready 
USER admin 
331 User name okay, need password for admin 
PASS ********** 
230 User logged in, proceed 
SYST 
215 UNIX Type: Java FTP Server 
Keep alive off…
PWD 
257 "/" 
PASV 
227 Entering Passive Mode (X,9,87) 
LIST 
Connect socket #5836 to X, port 2391…
150 File status okay, about to open data connection 
226 Closing data connection 
Transferred 0 bytes in 0.020 seconds 


When using the browser FTP (ftp://X.com/Alfresco/) I am prompted with basic authentication and then the browser hands (Beginning FTP transaction) in Firefox

In IE I get 550 Invalid path /Alfresco/


file server-xml looks like


<alfresco-config area="file-servers">

   <config evaluator="string-compare" condition="CIFS Server">
      <host name="${localname}_A"/>
      <comment>Alfresco CIFS Server</comment>

      <!– Set to the broadcast mask for the subnet –>
      <broadcast>255.255.255.255</broadcast>

      <!– Use Java socket based NetBIOS over TCP/IP and native SMB on linux –>

      <tcpipSMB platforms="linux,solaris,macosx"/>
      <netBIOSSMB platforms="linux,solaris,macosx"/>
      <hostAnnounce interval="5"/>

      <!– Use Win32 NetBIOS interface on Windows –>
      <Win32NetBIOS/>
      <Win32Announce interval="5"/>

<!–
      <WINS>
         <primary>1.2.3.4</primary>
         <secondary>5.6.7.8</secondary>
      </WINS>
–>
      <sessionDebug flags="Negotiate,Socket"/>

   </config>

   <config evaluator="string-compare" condition="FTP Server">

<config evaluator="string-compare" condition="FTP Server">
<rootDirectory>/Alfresco</rootDirectory>
</config>

<debug flags="File,Search,Error,Directory,Info,DataPort"/>
   </config>
  
   <config evaluator="string-compare" condition="Filesystems">
      <filesystem name="Alfresco">
         <store>workspace://SpacesStore</store>

         <rootPath>/app:company_home</rootPath>
        <urlFile>
            <filename>__AlfrescoClient.url</filename>
            <webpath>http://localhost:8080/alfresco/</webpath>
         </urlFile>
<!–
         <accessControl default="Write">
            <user name="admin" access="Write"/>
            <address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>
         </accessControl>
–>
      </filesystem>
   </config>

   <config evaluator="string-compare" condition="Filesystem Security">
      <authenticator type="alfresco">
      </authenticator>

<!–
      <globalAccessControl default="None">
         <user name="admin" access="Write"/>
         <address ip="90.1.0.90" access="Write"/>
      </globalAccessControl>

      <users>
         <localuser name="user">
            <password>user</password>
            <comment>Normal user account</comment>
         </localuser>
   
         <localuser name="administrator">
            <password>admin</password>
            <administrator/>
            <comment>Administrator account</comment>
         </localuser>
      </users>
–>
   </config>


</alfresco-config>

rdanner
Champ in-the-making
Champ in-the-making
I am on version 1.2 like everyone else and like most people I am getting a lot of backtalk from the FTP server.  From what I can tell its because the Server Configuration is returning an empty list of Shares.

Nothing in the cofig file associates the filesystem with the ftp server. is the  filesystem is available to all of the servers? 


   <config evaluator="string-compare" condition="FTP Server">
<!–      <debug flags="File,Search,Error,Directory,Info,DataPort"/> –>
   </config>

   <config evaluator="string-compare" condition="Filesystems">
      <filesystem name="Alfresco">
         <store>workspace://SpacesStore</store>
         <rootPath>/app:company_home</rootPath>
        <urlFile>
            <filename>__AlfrescoClient.url</filename>
            <webpath>http://localhost:8080/alfresco/</webpath>
         </urlFile>
<!–
         <accessControl default="Write">
            <user name="admin" access="Write"/>
            <address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>
         </accessControl>
–>
      </filesystem>
   </config>


When you connect you connect to "/" and you cant do anything.

ie:

CWD /Alfresco 
550 Invalid path /Alfresco

One thing I do not understand (because I havent looked to understand at all) is how alfresco configuration works.  I dont see a DTD/XSD at the top.  What reads the XML files, what gives the schema?

rdanner
Champ in-the-making
Champ in-the-making
I am on version 1.2 like everyone else and like most people I am getting a lot of backtalk from the FTP server.  From what I can tell its because the Server Configuration is returning an empty list of Shares.

Nothing in the cofig file associates the filesystem with the ftp server. is the  filesystem is available to all of the servers? 


   <config evaluator="string-compare" condition="FTP Server">
<!–      <debug flags="File,Search,Error,Directory,Info,DataPort"/> –>
   </config>

   <config evaluator="string-compare" condition="Filesystems">
      <filesystem name="Alfresco">
         <store>workspace://SpacesStore</store>
         <rootPath>/app:company_home</rootPath>
        <urlFile>
            <filename>__AlfrescoClient.url</filename>
            <webpath>http://localhost:8080/alfresco/</webpath>
         </urlFile>
<!–
         <accessControl default="Write">
            <user name="admin" access="Write"/>
            <address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>
         </accessControl>
–>
      </filesystem>
   </config>


When you connect you connect to "/" and you cant do anything.

ie:

CWD /Alfresco 
550 Invalid path /Alfresco

One thing I do not understand (because I havent looked to understand at all) is how alfresco configuration works.  I dont see a DTD/XSD at the top.  What reads the XML files, what gives the schema?

Hi guys am I so far off the path of reason here that no one has any thoughts?  To be honest I was hoping I could lean on the forum here for this one…  No ideas at all?  The question is basically Why is my shares list  (shares member of the FTP server) empty… that seems to be at least a symptom.

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

I'll take a look at this sometime today and see if I can repeat the problem here.

Cheers

Gary

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

I just tried to reproduce the problem here with and without the <rootDirectory> setting. It worked ok here with WS-FTP and FileZilla FTP clients, and also using an ftp:// URL in IE6. I logged on as the admin user.

Cheers

Gary

rdanner
Champ in-the-making
Champ in-the-making
Hi,

I just tried to reproduce the problem here with and without the <rootDirectory> setting. It worked ok here with WS-FTP and FileZilla FTP clients, and also using an ftp:// URL in IE6. I logged on as the admin user.

Cheers

Gary

Atleast I am not the only developer that uses the "It works on my computer" line.
Maybe you can try this for me,'


My configuration apparently has no root path.

can you put a break point in eclipse at FTPSrvSession.java:391 and tell me if shareList is null for you?

rdanner
Champ in-the-making
Champ in-the-making
Hi,

I just tried to reproduce the problem here with and without the <rootDirectory> setting. It worked ok here with WS-FTP and FileZilla FTP clients, and also using an ftp:// URL in IE6. I logged on as the admin user.

Cheers

Gary

Atleast I am not the only developer that uses the "It works on my computer" line.
Maybe you can try this for me,'


My configuration apparently has no root path.

can you put a break point in eclipse at FTPSrvSession.java:391 and tell me if shareList is null for you?

At FTPSrvSession.java:502

            // Find the associated shared device, if not already set

            if (ftpPath.hasSharedDevice() == false && ftpPath.setSharedDevice( shareList, this) == false)
                return null;


evaluates to true and null is returned

gary_spencer
Champ in-the-making
Champ in-the-making
Hi Russ,

Can you access the server using CIFS ?, the sharelist should not be null at that point, it sounds like the filesystem didn't initialize. Are there any errors logged in the alfresco.log ?.

Could you email me your file-servers.xml and alfresco.log files.

Cheers

Gary

rdanner
Champ in-the-making
Champ in-the-making
Hi Russ,

Can you access the server using CIFS ?, the sharelist should not be null at that point, it sounds like the filesystem didn't initialize. Are there any errors logged in the alfresco.log ?.

Could you email me your file-servers.xml and alfresco.log files.

Cheers

Gary
the sharelist should not be null… yes i expect no  Smiley Surprisedops:

I havent been trying to access the CIFS server or make any mods at all to its configuration…


<alfresco-config area="file-servers">

   <config evaluator="string-compare" condition="CIFS Server">
      <host name="${localname}_A"/>
      <comment>Alfresco CIFS Server</comment>

      <!– Set to the broadcast mask for the subnet –>
      <broadcast>255.255.255.255</broadcast>

      <!– Use Java socket based NetBIOS over TCP/IP and native SMB on linux –>
      <tcpipSMB platforms="linux,solaris,macosx"/>
      <netBIOSSMB platforms="linux,solaris,macosx"/>
      <hostAnnounce interval="5"/>

      <!– Use Win32 NetBIOS interface on Windows –>
      <Win32NetBIOS/>
      <Win32Announce interval="5"/>

<!–
      <WINS>
         <primary>1.2.3.4</primary>
         <secondary>5.6.7.8</secondary>
      </WINS>
–>
      <sessionDebug flags="Negotiate,Socket"/>
   </config>

   <config evaluator="string-compare" condition="FTP Server">
     <debug flags="File,Search,Error,Directory,Info,DataPort"/>
   </config>
  
   <config evaluator="string-compare" condition="Filesystems">
      <filesystem name="Alfresco">
         <store>workspace://SpacesStore</store>
         <rootPath>/app:company_home</rootPath>
        <urlFile>
            <filename>__AlfrescoClient.url</filename>
            <webpath>http://localhost:9080/alfresco/</webpath>
         </urlFile>
         <accessControl default="Write">
            <user name="admin" access="Write"/>
<!–
            <address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>
–>

         </accessControl>
      </filesystem>
   </config>

   <config evaluator="string-compare" condition="Filesystem Security">
      <authenticator type="alfresco">
      </authenticator>

<!–
      <globalAccessControl default="None">
         <user name="admin" access="Write"/>
         <address ip="90.1.0.90" access="Write"/>
      </globalAccessControl>

      <users>
         <localuser name="user">
            <password>user</password>
            <comment>Normal user account</comment>
         </localuser>
   
         <localuser name="administrator">
            <password>admin</password>
            <administrator/>
            <comment>Administrator account</comment>
         </localuser>
      </users>
–>
   </config>


</alfresco-config>


I am pretty sure this is right out of the box stuff…

my log is

11:50:08,772 INFO  [Server] Starting JBoss (MX MicroKernel)…
11:50:08,772 INFO  [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)
11:50:08,772 INFO  [Server] Home Dir: C:\servers\alfresco-jboss\jboss-4.0.2
11:50:08,772 INFO  [Server] Home URL: file:/C:/servers/alfresco-jboss/jboss-4.0.2/
11:50:08,772 INFO  [Server] Library URL: file:/C:/servers/alfresco-jboss/jboss-4.0.2/lib/
11:50:08,772 INFO  [Server] Patch URL: null
11:50:08,772 INFO  [Server] Server Name: default
11:50:08,772 INFO  [Server] Server Home Dir: C:\servers\alfresco-jboss\jboss-4.0.2\server\default
11:50:08,812 INFO  [Server] Server Home URL: file:/C:/servers/alfresco-jboss/jboss-4.0.2/server/default/
11:50:08,822 INFO  [Server] Server Data Dir: C:\servers\alfresco-jboss\jboss-4.0.2\server\default\data
11:50:08,822 INFO  [Server] Server Temp Dir: C:\servers\alfresco-jboss\jboss-4.0.2\server\default\tmp
11:50:08,822 INFO  [Server] Server Config URL: file:/C:/servers/alfresco-jboss/jboss-4.0.2/server/default/conf/
11:50:08,822 INFO  [Server] Server Library URL: file:/C:/servers/alfresco-jboss/jboss-4.0.2/server/default/lib/
11:50:08,822 INFO  [Server] Root Deployment Filename: jboss-service.xml
11:50:08,822 INFO  [Server] Starting General Purpose Architecture (GPA)…
11:50:09,473 INFO  [ServerInfo] Java version: 1.5.0_02,Sun Microsystems Inc.
11:50:09,473 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_02-b09,Sun Microsystems Inc.
11:50:09,473 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
11:50:16,684 INFO  [Server] Core system initialized
11:50:19,949 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
11:51:25,686 ERROR [AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to execute command: imconvert "C:\DOCUME~1\dannerr\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_source_3293.gif"  "C:\DOCUME~1\dannerr\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_target_3294.png"
11:51:35,260 ERROR [protocol] Error accessing Win32 NetBIOS, check DLL is on the path
11:52:21,488 INFO  [Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 2m:12s:666ms

Id turn on debugging but there is some bug with jboss and spring (at least there was and I havent bothered… maybe thats fixed)

unknown-user
Champ on-the-rise
Champ on-the-rise
Hello,

I have to report the same behaviour with my 1.2.1 alfresco linux install. I can access FTP… at least CONNECT to it with correct credentials.. but i cannot get even a root directory listing. "conexion closed" error like others reported on this thread.

Trying to immagine what could be the difference between ones who experience the problem and those who dont, i can report i changed the name of the root space. Could this harm? Could translated alfresco versions handle this differently?

I can access the files using the webclient and webdav (though not working everytime… i suspect windows is badly handling webdav drives, but the error message being "invalid folder", it could be linked with this FTP problem, isnt'it?)

EDIT : webdav issue solved… it was a windows xp bug. See solution over there : http://forums.alfresco.com/viewtopic.php?p=6610#6610