/srv/irclogs.ubuntu.com/2019/07/15/#ubuntu-server.txt

=== Wryhder is now known as Lucas_Gray
lordievaderGood morning06:34
=== jizzle is now known as braingain
braingainHi I'm on 16.04 trying to make use of systemd-run to start one-time jobs10:42
braingainI get a message that timer and service get created but systemctl tells me there is no .timer or .service-unit10:43
braingainit works fine in centos and debian10:43
Pugsone time only ?10:51
tomreynbraingain: show your logs and unit + timer (use a !pastebin), discuss your ubuntu version. if you cannot share those details, create a simplified example where you can show details, see if this runs properly, if not, show the same for this one.10:52
PugsHave you tried Type=oneshot10:52
braingainhmm after update from 16.04.4 to 16.04.6 now it seems to work. I was puzzled as to why I couldnt await the output with journalctl -f -u10:55
braingainoutput just shows with journalctl -u, not -f10:55
tomreynpoint proven: using readily available bug fixes can help!11:00
tomreynplus you got free security patches for free, too11:00
braingainstill unsure I should use this atd replacement productively11:01
TJ-strange issue; on 18.04 trying to figure out when unattended-upgrades last ran but due to the systemd timers/services and so on it's proving difficult. E.g. on the 'problem' system there's no update to /var/log/apt/history.log since July 1st but /etc/apt/apt.conf.d/50unattended-upgrades is correct11:18
tomreyndo you not have /var/log/unattended-upgrades there?11:19
TJ-tomreyn: yes, but that is only used by the shutdown service (by default u-a is not configured to log - it does have an option to log to syslog but that's not set by default)11:23
TJ-the only file there is unattended-upgrades-shutdown.log (0 bytes - because being a server it is never shut down)11:24
TJ-The systemd timers for apt-daily and apt-daily-upgrade are triggering correctly so trying to figure out why u-a hasn't been applying -security upgrades11:24
tomreynhmm weird, i'm on 18.04, too, and have more logs in /var/log/unattended-upgrades11:24
tomreynhttps://paste.ubuntu.com/p/Jm4prKcDRB/11:25
tomreyn /etc/apt/apt.conf.d/50unattended-upgrades  https://paste.ubuntu.com/p/4PvRvP7RCT/11:26
tomreynbut i do indeed have records about unattended-upgrades in /var/log/apt/history.log as well, so this is probably irrelevant and just leading away from your inital question - sorry.11:28
TJ-ooooo! checking "dpkg -L unattended-upgrades" there's a "/usr/share/unattended-upgrades/20auto-upgrades" but that isn't in /etc/apt/apt.conf.d/11:29
TJ-hmmmm, this was working until the end of June so did something remove that ?11:30
tomreyncat /usr/share/unattended-upgrades/20auto-upgrades; echo ···; cat /etc/apt/apt.conf.d/10periodic | pastebinit     ->   http://paste.ubuntu.com/p/WtCdM9KwyD/11:33
tomreynactually this is the output produced by this:   pastebinit < <(cat /usr/share/unattended-upgrades/20auto-upgrades; echo ···; cat /etc/apt/apt.conf.d/10periodic;)11:34
tomreyni remember i needed to change *something* about unattended-upgrades to make them work again a while ago, too. sadly forgot all the details.11:35
TJ-hmmm, after reading the .postinst file I checked debconf and it reports "unattended-upgrades/enable_auto_updates: false"11:37
tomreyni just ran this on my 2 18.04 server VMs, which were both installed using the 18.04.2 server live installer, i think: grep -B1 bin/unattended /var/log/apt/history.log | tail -n2011:43
tomreynboth list multiple runs in july11:43
tomreyni don't have those VMs running constantly, though - so these runs may have been a result of booting those VMs on those days.11:44
TJ-ahh, "dpkg-reconfigure unattended-upgrades"11:45
TJ-not sure how it got disabled but there was a lot of tweaking going on in June11:46
tomreynboth VMs return     unattended-upgrades/enable_auto_upgrades: true    when quries using     debconf-show unattended-upgrades    and i did most likely not run dpkg-reconfigure against those. but may have chosen this during installation, if there was a prompt.11:47
tomreyns/quries/queried/11:48
TJ-the .postinst isn't entirely clear but it looks like it reads the debconf via db_get to determine whether to enable on 'configure', so maybe there was something weird there11:49
JustJohnnywhat are the recomended options to implement bare metal backup in CLI-only ubuntu server?12:37
blackflowJustJohnny: ZFS filesystem + snapshots w/ send|recv offsite12:46
JustJohnnythat would require to reinstall and reconfigure the servers, I'm afraid12:53
tomreyni wouldn't say that ZFS is a general recommendation for ubuntu there.12:56
tomreynlvm snapshotting would be the more traditional route, doesn't depend on out of tree modules. i agree zfs can be the better option while support and performance last.13:01
JustJohnnyI just read about timeshift but it comes with GUI and this is a CLI-only enviroment13:02
tomreyntimeshift uses btrfs snapshotting, that's also an option if you consider the btrfs features you'll use to be sufficiently stable.13:19
TJ-backup != snapshot, sounds like a job for rsync/bacula or similar13:20
blackflowtomreyn: why wouldn't be ZFS recommended? Ubuntu is officially supporting ZFS and the next LTS installer is supposedly getting support for it as well.13:31
blackflowTJ-: backup = snapshot + offsiting13:31
blackfloweven without offsiting it's a form of backup. backup fs state before a change is made. one that you can revert to. it's a backup alright.13:33
tomreynblackflow: i'm just saying IMO it's not *the* generic recommendation. you know why: possibly degrading performance and supportability as a result of license incompatibilies / linux dev's interest in supporting it. btrfs is also supported by the installer, i would still not *generally* recommend it for production.13:34
blackflowthat's a load of BS. there is no single "the" generic recommendation.13:34
rbasakI had a btrfs filesystem fail to mount and fail to fsck the other day, though it's a very old one (from 2012 ish)13:35
rbasakHad to restore from backup13:35
blackflowbtrfs is a valid alternative to ZFS, yes I agree.13:35
blackflowI personally recommend ZFS because I've got a metric ton of experience with it, on and off Ubuntu.13:35
blackflowand lol the OP quit before they saw all this..... _neway_ I was about to recommend rsnapshot if fs choice is unfeasible. it's fs agnostic, works with hardlink based snapshots and rsync. I used it for years before I started using ZFS.13:36
blackflow"snapshots" .... as atomic as it gets with rsync, which is not too much... but still.13:37
TJ-the number of outstanding defects in ZoL wouldn't make me confident to rely on it, in the same way that BTRFS is suspected due to its issues.13:49
TJ-many of those in the send|resume component too13:50
blackflowwell, I'm using it on a fleet of debian and ubuntu servers (the kind of servers that keep food on my table), some freebsd still, for years now. so I'm confident to recommend it.   on the other hand, somethign as mature as ext4 _still_ in 2018 had data corrupting bugs...13:52
blackflowat the storage scale we use, which is a lot or nothing much, depending whom you ask, I've seen bitrot and I've seen ZFS in action auto-correcting it. I'd never use anything other than ZFS.13:54
TJ-it's often corner-cases that catch folks out. This is what I am referring to: https://github.com/zfsonlinux/zfs/issues?q=is%3Aissue+is%3Aopen+label%3A%22Type%3A+Defect%2214:17
smoserhey. it'd be nice if someone on ubuntu server team reviewed this14:30
smoser https://code.launchpad.net/~smoser/cloud-utils/+git/cloud-utils/+merge/37013514:30
smoserand even merged it... jsut to have one of you all in the flow there.14:30
smoserpowersj: ^14:30
supamanhey, I have several websites and running apache virtual hosts, I have all the websites on an NFS host and the webserver mounts the websites from there, the logs for each website goes to the path /var/www/website/logs (not /var/log)16:32
supamanthe logs seem to be updated (not rotated) monthly but some don't get cleared correctly and get filled up with empty space in the beginning16:33
supamanso I end up with 4GB logs that are 90% or more just empty space16:33
supamanI want to find out what is handling these logs but can't find anything in cron or systemd timer16:34
supamanany idea?16:34
lordcirthsupaman, are they sparse files?16:34
sdezielsupaman: check logrotate maybe?16:34
supamanlordcirth: sparse files? ... don't think so, how do I find out?16:35
lordcirthsupaman, compare ls -l to du16:35
supamansdeziel: can't find anything in logrotate16:35
supamanlordcirth: aha, ls -l gives 5700115704 but du gives 12444016:37
lordcirthcalled it. So I bet the application is writing to the new file at the old offset, instead of starting over16:37
lordcirthSo it gets created sparse.16:37
supamanok, but that doesn't really solve my question of "what is handling this" :-)16:38
supamansome log files for other websites are just fine, no empty space in the beginning, and they all start at the beginning of the month16:38
supamanso something is doing something to those logfiles16:39
supaman:-)16:39
lordcirthon the bright side, at least it's not filling your disk16:39
supamantrue :-)16:39
lordcirthsupaman, so, you are running what Ubuntu version? Apache installed from repos? How did you configure Apache?16:40
supamanlordcirth: Ubuntu 18.04 with apache from Ubuntu repo16:41
supamanversoin 2.4.49 of apache16:42
supamanI don't know how Apache was configured in the beginning, this is not a system I set up16:43
lordcirthsupaman, ok, well, start going through /etc/apache2 I guess?16:43
supamanyeah, any hint on what I should be looking for (not that familiar with apache)16:44
lordcirthsupaman, Well, I would look in /etc/apache2/sites-enabled first. See if there is anything in there overriding logging settings. Otherwise, look in apache.conf16:46
lordcirthconf-enabled/ is also a good place to putting logging config16:47
supamanok, looking at a sites-enabled for one of the sites shows nothing unusal, ServerName, ServerAlias, ServerAdmin, DocumentRoot, ErrorLog (and path to it), SetEnvIf Request_URI "^/check\.txt$" dontlog, Customlog /path/to/log combined env=!dontlog and then finishes off with https rewrite16:51
lordcirthsupaman, alternatively, just grep -r for the unusual log path16:52
smoserrharper: i suspect there is no autolander at https://code.launchpad.net/~smoser/cloud-utils/+git/cloud-utils/+merge/37013516:54
smoserbut autolanders are nice. so... if that was configured, that'd be nice.16:54
smoseri'm going to land that manually.16:54
rharpersmoser: right, we could set up the autolander to look at cloud-utils16:59
supamanlordcirth: not finding anything17:00
lordcirthsupaman, grep -r all of /etc? I've found things that way before :P17:01
supamanah well ... I give up on this, will just monitor the system during next end of month and see if I can catch the culprit ;-)17:08
supamanlordcirth: thanks for assist though17:10
lordcirthsupaman, np, it's an odd one17:32
lordcirthPicking up other people's servers is the worst sometimes17:32
sxclimaxI have a home server running lubuntu. I have a hitron CGN3U router. I have things set up to the point that I can access my server's website remotely (e.g. website.noip.me) and the correct page displays, but when I try to ssh into website.noip.me I cannot get in. When I type in my local ip address for the network (192.168.X.X) I can access both the html and ssh. What am I missing? Is this in the router settings? Is this a port issue?21:44

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