When installing, Page refreshes instead of installing

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):
    • 35.0.0
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22.02
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.52
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • None
  • PHP version (e.g, 8.3):
    • 8.1
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • When installing on a VPS
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Archive
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

When i attempt installation, The page refreshes, and i am booted back to the setup screen, and this happens so matter how many fixes i try from random forum threads

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

  1. Follow the example installation for 22.04

  2. Fill out your credentials

  3. Click install

Log entries

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.

None, nextcloud.log empty.

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.

None

Web server / Reverse Proxy

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

None

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!):

None

You problem seems to be Ubuntu-related and has nothing to do with Nextcloud.
Since Ubuntu 22.04 had been replaced by 24.04, you shoud install the newer release.

I also recommend to ask in the Ubuntu-forum for assistance, if you are in trouble with the installation. My first guess ist, that the hardware settings in the BIOS do not meet the prerequesits.

This issue occurs on Ubuntu 24.04.3 LTS as well, and seems to be reported by many, including myself. Previously working (literally, just did a fresh install 6 weeks ago) instructions now fail consistently, looping on pressing ‘Install’. Personally, I’ve pared down the install to the bare minimum to activate MariaDB, PHP FPM 8.3 and get to the Install page, and even that fails.

Steps to replicate:

(also tried with 32 Rc4 vs ‘latest’, same issue.

Install Ubuntu Server LTS 24.04.3 and update.

sudo apt update -y && sudo apt upgrade -y

#INSTALL APACHE AND ENABLE AUTOSTART
sudo apt install apache2 -y
sudo systemctl start apache2 && sudo systemctl enable apache2

#INSTALL MARIADB AND ENABLE AUTOSTART
sudo apt install mariadb-server -y
sudo systemctl start mariadb && sudo systemctl enable mariadb

#INSTALL PHP8.3 AND EXTRA MODULES
sudo apt install php8.3 libapache2-mod-php php8.3-common php8.3-cli php8.3-mbstring php8.3-bcmath php8.3-fpm php8.3-mysql php8.3-zip php8.3-gd php8.3-curl php8.3-xml -y

nextcloud SPECIFIC
sudo apt install php8.3-apcu php8.3-redis php8.3-smbclient php8.3-intl php8.3-memcache php8.3-gmp php8.3-imagick php-imagick imagemagick unzip redis-server php-redis -y

#SWITCH TO USING PHP 8.3 FPM and AUTOSTART
sudo a2enconf php8.3-fpm
sudo systemctl start php8.3-fpm
sudo systemctl enable php8.3-fpm

#EDIT PHP:
sudo nano /etc/php/8.3/fpm/php.ini

#Change:
memory_limit=8G
post_max_size = 8G
upload_max_filesize= 8G
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=32

sudo systemctl restart php8.3-fpm

#PREP DB
sudo mysql
CREATE USER ‘nextcloud’@‘localhost’ IDENTIFIED BY ‘YOURPASSWORDHERE’;
CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
GRANT ALL PRIVILEGES ON nextcloud.* TO ‘nextcloud’@‘localhost’;
FLUSH PRIVILEGES;
quit;

#INSTALL NEXTCLOUD
cd /var/www
sudo wget https://download.nextcloud.com/server/releases/latest.zip
sudo unzip latest.zip
sudo rm latest.zip
sudo chown -R www-data:www-data /var/www/nextcloud
#SEPARATE DATA DIRS
sudo mkdir nextcloud-data
sudo chown -R www-data:www-data /var/www/nextcloud-data

#PREP INITIAL VIRTUALHOST
sudo nano /etc/apache2/sites-available/nextcloud.conf

<VirtualHost *:80>DocumentRoot “/var/www/nextcloud”ServerName localhost
    ErrorLog ${APACHE_LOG_DIR}/nextcloud.error
    CustomLog ${APACHE_LOG_DIR}/nextcloud.access combined

    <Directory /var/www/nextcloud/>
        Require all granted
        Options FollowSymlinks MultiViews
        AllowOverride All

       <IfModule mod_dav.c>
           Dav off
       </IfModule>

    SetEnv HOME /var/www/nextcloud
    SetEnv HTTP_HOME /var/www/nextcloud
    Satisfy Any

   </Directory>
</VirtualHost>

#DISABLE DEFAULT SITE AND REPLACE WITH NEXTCLOUD
sudo a2ensite nextcloud.conf
sudo a2dissite 000-default.conf
sudo nano /etc/apache2/apache2.conf
ADD:
ServerName localhost

sudo systemctl restart apache2

#IN BROWSER visit your site IP address:

  • create desired initial admin account
  • CHANGE data folder to: /var/www/nextcloud-data
  • database account and password
  • database name: nextcloud
  • database host: localhost

CLICK INSTALL: Notice it loops and nothing happens.

This skips any SSL setup, as this is unnecessary to replicate the issue. These steps worked previously as of about 6 weeks ago, and multiple times before that.

Update: I can bypass the problem with CLI to install vs the browser. The remainder of my usual installation steps and tweaks are successful.

Note: For anyone else that wants to solve their install issue this way, note that I’m using a separate data dir than the default, but you can still specify that from the command line.

sudo -E -u www-data php occ maintenance:install
–database ‘mysql’ --database-name ‘nextcloud’ --data-dir ‘/var/www/nextcloud-data/’
–database-user ‘nextcloud’ --database-pass ‘YOURPASSWORDHERE’
–admin-user ‘admin’ --admin-pass ‘adminpasswordhere’

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.