First https login fail with Upsource EAP

I got the following error message after first login attempt during the post install configuration process:

HTTP ERROR 405

Problem accessing /hub/auth/login. Reason:

    HTTP method POST is not supported by this URL

This latest EAP instance is configured with HTTPS only through a nginx proxy.

5 comments
Comment actions Permalink

I have the same problem with the latest 2.0 version.

Could it be that I use a random generated password containing slash and backslash?

How can I reset the admin user's password after initial config?

0
Comment actions Permalink

Hi,

Here is detailed instruction on how to reset admin password: https://www.jetbrains.com/upsource/help/2.0/issues.html#you-forgot-your-administrator-password

If it doesn't help please post your nginx config file.

Thanks in advance.

0
Comment actions Permalink

Changing the Admin pwd to alphanumeric only didn't help, I still get the same error (on EAP).

nginx config (exact same one works well for Teamcity though)

server {
listen  443;
server_name upsource.company.com;
ssl on;
ssl_certificate  /usr/local/nginx/ssl/www.company.com.crt;
ssl_certificate_key  /usr/local/nginx/ssl/www.company.com.key;
proxy_redirect off;
location / {
        proxy_pass        http://192.168.18.20:1111;
        proxy_redirect off;
        proxy_set_header   Host             $host;
        proxy_set_header   X-Real-IP        $remote_addr;
        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
        client_max_body_size     30m;
        client_body_buffer_size  256k;
        proxy_connect_timeout    6m;
        proxy_read_timeout       6m;
        proxy_send_timeout       6m;
        proxy_buffer_size        64k;
        proxy_buffers            4 256k;
        proxy_busy_buffers_size 256k;
        proxy_temp_file_write_size 256k;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
                 }
}

server {
listen  80;
server_name upsource.company.com;
rewrite ^(.*)$  https://$host$1 permanent;
}

0
Comment actions Permalink

Nodje,

Proxy configuration for Upsource and TeamCity is a bit different..

Looks like the following configs are missing under "location":

proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;

Please try adding them and let me know if it helps.

Thanks in advance.

1
Comment actions Permalink

Well done, it works!


0

Please sign in to leave a comment.