LMiaoH opened a new issue, #5521:
URL: https://github.com/apache/openwhisk/issues/5521

   <!--
   We use the issue tracker for bugs and feature requests. For general 
questions and discussion please use https://openwhisk.apache.org/slack.html or 
https://openwhisk.apache.org/community.html instead.
   
   Do NOT share passwords, credentials or other confidential information.
   
   Before creating a new issue, please check if there is one already open that
   fits the defect you are reporting.
   If you open an issue and realize later it is a duplicate of a pre-existing
   open issue, please close yours and add a comment to the other.
   
   Issues can be created for either defects or enhancement requests. If you are 
a committer than please add the labels "bug" or "feature". If you are not a 
committer please make clear in the comments which one it is, so that committers 
can add these labels later.
   
   If you are reporting a defect, please edit the issue description to include 
the
   information shown below.
   
   If you are reporting an enhancement request, please include information on 
what you are trying to achieve and why that enhancement would help you.
   
   For more information about reporting issues, see
   
https://github.com/apache/openwhisk/blob/master/CONTRIBUTING.md#raising-issues
   
   Use the commands below to provide key information from your environment:
   You do not have to include this information if this is a feature request.
   -->
   I got error when I tried to build openwhisk on both my server,Can someone 
help me? Thank you very much.
   ## Environment details:
   ```shell
   miao@miao-virtual-machine:~/openwhisk/ansible$ uname -a
   Linux miao-virtual-machine 5.15.0-122-generic #132~20.04.1-Ubuntu SMP Fri 
Aug 30 15:50:07 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
   miao@miao-virtual-machine:~/openwhisk/ansible$ docker --version
   Docker version 27.4.0, build bde2b89
   
   ```
   Linux virtual-machine 5.15.0-122-generic #132~20.04.1-Ubuntu SMP Fri Aug 30 
15:50:07 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
   
   
   ## Steps to reproduce the issue:
   
   ansible-playbook -i environments/localcouchdb.ym
   
   
   ## Provide the actual results and outputs:
   ```
   miao@miao-virtual-machine:~/openwhisk/ansible$ ansible-playbook -i 
environments/$ENVIRONMENT couchdb.yml
   [WARNING]: Unable to parse 
/home/miao/openwhisk/ansible/environments/docker-machine as an inventory source
   [WARNING]: Unable to parse /home/miao/openwhisk/ansible/environments/jenkins 
as an inventory source
   [WARNING]: Skipping plugin 
(/home/miao/owvenv/lib/python3.8/site-packages/ansible/plugins/connection/httpapi.py)
 as it seems to be invalid: partially initialized module 'charset_normalizer' 
has no
   attribute 'md__mypyc' (most likely due to a circular import)
   [WARNING]: Skipping plugin 
(/home/miao/owvenv/lib/python3.8/site-packages/ansible/plugins/connection/vmware_tools.py)
 as it seems to be invalid: partially initialized module 'charset_normalizer' 
has no
   attribute 'md__mypyc' (most likely due to a circular import)
   [WARNING]: Skipping plugin 
(/home/miao/owvenv/lib/python3.8/site-packages/ansible/plugins/callback/foreman.py)
 as it seems to be invalid: partially initialized module 'charset_normalizer' 
has no
   attribute 'md__mypyc' (most likely due to a circular import)
   [WARNING]: Skipping plugin 
(/home/miao/owvenv/lib/python3.8/site-packages/ansible/plugins/callback/grafana_annotations.py)
 as it seems to be invalid: partially initialized module 'charset_normalizer'
   has no attribute 'md__mypyc' (most likely due to a circular import)
   [WARNING]: Skipping plugin 
(/home/miao/owvenv/lib/python3.8/site-packages/ansible/plugins/callback/hipchat.py)
 as it seems to be invalid: partially initialized module 'charset_normalizer' 
has no
   attribute 'md__mypyc' (most likely due to a circular import)
   [WARNING]: Skipping plugin 
(/home/miao/owvenv/lib/python3.8/site-packages/ansible/plugins/callback/nrdp.py)
 as it seems to be invalid: partially initialized module 'charset_normalizer' 
has no attribute
   'md__mypyc' (most likely due to a circular import)
   [WARNING]: Skipping plugin 
(/home/miao/owvenv/lib/python3.8/site-packages/ansible/plugins/callback/slack.py)
 as it seems to be invalid: partially initialized module 'charset_normalizer' 
has no attribute
   'md__mypyc' (most likely due to a circular import)
   [WARNING]: Skipping plugin 
(/home/miao/owvenv/lib/python3.8/site-packages/ansible/plugins/callback/splunk.py)
 as it seems to be invalid: partially initialized module 'charset_normalizer' 
has no
   attribute 'md__mypyc' (most likely due to a circular import)
   [WARNING]: Skipping plugin 
(/home/miao/owvenv/lib/python3.8/site-packages/ansible/plugins/callback/sumologic.py)
 as it seems to be invalid: partially initialized module 'charset_normalizer' 
has no
   attribute 'md__mypyc' (most likely due to a circular import)
   
   PLAY [db] 
*************************************************************************************************************************************************************************************************
   [WARNING]: While constructing a mapping from 
/home/miao/openwhisk/ansible/group_vars/all, line 506, column 3, found a 
duplicate dict key (dataManagementService). Using last defined value only.
   
   TASK [Gathering Facts] 
************************************************************************************************************************************************************************************
   Wednesday 11 December 2024  23:11:08 +0800 (0:00:00.044)       0:00:00.044 
**** 
   [DEPRECATION WARNING]: Distribution Ubuntu 20.04 on host 172.17.0.1 should 
use /usr/bin/python3, but is using /usr/bin/python for backward compatibility 
with prior Ansible releases. A future Ansible 
   release will default to using the discovered platform python for this host. 
See 
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html
 for more information. This feature 
   will be removed in version 2.12. Deprecation warnings can be disabled by 
setting deprecation_warnings=False in ansible.cfg.
   ok: [172.17.0.1]
   
   TASK [couchdb : set the coordinator to the first node] 
****************************************************************************************************************************************************
   Wednesday 11 December 2024  23:11:08 +0800 (0:00:00.752)       0:00:00.796 
**** 
   [WARNING]: Skipping plugin 
(/home/miao/owvenv/lib/python3.8/site-packages/ansible/plugins/filter/gcp_kms_filters.py)
 as it seems to be invalid: partially initialized module 'charset_normalizer' 
has no
   attribute 'md__mypyc' (most likely due to a circular import)
   ok: [172.17.0.1]
   
   TASK [couchdb : Set the volumes] 
**************************************************************************************************************************************************************************
   Wednesday 11 December 2024  23:11:08 +0800 (0:00:00.034)       0:00:00.830 
**** 
   [WARNING]: Skipping plugin 
(/home/miao/owvenv/lib/python3.8/site-packages/ansible/plugins/filter/gcp_kms_filters.py)
 as it seems to be invalid: partially initialized module 'charset_normalizer' 
has no
   attribute 'md__mypyc' (most likely due to a circular import)
   ok: [172.17.0.1]
   
   TASK [couchdb : Set the nodes] 
****************************************************************************************************************************************************************************
   Wednesday 11 December 2024  23:11:09 +0800 (0:00:00.042)       0:00:00.873 
**** 
   [WARNING]: Skipping plugin 
(/home/miao/owvenv/lib/python3.8/site-packages/ansible/plugins/filter/gcp_kms_filters.py)
 as it seems to be invalid: partially initialized module 'charset_normalizer' 
has no
   attribute 'md__mypyc' (most likely due to a circular import)
   ok: [172.17.0.1]
   
   TASK [couchdb : check if db credentials are valid for CouchDB] 
********************************************************************************************************************************************
   Wednesday 11 December 2024  23:11:09 +0800 (0:00:00.035)       0:00:00.908 
**** 
   [WARNING]: Skipping plugin 
(/home/miao/owvenv/lib/python3.8/site-packages/ansible/plugins/filter/gcp_kms_filters.py)
 as it seems to be invalid: partially initialized module 'charset_normalizer' 
has no
   attribute 'md__mypyc' (most likely due to a circular import)
   fatal: [172.17.0.1]: FAILED! => {"msg": "The conditional check 'db.provider 
!= \"CouchDB\"' failed. The error was: error while evaluating conditional 
(db.provider != \"CouchDB\"): 'db_prefix' is undefined\n\nThe error appears to 
be in '/home/miao/openwhisk/ansible/roles/couchdb/tasks/deploy.yml': line 32, 
column 3, but may\nbe elsewhere in the file depending on the exact syntax 
problem.\n\nThe offending line appears to be:\n\n\n- name: check if db 
credentials are valid for CouchDB\n  ^ here\n"}
   
   The conditional check 'db.provider != "CouchDB"' failed. The error was:
   error while evaluating conditional (db.provider != "CouchDB"): 'db_prefix' is
   undefined  The error appears to be in
   '/home/miao/openwhisk/ansible/roles/couchdb/tasks/deploy.yml': line 32, 
column
   3, but may be elsewhere in the file depending on the exact syntax problem.  
The
   offending line appears to be:   - name: check if db credentials are valid for
   CouchDB   ^ here 
   
   PLAY RECAP 
************************************************************************************************************************************************************************************************
   172.17.0.1                 : ok=4    changed=0    unreachable=0    failed=1  
  skipped=0    rescued=0    ignored=0   
   
   Wednesday 11 December 2024  23:11:09 +0800 (0:00:00.036)       0:00:00.944 
**** 
   
=============================================================================== 
   Gathering Facts 
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 0.75s
   couchdb : Set the volumes 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 0.04s
   couchdb : check if db credentials are valid for CouchDB 
--------------------------------------------------------------------------------------------------------------------------------------------
 0.04s
   couchdb : Set the nodes 
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 0.04s
   couchdb : set the coordinator to the first node 
----------------------------------------------------------------------------------------------------------------------------------------------------
 0.03s
   ```
   
   
   ## Additional information you deem important:
   
   Contents of db_local.ini:
   ```
   [db_creds]
   db_provider=CouchDB
   db_username=admin
   db_password=passward
   db_protocol=http
   db_host=172.17.0.1
   db_port=5984
   
   [controller]
   db_username=whisk_local_controller0
   db_password=some_controller_passw0rd
   
   [invoker]
   db_username=whisk_local_invoker0
   db_password=some_invoker_passw0rd
   
   [scheduler]
   db_username=whisk_local_scheduler0
   db_password=some_scheduler_passw0rd
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to