aeleos / cloudflared

Cloudflare Tunnel Instructions and Template for Unraid
171 stars 21 forks source link

error in writting cert.pem #17

Closed klapvogn closed 2 years ago

klapvogn commented 2 years ago

What am i doing wrong?

klapvogn@PlexStreamer:~$ docker run -it --rm -v /home/klapvogn/docker/data/cloudflared:/home/nonroot/.cloudflared/ cloudflare/cloudflared:2021.9.1 tunnel login

Please open the following URL and log in with your Cloudflare account:

https://dash.cloudflare.com/argotunnel?callback=https%3A%2F%2Flogin.cloudflareaccess.org%xxxxxxxxxxxxxxxxx%3D

Leave cloudflared running to download the cert automatically. error writing cert to /home/nonroot/.cloudflared/cert.pem: open /home/nonroot/.cloudflared/cert.pem: permission denied

aeleos commented 2 years ago

That is strange, the only thing I can think of is to make sure that /home/klapvogn/docker/data/cloudflared has the right permissions to be written to by a docker container, for unraid its usually nobody:users

klapvogn commented 2 years ago

Hey!

Thanks for the reply, the only way i was able to create the .pem file was to give 777 perm to the folders. now i have it at 755 seems to work fine!

aeleos commented 2 years ago

Great, glad that fixed it