[Solved] Failing to install nextcloud (32.0.0) from the web portal

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • latest.zip (1 Oct)
  • Operating system and version (e.g., Ubuntu 24.04):
    • debian sid
  • Web server and version (e.g, Apache 2.4.25):
    • 2.4.65-3+b1
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • n/a
  • PHP version (e.g, 8.3):
    • 8.4.11-1
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • trying to complete install
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

unable to install nextcloud on server

Steps to replicate it (hint: details matter!):

i get to this point of the install process (the browser being on 192.168.0.100 on the local network)

https://i.imgur.com/xAZ1Y2D.png

the db was created on 192.168.0.102 with

CREATE\040USER\040'nextuser'@'192.168.0.102'\040IDENTIFIED\040BY\040'N3xtU5er';
CREATE\040DATABASE\040nextdb;
GRANT\040ALL\040PRIVILEGES\040ON\040nextdb.*\040TO\040'nextuser'@'192.168.0.102';
FLUSH\040PRIVILEGES;
EXIT;

i have run the following on mariadb on the headless server:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.0.%' IDENTIFIED BY 'password' WITH GRANT OPTION;

/etc/mysql/mariadb.conf.d/50-server.cnf has:

bind-address = 0.0.0.0

/etc/apache2/sites-available/nextcloud.conf looks like:

<VirtualHost *:1010>
ServerName 192.168.0.102
DocumentRoot /var/www/html/nextcloud

<Directory /var/www/html/nextcloud>
AllowOverride All
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

PASTE HERE

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Why port 1010? - te default ports are 80 and 443 and should be kept, specially for installing Letsencrypt SSL certificate, which only uses these ports.

1 Like

You appear to be specifying 3066/tcp as the port. The default port that MariaDB uses is 3306.

The problem I see is that specifying 192.168.0.x in these spots won’t permit you to connect via 127.0.0.1 or localhost. It appears you changed that from what was in the docs you referenced.

Lastly, there’s no need to using bind-address = 0.0.0.0 for MariaDB if you’re co-hosting your database service on the same server as PHP/Nextcloud.

Some additional references:

i’ve tried it with port 80 and using 192.168.0.102 and 192.168.0.102:80 to connect to the db as database host

it is one of many attempts. so i probably chose to screenshot the one time i had number dyslexia. trying with the correct mariadb port send me back to the this screen after pressing install

so i suspect the problem i am facing is that guide assumes i am running the web browser on the same machine that nextcloud is installed on

but i am on 192.168.0.100 and trying to run this install web interface on 192.168.0.102 where the nextcloud is

ultimately, if there is a way to get this step done by ssh’ing into the server and running via command line (debian), i would readily do that (with the correct port)

https://i.imgur.com/xAZ1Y2D.png

I confirm wizard is not working, always re-displaying same page. Didn’t find any interesting log yet.

so in terminal occ install can be used :

cd /var/www/html/nextcloud

sudo -u www-data php occ maintenance:install --database mysql --database-host localhost --database-port 3306 --database-pass StrongPasswordHere --database-user nextuser --database-name  nextdb

adapt values accoridingly to your install.

i will fill a bug, this is a UI change in vue code , missing ‘install’ input field then server side never see the install as requested …

Bug filled : [Bug]: Install Wizard with nextcloud 32 loop on install page · Issue #55554 · nextcloud/server · GitHub

great (well not so much in that it is a bug). glad to see i wasn’t losing my mind

this has worked

1 Like

To follow up, this happened when only one database driver was installed. When there were multiple you could choose from, it worked fine. Fix is in fix(setup): set dbtype value also for single-db by kesselb · Pull Request #55560 · nextcloud/server · GitHub

2 Likes