Giter VIP home page Giter VIP logo

Comments (7)

gavincornwell avatar gavincornwell commented on June 30, 2024 1

Hi @renatofritola and @BladeRikWr Thank you for reporting these issues. Unfortunately there does appear to be a problem with the GoogleDocs integration with the latest WIP version of Community, there is an issue on our internal backlog to address this.

You might have more luck if you go back to a previous version of community, however, if you do do this please bear in mind the comments I made here: #489 (comment)

from acs-deployment.

Naton-1 avatar Naton-1 commented on June 30, 2024

I'm having the same issue as well. This happens on a fresh Helm deployment, using the latest Chart version "5.0.0-M2", which deploys Alfresco Community version "7.0.0-A10".
I followed this repo's EKS deployment doc to the dot, exception being that I used an AWS database instead of the PostgreSQL database included in the chart.

After I ran the helm install acs alfresco/alfresco-content-services ... command stated in the EKS deploy docs (the doc in this repo), everything launched ok. But as soon as I make a new site and try to create a new Google Doc, it gives the error "Couldn't connect to Google Docs". The repository logs are similar to renatofritola's logs, in that they show a bunch of BeanCreationExceptions caused by the Google Doc beans.

So I thought, hm maybe it's because there is a version mismatch between the supported Google Doc subsystem and this Alfresco version. So I did a fresh deployment of Helm Chart version "5.0.0-M1" which deploys Alfresco Community version "6.2.1-A8". Again, I used an AWS database in place of the included one. Google Docs still doesn't work. Same errors show up in the logs. I'm almost at a loss for this.

from acs-deployment.

Naton-1 avatar Naton-1 commented on June 30, 2024

So in my Alfresco log [1], I noticed this:

Caused by: java.lang.NullPointerException
	at java.base/java.io.Reader.<init>(Reader.java:167)
	at java.base/java.io.InputStreamReader.<init>(InputStreamReader.java:72)
	at org.alfresco.integrations.google.docs.service.GoogleDocsServiceImpl.init(GoogleDocsServiceImpl.java:344)
        ...

That last line led me to the Alfresco Google Drive repo, specifically to the GoogleDocsServiceImpl.java file referenced in the error (Link to that). Here is the offending method and line:

public void init() throws IOException
    {
        httpTransport = new NetHttpTransport();
        jsonFactory = new JacksonFactory();

        if (isBlank(clientSecret))
        {
   Line 344 --> clientSecrets = GoogleClientSecrets.load(jsonFactory, new InputStreamReader(
                GoogleDocsServiceImpl.class.getResourceAsStream("client_secret.json")));
        }
        else
        {
            clientSecrets = GoogleClientSecrets.load(jsonFactory, new StringReader(clientSecret));
        }
    }

Do I have to provide my own client Google OAuth secret? If so, where?

[1] Alfresco.log

from acs-deployment.

Naton-1 avatar Naton-1 commented on June 30, 2024

Thanks for the update Gavin! I'll try to wrangle together an older Alfresco installation.

from acs-deployment.

Naton-1 avatar Naton-1 commented on June 30, 2024

Just an update for future readers. I deployed Alfresco 6.2.0-ga (both Repository and Share), and Google Docs works on this stable version.

You may be wondering, "but the main README says that the oldest Community version I can deploy is 6.2.1-A8!". Nonsense :)

Use the community_values file from tag 5.0.0-M1. For the alfresco/alfresco-content-repository-community image, change its tag to use 6.2.0-ga. For alfresco/alfresco-share image, change its tag to use 6.2.0.

Also, if you're a Helm newbie like me, don't forget to use the previous Helm chart version when you get to the installation step:

helm install acs alfresco/alfresco-content-services \
--version="5.0.0-M1" \
...

from acs-deployment.

gavincornwell avatar gavincornwell commented on June 30, 2024

This is being tracked internally via: https://alfresco.atlassian.net/browse/GOOGLEDOCS-501 and will be fixed in the forthcoming Community release.

NOTE: The repo fix is also in the current alpha build being used on master, the Share counterpart will follow shortly.

from acs-deployment.

gavincornwell avatar gavincornwell commented on June 30, 2024

This is now fixed with the latest Community docker compose file.

from acs-deployment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.