linuxserver / docker-tautulli

http://linuxserver.io
GNU General Public License v3.0
213 stars 40 forks source link

Missing Pyopenssl #94

Closed tobbenb closed 4 years ago

tobbenb commented 4 years ago

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.

WARNING :: MainThread : The pyOpenSSL module is missing. Install this module to enable HTTPS. HTTPS will be disabled.

Expected Behavior

Current Behavior

Steps to Reproduce

1. 2. 3. 4.

Environment

OS:
CPU architecture: x86_64/arm32/arm64
How docker service was installed:

Command used to create docker container (run/create/compose/screenshot)

Docker logs

jchonig commented 4 years ago

I just noticed this myself. I hacked around it by adding config/custom-cont-init.d/10-https:

#!/usr/bin/with-contenv bash

# Add dependencies
apk add --no-cache --virtual=build-dependencies py3-pip python3-dev gcc musl-dev libffi-dev openssl-dev

# Add pyopenssl
pip3 install --no-cache-dir -U pyopenssl

# Cleanup
apk del --purge build-dependencies
rm -rf /root/.cache /tmp/*

# Enable https
sed -i '/^\[General\]$/,/^\[/ s/^enable_https = 0/enable_https = 1/' /config/config.ini

If I get time I'll try to come up with a PR.