johnbrun / alfresco-cloud-store

Automatically exported from code.google.com/p/alfresco-cloud-store
0 stars 1 forks source link

Not able to set aws s3 as storage instead local filesystem in alfresco #5

Open melani016 opened 3 years ago

melani016 commented 3 years ago
  1. i have jdk 11.0.1 & apache maven 3.6.3 , i installed alfresco using alfresco-content-services-community-full-installer-6.0.2.1-ea-win-x64.exe in windows. and launched it
  2. i downloaded latest release from https://github.com/johnbrun/alfresco-cloud-store/releases/tag/0.02
  3. unzipped and modified build.xml as below
  4. added values directly in model-context.xml 5.generated amp file using the command - "ant clean & ant mkdirs & ant compile & ant package-amp"
  5. copied generated amp file from C:\alfresco-cloud-store-0.02\build\dist\alfresco-cloud-store.amp to C:\alfresco-content-services-community-full\amps\
  6. stop alfresco(tomcat & postgres) and install the amp file using mmt tool java -jar /c/alfresco-content-services-community-full/bin/alfresco-mmt.jar install /c/alfresco-content-services-community-full/amps/alfresco-cloud-store.amp C:/alfresco-content-services-community-full/tomcat/webapps/alfresco.war -verbose -force -nobackup
  7. using below command, checked if module installed successfully java -jar /c/alfresco-content-services-community-full/bin/alfresco-mmt.jar list C:/alfresco-content-services-community-full/tomcat/webapps/alfresco.war
    Module 'cloudstore' installed in 'C:/alfresco-content-services-community-full/tomcat/webapps/alfresco.war'
    • Title: Cloud Content Store
    • Version: 1.0
    • Install Date: Thu Feb 11 11:48:05 IST 2021
    • Description: Alfresco Cloud Content Store Note: No folder with name "cloudstore" getting created in C:\alfresco-content-services-community-full\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\
  8. started alfresco after amp installation. check log in alfrescotomcat-stdout.log
  9. go to aws s3 console, but nothing being uploaded to the bucket.

Install AMP using ant: After step5, tried to install amp using "ant deploy-war" --> but getting below error [copy] Copying 1 file to C:\alfresco-cloud-store-0.02\build\amp [java] C:\alfresco-cloud-store-0.02\build.xml:68: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk-11.0.1\bin\java.exe" (in directory "C:\alfresco-cloud-store-0.02"): CreateProcess error=206, The filename or extension is too long Using docker: copied amp file to amps/ folder and install using mmt tool but Not able to install. getting IO exception while installing

johnbrun commented 3 years ago

I exported this from code.google.com/p/alfresco-cloud-store because the website was threatening to disappear (it looks like it is still up almost four years later) and I wanted the repository saved somewhere.

I don't remember much but I remember that this repository uses an outdated jets3t library. Instead you need to utilize AWS's SDKs. You can get the Java SDK here: https://aws.amazon.com/sdk-for-java/

Unfortunately that's where my memory runs out. I don't work on that project anymore. I should have updated this project when I got it working, but I forgot I had saved this off.

melani016 commented 3 years ago

Thank you for the response. As im beginner, i could not debug more for this code(alfresco-cloud-store) i downloaded https://github.com/rmberg/alfresco-s3-adapter/tree/634b50288000aea73299d9e875c8ec66a5305ef7 and changed versions to latest in pom.xml then it worked.