[help] why it always redirect to http://localhost.localdomain???????

why upsource always redirect to the url:
http://localhost.localdomain:8000/hub/api/rest/oauth2/auth?response_type=token&state=0ae8dd21-2eb0-46be-bdeb-38a0a09c1e1e&redirect_uri=http%3A%2F%2F10.75.201.13%3A8080%2F&client_id=38335723-892a-4ca6-8287-69c8df13f87a&scope=38335723-892a-4ca6-8287-69c8df13f87a%200-0-0-0-0%20f4227cee-8180-4171-a36c-07a49c85a803

7 comments
Comment actions Permalink

Hi Zhang,

Probably base-url was configured that way or there is some misconfiguration on the proxy side(if you have any). Could you please clarify how did you configure Upsource, what did you put into Base Url field? Do you have any proxy?

0
Comment actions Permalink

I'm sorry to reply so late
there is no proxy and my operations are:
upsource server:
bin/upsource.sh configure --listen-port 8000
bin/upsource.sh start

my local computer:
visit http://serverip:8000

and install , but upsource always starting...
{C3896CBB-64F8-4074-A5D1-53F13D6284E1}.jpg
attatchment is the detail log , thanks very much



Attachment(s):
upsource-stdout.log.zip
upsource-stderr.log.zip
0
Comment actions Permalink

Hi Zhang,

You might want to configure base url with the following commands:

bin/upsource.sh stop
bin/upsource.sh configure --listen-port 8000 --base-url=http://serverip:8000
bin/upsource.sh start

Also per logs we see that sufficient resource limits are not set as needed, section "Resource limits on Linux" onn this page https://www.jetbrains.com/upsource/help/1.0/install_config.html will help you to configure it properly.

0
Comment actions Permalink

well done! I got it !
I'm so careless ,just the base-url configure I missed. thanks very much!

0
Comment actions Permalink

We are having an issue similar to this, however a bit more complicated. We have an internal network which upsource is on. I have configured the base url with the servers ip on the internal network. Everything works great on the internal network no problems.
The problem occurs when an external network ip is mapped to the upsource servers ip on the internal network, we can access the login page, but when we try to logon, it uses the base url ip, that is the server ip and our external network cannot access. It can't find the url after the redirect. I would configure the base url to the external IP, however it needs to be used on both the internal IP and the external IP.

Is there a way to use both IPs, or is there way to tell upsource to use what ever ip it is being requested with? Hope this makes sense.

0
Comment actions Permalink

Hi Frederick,

Such configuration is not supported in the current version of the product unfortunately. Currently you can configure Upsource only for one IP, internal or external..

We've created a feature request to support such configuration, so it might appear in one of the future versions of the product.

0
Comment actions Permalink

Ok, thanks for creating the feature request.

0

Please sign in to leave a comment.