Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task prep_nextcloud : set nextcloud domain config.php values fails on latest nextcloud 19.0.0 #81

Open
jensfriisnielsen opened this issue Jun 23, 2020 · 1 comment

Comments

@jensfriisnielsen
Copy link
Contributor

jensfriisnielsen commented Jun 23, 2020

Deploying on fresh ubuntu 18.04 fails for latest Nextcloud 19.0.0

TASK [prep_nextcloud : set nextcloud domain config.php values] **************************************************************************************$
Tuesday 23 June 2020  22:42:27 +0200 (0:00:00.051)       0:01:09.197 **********                                                                       
failed: [localhost] (item={'key': 'overwrite.cli.url', 'value': '--value=https://MASKED'}) => changed=true                                           
  ansible_loop_var: item                                                                                                                              
  cmd: php occ config:system:set overwrite.cli.url --value=https://MASKED                                                                            
  delta: '0:00:00.162633'                                                                                                                             
  end: '2020-06-23 22:42:27.796205'                                                                                                                   
  item:                                                                                                                                               
    key: overwrite.cli.url
    value: --value=https://MASKED
  msg: non-zero return code
  rc: 1
  start: '2020-06-23 22:42:27.633572'
  stderr: |2-
  
  
      There are no commands defined in the "config:system" namespace.
  stderr_lines: <omitted>
  stdout: Nextcloud is not installed - only a limited number of commands are available
  stdout_lines: <omitted>
failed: [localhost] (item={'key': 'trusted_domains', 'value': '1 --value=MASKED'}) => changed=true 
  ansible_loop_var: item
  cmd: php occ config:system:set trusted_domains 1 --value=MASKED
  delta: '0:00:00.188831'
  end: '2020-06-23 22:42:28.174882'
  item:
    key: trusted_domains
    value: 1 --value=MASKED
  msg: non-zero return code
  rc: 1                                                                                                                                               
  start: '2020-06-23 22:42:27.986051'                                                                                                                 
  stderr: |2-                                                                                                                                         
                                                                                                                                                      
                                                                                                                                                      
      There are no commands defined in the "config:system" namespace.                                                                                 
  stderr_lines: <omitted>                                                                                                                             
  stdout: Nextcloud is not installed - only a limited number of commands are available                                                                
  stdout_lines: <omitted>     

I manually downgraded the inventory to Nextcloud 18.0.6, removed /var/www/nextcloud, dropped database nextcloud, redeployed, and then it worked for me!

sudo rm -rf /var/www/nextcloud
sudo -u postgres psql
DROP DATABASE nextcloud;
\q
vim inventory

Insert the following

#next_archive         = https://download.nextcloud.com/server/releases/latest.tar.bz2
next_archive         = https://download.nextcloud.com/server/releases/nextcloud-18.0.6.tar.bz2

Redeploy

./nextcloud.yml
@ReinerNippes
Copy link
Owner

Hi.

I just tried the playbook on an EC2 with Ubuntu 18.04 and couldn't reproduce the error.

The error message There are no commands defined in the "config:system" namespace. indicates to me that the inital setup didn't succeed in a former run.

creates: /var/www/nextcloud/config/config.php

The initial setup is only triggered if config.php doesn't exist.

So I can't comment on your error.

Nevertheless if you are using Ubuntu you should upgrade to Ubuntu 20.04 and use the nextcloud-reloaded branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants