You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
Deploying on fresh ubuntu 18.04 fails for latest Nextcloud 19.0.0
I manually downgraded the inventory to Nextcloud 18.0.6, removed /var/www/nextcloud, dropped database nextcloud, redeployed, and then it worked for me!
Insert the following
Redeploy
The text was updated successfully, but these errors were encountered: