RocketChat / Rocket.Chat.RaspberryPi

Run a private social network on your Pi for iPhone and Android devices !
MIT License
337 stars 59 forks source link

Cannot setup HTTPS support #48

Open JakobHafke opened 4 years ago

JakobHafke commented 4 years ago

Hi, i did everything as per the instructions in this file (https://github.com/RocketChat/Rocket.Chat.RaspberryPi) but am unable to enable https for rocket.chat. I am using the raspi 4 8gb with the 64 bit rasbian image that is also linked there. When i try to follow these instructions (https://docs.rocket.chat/installation/manual-installation/ubuntu/snaps/autossl) i ecountered the following issue when executing

sudo snap set rocketchat-server https=enable

error: cannot perform the following tasks:

  • Run configure hook of "rocketchat-server" snap (run hook "configure":

    dig: error while loading shared libraries: libdns.so.162: cannot open shared object file: No such file or directory Error: Can't resove DNS query for my domain, check your DNS configuration, disabling https ... -----)

Port forwarding is set (80, 443 and 3000), http works on port 3000. This closed issue did not help me: https://github.com/RocketChat/Rocket.Chat.RaspberryPi/issues/41

Hope someone can help me.

tabletenniser commented 3 years ago

+1, encountered act same issue here, any help is appreciated: $ sudo snap set rocketchat-server https=enable Run configure hook of "rocketchat-server" snap / error: cannot perform the following tasks:

jdot commented 3 years ago

I am experiencing the same issue:

$ sudo snap set rocketchat-server https=enable
error: cannot perform the following tasks:
- Run configure hook of "rocketchat-server" snap (run hook "configure":
-----
dig: error while loading shared libraries: libdns.so.162: cannot open shared object file: No such file or directory
Error: Can't resove DNS query for <my_dns_address>, check your DNS configuration, disabling https ...
-----)

I am using a Raspberry Pi 4, 8GB. I have tried both ubuntu-18.04.5-preinstalled-server-arm64+raspi4.img and ubuntu-20.04.1-preinstalled-server-arm64+raspi.img. Both images have the same result if written to the SD using the Raspberry Pi Imager v1.4 or Etcher 1.5.80. Any assistance would be greatly appreciated. Thank you!

tabletenniser commented 3 years ago

I couldn't get bundled https to work, but I managed to set up HTTPs with nginx reverse proxy by following instructions in here: https://docs.rocket.chat/installation/manual-installation/configuring-ssl-reverse-proxy#running-behind-a-nginx-ssl-reverse-proxy

p1nkm4n commented 3 years ago

Same issue here. Raspberry Pi 4, 4GB with ubuntu-18.04.5-preinstalled-server-arm64+raspi4.img. Is there still no solution?