Bug 236693 - www/nextcloud fresh installation from quarterly pkg causes redirect loop
Summary: www/nextcloud fresh installation from quarterly pkg causes redirect loop
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Bernard Spil
Depends on:
Reported: 2019-03-21 07:19 UTC by Samuel Dowling
Modified: 2019-03-23 03:03 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Dowling 2019-03-21 07:19:53 UTC
When installing a new installation of www/nextcloud from the FreeBSD quarterly branch, this results in a redirect loop after the user selects "Finish Setup" at the web ui nextcloud setup screen.

Steps to reproduce:
1) Install www/nextcloud from quarterly branch
2) Configure required tech stack
3) Enter nextcloud configuration details in web ui
4) Select "Finish Setup"

Detailed steps to reproduce are available in a guide that I've written: https://www.samueldowling.com/2018/12/08/install-nextcloud-on-freenas-iocage-jail-with-hardened-security/

Bug is produced when user does not move from quarterly branch to latest branch of FreeBSD repository.

Actual Results:
User gets a redirect loop

Expected Results:
Successfully navigate to nextcloud web interface

Build Date & Hardware:
Bug first encountered in Nextcloud version 14.0.0
Build: 08/12/2018
 - FreeNAS 11.1 (FreeBSD 11.1 jail) 
 - Supermicro X9 SRi-F Motherboard
 - Samsung EVO 860 SSD
 - Intel Xeon E5-2660V2
Comment 1 Bernard Spil freebsd_committer 2019-03-21 09:13:40 UTC
Hi Samuel,

What is it redirecting to? (Developer view in browser or webserver logs should show)

Cheers, Bernard.
Comment 2 Samuel Dowling 2019-03-21 09:35:31 UTC
(In reply to Bernard Spil from comment #1)
Hi Bernard, 

Thanks for the quick reply. The error seems to be a continuous redirect - the error that I've had (In Firefox, at least, though similar in other browsers) is "The page isn’t redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

I've made the mistake of tearing my test instance down, so I'll spin another one up to answer your question and get back to you later. I've realised after submitting the bug report that I'd left out some detail however, so I'll add it here.

I originally experienced this issue when the quarterly branch was at 14.0.0, and the latest branch was at 14.0.1_1. It appears as though the patch to 14.0.1 was to fix the broken apps-pkg path in config.php. Since moving to the latest branch, I've had no issues whatsoever, but a number of people following my guide have reported the same issue I experienced when they stay on the quarterly branch.

One of these users reported today that their config.php configuration in nextcloud 15.0.0 didn't contain the ammendments to fix the broken apps-pkg path, which I suspect is the root of the issue, though I'm not sure.

If there's anything else you need let me know.


Comment 3 Samuel Dowling 2019-03-23 03:03:26 UTC
(In reply to Bernard Spil from comment #1)

The redirect is to /index.php/apps/files