Behind proxy, "Unable to validate installation id. Problem contacting Bitwarden server."

Trying to stand up an On Premise instance in my lab behind corporate proxies.
I have the squid proxy info configured in both the docker service file and as environment variables for my shell:

[[email protected] ~]# echo $HTTP_PROXY
http://firewall.spde.local:3128/
[[email protected] ~]# echo $HTTPS_PROXY
https://firewall.spde.local:3128/
[[email protected] ~]# systemctl show --property=Environment docker
Environment=HTTP_PROXY=http://firewall.spde.local:3128/ HTTPS_PROXY=http://firewall.spde.local:3128/

The install goes fine, pulls all the docker images and layers, but it can’t validate my Installation ID.

I’ve seen this problem elsewhere in the forums without resolution. Can anyone explain what mechanism/protocol the ID and Key validation is using that it can’t reach the Bitwarden internet servers?

Hi there.

Did you ever find a solution for this issue? I am facing the same problem, with the same message.

Update: Apparently I was too keen on living on the bloody edge, used CentOS8. I made another attempt with CentOS7 and this time, the installation worked.

I have the same issue, also running a CentOS8, but it must be possible to achieve this with CentOS8? After some browsing I undertand that the default bridge network established by docker could be an issue.

But i’m not sure how to configure my docker environment so that bitwarden containers can access my host network. Has anyone made that kind of configuration?

I’ve put in quite a few hours trying to get it to work with CentOS 8 but have realised it simply won’t. After some “research” it seems as RHEL/CentOS won’t support docker because of their own efforts trying to compete.
Although not specified explicitly, they do say:

“To install Docker Engine, you need a maintained version of CentOS 7. Archived versions aren’t supported or tested.”

So yeah, after switching to CentOS 7 everything worked as a charm with running docker and Bitwarden behind a proxy.

go into the folder bwdata>env
add your porxy conf to the uid.env file like this

LOCAL_UID=65534
LOCAL_GID=65534
http_proxy=http://proxy:3128
ftp_proxy=http://proxy:3128
https_proxy=http://proxyk:3128
no_proxy=identity

Edit the bitwarden.sh file and after the line echo “Looks like Bitwarden is already installed at $OUTPUT.”
comment exit1

Install your software
Just in case you want to remove the proxy
Revert back the bitwarden.sh file as the previous state and also the uid.env removing the proxy
./bitwarden.sh rebuild
./bitwarden.sh start