/srv/irclogs.ubuntu.com/2021/02/26/#ubuntu-server.txt

=== rfm_ is now known as rfm
=== vlm_ is now known as vlm
=== LambdaCo1 is now known as LambdaComplex
=== icey_ is now known as icey
=== Voxel is now known as MrRobot
iceyhey jamespage - was there any update on that pip in proposed issue? I can't find the bug at the moment and was hoping to find what progress was made on that10:02
jamespageI've not been tracking it tbh13:19
jamespageI'd assume its wedged in proposed still13:20
maretHi what is the recommended way to mount a folder on startup ? I am mount a folder for sftp but everytime I restart the server I have to run mount command again14:35
sdezielmaret: (if you come back) /etc/fstab is where I'd put it14:41
spatCan some tell me what happened to the php-mail-mimedecode package?15:59
=== BlackDex_ is now known as BlackDex
oerheksspat, latest version was for 16.04 https://launchpad.net/ubuntu/xenial/amd64/php-mail-mimedecode16:16
oerheksnot sure why it is removed, unmaintained perhaps?16:16
ginggs_not compatible with PHP 7.016:17
spatoerheks: Just found out that a lot of former php extensions moved to PECL16:20
=== ijohnson is now known as ijohnson|lunch
maretHi what is the recommended way to mount a folder on startup ? I am mount a folder for sftp but everytime I restart the server I have to run mount command again18:52
sdezielmaret:  /etc/fstab is where I'd put it18:53
maretThank you , I will take a look at it18:53
Ussatbe REALLY carefull editing that18:55
Ussatyou can easilly render your system ubnnbootable18:55
Ussatunbootable18:55
maretuff ok18:59
xibalbai have a bind9 box in aws, it's set to listen in on any v4/v6 socket. i notice at reboot the v6 socket no longer works. i suspect the v6 stack isn't up yet when the service starts. whats the best way to delay the service for ~30 seconds or 1 minute? it's a systemd service19:35
tomreynhttps://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/19:38
tomreynexplains how to make the service start only after the network is fully up19:38
tomreyni'm not sure which target unit bind defaults to, though, maybe it's already network-online19:38
xibalbathank you19:39
xibalbaI see the following under bind9.service. After=network.target \n19:40
xibalbaWants=nss-lookup.target19:40
xibalba \n Before=nss-lookup.target19:40
xibalbasorry tried to put that on one line. I'm looking at a timer option too19:40
tomreynso make it After=network-online.target19:43
tomreynthis could impact other services which depend on bind as a local resolver, though, if they start earlier (but the same applies to a fixed time delay)19:44
tomreynhttps://stackoverflow.com/questions/43001223/how-to-ensure-that-there-is-a-delay-before-a-service-is-started-in-systemd/4473757019:44
tomreynthis is not really the systemd-ish way, but it's possible19:44
xibalbayeh i saw those options earlier, i like this option of After=network-online.target, i'm reading up on it now. thanks19:45
sdezielxibalba: it's a terrible hack but "ExecStartPre=/bin/sleep 30" should artificially delay the actual ExecStart=19:48
sdezieloh, I just repeated the stackoverflow answer ...19:49
tomreynyou phrased it better, though.19:49
xibalbathank you both, the execStartPre works, but i'm going to try the timer option too. With After=network.target, Bind still came up bound only to v4 not v6.19:50
sdezielxibalba: I vaguely recall that bind9 re-scans the network devices once in a while to discover new ones. Have you tried waiting a little post-boot? It might self fix19:53
xibalbahmm no i didn't wait, i'll look into that19:54
sdezielxibalba: automatic-interface-scan is the name of the parameter that defaults to yes20:00
tomreynshould have been "After=network-online.target"20:01
=== ijohnson|lunch is now known as ijohnson
MIFwhat is the best way to cat only some lines in a file? but not the rest20:35
MIFI have a config file for something and I need to grab the urls but it also has the path to the certs and I can't use that so I just need the url's20:36
mybalzitchpipe it through to grep?20:44
rfmMIF, depends on the format of the config file.  if there's a keyword tag on the lines you want, grep can work.  if you know the line numbers, sed -n  with p commands might work.  if it's json, jq might be what you need.20:46
MIFI got it 101 greps20:46
MIF cat acme-client.conf | grep -v "/etc/ssl/" | grep -v "sign with letsencrypt" | grep -v "}" > names.txt20:47
MipsalawishusDoes anyone have experience with Dovecot+LetsEncrypt?21:24
sdezielyes, why?21:27
MipsalawishusI'm troubleshooting an issue on a fresh install with SSL certificates21:27
MipsalawishusI get the following error in mail.log:  mail dovecot: imap-login: Error: Failed to initialize SSL server context: Can't load SSL certificate: There is no valid PEM certificate.21:28
MipsalawishusI went through step by step on a tutorial and verified the proper path to my .pem files from letsencrypt21:29
sdezielcan you pastebin the .pem in question?21:34
MipsalawishusI'm not sure if the .pem files are the issue. I'm thinking it's something to do with the 10-ssl.conf21:39
=== vlm_ is now known as vlm
sdezielMipsalawishus: you need to set ssl_cert = /path/to/the/fullchain.pem21:46
sdezieland ssl_key = /path/to/the/privkey.pem21:46
Mipsalawishussdeziel, yes - I've pointed it to the correct path and even did "certbot renew --force-renewal" to make sure the .pem files aren't corrupt21:48
sdezielMipsalawishus: sorry, you need  ssl_cert = </path/to/the/fullchain.pem21:51
sdezielthere is this weird "<" char that is important21:52
sdezielsame for ssl_key21:52
MipsalawishusYes, I made sure it's there too21:53
MipsalawishusShould "ssl_client_ca_dir = /etc/ssl/certs21:55
Mipsalawishus" point to my letsencrypt dir instead?21:55
Mipsalawishussdeziel, this is the tutorial I followed: https://www.rosehosting.com/blog/how-to-install-a-mail-server-with-postfixadmin-on-ubuntu-20-04/#Step-6-Install-Dovecot22:04
MipsalawishusI'm finding that there's some important details that were skipped in the tutorial22:05
MipsalawishusLol22:05

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!