Lilac Installation failed on Ubuntu

Error message:

Ansible failed!

 
Decoded error:
== Unknown keys ======================
cache_updated: True                                                                            
cache_update_time: 1628825855                                                                      
== msg ===========================
'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"      install 'mysql-client=5.7.34-1ubuntu18.04'' failed: E: Version '5.7.34-1ubuntu18.04' for 'mysql-client' was not found

== stderr ===========================
E: Version '5.7.34-1ubuntu18.04' for 'mysql-client' was not found

== stdout ===========================
Reading package lists...
Building dependency tree...
Reading state information...

 

Installation failed!

If you need help, see https://open.edx.org/getting-help .
When asking for help, please provide as much information as you can.
These might be helpful:
    Your log file is at /home/yingcai/openedx/logs/install-20210813-033419.log
    Your environment:
        OPENEDX_RELEASE=open-release/lilac.1

I’m following step via: 3.2.2. Lilac Open edX Native Installation — Installing, Configuring, and Running the Open edX Platform documentation

OS: ubuntu-20.04.02-live-server-amd64 on VMware

Follow-up: I’ve changed to using open-release/lilac.2 to solve mysql problem.

But then encounted this:

TASK [mongo_4_0 : add source list to install libssl1.0.0] 
fatal: [localhost]: FAILED! => {"changed": false, "msg": ""}

PLAY RECAP 
localhost                  : ok=69   changed=11   unreachable=0    failed=1    skipped=219  rescued=0    ignored=0   

 

Ansible failed!

 
Decoded error:
 

Installation failed!

I googled this but cannot find any useful informations…

Hello @janus_choy and welcome to the community,

Open edX Lilac installation requires Ubuntu 20.04 version.

Please check your OS Version first regarding this issue.

Hi @jramnai, my VM version is Ubuntu 20.04.2 LTS.

Change my SQL client to 5.7.35 from 5.7.34

@Selli mysql-client problem solved but then get an error about mongo 4 …

Same thing change it to 4

There after it will not throw any error

no detail informations/messages here @Selli

Did you read this?

This already resolved by using lilac.2

Hey, I have the same error with u but i installed lilac.master. If u solve this issue, please help me.

Seems like permissino issues

update on 2021/8/16 16:46:19

cannot download nltk data

TASK [nltk : download nltk data] *****************************************************************************************************
failed: [localhost] (item={'path': 'taggers/maxent_treebank_pos_tagger', 'url': 'http://nltk.github.io/nltk_data/packages/taggers/maxent_treebank_pos_tagger.zip'}) => {"ansible_loop_var": "item", "changed": false, "dest": "/usr/local/share/nltk_data/maxent_treebank_pos_tagger.zip", "elapsed": 0, "gid": 0, "group": "root", "item": {"path": "taggers/maxent_treebank_pos_tagger", "url": "http://nltk.github.io/nltk_data/packages/taggers/maxent_treebank_pos_tagger.zip"}, "mode": "0755", "msg": "Request failed", "owner": "root", "response": "HTTP Error 502: Bad Gateway", "size": 10156853, "state": "file", "status_code": 502, "uid": 0, "url": "http://nltk.github.io/nltk_data/packages/taggers/maxent_treebank_pos_tagger.zip"}
failed: [localhost] (item={'path': 'corpora/stopwords', 'url': 'http://nltk.github.io/nltk_data/packages/corpora/stopwords.zip'}) => {"ansible_loop_var": "item", "changed": false, "dest": "/usr/local/share/nltk_data/stopwords.zip", "elapsed": 0, "gid": 0, "group": "root", "item": {"path": "corpora/stopwords", "url": "http://nltk.github.io/nltk_data/packages/corpora/stopwords.zip"}, "mode": "0755", "msg": "Request failed", "owner": "root", "response": "HTTP Error 502: Bad Gateway", "size": 23047, "state": "file", "status_code": 502, "uid": 0, "url": "http://nltk.github.io/nltk_data/packages/corpora/stopwords.zip"}
failed: [localhost] (item={'path': 'corpora/wordnet', 'url': 'http://nltk.github.io/nltk_data/packages/corpora/wordnet.zip'}) => {"ansible_loop_var": "item", "changed": false, "dest": "/usr/local/share/nltk_data/wordnet.zip", "elapsed": 0, "gid": 0, "group": "root", "item": {"path": "corpora/wordnet", "url": "http://nltk.github.io/nltk_data/packages/corpora/wordnet.zip"}, "mode": "0755", "msg": "Request failed", "owner": "root", "response": "HTTP Error 502: Bad Gateway", "size": 10775600, "state": "file", "status_code": 502, "uid": 0, "url": "http://nltk.github.io/nltk_data/packages/corpora/wordnet.zip"}

PLAY RECAP ***************************************************************************************************************************
localhost                  : ok=108  changed=20   unreachable=0    failed=1    skipped=277  rescued=0    ignored=0   

 
============================================================
Ansible failed!
------------------------------------------------------------
 
Decoded error:
== Unknown keys ======================
gid: 0                                                                               
ansible_loop_var: 'item'                                                                          
dest: '/usr/local/share/nltk_data/wordnet.zip'                                        
owner: 'root'                                                                          
group: 'root'                                                                          
status_code: 502                                                                             
state: 'file'                                                                          
url: 'http://nltk.github.io/nltk_data/packages/corpora/wordnet.zip'                  
size: 10775600                                                                        
elapsed: 0                                                                               
uid: 0                                                                               
mode: '0755'                                                                          
response: 'HTTP Error 502: Bad Gateway'                                                   
== msg ===========================
Request failed
 
============================================================
Installation failed!

I tried save these three files in /usr/local/share/nltk_data but didn’t help

/usr/local/share/nltk_data$ ll
total 20484
drwxr-xr-x 4 root root     4096 Aug 16 08:31 ./
drwxr-xr-x 7 root root     4096 Aug 13 06:39 ../
drwxr-xr-x 2 root root     4096 Aug 13 06:39 corpora/
-rwxr-xr-x 1 root root 10156853 Aug 16 08:31 maxent_treebank_pos_tagger.zip*
-rwxr-xr-x 1 root root    23047 Aug 16 08:31 stopwords.zip*
drwxr-xr-x 2 root root     4096 Aug 13 06:39 taggers/
-rwxr-xr-x 1 root root 10775600 Aug 16 08:13 wordnet.zip*

don’t know how to proceed again…

update on 2021/8/16 18:03:27

solved 502 bad gateway by vi /etc/resolv.conf and add nameserver 8.8.8.8

then again another error:

TASK [edxapp : install system packages on which LMS and CMS rely] ********************************************************************
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to 
supply multiple items and specifying `name: "{{ item }}"`, please use `name: "{{ query('flattened', ['{{ edxapp_debian_pkgs_default 
}}', '{{ edxapp_debian_pkgs_extra }}']) }}"` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings 
can be disabled by setting deprecation_warnings=False in ansible.cfg.
failed: [localhost] (item=['s3cmd', 'pkg-config', 'g++', 'apparmor-utils', 'curl', 'ntp', 'libfreetype6-dev', 'libffi-dev', 'python3-dev', 'libsqlite3-dev', 'ipython3']) => {"ansible_loop_var": "item", "changed": false, "item": ["s3cmd", "pkg-config", "g++", "apparmor-utils", "curl", "ntp", "libfreetype6-dev", "libffi-dev", "python3-dev", "libsqlite3-dev", "ipython3"], "msg": "Failed to update apt cache: "}

PLAY RECAP ***************************************************************************************************************************
localhost                  : ok=116  changed=28   unreachable=0    failed=1    skipped=295  rescued=0    ignored=0   

 
============================================================
Ansible failed!
------------------------------------------------------------
 
Decoded error:
== Unknown keys ======================
ansible_loop_var: 'item'                                                                          
== msg ===========================
Failed to update apt cache: 
 
============================================================
Installation failed!

almost want to give up on this…