shenxn / protonmail-bridge-docker

ProtonMail IMAP/SMTP Bridge Docker container
GNU General Public License v3.0
382 stars 77 forks source link

Cannot initialize bridge #34

Open mmaderic opened 3 years ago

mmaderic commented 3 years ago

Both Ubuntu 20.04 and CentOS 7.6 are stuck while trying to initialize using:

docker run --rm -it -v protonmail:/root shenxn/protonmail-bridge init

Both server instances are fresh deployments on DigitalOcean cloud provider.

[dev@centos-s-1vcpu-1gb-ams3-01 root]$ docker run --rm -it -v protonmail:/root shenxn/protonmail-bridge init
Unable to find image 'shenxn/protonmail-bridge:latest' locally
latest: Pulling from shenxn/protonmail-bridge
6e0aa5e7af40: Pull complete
d47239a868b3: Pull complete
49cbb10cca85: Pull complete
a8171dcf7e77: Pull complete
8e2a3ba9a014: Pull complete
f3be2eca7aa1: Pull complete
Digest: sha256:2a2dde3dd3f080349474d2a38086d569bec4176aaaf626a2d459c1fd631c2902
Status: Downloaded newer image for shenxn/protonmail-bridge:latest
+ [[ init == init ]]
+ gpg --generate-key --batch /protonmail/gpgparams
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: Generating a basic OpenPGP key

this is where it gets stuck and doesn't move after this point. Waited for more than 10 minutes without results.

cdestefano commented 3 years ago

Had the same issue.

This post gave me a workaround. Kill the two processes, run init, and continue as normal.

https://github.com/shenxn/protonmail-bridge-docker/issues/25#issuecomment-804793193

shenxn commented 3 years ago

Seems you have problem generating gpg key. Try solutions here https://serverfault.com/questions/471412/gpg-gen-key-hangs-at-gaining-enough-entropy-on-centos-6.

pushad commented 3 years ago

For anyone out there who still has this issue, you can get around this by installing rng-tools. I'm running ubuntu, so installing it was as simple as sudo apt-get install rng-tools followed by sudo service rng-tools start.

Running the init command afterwards instantly resolved the issue.