cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED]Alfresco as ftp-Server

thomas91
Champ in-the-making
Champ in-the-making
Hello,

I want to configure Alfresco ftp server:

I have the following entries in /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/file-servers.xml:
    Are these entires correct?
    Do I also have to change the file file-servers.xml in the /opt/alfresco/tomcat/webapps/alfresco.war? 
    Is anything more to adapt?
<config evaluator="string-compare" condition="FTP Server">
          <serverEnable enabled="true"/>

          <!– Run on a non-privileged port –>

          <port>21</port>
        <rootDirectory>/Alfresco</rootDirectory>

      <!– FTP authentication –>
      <authenticator type="alfresco"/>

<!–      <debug flags="File,Search,Error,Directory,Info,DataPort"/> –>
   </config>
15 REPLIES 15

thomas91
Champ in-the-making
Champ in-the-making
Hello,

trying ftp:
smitty:/opt/alfresco # ftp localhost
Trying 127.0.0.1…
Connected to localhost.
500 OOPS: SSL: cannot load RSA certificate

Is there something wrong with the configuration?

thomas91
Champ in-the-making
Champ in-the-making
Hello,

"connected to localhost" sounds ok, but
500 OOPS: SSL: cannot load RSA certificate
does not.
And if I type in something I get:
ftp> put
Not connected.
ftp>

What logfile do you mean. the alfresco.log shows nothing about this as far as I can see:

15:27:57,092 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
15:28:06,152 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    convert /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_12154.gif  /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_12155.png
   succeeded:  false
   exit code:  1
   out:
   err:        Cannot run program "convert": java.io.IOException: error=2, No such file or directory
15:28:06,689 INFO  [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
15:28:07,316 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
15:28:09,409 ERROR [org.alfresco.repo.content.transform.swf.PDFToSWFContentTransformer] Failed to start SWF2PDF transformer:
Execution result:
   os:         Linux
   command:    pdf2swf -V
   succeeded:  false
   exit code:  1
   out:
   err:        Cannot run program "pdf2swf": java.io.IOException: error=2, No such file or directory
15:28:10,127 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.DerbyDialect.
15:28:10,139 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Alfresco is using the Apache Derby default database. Please only use this while evaluating Alfresco, it is NOT recommended for production or deployment!
15:28:11,913 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
15:28:13,604 ERROR [org.alfresco.util.exec.RuntimeExecBootstrapBean] Bootstrap command failed:
Execution result:
   os:         Linux
   command:    "soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file://oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore
   succeeded:  false
   exit code:  2
   out:
   err:        Cannot run program ""soffice"": java.io.IOException: error=2, No such file or directory
15:28:15,298 WARN  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
15:28:15,298 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
15:28:15,366 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
15:28:15,465 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
15:28:15,468 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
15:28:20,574 ERROR [org.alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
15:28:20,574 ERROR [org.alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
15:28:20,802 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
15:28:20,805 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_07-b06; maximum heap size 493.063MB
15:28:20,805 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493.063MB is less than recommended 512MB
15:28:20,806 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (a 1032) schema 128 - Installed version 3.0.0 (a 1032) schema 128

Thanks all for your help so far.

thomas91
Champ in-the-making
Champ in-the-making
Hello,
I didn't find a host name-tag or a broadcast-tag in the FTP server part of file-server.xml, only in the part concerning CIFS Server. so I added two new lines in the FTP server part, one for host name and one for broadcast: (192.168.78.249 is the IP of the server Alfresco is running on and 192.168.78.255 I got using ifconfig:  Bcast:192.168.78.255)

<config evaluator="string-compare" condition="FTP Server">
          <serverEnable enabled="true"/>
          <host name="192.168.78.249" domain="WORKGROUP"/>
          <!– Run on a non-privileged port –>

          <port>21</port>
       <broadcast>192.168.78.255</broadcast>
        <rootDirectory>/alfresco/DSS</rootDirectory>
        <bindto>192.168.78.249</bindto>

      <!– FTP authentication –>
      <authenticator type="alfresco"/>

<!–      <debug flags="File,Search,Error,Directory,Info,DataPort"/> –>
   </config>

In the log4j.properties I uncommented:
# FTP server debugging
log4j.logger.org.alfresco.ftp.protocol=error
log4j.logger.org.alfresco.ftp.server=debug

the alfresco.log after restarting alfresco looks as before:
15:08:39,144 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
15:08:48,243 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    convert /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_11260.gif  /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_11261.png
   succeeded:  false
   exit code:  1
   out:
   err:        Cannot run program "convert": java.io.IOException: error=2, No such file or directory
15:08:48,780 INFO  [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
15:08:49,468 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
15:08:50,004 DEBUG [org.alfresco.ftp.server] preRegister called. Server=com.sun.jmx.mbeanserver.JmxMBeanServer@1aa8b42, name=log4j:logger=org.alfresco.ftp.server
15:08:52,158 ERROR [org.alfresco.repo.content.transform.swf.PDFToSWFContentTransformer] Failed to start SWF2PDF transformer:
Execution result:
   os:         Linux
   command:    pdf2swf -V
   succeeded:  false
   exit code:  1
   out:
   err:        Cannot run program "pdf2swf": java.io.IOException: error=2, No such file or directory
15:08:52,864 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.DerbyDialect.
15:08:52,870 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Alfresco is using the Apache Derby default database. Please only use this while evaluating Alfresco, it is NOT recommended for production or deployment!
15:08:54,700 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
15:08:56,219 ERROR [org.alfresco.util.exec.RuntimeExecBootstrapBean] Bootstrap command failed:
Execution result:
   os:         Linux
   command:    "soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file://oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore
   succeeded:  false
   exit code:  2
   out:
   err:        Cannot run program ""soffice"": java.io.IOException: error=2, No such file or directory
15:08:57,913 WARN  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
15:08:57,913 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
15:08:57,986 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
15:08:58,092 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
15:08:58,095 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
15:09:03,197 ERROR [org.alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
15:09:03,197 ERROR [org.alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
15:09:03,273 INFO  [org.alfresco.ftp.server] Starting server FTP …
15:09:03,414 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
15:09:03,417 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_07-b06; maximum heap size 493,063MB
15:09:03,418 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493,063MB is less than recommended 512MB
15:09:03,418 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (a 1032) schema 128 - Installed version 3.0.0 (a 1032) schema 128

Trying ftp I got:
smitty-op:/opt/alfresco # ftp localhost
Trying 127.0.0.1…
Connected to localhost.
500 OOPS: SSL: cannot load RSA certificate
ftp> ls
Not connected.

thomas91
Champ in-the-making
Champ in-the-making
Hello,

The first error seems to solved, but if I try to connect to ftp from the server alfresco is running on I still got:
smitty-op:/opt/alfresco # ftp localhost
Trying 127.0.0.1…
Connected to localhost.
500 OOPS: SSL: cannot load RSA certificate
ftp> ls
Not connected.
ftp> user
Not connected.
ftp>
Perhaps I type in something wrong.
There is another ftp-server on the server: vsftpd, I tried to stop this program with:
smitty-op:/opt/alfresco # /sbin/service vsftpd stop
Shutting down vsftpd done

16:28:48,104 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
16:28:56,844 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    convert /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_45852.gif  /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_45853.png
   succeeded:  false
   exit code:  1
   out:
   err:        Cannot run program "convert": java.io.IOException: error=2, No such file or directory
16:28:57,388 INFO  [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
16:28:58,028 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
16:28:58,607 DEBUG [org.alfresco.ftp.server] preRegister called. Server=com.sun.jmx.mbeanserver.JmxMBeanServer@189e60f, name=log4j:logger=org.alfresco.ftp.server
16:29:00,241 ERROR [org.alfresco.repo.content.transform.swf.PDFToSWFContentTransformer] Failed to start SWF2PDF transformer:
Execution result:
   os:         Linux
   command:    pdf2swf -V
   succeeded:  false
   exit code:  1
   out:
   err:        Cannot run program "pdf2swf": java.io.IOException: error=2, No such file or directory
16:29:00,969 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.DerbyDialect.
16:29:00,974 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Alfresco is using the Apache Derby default database. Please only use this while evaluating Alfresco, it is NOT recommended for production or deployment!
16:29:02,859 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
16:29:04,255 ERROR [org.alfresco.util.exec.RuntimeExecBootstrapBean] Bootstrap command failed:
Execution result:
   os:         Linux
   command:    "soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file://oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore
   succeeded:  false
   exit code:  2
   out:
   err:        Cannot run program ""soffice"": java.io.IOException: error=2, No such file or directory
16:29:06,199 WARN  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
16:29:06,200 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
16:29:06,267 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
16:29:06,368 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
16:29:06,372 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
16:29:06,560 INFO  [org.alfresco.ftp.server] Starting server FTP …
16:29:06,703 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
16:29:06,707 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_07-b06; maximum heap size 493,063MB
16:29:06,707 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493,063MB is less than recommended 512MB
16:29:06,708 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (a 1032) schema 128 - Installed version 3.0.0 (a 1032) schema 128

thomas91
Champ in-the-making
Champ in-the-making
Hello,

$aptitude install swftools imagemagick openoffice.org
doesn't work on Opensuse. Do you know the correct command for Opensuse?  Sorry, I'm a quite beginner in linux.

Thomas

thomas91
Champ in-the-making
Champ in-the-making
Hello,

I googled and found that zypper in seeems to be analog to aptitude install but teh packages are nor found:
zypper in swftools imagemagick openoffice.org
Restoring system sources…
Do you want to trust key id A84EDAE89C800ACA SuSE Package Signing Key <build@suse.de> fingerprint:79C179B2E1C820C1890F9994A84EDAE89C800ACA ? [y/n]: y
Import key A84EDAE89C800ACA to trusted keyring?  [y/n]: y
Parsing metadata for SUSE Linux Enterprise Server 10 SP1…
Parsing RPM database…
package 'swftools' not found
package 'imagemagick' not found
package 'openoffice.org' not found
Summary:
Nothing to do.
Can I download this packages somewhere and where to put them?

thomas91
Champ in-the-making
Champ in-the-making
Hello,

yes; I tried: ftp://localhost/alfresco (instead of localhost I used the ip-address since I tried it from another server, I can start alfresco from this server)
but firefox was only browsing and nothing happened, also no error page) .

Thomas

thomas91
Champ in-the-making
Champ in-the-making
Hello,

doesn't work
Another question: I had to add some lines in the CIFS-Server part. Does this mean ii ftp-server is finally accessible that I can use CIFS? Most user will address alfresco from a windows PC, so it would be comfortable if the repository directories can be browsed like normal directories in windows explorer. Is there anything more to configure to do be able to do this?

smitty-op:/opt/alfresco/install_extension # ftp \\localhost\alfresco user admin admin
usage: ftp host-name [port]
ftp> ls
Not connected.

smitty-op:/opt/alfresco # ftp //localhost/alfresco user admin admin
usage: ftp host-name [port]
ftp> ls
Not connected.
ftp>
smitty-op:/opt/alfresco # ftp localhost 21
Trying 127.0.0.1…
Connected to localhost.
500 OOPS: SSL: cannot load RSA certificate
ftp> ls
Not connected.
ftp>

thomas91
Champ in-the-making
Champ in-the-making
Hello,
I'm afraid the vsftpd server was still running all the time I've tried it. Now I'm sure that vsftpd is deactivated. Trying ftp now results in the following:

smitty-op:/opt/alfresco # ftp localhost
Trying 127.0.0.1…
ftp: connect to address 127.0.0.1: Connection refused
Trying ::1…
ftp: socket: Address family not supported by protocol
ftp> ls
Not connected.
smitty-op:/opt/alfresco # ftp //localhost/alfresco user admin admin
usage: ftp host-name [port]
ftp>

The log file is unchanged and looks ok for teh file server as you have said.