cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco ansible setup issues !!

Ghanshyam_R
Confirmed Champ
Confirmed Champ

Team,

I am following hyland link : Ansible Deployment  for ansible deployment, I performed below steps on my brand new virtualbox ubuntu 22.04.

Steps I followed as :

Step 1:  setting up ansible

 

$ sudo apt update

$ sudo apt install software-properties-common

$ sudo add-apt-repository --yes --update ppa:ansible/ansible

$ sudo apt install ansible

 

 

Step 2: setting up locale in ubuntu

 

sudo apt update && sudo apt install -y locales && sudo locale-gen en_US.UTF-8 && sudo update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8

 

 

Step 3: Setting up python libraries

 

Big problem is here, hyland document suggest 3.12,  inside command they using 3.11  and by default ubuntu contains 3.10 which is not supported here.

 

https://alfresco.github.io/alfresco-ansible-deployment/deployment-guide.html#additional-requirements...

command 1 :

sudo apt-get install pipenv

 

command 2:

sudo apt-get install python3.11 python3-pip

 

python3.12 -m venv venv   [not working, as per installation documentation it is 3.11, tried with 3.11 is also not working]

 

commnd 3:

source venv/bin/activate  [ command not working ]

 

command 4:

pip3 install pipenv

 

 

 

step 4: Install ansible dependencies via pipenv

 

pipenv install --deploy

 

while running above command itself we are having issues:

ERROR :

 

ubox01@ubox01:~/alfresco-ansible-deployment$ pipenv install --deploy

Traceback (most recent call last):

  File "/usr/bin/pipenv", line 33, in <module>

    sys.exit(load_entry_point('pipenv==11.9.0', 'console_scripts', 'pipenv')())

  File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 722, in __call__

    return self.main(*args, **kwargs)

  File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 696, in main

    with self.make_context(prog_name, args, **extra) as ctx:

  File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 621, in make_context

    self.parse_args(ctx, args)

  File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 1018, in parse_args

    rest = Command.parse_args(self, ctx, args)

  File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 875, in parse_args

    parser = self.make_parser(ctx)

  File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 821, in make_parser

    for param in self.get_params(ctx):

  File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 774, in get_params

    help_option = self.get_help_option(ctx)

  File "/usr/lib/python3/dist-packages/pipenv/cli.py", line 26, in get_help_option

    from .import core

  File "/usr/lib/python3/dist-packages/pipenv/core.py", line 21, in <module>

    import requests

  File "/usr/lib/python3/dist-packages/pipenv/vendor/requests/__init__.py", line 65, in <module>

    from . import utils

  File "/usr/lib/python3/dist-packages/pipenv/vendor/requests/utils.py", line 27, in <module>

    from .cookies import RequestsCookieJar, cookiejar_from_dict

  File "/usr/lib/python3/dist-packages/pipenv/vendor/requests/cookies.py", line 172, in <module>

    class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):

AttributeError: module 'collections' has no attribute 'MutableMapping'

 

 

 

 

 

================================  

 

I request Hyland to revise their document and provide proper step by step to execute, most of users facing issues setting up environment itself even before alfresco.

 

Please test it properly , since I use fresh instance and shown each command I have used, and followed document and it is failing.

1 REPLY 1

Ghanshyam_R
Confirmed Champ
Confirmed Champ

Any expert help?  documentation is not clear