Comments (7)
Hmm, that sounds like a bug. It already has cron installed into the container, and the cron daemon is supposed to run every week to renew the certificates where needed:
cat >/etc/cron.weekly/letsencrypt <<EOF
#!bin/bash
/srv/letsencrypt/letsencrypt-auto certonly --keep --debug --agree-tos --webroot -w /srv/letsencrypt-webroot --email $SSL_EMAIL -d $PHABRICATOR_HOST
EOF
If you run docker exec -ti .... cat /etc/cron.weekly/letsencrypt
, does it show that a file is at that location?
from phabricator.
I can confirm that script exists on the new image and appears to be correct. I can also confirm cron is running in the new container.
Docker seems to have garbage collected the old container so I can't look at the failed instance. I'm happy to provide any logs if this happens again on the current container. The image ID is 60f6d3bea378
from phabricator.
Sure, if it does happen again, can you check that:
- The cron process is still running
- The
/etc/cron.weekly/letsencrypt
file is present, and - Does running
/etc/cron.weekly/letsencrypt
manually viadocker exec
update the certificate and restore service?
from phabricator.
- the cron is running
/etc/cron.weekly/letsencrypt
file is present,- running
/etc/cron.weekly/letsencrypt
manually produces the following:
d4c4a27fe9f1:/ # /etc/cron.weekly/letsencrypt
An unexpected error occurred:
Bug in pythondialog: expected an empty output from u'infobox', but got: u'Error opening terminal: unknown.\n'Please see the logfile 'certbot.log' for more details.
d4c4a27fe9f1:/ # cat certbot.log
Traceback (most recent call last):
File "/root/.local/share/letsencrypt/bin/letsencrypt", line 11, in <module>
sys.exit(main())
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot/main.py", line 749, in main
setup_logging(config)
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot/main.py", line 653, in setup_logging
logger.info("Saving debug log to %s", log_file_path)
File "/usr/lib64/python2.7/logging/__init__.py", line 1160, in info
self._log(INFO, msg, args, **kwargs)
File "/usr/lib64/python2.7/logging/__init__.py", line 1279, in _log
self.handle(record)
File "/usr/lib64/python2.7/logging/__init__.py", line 1289, in handle
self.callHandlers(record)
File "/usr/lib64/python2.7/logging/__init__.py", line 1329, in callHandlers
hdlr.handle(record)
File "/usr/lib64/python2.7/logging/__init__.py", line 757, in handle
self.emit(record)
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot/log.py", line 64, in emit
self.width + self.PADDING_WIDTH)
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/dialog.py", line 2675, in infobox
kwargs)
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/dialog.py", line 1765, in _widget_with_no_output
widget_name, output))
PythonDialogBug
Docker images:
phabricator@phab:~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hachque/phabricator latest 1cc476a6c069 5 months ago 1.153 GB
mariadb latest 1ada4b967325 5 months ago 386.5 MB
Should I just do docker pull hachque/phabricator
? Will it break the installation?
from phabricator.
This should be fixed with the latest merged PR. I suggest waiting a little while for the Docker Hub to build the new image, then running docker pull
to obtain the fix.
from phabricator.
And no, you can do docker pull hachque/phabricator
at any time and things should not break. However you will get Phabricator automatically upgraded when you start the container if you haven't overridden the repositories or branches as outlined in Advanced Configuration.
from phabricator.
For my instance it's enough to git pull
(actually, I just edited the files in-place) and restart the container, since I do not build, I just run the container, and the fixes are in the files that get copied into on start. But it depends on configs/usage(build/run)/image version I suppose.
from phabricator.
Related Issues (20)
- /etc/init.simple leftovers in bake
- Docker images in new location not updated? HOT 5
- No git-http-backend HOT 4
- Container failed to restart when SSL is enabled HOT 1
- SSL is not working. Not able to run docker image. HOT 9
- cannot connet to root@mysql HOT 8
- No notifications server support HOT 1
- INFO exited: phd (exit status 0; not expected) HOT 2
- build fails due to openSUSE 42.1 repo being EOL and gone HOT 2
- Rebuild image on Docker hub HOT 1
- svn compare revisions not working HOT 1
- email address add error HOT 1
- Can't enable opcache support HOT 1
- Problem adding new users and setting up mailer HOT 3
- Question git build Phabricator by docker HOT 2
- Packages needs for SVN server open Cyrus SASL authentication HOT 1
- supervisord cannot start HOT 1
- Use PHP 7
- sshd not listening HOT 4
- port 62443 cannot connected HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phabricator.