Web UI: Redirecting Please wait a while. You are being redirected

No, nothing at all. Other topics have had official help / responses since, so I’m not sure why this one has been ignored.

1 Like

It’s likely a setup problem, but it’s difficult to pinpoint where is problem with such a little information. There are quite a bunch of manual steps to do, and it’s easy to mess something up.

Maybe you could post what you do, step by step, using a fake server name. It’s likely a wrong url, but it’s difficult to know which one.

Hardware: Raspberry Pi 4B
OS: Raspbian Buster
Webserver: nginx/1.14.2
Database: 10.3.29-MariaDB-0+deb10u1
PHP version: PHP 7.3.29-1~deb10u1
ownCloud version: 10.8

  1. I installed github/owncloud/web

  2. I added this to my config.php

‘web.baseUrl’ => ‘blackhole/index.php/apps/web’,
‘web.rewriteLinks’ => true,

  1. This is my owncloud/config/config.json
    { "server" : "https://blackhole", "theme": "https://blackhole/apps/web/the - Pastebin.com
    Since I am a new user I can only provide 2 urls and I am not able to upload a text file… :confused:

  2. I installed oauth2 from here: github/owncloud/oauth2

  3. I added a Client in the oauth2 App called OWeb, URI = blackhole/index.php/apps/web/oidc-callback.html took the clientid and saved it in the config.json

Everything seems to work except it doesnt redirect as explained earlier and the dev console is showing: Uncaught (in promise) Invalid query, please check the syntax. API specifications - Pastebin.com

Does that help to better investigate? I am thankful for any hint!

It works for me. Checked with OC 10.8, oauth 0.5.0, and web 4.2.0

@Koaebk

  • Double-check both apps are downloaded from the marketplace. You might want to use the “market” app for this. Some apps might require some build steps if you’re downloading the source code, and the apps in the marketplace are already built and ready to use, so no need for you to bother with additional things.
  • The “web.baseUrl” config option requires the whole url, including the protocol. This means https://blackhole/index.php/apps/web (I’m not sure if it will work with http, probably not)
  • For the oauth2 client, the uri also requires the protocol: https://blackhole/index.php/apps/web/oidc-callback.html

There is a 404 for the theme, you might want to remove it, although the web app works fine with that. Other than that, it works for me with those steps

1 Like

I only removed the https:// part in order to be able to post it here, since I wasnt allowed to post more than 2 urls as a newbie.

It is included in my config. I uninstalled and reinstalled both apps from the marketplace. I also tried disabling my theme. No changes sadly :frowning:

Are you using apache? This might be the difference.

Yes, I’m using apache.

I’ve tried many more times, but I always get the same problem again and again.
It seems to work, it authenticates, but then it gets stuck on this screen:

Screenshot from 2021-10-08 17-49-35

I cant’ see anything in the log file that is related to a possible issue with the configuration.

My app is behind an Nginx proxy which provides SSL etc, but runs using the official Docker image. Could it be the reverse proxy perhaps?

If @ivnmad or @Koaebk are using reverse proxies I’ll have a go removing mine to see what happens but if you aren’t then it clearly isn’t that.

I use HAproxy, not Nginx. Maybe there is a configuration in Nginx that is causing the problem.

Hmmm, I’ve updated to version 4.4.0 and I’m still getting this error in my console:

Uncaught (in promise) Invalid query, please check the syntax.

The error is coming from line 12 of vendor.js which is vuex v3.6.2 - however I suspect the bug isn’t in Vue itself but in whatever is using / calling it. From the stack trace that appears to be initAuth in web-runtime.js.

The only other thing in my Console are these:

UserManager.getUser: user loaded
web-runtime-03539e51.js:1 New User Loaded. access_token: xxxRemovedxxx, refresh_token: undefined
vendor-fee82cbd.js:57 UserManager.signinRedirectCallback: no sub

Is it correct that the refresh_token is undefined there?

Edit

Within initAuth the lines causing the issue for me are these (2294/2295):

const s = await i.users.getUserGroups(n.id)
  , r = await i.users.getUser(n.id);

It is at that point that I get this in my console: Uncaught (in promise) Invalid query, please check the syntax.

I indeed use a reverse proxy in nginx @bencgreen
This is my nginx conf, see attachement.

nginx_default.txt (5,7 KB)

@bencgreen I use a reverse proxy in Apache…

I can confirm that accessing my ownCloud installation directly (i.e. bypassing the proxy) results in the same error, suggesting to me that this has nothing to do with the proxy server.

Method:

  • Forward port 18795 to Docker container port 8080
  • Change URLs in config.json and config.php to point to http://192.168.1.104:18795
  • Login via new URL
  • Click ‘New Design’ link
  • Authorize application
  • Receive ‘Redirecting Please wait a while. You are being redirected.’ message

There is clearly something wrong here. I have tried deleting the web app and reinstalling it, I’ve gone through the instructions so many times my eyes hurt - I’m at a loss to know what to try next.

Check the network console with the web developer tools. There might be some request failing, so we’d need to know which one is it.

Thanks @jvillafanez - I already did in this post here.

What I want to know is if there is any request that could be returning a 404 or 500 or maybe it’s redirecting to a different place, when it was expected to return some valid information. This could be a possible cause of the malfunction.

Thanks @jvillafanez - no issues with requests:

That very request results in the errors I have detailed above:

Seems that your token is invalid. Error: DOMException: Aborted | web-runtime-03539e51.js:1:43855
Uncaught (in promise) TypeError: e is undefined | vendor-fee82cbd.js:57:51674
Uncaught (in promise) Invalid query, please check the syntax | vendor-fee82cbd.js:12:1367

Hey guys, not that it would help much but I installed owncloud the same way I did before but this time on ubuntu server instead on my raspbian and there my oweb configuration is working without any issues. :frowning:

New insight, It was working on ubuntu, as soon as I merged my old database/app folder to the new server it shows the same invalid query behaviour. So it has nothing to do with nginx/proxy or ubuntu it is indeed something in my files or database.