Bitbucket under proxy: "An unknown error has occurred" when trying to remove user from group

 

Hi we have a Bitbucket server running on port 7990. To provide access via domain name we need to pass through proxy server. 

We configured in the server.xml the context path to /bitbucket and we can access it from the domain name using the proxy via domain.com/bitbucket.

(We also set the proper server name in the Server settings.)

Unfortunately, when I try to remove a user from a group it gives me an "unknown" error that in the console appear to be a 403 UNATHORIZED error.

The problem is related to the proxy because when accessing it directly via it's IP it works just fine.

2 answers

0 votes

Hi Salvatore, 

The error 403 actually means the server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. If the server does not wish to make this information available to the client, the status code 404 (Not Found) can be used instead.

Can you confirm if you just trying to access Bitbucket Dashboard through the proxy you are able to connect? If so, then this looks to be related to some kind of permission, or your proxy is not recognising/passing the correct groups for some reason. 

Regards, 
Renato Rudnicki 

For the record, I saw the same errors when accessing Bitbucket 5.x via Apache HTTPD and mod_proxy.

I could log in as the admin user, create users, create groups, create projects, log in as a user etc.  Everything looked to be fine.  But I could not add a group to a user, nor could I add a user to a group.

I had changed the Base URL on the Administration -> Server Settings page and restarted Bitbucket, but it made no difference.

The problem was rectified when I changed  the connector values in the bitbucket.properties file, as per the page https://confluence.atlassian.com/bitbucketserver/migrate-server-xml-customizations-to-bitbucket-properties-897811761.html   and then restarted bitbucket.

After this, there are no errors adding users to groups or vice versa.

I hope this helps someone else.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

257 views 3 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you