Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nextcloud 22.0.0 redirects to wrong URL post manual install completion #27849

Closed
prbt2016 opened this issue Jul 7, 2021 · 1 comment
Closed
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@prbt2016
Copy link

prbt2016 commented Jul 7, 2021

Steps to reproduce

  1. Hit the install URL
  2. Enter database configuration details and admin user details, Uncheck 'Install recommended apps' and click Finish Setup'.
  3. After database population Nextcloud redirects to relative URL instead of absolute URL and browser shows Server not found.

Expected behaviour

Nextcloud should show First Run Wizard page and redirect to http://domain.com/nextcloud/index.php/apps/files/ (i.e absolute URL).

Actual behaviour

Nextcloud redirects to http://nextcloud/index.php/apps/files/ (i.e Relative URL) and browser shows Server not found.

Server configuration

Operating system:
Centos 6.9 Final

Web server:
Apache 2.2.34

Database:
MYSQL 5.5.62

PHP version:
7.3.24

Nextcloud version: (see Nextcloud admin page)
22.0.0

Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install

Client configuration

Browser:
Mozilla Firefox 89.0

Operating system:

Logs

{"reqId":"QLSsWs2qMX8szcuU9qQA","level":2,"time":"2021-07-07T09:06:38+00:00","remoteAddr":"{{IPADDRESS}}","user":"--","app":"no app in context","method":"PUT","url":"{{RELATIVE-URL-PATH}}/index.php/apps/user_status/heartbeat","message":"Could not detect any host in http://{{RELATIVE-URL-PATH}}/data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","version":""}
{"reqId":"QLSsWs2qMX8szcuU9qQA","level":2,"time":"2021-07-07T09:06:38+00:00","remoteAddr":"{{IPADDRESS}}","user":"--","app":"no app in context","method":"PUT","url":"{{RELATIVE-URL-PATH}}/index.php/apps/user_status/heartbeat","message":"Could not detect any host in https://{{RELATIVE-URL-PATH}}/data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","version":""}
{"reqId":"kNnsENLCqSMYuiQJrHKD","level":2,"time":"2021-07-07T09:06:39+00:00","remoteAddr":"{{IPADDRESS}}","user":"--","app":"no app in context","method":"GET","url":"{{RELATIVE-URL-PATH}}/index.php","message":"Could not detect any host in http://{{RELATIVE-URL-PATH}}/data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","version":""}
{"reqId":"kNnsENLCqSMYuiQJrHKD","level":2,"time":"2021-07-07T09:06:39+00:00","remoteAddr":"{{IPADDRESS}}","user":"--","app":"no app in context","method":"GET","url":"{{RELATIVE-URL-PATH}}/index.php","message":"Could not detect any host in https://{{RELATIVE-URL-PATH}}/data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","version":""}
{"reqId":"sjJGDDsYcofdWfJ6EloF","level":2,"time":"2021-07-07T09:06:41+00:00","remoteAddr":"{{IPADDRESS}}","user":"--","app":"no app in context","method":"GET","url":"{{RELATIVE-URL-PATH}}/","message":"Could not detect any host in http://{{RELATIVE-URL-PATH}}/data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","version":""}
{"reqId":"sjJGDDsYcofdWfJ6EloF","level":2,"time":"2021-07-07T09:06:41+00:00","remoteAddr":"{{IPADDRESS}}","user":"--","app":"no app in context","method":"GET","url":"{{RELATIVE-URL-PATH}}/","message":"Could not detect any host in https://{{RELATIVE-URL-PATH}}/data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","version":""}
{"reqId":"OMuywSvAJOD5rDfRrEh4","level":2,"time":"2021-07-07T09:07:25+00:00","remoteAddr":"{{IPADDRESS}}","user":"--","app":"no app in context","method":"POST","url":"{{RELATIVE-URL-PATH}}/index.php","message":"Could not detect any host in http://{{RELATIVE-URL-PATH}}/data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","version":""}
{"reqId":"OMuywSvAJOD5rDfRrEh4","level":2,"time":"2021-07-07T09:07:25+00:00","remoteAddr":"{{IPADDRESS}}","user":"--","app":"no app in context","method":"POST","url":"{{RELATIVE-URL-PATH}}/index.php","message":"Could not detect any host in https://{{RELATIVE-URL-PATH}}/data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","version":""}

The Issue:

I was in the process of fresh manual installation of Nextcloud 22.0.0.

However I encountered an issue i.e after entering the database details and admin user details with 'unchecking Install recommended apps' and clicking on 'Finish Setup' ,

The URL gets redirected to relative URL i.e http://nextcloud/index.php/apps/files/ instead of absolute URL i.e
http://domain.com/nextcloud/index.php/apps/files/ and Server not found is thrown by the browser and the above log is thrown in nextcloud.log.

After hitting the correct URL manually i.e http://domain.com/nextcloud/index.php/apps/files/ Nextcloud's First Run wizard is shown properly.

Is this an issue?. Any way to resolve this ?. Does it cause any major problems?.

Could you please replicate this issue at your end?.

@prbt2016 prbt2016 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jul 7, 2021
@kesselb
Copy link
Contributor

kesselb commented Jul 7, 2021

Closing in favor of #27575

@kesselb kesselb closed this as completed Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

2 participants