Resource icon

Scripted installation of Nextcloud 28 in iocage jail 2018-03-23

CHAiNSAW

Cadet
Joined
Sep 19, 2018
Messages
7
Hi danb35, thanks for the great script. I fiddled around with it for the past few days and i really like it.

I am using FreeNAS 11.1U6 and unfortunately I ran into the same problem as ilkor.

When opening the link to nextcloud in the browser, I can create an admin account and enter some information regarding the db and data location.
After pressing 'Finish setup' the following message shows up

Code:
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.


After successfully issuing the LE certificate, it seems the whole occ part isn't working properly and generates error messages.

Code:
echo "Installation and configuration of Nextcloud"
# CLI installation and configuration of Nextcloud
echo "1"
iocage exec ${JAIL_NAME} touch /var/log/nextcloud.log
echo "2"
iocage exec ${JAIL_NAME} chown www /var/log/nextcloud.log
echo "3"
iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install --database=\"mysql\" --database-name=\"nextcloud\" --database-user=\"nextcloud\" --database-pass=\"${DB_PASSWORD}\" --database-host=\"localhost:/tmp/mysql.sock\" --admin-user=\"admin\" --admin-pass=\"${ADMIN_PASSWORD}\" --data-dir=\"/mnt/files\""
echo "4"
iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ config:system:set logtimezone --value=\"${TIME_ZONE}\""
echo "5"
iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set log_type --value="file"'
echo "6"
iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set logfile --value="/var/log/nextcloud.log"'
echo "7"
iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set loglevel --value="2"'
echo "8"
iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set logrotate_size --value="104847600"'
echo "9"
iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.local --value="\OC\Memcache\APCu"'
echo "10"
iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set redis host --value="/tmp/redis.sock"'
echo "11"
iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set redis port --value=0 --type=integer'
echo "12"
iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.locking --value="\OC\Memcache\Redis"'
echo "13"
iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ config:system:set overwrite.cli.url --value=\"https://${HOST_NAME}/\""
echo "14"
iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set htaccess.RewriteBase --value="/"'
echo "15"
iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ maintenance:update:htaccess'
echo "16"
iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ config:system:set trusted_domains 1 --value=\"${HOST_NAME}\""
echo "17"
iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ config:system:set trusted_domains 2 --value=\"${JAIL_IP}\""
echo "18"
iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ app:enable encryption'
echo "19"
iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ encryption:enable'
echo "20"
iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ encryption:disable'
echo "21"
iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ background:cron'
echo "22"
iocage exec ${JAIL_NAME} crontab -u www /mnt/configs/www-crontab


Code:
Installation and configuration of Nextcloud
1

2

3

4
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
5
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
6
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
7
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
8
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
9
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
10
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
11
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
12
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
13
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
14
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
15
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "maintenance:update" namespace.

  Did you mean this?
	  maintenance


True
16
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
17
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
18
Nextcloud is not installed - only a limited number of commands are available


  Command "app:enable" is not defined.

  Did you mean this?
	  app:check-code


True
19
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "encryption" namespace.


True
20
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "encryption" namespace.


True
21
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "background" namespace.


True
22



Maybe you have an idea what I could have done wrong ? Any help would be appreciated.
 

ilkor

Dabbler
Joined
Sep 19, 2018
Messages
13
You should not need to do that at all; the script is supposed to take care of it. Do you still have the output of the script available? If so, can you post the last couple dozen lines?
Now actually I saw that during installation there are error messages:



Code:
Performing sanity check on apache24 configuration:
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK
apache24 not running? (check /var/run/httpd.pid).
[Wed Sep 19 13:31:42 EEST 2018] Reload error for :













* Stopping nextcloud
  + Running prestop OK
  + Stopping services OK
  + Removing jail process OK
  + Running poststop OK
* Starting nextcloud
  + Started OK
  + Starting services OK














Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "maintenance:update" namespace.

  Did you mean this?
	  maintenance



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


  Command "app:enable" is not defined.

  Did you mean this?
	  app:check-code



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "encryption" namespace.



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "encryption" namespace.



Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "background" namespace.




Successfully removed mount from nextcloud's fstab
Installation complete!
Using your web browser, go to https://XXXXXXXX to log in
Default user is admin, password is NEvO2qi8U5d6UxAw

upload_2018-9-19_13-48-42.png
 
Last edited by a moderator:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Strange. So this line:
iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install --database=\"mysql\" --database-name=\"nextcloud\" --database-user=\"nextcloud\" --database-pass=\"${DB_PASSWORD}\" --database-host=\"localhost:/tmp/mysql.sock\" --admin-user=\"admin\" --admin-pass=\"${ADMIN_PASSWORD}\" --data-dir=\"/mnt/files\""
...is not giving an error, but it also apparently isn't completing successfully. Is there anything in /var/log/nextcloud.log?
 

ilkor

Dabbler
Joined
Sep 19, 2018
Messages
13
Strange. So this line:

...is not giving an error, but it also apparently isn't completing successfully. Is there anything in /var/log/nextcloud.log?
Тhe file /var/log/nextcloud.log is empty.

When trying to execute a command from this script in the jail I get the same message:

upload_2018-9-19_15-37-3.png
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Тhe file /var/log/nextcloud.log is empty.
Not a big surprise--it's the occ maintenance:install command that configures that. Just thought it was worth a shot.

I just tried it again on what should be a clean 11.2-BETA3 box, and it's working for me--which is going to make it trickier to figure out what's going on for you. Can you and/or @CHAiNSAW try this:
  • iocage destroy -f nextcloud
  • rm -rf /mnt/tank/db/* (substitute the name of your pool as appropriate)
  • rm -rf /mnt/tank/files/* (substitute as above)
  • Edit the line I quoted above (line 226 of the script) to add -vvv after maintenance:install. It will look like this:
Code:
iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install -vvv --database=\"mysql\" --database-name=\"nextcloud\" --database-user=\"nextcloud\" --database-pass=\"${DB_PASSWORD}\" --database-host=\"localhost:/tmp/mysql.sock\" --admin-user=\"admin\" --admin-pass=\"${ADMIN_PASSWORD}\" --data-dir=\"/mnt/files\""


Be careful with line wrapping--if you're using nano as your editor, invoke it with the -w flag ( nano -w nextcloud-jail.sh). If you're using another editor, you're on your own, but make sure the lines don't wrap.

Then re-run the script and let's see what happens. You should be able to log in to a working installation when it finishes--enter "admin" as the username, the random password, and you should be in. If it asks you to finish the setup (needs database information or anything else), it didn't work. In that case, show the output after the first time you see "Nextcloud is not installed - only a limited number of commands are available".
 

CHAiNSAW

Cadet
Joined
Sep 19, 2018
Messages
7
Unfortunately that didn't do it.

Here is the result
Code:
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "maintenance:update" namespace.

  Did you mean this?
	  maintenance


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  Command "app:enable" is not defined.

  Did you mean this?
	  app:check-code


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "encryption" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "encryption" namespace.


True
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "background" namespace.


True
 

CHAiNSAW

Cadet
Joined
Sep 19, 2018
Messages
7
Anything above that?

Nope, except for what @ilkor already mentioned in his post
Performing sanity check on apache24 configuration:
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK
apache24 not running? (check /var/run/httpd.pid).
[Wed Sep 19 13:31:42 EEST 2018] Reload error for :













* Stopping nextcloud
+ Running prestop OK
+ Stopping services OK
+ Removing jail process OK
+ Running poststop OK
* Starting nextcloud
+ Started OK
+ Starting services OK
 

ilkor

Dabbler
Joined
Sep 19, 2018
Messages
13
@danb35 I also want to thank you for your help!
Unfortunately, the key -vvv did not add any new information to the output of the error message.
Code:
Nextcloud is not installed - only a limited number of commands are available

  There are no commands defined in the "config:system" namespace.

 

ilkor

Dabbler
Joined
Sep 19, 2018
Messages
13
Here is the result of running the first two commands from the script:
It is obvious that the missing command message is received in the second one.

Code:
su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install -vvv --database=\"mysql\" --database-name=\"nextcloud\" --database-user=\"nextcloud\" --database-pass=\"gy9XRbTYrNGPWrCx91XotQ==\" --database-host=\"localhost:/tmp/mysql.sock\" --admin-user=\"admin\" --admin-pass=\"FBqapmX5q2y0p54X\" --data-dir=\"/mnt/files\""
su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ config:system:set logtimezone -vvv --value=\"Europe/Sofia\""

Code:
[root@nextcloud ~]# su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install -vvv --database=\"mysql\" --database-name=\"nextcloud\" --database-user=\"nextcloud\" --database-pass=\"gy9XRbTYrNGPWrCx91XotQ==\" --database-host=\"localhost:/tmp/mysql.sock\" --admin-user=\"admin\" --admin-pass=\"FBqapmX5q2y0p54X\" --data-dir=\"/mnt/files\""
[root@nextcloud ~]# su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ config:system:set logtimezone -vvv --value=\"Europe/Sofia\""
Nextcloud is not installed - only a limited number of commands are available

In Application.php line 564:

  [Symfony\Component\Console\Exception\CommandNotFoundException]
  There are no commands defined in the "config:system" namespace.


Exception trace:
 Symfony\Component\Console\Application->findNamespace() at /usr/local/www/apache24/data/nextcloud/3rdparty/symfony/console/Application.php:604
 Symfony\Component\Console\Application->find() at /usr/local/www/apache24/data/nextcloud/3rdparty/symfony/console/Application.php:229
 Symfony\Component\Console\Application->doRun() at /usr/local/www/apache24/data/nextcloud/3rdparty/symfony/console/Application.php:148
 Symfony\Component\Console\Application->run() at /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:213
 OC\Console\Application->run() at /usr/local/www/apache24/data/nextcloud/console.php:96
 require_once() at /usr/local/www/apache24/data/nextcloud/occ:11

[root@nextcloud ~]#

upload_2018-9-19_17-14-21.png upload_2018-9-19_17-26-18.png
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
the key -vvv did not add any new information to the output of the error message.
Just tried it myself, and it doesn't add anything when the command works either (it just says "Nextcloud was successfully installed")--the Nextcloud folks apparently aren't very good at making verbose output actually verbose. And I can't see that anything gets logged anywhere when it happens either. Frustrating.

What happens if you add -n after the -vvv on the maintenance:install line?
 

ilkor

Dabbler
Joined
Sep 19, 2018
Messages
13
What happens if you add -n after the -vvv on the maintenance:install line?
-v -vv -vvv -n - the command always ends without a message
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
This is strange, and more so since the -v flags don't seem to be doing anything. What happens if you do iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install -vvv"?

Edit: and what's the output of iocage exec ${JAIL_NAME} php -v?
 

ilkor

Dabbler
Joined
Sep 19, 2018
Messages
13
Code:
[root@nextcloud ~]# su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install -vvv -n --database=\"mysql\" --database-name=\"nextcloud\" --database-user=\"nextcloud\" --database-pass=\"gy9XRbTYrNGPWrCx91XotQ==\" --database-host=\"localhost:/tmp/mysql.sock\" --admin-user=\"admin\" --admin-pass=\"FBqapmX5q2y0p54X\" --data-dir=\"/mnt/files\""
[root@nextcloud ~]# su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install -v -n --database=\"mysql\" --database-name=\"nextcloud\" --database-user=\"nextcloud\" --database-pass=\"gy9XRbTYrNGPWrCx91XotQ==\" --database-host=\"localhost:/tmp/mysql.sock\" --admin-user=\"admin\" --admin-pass=\"FBqapmX5q2y0p54X\" --data-dir=\"/mnt/files\""
[root@nextcloud ~]# su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install -vv -n --database=\"mysql\" --database-name=\"nextcloud\" --database-user=\"nextcloud\" --database-pass=\"gy9XRbTYrNGPWrCx91XotQ==\" --database-host=\"localhost:/tmp/mysql.sock\" --admin-user=\"admin\" --admin-pass=\"FBqapmX5q2y0p54X\" --data-dir=\"/mnt/files\""
[root@nextcloud ~]# su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install -vvv"

In Install.php line 121:

  [InvalidArgumentException]
  Database <sqlite> is not supported.


Exception trace:
 OC\Core\Command\Maintenance\Install->validateInput() at /usr/local/www/apache24/data/nextcloud/core/Command/Maintenance/Install.php:99
 OC\Core\Command\Maintenance\Install->execute() at /usr/local/www/apache24/data/nextcloud/3rdparty/symfony/console/Command/Command.php:251
 Symfony\Component\Console\Command\Command->run() at /usr/local/www/apache24/data/nextcloud/3rdparty/symfony/console/Application.php:946
 Symfony\Component\Console\Application->doRunCommand() at /usr/local/www/apache24/data/nextcloud/3rdparty/symfony/console/Application.php:248
 Symfony\Component\Console\Application->doRun() at /usr/local/www/apache24/data/nextcloud/3rdparty/symfony/console/Application.php:148
 Symfony\Component\Console\Application->run() at /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:213
 OC\Console\Application->run() at /usr/local/www/apache24/data/nextcloud/console.php:96
 require_once() at /usr/local/www/apache24/data/nextcloud/occ:11

maintenance:install [--database DATABASE] [--database-name DATABASE-NAME] [--database-host DATABASE-HOST] [--database-port DATABASE-PORT] [--database-user DATABASE-USER] [--database-pass [DATABASE-PASS]] [--database-table-prefix [DATABASE-TABLE-PREFIX]] [--database-table-space [DATABASE-TABLE-SPACE]] [--admin-user ADMIN-USER] [--admin-pass ADMIN-PASS] [--data-dir DATA-DIR]

Code:
[root@nextcloud ~]# su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install "

In Install.php line 121:

  Database <sqlite> is not supported.


maintenance:install [--database DATABASE] [--database-name DATABASE-NAME] [--database-host DATABASE-HOST] [--database-port DATABASE-PORT] [--database-user DATABASE-USER] [--database-pass [DATABASE-PASS]] [--database-table-prefix [DATABASE-TABLE-PREFIX]] [--database-table-space [DATABASE-TABLE-SPACE]] [--admin-user ADMIN-USER] [--admin-pass ADMIN-PASS] [--data-dir DATA-DIR]

[root@nextcloud ~]#
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Well, at least it's doing something. OK, what about iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install -vvv --database=\"mysql\""?
 

ilkor

Dabbler
Joined
Sep 19, 2018
Messages
13
Well, at least it's doing something. OK, what about iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install -vvv --database=\"mysql\""?
Now wants to enter a DB user
Code:
[root@nextcloud ~]# su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install -vvv --database=\"mysql\""

In Install.php line 148:

  [InvalidArgumentException]
  Database user not provided.


Exception trace:
 OC\Core\Command\Maintenance\Install->validateInput() at /usr/local/www/apache24/data/nextcloud/core/Command/Maintenance/Install.php:99
 OC\Core\Command\Maintenance\Install->execute() at /usr/local/www/apache24/data/nextcloud/3rdparty/symfony/console/Command/Command.php:251
 Symfony\Component\Console\Command\Command->run() at /usr/local/www/apache24/data/nextcloud/3rdparty/symfony/console/Application.php:946
 Symfony\Component\Console\Application->doRunCommand() at /usr/local/www/apache24/data/nextcloud/3rdparty/symfony/console/Application.php:248
 Symfony\Component\Console\Application->doRun() at /usr/local/www/apache24/data/nextcloud/3rdparty/symfony/console/Application.php:148
 Symfony\Component\Console\Application->run() at /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:213
 OC\Console\Application->run() at /usr/local/www/apache24/data/nextcloud/console.php:96
 require_once() at /usr/local/www/apache24/data/nextcloud/occ:11

maintenance:install [--database DATABASE] [--database-name DATABASE-NAME] [--database-host DATABASE-HOST] [--database-port DATABASE-PORT] [--database-user DATABASE-USER] [--database-pass [DATABASE-PASS]] [--database-table-prefix [DATABASE-TABLE-PREFIX]] [--database-table-space [DATABASE-TABLE-SPACE]] [--admin-user ADMIN-USER] [--admin-pass ADMIN-PASS] [--data-dir DATA-DIR]

When I only removed the user's password
Code:
[root@nextcloud ~]# su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install -vvv --database=\"mysql\" --database-name=\"nextcloud\" --database-user=\"nextcloud\" --database-pass=\"gy9XRbTYrNGPWrCx91XotQ==\" --database-host=\"localhost:/tmp/mysql.sock\" --admin-user=\"admin\" --data-dir=\"/mnt/files\""
What is the password you like to use for the admin account <admin>?					<-----press Enter
Set an admin password.

It looks like the command is doing its function. Is there a way for these parameters to be read back?
 

Troels

Cadet
Joined
Mar 24, 2017
Messages
6
I experiencing the same problem on version 11.2-beta3.

Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "config:system" namespace.



There are no commands defined in the "config:system" namespaceNextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "config:system" namespace.



Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "maintenance:update" namespace.

Did you mean this?
maintenance



Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "config:system" namespace.



^C
Aborted!
Nextcloud is not installed - only a limited number of commands are available


Command "app:enable" is not defined.

Did you mean this?
app:check-code



Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "encryption" namespace.



Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "encryption" namespace.



Nextcloud is not installed - only a limited number of commands are available


There are no commands defined in the "background" namespace.
 
Top