You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/07/20 12:58:05 UTC

[GitHub] [cloudstack] tampler opened a new issue #5226: Install Fail: db.properties': No such file or directory

tampler opened a new issue #5226:
URL: https://github.com/apache/cloudstack/issues/5226


   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   Installation
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   ~~~
   4.15.1.0.focal
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   Ubuntu 20.04.2
   Linux 5.8.0-59-generic
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   Installation fails for a non-root user.
   
   CloudStack Management server fails during installation due to TWO errors:
   
   1. mysql-server-8.0 (8.0.25-0ubuntu0.20.04.1) won't create an included folder `/etc/mysql/conf.d` which yields in a config failure during installation
   2. CloudStack won't create a file :
   ```
   Setting up cloudstack-management (4.15.1.0~focal) ...
   usermod: no changes
   chmod: cannot access '/etc/cloudstack/management/db.properties': No such file or directory
   dpkg: error processing package cloudstack-management (--configure):
    installed cloudstack-management package post-installation script subprocess returned error exit status 1
   Setting up mysql-server (8.0.25-0ubuntu0.20.04.1) ...
   Errors were encountered while processing:
    cloudstack-management
    ```
   
   ##### STEPS TO REPRODUCE
   <!--
   
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   apt-get install cloudstack-management cloudstack-usage
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   Installation succeeds 
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   Installation failed and requires a manual intervention
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   
   ~~~
   


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] tampler closed issue #5226: Install Fail: db.properties': No such file or directory

Posted by GitBox <gi...@apache.org>.
tampler closed issue #5226:
URL: https://github.com/apache/cloudstack/issues/5226


   


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] weizhouapache commented on issue #5226: Install Fail: db.properties': No such file or directory

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #5226:
URL: https://github.com/apache/cloudstack/issues/5226#issuecomment-884030880


   > Hello @DaanHoogland . Yes, I'm installing as a sudo user, but NOT a root. The reason is that I can't reset a root password and can't temporarily access the hardware.
   > 
   > I found a possible reason. I have Python 3.8.10 shipped with Ubuntu 20.04.2
   > I'm getting the following errors during the config stage:
   > 
   > ```
   > Setting up python3-mysql.connector (8.0.15-2build1) ...                                                                                                                      
   > /usr/lib/python3/dist-packages/mysqlx/expr.py:972: SyntaxWarning: "is" with a literal. Did you mean "=="?                                                                    
   >   return "({0})".format(dimension[0]) if len(dimension) is 1 else \                                                                                                          
   > /usr/lib/python3/dist-packages/mysqlx/statement.py:122: SyntaxWarning: "is" with a literal. Did you mean "=="?                                                               
   >   return (default_schema if len(temp) is 1 else temp[0].strip(quote),    
   > ...
   > Setting up python3-netaddr (0.7.19-3) ...
   > /usr/lib/python3/dist-packages/netaddr/strategy/__init__.py:189: SyntaxWarning: "is not" with a literal. Did you mean "!="?
   >   if word_sep is not '':
   > ```
   > 
   > and all this yields in the following
   > 
   > ```
   > chmod: cannot access '/etc/cloudstack/management/db.properties': No such file or directory
   > dpkg: error processing package cloudstack-management (--configure):
   >  installed cloudstack-management package post-installation script subprocess returned error exit status 1
   > ```
   
   @tampler I think you can ignore these warnings.
   can you run "sudo -i" and then install packages ?


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] tampler edited a comment on issue #5226: Install Fail: db.properties': No such file or directory

Posted by GitBox <gi...@apache.org>.
tampler edited a comment on issue #5226:
URL: https://github.com/apache/cloudstack/issues/5226#issuecomment-884003861


   Hello @DaanHoogland . Yes, I'm installing as a sudo user, but NOT a root. The reason is that I can't reset a root password and can't temporarily access the hardware.
   
   I found a possible reason. I have Python 3.8.10 shipped with Ubuntu 20.04.2
   I'm getting the following errors during the config stage:
   ```
   Setting up python3-mysql.connector (8.0.15-2build1) ...                                                                                                                      
   /usr/lib/python3/dist-packages/mysqlx/expr.py:972: SyntaxWarning: "is" with a literal. Did you mean "=="?                                                                    
     return "({0})".format(dimension[0]) if len(dimension) is 1 else \                                                                                                          
   /usr/lib/python3/dist-packages/mysqlx/statement.py:122: SyntaxWarning: "is" with a literal. Did you mean "=="?                                                               
     return (default_schema if len(temp) is 1 else temp[0].strip(quote),    
   ...
   Setting up python3-netaddr (0.7.19-3) ...
   /usr/lib/python3/dist-packages/netaddr/strategy/__init__.py:189: SyntaxWarning: "is not" with a literal. Did you mean "!="?
     if word_sep is not '':
   ```
   
   and all this yields in the following
   ```
   chmod: cannot access '/etc/cloudstack/management/db.properties': No such file or directory
   dpkg: error processing package cloudstack-management (--configure):
    installed cloudstack-management package post-installation script subprocess returned error exit status 1
   ```
   


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] tampler commented on issue #5226: Install Fail: db.properties': No such file or directory

Posted by GitBox <gi...@apache.org>.
tampler commented on issue #5226:
URL: https://github.com/apache/cloudstack/issues/5226#issuecomment-884083783


   @ustcweizhou Thanks for your advice ! It saved my day. I was able to seamlessly install and setup CloudStack under the root account. 
   
   However, I'm still facing the issue #5051 adding a KVM host and I'd appreciate your help and advice on that topic.
   
   Closing this issue. Thanks everyone for your help !


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] DaanHoogland commented on issue #5226: Install Fail: db.properties': No such file or directory

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #5226:
URL: https://github.com/apache/cloudstack/issues/5226#issuecomment-883981196


   @tampler why do you install as a non-root user? I think that is your issue.


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] tampler commented on issue #5226: Install Fail: db.properties': No such file or directory

Posted by GitBox <gi...@apache.org>.
tampler commented on issue #5226:
URL: https://github.com/apache/cloudstack/issues/5226#issuecomment-884003861


   Hello. Yes, I'm installing as a sudo user, but NOT a root. The reason is that I can't reset a root password and can't temporarily access the hardware.
   
   I found a possible reason. I have Python 3.8.10 shipped with Ubuntu 20.04.2
   I'm getting the following errors during the config stage:
   ```
   Setting up python3-mysql.connector (8.0.15-2build1) ...                                                                                                                      
   /usr/lib/python3/dist-packages/mysqlx/expr.py:972: SyntaxWarning: "is" with a literal. Did you mean "=="?                                                                    
     return "({0})".format(dimension[0]) if len(dimension) is 1 else \                                                                                                          
   /usr/lib/python3/dist-packages/mysqlx/statement.py:122: SyntaxWarning: "is" with a literal. Did you mean "=="?                                                               
     return (default_schema if len(temp) is 1 else temp[0].strip(quote),    
   ...
   Setting up python3-netaddr (0.7.19-3) ...
   /usr/lib/python3/dist-packages/netaddr/strategy/__init__.py:189: SyntaxWarning: "is not" with a literal. Did you mean "!="?
     if word_sep is not '':
   ```
   
   and all this yields in the following
   ```
   chmod: cannot access '/etc/cloudstack/management/db.properties': No such file or directory
   dpkg: error processing package cloudstack-management (--configure):
    installed cloudstack-management package post-installation script subprocess returned error exit status 1
   ```
   


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org