Closed ickedude closed 8 months ago
I spend two days to debug, but found the problem 20min after creating the issue 😠.
I have found out that the browser does not respect cookies because the secure flag is set. The command
php nextcloud/occ config:system:set overwriteprotocol --value http
instructs nextcloud to accept http as the protocol. The flag is no longer set and login works.
I'm sorry for wasting your time.
fastcgi_param HTTPS on;
Alternatively, this line can be adjusted in your FastCGI Nginx config since you're not using HTTPS. Your approach will work fine as well. Both are roughly equal and overwriteprotocol
takes precedence:
⚠️ This issue respects the following points: ⚠️
Bug description
I am not able to login after a fresh installation of nextcloud. No matter if I install via web installer or archive. In the following steps I used the password bla everywhere, but also tried complex password. Problem is reproducible with 28.0.2 and 27.0.1
Steps to reproduce
docker run -it debian:12
apt update
apt install -y postgresql
/etc/init.d/postgresql start
su postgres
createuser -P nc
createdb -O nc nc
exit
apt install -y php-cli php-fpm php-xml php-pgsql php-gd php-mbstring php-curl php-zip curl unzip nginx-light
cd /var/www
curl -o nextcloud.zip https://download.nextcloud.com/server/releases/latest.zip
unzip nextcloud.zip
chown -R www-data:www-data nextcloud
Set the
immutable
cache control options only for assets with a cache bustingv
argumentmap $arg_v $asset_immutable { "" ""; default ", immutable"; }
server { listen 8080;
}
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
browser console log: