Giter Club home page Giter Club logo

Comments (7)

minrk avatar minrk commented on May 23, 2024

Indeed, that was copied from a docker deployment without proper updating.

Can you try running:

certbot-auto renew --nginx

?

from jupyterhub-deploy-teaching.

minrk avatar minrk commented on May 23, 2024

Scratch that, run:

certbot-auto renew --webroot --webroot-path=/etc/letsencrypt/webroot
service reload nginx

and see if that works. If it does, I'll update the file.

from jupyterhub-deploy-teaching.

nabriis avatar nabriis commented on May 23, 2024

I ended up doing the following:

date >> /var/log/letsencrypt.log
kill -s HUP $( pgrep -o nginx )
fuser -k 443/tcp
fuser -k 80/tcp
certbot-auto renew --no-self-upgrade 2>&1 &>> /var/log/letsencrypt.log
sleep 10
fuser -k 443/tcp
fuser -k 80/tcp
service nginx --full-restart
service nginx reload

which seemed to work. Not very optimal i guess.

@minrk when running

certbot-auto renew --webroot --webroot-path=/etc/letsencrypt/webroot
service reload nginx

I get an error:

Upgrading certbot-auto 0.13.0 to 0.15.0...
Replacing certbot-auto...
Creating virtual environment...
Installing Python packages...
Installation succeeded.
/etc/letsencrypt/webroot does not exist or is not a directory

from jupyterhub-deploy-teaching.

minrk avatar minrk commented on May 23, 2024

Try:

mkdir -p /etc/letsencrypt/webroot

first, then run it again. nginx is already serving that directory for letsencrypt upgrades.

from jupyterhub-deploy-teaching.

nabriis avatar nabriis commented on May 23, 2024

Ok seems to work now.
Although i can't really test if the cerbot gets a connection since the certificate is not due for renewal anymore.

Saving debug log to /var/log/letsencrypt/letsencrypt.log

-------------------------------------------------------------------------------
Processing /etc/letsencrypt/renewal/[hostname].conf
-------------------------------------------------------------------------------
Cert not yet due for renewal

The following certs are not due for renewal yet:
  /etc/letsencrypt/live/[hostname]/fullchain.pem (skipped)
No renewals were attempted.

Thanks for the help :)

from jupyterhub-deploy-teaching.

minrk avatar minrk commented on May 23, 2024

Thanks! We'll have to wait until a renewal is needed to test for real. #80 should fix it.

from jupyterhub-deploy-teaching.

IamViditAgarwal avatar IamViditAgarwal commented on May 23, 2024

Hi , While setup the Jupyterhub, I saw that the let's encrypt auto-renew the certificate. But my certificate is not renewing. I saw this issue, but I am not able to figure out where we have to run this bash file or auto-renew commands

from jupyterhub-deploy-teaching.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.