/srv/irclogs.ubuntu.com/2018/09/03/#ubuntu-server.txt

cpaelzergood morning04:49
timyp does anyone know how a script or of anyway to have iperf send an email alert when a transfer takes a certain amount of time, for example lets say sending 5GB takes < than 5 mins than email? I'm runing 16.04 and system can already send email using sendmail (emails are send when cronjobs a ran) and I'm running iperf 2.0.505:52
timypI also use monit but can't seem to find an option for > < (greater than less than) alerts.05:53
TvL2386hey guys, I'm using ubuntu 18.04 and am trying to play with bonding. I notice that adding a bond to netplan works fine, removing a bond from netplan does not work at all (nothing happens) and setting the mtu on the physical interfaces and/or the bond does not work either08:07
TvL2386timyp: I don't think iperf has such a feature. I'd do it differently08:13
TvL2386timyp: I would place a file of X megabyte somewhere on a webserver. I'd then do: `timeout 30s wget -O /dev/null http://example.com/the_file || echo 'this took way too long' | sendmail`08:14
timypgood thinking08:15
TvL2386you can tinker with filesize and timeout to choose the acceptable speed. If it falls below, you'll get a mail08:15
TvL2386thank you ;)08:15
TvL2386I like the idea and configuration of netplan, I just feel it's buggy as hell08:23
TvL2386I added "match:\n  macaddress: 00:11:22:33:44:55" to my ens1f1 interface, did `netplan apply` and now it's called eth008:24
TvL2386and interface ens1f1 is gone08:25
TvL2386possibly/probably something to do with: https://bugs.launchpad.net/ubuntu/+source/nplan/+bug/174641908:41
ubottuLaunchpad bug 1746419 in nplan (Ubuntu) "bond parameters are not changed by 'netplan apply'" [Undecided,Confirmed]08:41
linuxperiaHi all. I upgraded Ubuntu server from Xenial 14.04 to 18.04 yesterday and a lot of things do not work anymore. Website are broken becouse like errors like this that did not appeared before => "PHP Fatal error:  Uncaught Error: Call to undefined function geoip_country_code_by_name"08:52
linuxperiaCan somebody help me with this problem ? What could be the Problem ? I have installed geoip. It is in apache2 modules enabled. => "loaded Modules: geoip_module (shared)"08:54
linuxperiathis should not happen ! Did Ubuntu Server downgraded geoip and deleted by this the existing working function ?08:54
TvL2386linuxperia: I'd check what php version you had on 14.04 and which one you ended up with in 18.0408:56
TvL2386linuxperia: also check the geoip module for versioning08:56
TvL2386I think you went from 5.x to 7.y08:56
TvL2386probably there are breaking changes which you are experiencing at the moment08:56
TvL2386which is to be expected!08:57
TvL238618.04 != 14.0408:57
TvL2386if you want stability and no breaking changes, stick to 14.0408:58
linuxperiaHi TvL2386: thanks a lot for your fast answer. well there is no way back anymore! i need fix this problems asap. MySQL is broken too. Used MariaDB 10.2 before and after upgrade to 18.04 it got downgraded and now i cant install even mariaDB 10.2 baack. Its a hell at the moment09:00
TvL2386really sorry to hear that linuxperia, but this was to be expected. I'm actually really surprised that you went this path...09:01
TvL2386linuxperia: you should have tested this upgrade path before doing it09:02
TvL2386and having a rollback scenario (I like offline vm snapshots) is also very good09:02
TvL2386for mariadb, you should check out there site. There is a ubuntu ppa I think that allows you to install different versions09:03
linuxperiawhy ? i thinked 18.04.01 is good for upgrade. The whole Upgrade Process is for sure a joke! it deletes packages that are needed and replace it with old packages that do not work. The Upgrade process should be smart enogh to stop when it see that it want install older packages and stop with error message instead break whole working server. I really think subscribe to RedHat Debian/Ubuntu is a joke lately. Cant even install MariaDB 10.2 to use09:04
linuxperiamy DataBase at the moment with 18.0409:04
TvL2386if you can: I'd restore a backup, because you don't know how long it will take you to fix this assuming you can fix it... Probably changes in the website code are required to accomodate the new versions of php and geoip09:04
TvL2386linuxperia: packages are not replaced by old packages that do not work09:05
linuxperiayes need new programming fo the scipts. one day this hit did with MariaDB i had installed 10.2 and it deleted it with 10.1 10.2 is not existent in 18.0409:06
TvL2386so in 14.04 you had mariadb 10.209:07
linuxperiayes in 14.04 i had 10.2 as i needed replication for several servers then did the ubuntu upgrade and it just installed MariaDB 10.1 and removed my Database folder /var/lib/mysql where all my data was and created a new /var/lib/mysql. At least it was smart enogh to create a copy of the existing DB before it created a new one09:09
linuxperiaI have lost nearly all my nerves after this upgrade09:10
linuxperiaexpected be a 1 Hour work. Now its a total pain. Asking me since hours if i should switch to RedHat. i am 100% sure with redhat this would not have happened09:10
linuxperiaand i am a paing Ubuntu Server Cloud Customer with monthly bills above 150 USD09:11
linuxperiaaka i support cannonical09:11
TvL2386linuxperia: I'm checking at the moment, but I don't think mariadb-server 10.2 is present in 14.0409:13
TvL2386linuxperia: I expect that testing your upgrade will take you a couple of hours09:14
TvL2386linuxperia: and I expect the actual migration to 18.04 to take days09:14
TvL2386all system packages are updated09:14
linuxperiai did installed MariaDB from the official repository website of mariadb aka used external repository. There was a message while upgrade that external repositorys will be disabled09:15
TvL2386you installed mariadb 10.2, while 14.04 comes with mariadb-server-5.509:15
TvL2386which means you installed from ppa09:15
TvL2386ppa for trusty09:15
TvL2386which is disabled or not working by the upgrade09:15
TvL2386and what you call "official repository website of mariadb" has nothing to do with ubuntu09:16
linuxperiaes exactly but ubuntu should be smart enogh to see i have a newer DB and stop installing Old DB that is incompatible and destroy my database this for sure is a joke09:16
TvL2386well linuxperia, sorry to say it but your upgrade plan is a joke09:17
TvL2386because the plan is: there is not plan: just `os-release-upgrade` and YOLO09:17
TvL2386good luck to you sir09:18
linuxperiayes that was my plan and i dont know any other :-)09:18
linuxperiai need luck and yes lot of nerves thanks for your good wishes09:18
TvL2386hehehe... yeah you should have tested this before in a test environment... That's the other plan09:20
TvL2386the only good plan imho09:20
TvL2386and always have a foolproof rollback plan09:20
TvL2386if you have, you won't have nerves :)09:20
TvL2386btw: this advice is distro independent09:21
linuxperiayes at the end when everything is broken i got smarter now too. Should have done it the otherway around but till yet did not had such problems so expected only minor problems. well okey need solve this php geoip problem PHP Fatal error:  Uncaught Error: Call to undefined function geoip_country_code_by_name09:23
tomreynlinuxperia: if you have apaid support plan, you should probably turn to coimmercial support to get help with this upgrade.09:36
tomreynthey may be more motivated to support you than us volunteers are around here09:37
tomreyn(i don't know whether commercial support is part of your current contract)09:37
tomreynhttps://stackoverflow.com/questions/10821974/how-to-make-geoip-country-name-by-name-work is the first hit on a web search for "Uncaught Error: Call to undefined function geoip_country_code_by_name"09:39
TvL2386that's issue #1 of #??????09:39
tomreynit is common that you will need to make application level code changes when upgrading your linux distribution (and it does not matter which distribution it is)09:40
TvL2386rollback rollback09:40
tomreyni'm unlreated to TvL2386 and, like anyone doing linux sysadmin for a couple years would probably have done, i'd told you the same had you asked before initiating the upgrade: be sure you have complete, current backups, and a rollback scenario. test and prepare for (application changes, configuration file changes, service migrations) the upgrade on (a) separate system(s) before you do it live.09:42
tomreynthis is just common practice.09:42
ogra... andf do not foirget that you need to upgrade 14.04->16.04->18.04 ... else you ask for a mess (do-release-upgrade surely takes care for a lot of data and package transitions, but only between two LTS releases, you should never skip one)09:42
tomreynwhen planning the next releas eupgrade (and maybe generally, too), take a look at the documentation, too, since it would also point out how to prepare for an upgrade.09:44
linuxperiai have Ubunutu Server on the Google Cloud which is a canonical product. Paying my google Cloud Bills since years using only ubuntu server to support canonical and the developers. Not sure what the commercial support by canonical is. never seen it. would be good having something like this. i did maked a search already yesterday related to this strange php error. yes its distro unrelated true. but solving it on ubuntu is really painfull. there09:45
linuxperiais no really anywhere a solution. the one is from 2015. aka nearly 3 Years old.09:45
SkuggenWhich MariaDB version is in 18.04? Odd that it would downgrade09:45
linuxperiaSkuggen i have instaled MariaDB 10.2 on 14.04 becouse i needed a distributed DB Replication then after upgrade of my ubuntu server to 18.04 ubuntu downgraded the DB from 10.2 to 10.1 and deleted the database as 10.2 does not exist in 18.0409:47
SkuggenUbuntu doesn't downgrade the package unless some other installed package depends on MariaDB in a way MariaDB's packages can't satisfy09:48
SkuggenHm, are you sure it deleted the database? I think MariaDB packaging has some logic for copying it to a different location if it finds incompatible versions09:50
SkuggenIs there a /var/lib/mysql-10.2 or similar?09:50
TvL2386ubuntu 18.04 has mariadb 10.1 in the standard repositories09:51
linuxperiawell for sure it did as i used the mariadb ppa for trusty and this ppa was disabled in bionic while the upgrade aka was non existent. think it just did mariadb-client mariadb-server upgrade and replaced the binaries then the configuration window poped up and told me that i will replace the existind db yes i have a moved db. problem is i can not even install now MariaDB 10.209:51
TvL2386but linuxperia has used the mariadb ubuntu ppa to get 10.2 on his system09:51
tomreynmaybe just use their ppa again then?09:57
ZPQlinuxperia: how can you even think about uppgrading a OS without full backup and rollback plan?09:58
linuxperiatomrey: trying since hours to use their ppa for bionic but for some strange reason i cant install MariaDB 10.2 anymore on 18.04 It brings this error message here always! "sudo apt-get install mariadb-client-10.2 mariadb-client-core-10.2 mariadb-server-10.2 mariadb-server-core-10.2 Für Paket »mariadb-server-10.2« existiert kein Installationskandidat"10:03
linuxperiaits total strange. apt see the package but it cant install it. i dont know what to do anymore. this problems should not happen. i follow all the steps add the ppa do apt updata and then a simple apt install but it just wont install anymore my existing MariaDB 10.2 on 18.0410:05
linuxperiahere is the Paste Bin of the Output => https://paste.ubuntu.com/p/qWJ94p9kmC/10:08
tomreynlinuxperia: this is the commercial support offering i had was discussing https://www.ubuntu.com/support10:20
tomreynmariadb (since you're using their software repository) also offers commercial support.10:23
linuxperiayes i even donated money to them. will need check out their offer. think they can not help me however when ubuntu refuses to install the MariaDB 10.02 on 18.04 as this is ubuntu Server related and not really MariaSB related. its strange the i get this error whenever i try install MariaDB on 18.0410:27
linuxperiaThe following packages have unmet dependencies:10:27
linuxperia mariadb-server : Depends: mariadb-server-10.2 (>= 1:10.2.17+maria~bionic) but it is not installable10:27
linuxperiaE: Unable to correct problems, you have held broken packages.10:27
linuxperiai dont have any broken packages however10:28
linuxperiaand i follwed thos official install guide here https://downloads.mariadb.org/mariadb/repositories/#mirror=host-europe&version=10.210:28
linuxperiathanks for the support link will go check it out10:28
linuxperiatomreeyn: looks like that support is only availble for main packages. not sure what is possible at all with such a limites offer. Support for MariaDB 10.2 on ubuntu 18.04 installation will be clearly not covered by this offer10:34
tomreynlinuxperia: which is why i suggested you also look into mariadb support, if you prefer using their packages.10:37
tomreynnote that thereis also #mariadb aroun dhere, i think10:39
linuxperiayes thank you very much tomreyn. i appreciate your help effort.10:40
tomreynlinuxperia: you're welcome, good luck.10:41
ahasenackgood morning12:01
CarlenWhiteWas thinking to myself on if it makes more sense to have a folder location binded instead of syslinked12:19
CarlenWhiteKinda makes sense in my head. You'd have all your links defined in the /etc/fstab12:22
CarlenWhiteInstead of checking each directory and inspecting if a symlink was used.12:23
tomreynand maybe it's just yak shaving. it probably depends on your needs / use case.12:26
CarlenWhiteYak shaving?12:27
tomreynhttps://en.wiktionary.org/wiki/yak_shaving12:27
CarlenWhiteAnd I suspect it'd make the most sense for important folders like /var if it's really somewhere else on the system. Fails a bit more gracefully with the system entering single user mode.12:28
CarlenWhiteAh, yeah I suppose it's me thinking about useless stuff.12:29
CarlenWhiteWell, something less useless: What happens if a formated block device expands? Think /dev/my-block-device formated as ext4 has expanded 1gb. Does it just work and the space is instantly usable or does stuff break?12:34
tomreynCarlenWhite: resizing block devices is not usually the same as resizing file systems, althought there are some utilities which will / can do this in just one go.12:39
CarlenWhiteThat's what I figured. I'm messing with zfs's zvols which gives you block devices and they can be resized, but I've been bubblewrapping the data by partitioning.12:42
ahasenackhm, snapper upstream: "Latest commit d610a3a  on Jul 25"12:46
ahasenacknot promising12:47
tomreyndoes it do ext4 by now?12:58
ahasenacktomreyn: they say this in the manpage: "Supported filesystems are btrfs and ext4 as well as snapshots of LVM logical12:59
ahasenack       volumes with thin-provisioning. Some filesystems might not be supported depending on your installation.12:59
ahasenack"12:59
tomreynthanks ahasenack, so i guess their faq is outdated: http://snapper.io/faq.html -> "Does snapper support ext4? - Yes, but only experimentally and you need a special kernel and e2fsprogs. For more information see the next4 project."13:00
ahasenackwell, don't know13:01
ahasenackext4 is not something I would think of when dealing with snapshots13:01
tomreynyou use xfs?13:01
RoyKlast I checked, xfs can't do snaps either13:02
tomreynor lvm with thin provisioning? i think i spotted you discuss LVM2 snapshots on 'normal' LVs vs thin provisioned LVs a while ago.13:02
RoyKnor anything else, except btrfs and zfs13:02
RoyKand lvm of course, but that's dead slow13:03
RoyKbtrfs is ok, for a while, but only just13:03
RoyKzfs just works13:03
tomreynRoyK: i think snapper isn't meant to control snapshotting for file systems which already support it but for doing it on file systems which dont do it natively.13:04
ahasenacktomreyn: zfs13:04
tomreyni see13:05
ahasenackbut I don't use snapper13:05
ahasenackI'm just fixing a bug there13:05
ahasenackit's failing to build in ubuntu13:05
tomreynoh, and probably on a current ubuntu release, which the travis ci builds wouldn't know about.13:07
tomreynhmm their travis ci builds run on 17.1013:08
ahasenackI submitted a patch13:09
ahasenackhttps://github.com/openSUSE/snapper/issues/42413:09
ahasenackno idea if someone is watching that, though13:09
ahasenackgiven the last commit was months ago13:09
tomreynhere it's Sep 3, which is less than 6 weeks since Jul 2513:21
RoyKtomreyn: seems it controls snapshotting for lvm and btrfs13:22
ahasenackcpaelzer: is the importer still catching up?13:29
cpaelzerahasenack: yep13:43
cpaelzerstill running13:43
cpaelzerlet me scroll up to get a feeling on the overall load13:43
cpaelzerI see this known issue passing by "User is suspended: ~python-modules-team'""13:44
cpaelzerahasenack: 59 done, there is no preview how much more will follow13:45
ahasenackok13:46
TvL2386never heard of snapper, but reading this: http://snapper.io/overview.html makes me very much interested13:50
TvL2386snapshots of ext4 filesystems????????13:50
TvL2386what are the caveats13:51
TvL2386snapshot ; apt-get update && apt-get dist-upgrade -y ; and rollback if it failed????????????13:51
RoyKTvL2386: sounds strange - ext4 doesn't have any support for snaps13:52
TvL2386RoyK: yeah I totally agree. I'm really curious how they have implemented it13:52
TvL2386gonna check the source13:52
RoyKTvL2386: I guess lvm snaps13:57
RoyKand some hooks in ext4 to sync before the snapshot is taken13:57
ahasenackopenvpn is such a pain to setup :/14:21
cpaelzerahasenack: yep14:23
cpaelzerI'll optimize the steps a bit14:23
ahasenackcpaelzer: have you seen this? https://github.com/FiloSottile/mkcert14:23
ahasenacklooks easier than easy-rsa14:23
cpaelzerI tought I have read about it, but find nothing in my history14:25
cpaelzermaybe the name is similar to something else I touched14:25
tomreynwireguard to the rescue!14:35
cpaelzerahasenack: given what flies by in the log there are plenty of packages that are prevented to import by that 410 error of the deleted team14:41
ahasenack:/14:41
ahasenackand the fix is to just ignore that error14:41
ahasenackcpaelzer: I'm fetching pkg every 5min or so, still no update for snapper14:43
ahasenackthe backlog must be big14:43
cpaelzeryep14:43
cpaelzerit has all of the "rush into cosmic" phase14:43
cpaelzeryou might remember the discussion when I asked if rbasak usually keeps the log open to check14:44
cpaelzerand the answer was no so I did the same14:44
cpaelzerit seems two days after it failed hard enough to stop14:44
cpaelzerthere are import fails (fine) but the bad ones are those which kill the watch/loop to import14:44
ahasenackthis definitely has to change14:45
ahasenacknot you looking at it daily, no :)14:45
cpaelzeryeah, including a trivial status page14:45
ahasenackit should become a real service14:45
ahasenackas we depend on it14:45
cpaelzerlike published on LP on colum #1, imports on column #2 with status14:45
ahasenackcpaelzer: hm, snapper is not in the whitelist, it won't get (re)imported automatically14:57
ahasenackcpaelzer: can you run it on the side?14:57
cpaelzerheh14:58
cpaelzeryeah14:58
ahasenackcpaelzer: got it updated, thanks15:07
cpaelzeryw15:12
cpaelzerahasenack: I was still wondering why it touched so much15:12
cpaelzerI saw like 20 versions import15:13
cpaelzerbut I'd have expected only 1 new15:13
cpaelzerahasenack: when you fetched that did it mark all branches as forced-update?15:13
ahasenackno15:13
cpaelzerdue to any import accident?15:13
cpaelzerhmm15:13
cpaelzermaybe it has to pass all old upload always15:14
ahasenackcpaelzer: this was the output: https://pastebin.ubuntu.com/p/35SqT62v3S/15:14
cpaelzerI remember nacc takling about noting somewhere where to pick up next time to speed things up15:14
ahasenackit was manually imported for the first time last week15:14
cpaelzercould be related15:14
ahasenackit's in universe, so we didn't have it yet15:14
cpaelzerbut last week to this week should not be that much IMHO ahasenack: http://paste.ubuntu.com/p/scfMKBbw7k/15:15
ahasenackno clue15:15
cpaelzerI'd expect like 1x fetch what it already has - then jumping to the only new one from the publish history15:15
cpaelzerI did not run --no-fetch on this15:15
cpaelzerahasenack: if you added a topic to the sprint you might add this pastebin as well15:16
ahasenackI can, sure15:16
mybalzitchfresh install of 18.04, apparently I'm using netplan. I have to log in and sudo netplan apply for my network to work after a reboot, what am I doing wrong15:21
tomreynmybalzitch: does syslog tell?15:36
mybalzitchhttps://askubuntu.com/questions/1019146/netplan-does-not-apply-at-startup I think its that15:36
mybalzitchand the systemd-networkd logs stop after it renames the interface15:36
tomreyndid you install 18.04.0 or 18.04.1?15:36
mybalzitch18.04.0115:37
tomreyndo you have multiple NICs then?15:39
mybalzitchhttps://0bin.net/paste/h37PDNKKR3DoTGGM#mdk6bzkx9WjCGGmAVj7U4d1WJnxC9iRyuDa4NuTez7i15:39
mybalzitchno, just the one virtio device15:40
mybalzitchbut I use vlans15:40
tomreynmybalzitch: hmm, i'd say file a bug, using "ubuntu-bug systemd"15:42
tomreynmybalzitch: just to make sure: you had run 'netplan apply' after changing the netplan configuration and before rebooting, right?15:43
mybalzitchyou mean netplan generate ?15:56
mybalzitcheither way, yes I've run netplan apply, that's the only way to get the network working16:25
tomreynmybalzitch: i was asking whether you ran "netplan apply" (or "netplan generate") before you rebooted, to ensure the systemd-networkd configuration is updated for next reboot. since if it wasn't, i would think the previous configuration would have applied by the time you rebooted.19:10
soundconjurerGreetings all, if any of you have firewall/router experience and would like t help me out. I've placed my issue here: https://pastebin.com/Z5mRQSjQ19:18
GargoyleHey there. Given that I have a service running as someuser, what is the proper way to have that service take on the same environment parameters as if you were logged in interactively? I have a work around by using Environment="PATH=foo:bar:baz". But that means I would have to change every custom unit file whenever something is added to the users env (or even when just one env value changes).19:54
supercoolHello guys!20:45
supercoolI am looking for a error log from mysql on ubuntu server which should be present at /var/log/mysql/error.log but the file is clear. So I wonder where is the general log file from ubuntu server please?20:46
tomreynsupercool: it might change by ubuntu release and based on the mysql server variant you're using, but i would indeed expect to see it in this directory (the file might also be called 'mysql-error.log', though)20:50
tomreynsupercool: if mysql fails to startup properly then logging to /var/log wont be possible and it will instead log to its data directory, so (by default) to /var/lib/mysql/(data/)20:51
supercoolThank you tomreyn !23:00
supercoolCould someone help me figure why mysql-server is not starting here please?23:56
Citralpaste your error23:58
supercoolERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)23:58
ahasenacksupercool: did you find the mysql error log?23:59
ahasenackthat line above just means mysql is not running23:59
supercoolahasenack: not really. I fould some logs but nothing helpped.23:59

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