/srv/irclogs.ubuntu.com/2018/08/13/#ubuntu-server.txt

=== minipini is now known as Guest21692
cpaelzergood morning04:45
lordievaderGood morning06:14
cpaelzerhi lordievader06:21
lordievaderHey cpaelzer, how are you doing?06:22
cpaelzergreat, I hope you as well?06:22
lordievaderYes, doing good :)06:22
boritekhello. why is it not possible to istall Ubuntu Server 18.04.1 in Virtualbox?06:38
cpaelzerboritek: it should work, what exactly is breaking for you?06:40
boritekwell i have tried a simpler method now, it seems to work if installing it via virtualbox cdrom06:46
boritekit does not work though via network pxe booting06:46
boritekand pxe booting is also broken on its own, but I was able to make it boot via some APPEND kernel parameter06:46
lordievaderDoes it kernel panic or something with PXE?07:24
=== gildarts_ is now known as Guest44832
CheckmateXHi can i add message to a blocked ip on .htaccess file ?11:21
ahasenackCheckmateX: I don't know, sorry11:26
blackflowCheckmateX: what do you mean "add message"?11:27
CheckmateXSpecified message like go away and not forbidden html message11:28
blackflowwell you can have a custom 403 page, yes, see "ErrorDocument" directive11:28
blackflownot sure if you can vary them per IP. You could with nginx, but I don't know if apache has the ability11:29
blackflowunless you use PHP for the 403 page and do the IP-based magick there11:29
CheckmateXblackflow echo will not work ?11:31
CheckmateXOrder Deny,Allow11:32
CheckmateX echo '<h1> blocked </h1>'11:32
blackflowfrom .htaccess? no11:33
CheckmateXyes11:34
CheckmateXnot work echo with me11:34
blackflowso why don't you use a custom 403 page?11:34
CheckmateXbecause i want it easy just echo message from htaccess11:35
blackflowCheckmateX: you'll have to write a module for that then.11:35
CheckmateXblackflow ok i will try the 403 way11:38
CheckmateXblackflow should i add the path of the file or not .?11:40
CheckmateXErrorDocument 403 /var/www/html/test.php11:40
blackflowCheckmateX: you know what? your echo question got me looking into whether there already are modules and it appears you can actaully specify a custom message with ErrorDocument itself.     ErrorDocument 403 "Go away, or something!"11:42
blackflowotherwise the path is an URL that's processed as such.11:42
CheckmateXblackflow i've added the option but not working !!11:43
blackflowCheckmateX: not sure what you've added, but you can consult the documentation, see what you did wrong:  https://httpd.apache.org/docs/2.4/mod/core.html#errordocument11:46
CheckmateXblackflow12:24
CheckmateXi've blocked the ip but its still on the var/logs12:25
CheckmateXi still received high request on the logs from that ip12:26
CheckmateXnow i need to stop logs from that ip :/12:29
lordievaderYou've blocked the ip? How? Apache's 403 is not a block.12:29
lordievaderTo block connection from that source you need to instruct your firewall to drop or reject the traffic from there.12:30
CheckmateXlordievader you mean the option i do if htaccess deny ip not working ?12:36
lordievaderYes. That denies them to see the actual content (which could lower cpu load, not having to run php code for example), but apache still serves them something (the 403 page).12:37
blackflowCheckmateX: if you have high traffic from an IP and block it anyway with deny from, then yes dropping the traffic at the firewall level is your best choice, but then they won't see your message12:37
blackflowCheckmateX: or put nginx in front of apache12:37
CheckmateXlordievader you're right i checked the ufw status  Status: inactive12:37
CheckmateXhow thats possible inactive!!12:38
CheckmateXanything wrong ?12:38
blackflowsounds like you didn't configure it. it's not enabled by default, it can't read your mind.12:39
CheckmateXblackflow i've enable it right now its ok but i can see the logs from that ip12:41
blackflowCheckmateX: then you didn't configure it12:42
CheckmateXits already configured i just enable it right now12:44
CheckmateXstatus [ 1] Anywhere                   DENY IN12:44
CheckmateXits say the ip denyed and i still receive var/logs12:44
blackflowCheckmateX: I'm guessing because it's allowing established and related flows. it should deny new connections from that IP12:45
CheckmateXive denyed all connection sudo ufw deny from12:45
CheckmateXi'm using cloudflare by the way12:45
blackflowCheckmateX: then it won't work as you think it would. if you use CF then the src IP is cloudeflare's12:47
CheckmateXblackflow yeah cloudflare was blocked that ip i cannot see any logs now12:49
rbasakahasenack: opinion on bug 1770532 please?12:56
ubottubug 1770532 in amavisd-new (Ubuntu) "DKIM signing not working in bionic" [High,Confirmed] https://launchpad.net/bugs/177053212:56
rbasakLooks like Debian haven't patched either, but I haven't looked thoroughly12:56
ahasenackI don't know how this works, I was hoping upstream would do something12:57
ahasenackcan we use the mailing list thread as basis to accept the change?12:58
rbasakYes. We don't need upstream acknowledgement. We strongly prefer to, but it's not a hard requirement.12:58
rbasakBut patching ourselves alone is a judgement call because then we're on the hook to maintain it.12:58
rbasakWhich can be difficult in the future if upstream does something that will cause us to change user behaviour if we drop our patch, for example.12:59
CheckmateXblackflow shit even with cloudflare i still see that ip on the firewall of cloudflare12:59
ahasenackrbasak: yes, I know nothing about DKIM and the perl code in amavisd-new12:59
blackflowCheckmateX: well then that's CF's problem, not Ubuntu, right? :)13:00
rbasakahasenack: yeah that's the hard part :-/13:00
ahasenackrbasak: maybe if #is uses it they could take a look? I doubt they use it, though13:00
ahasenackand it's in main :/13:00
blackflowwhat's amavis doing dkim signing anyway?13:01
ahasenackif upsream is gone, is that basis for demoting amavisd-new?13:01
ahasenackblackflow: maybe checking?13:01
ahasenackah no, it says signing13:01
rbasakIt's definitely a basis for questioning its continued presence in main.13:01
CheckmateXblaclflow it was blocked by i still see logs even with cloudflare13:01
sdezielahasenack: I use amavisd-new for both signing and checking13:02
blackflowCheckmateX: check which IP you're blocking. with CF in the equation, the src IP on the packets, and those logged by apache -- if you use cloudflare mod or something other trusting and logging x-forwarded-for -- will be different.13:02
sdezielahasenack: on Trusty though :(13:02
blackflowamavis upstream gone, that's not good. it's the only viable middleware for post-content filtering with different sub-daemons.13:03
ahasenacksdeziel: so you just need to upgrade to xenial, then bionic, and then tell us if the patch in the bug works? :)13:03
blackflows/post-content/post-queue/13:03
CheckmateXi think i will try the option of CF i'm under attack13:03
CheckmateXblackflow the problem on the logs cannot stop that ip on the logs keep saving13:04
rbasakahasenack: well, one of the reporters/patch authors has already told us that the patch works :)13:04
sdezielahasenack: will get there eventually but I wanted to confirm it does both signing and verifying13:04
blackflowCheckmateX: well like I said, with CF the IPs are different13:04
rbasaksdeziel: apparently it doesn't do DKIM signing :-P13:05
blackflowCheckmateX: so be sure to understand what is logged exactly and what you're blocking. Are you blocking CF or end user, and do you have x-forwarded-for or something other logged, rather than packet src IP.13:05
sdezielrbasak: that's a bad regression... renders amavisd-new almost useless for us13:09
CheckmateXyes i have a search.php page they use some POST codes to search fast13:09
CheckmateXi' think i will go with google captcha if they search fast 10 time request to enter the captcha13:10
CheckmateXdisturbing me13:10
rbasaksdeziel: it'd be great to get some of your help in fixing this in Bionic. I think part of the issue here is that most of us aren't familiar with amavisd-new in the detail we think we need :-/13:11
ahasenackrbasak: we could start with a debian bug13:12
rbasakahasenack: sure. But I'm reluctant to block on a reply since we've been handed an apparently working patch.13:12
ahasenackwe could accept it, but be more rigorous with the testing period13:13
ahasenackrequire two people to confirm it's working and has no regressions13:13
ahasenackthinking in terms of the sru13:13
CheckmateXblackflow i dont know what to do i want keep the search as easy way possible13:13
sdezielahasenack: I just added https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882324 to the bug13:13
ubottuDebian bug 882324 in amavisd-new "amavisd-new doesn't honor "originating" configuration flag, contrary to documentation" [Important,Open]13:13
ahasenacksdeziel: is that the same issue?13:13
ahasenackah13:14
sdezielyes13:14
ahasenackrbasak: fedora seems to be using it13:14
rbasakExactly the same patch?13:15
rbasakI was under the impression that there were three available :-/13:15
ahasenackdidn't check. There seem to be two versions13:15
CheckmateXblackflow untile now one option work with CF "i'm under attack" option13:17
rbasakrharper: may I have some help triaging bug 1761573 please? Is this the same issue or a new one?13:23
ubottubug 1761573 in cloud-initramfs-tools (Ubuntu) "Network not configured on bionic" [Undecided,Incomplete] https://launchpad.net/bugs/176157313:23
Ussathas the update path from 16.X --> 18.X been enabled ?13:41
=== ElinKattunge is now known as Helenah
ahasenackI think not, I had to use -d earlier today13:51
ahasenackUssat: ^13:51
boxrickAny reason this doesn't work? 'mount --bind /dev/null /tmp/null' ---- mount: mount point /tmp/null does not exist13:52
UssatOK, thanks13:54
UssatNot in a huge hurry, and I did use -d earlier last week and was fine13:54
ahasenackboxrick: /dev/null is not a directory. You can create another null in /tmp if you want, no need to bind mount it13:54
boxrickmknod isn't available in this case since its an unpriviledged container13:55
boxrickI was trying to find an alternative.13:55
ahasenackyou can try cp -a /dev/null /tmp13:55
ahasenackbut if /tmp doesn't allow devices, you will get a permission denied error13:55
sdezielboxrick: did you "touch /tmp/null" first?13:56
boxrickNope13:57
boxrickOh that was easy13:57
boxrickI thought I tried that before, clearly not13:58
boxrickThanks sdeziel14:00
sdezielnp14:00
ahasenackcpaelzer: have you seen this in ppc64el builds?14:03
ahasenackcc1plus: error: unrecognized command line option ‘-Wno-deprecated-register’ [-Werror]14:03
rharperrbasak: sure14:11
* ahasenack scratches head14:13
ahasenackubuntu@cosmic-squid4:~$ g++ hello.cpp -o hello -Wno-deprecated-register14:13
ahasenackubuntu@cosmic-squid4:~$ echo $?14:13
ahasenack014:13
ahasenackI guess I have to try on a real ppc64el14:13
cpaelzerahasenack: not seen yet14:17
cpaelzerahasenack: do you have access or should I try quickly?14:18
ahasenackI have14:18
cpaelzerok14:18
ahasenackit's super odd, previous lines in the build show that flag being used and working, then all of a sudden it fails. make -j is being used, but just -j4, and many many other g++ lines worked14:18
ahasenackwill know in a minute14:18
ahasenacktrying an actual build, since g++ in the command line worked just fine compiling a hello-world.cpp sample14:23
cpaelzerahasenack: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-4-06-compile-errors-on-Ubuntu-12-04-td4676098.html14:25
cpaelzerbut your compiler should be rather new14:25
ahasenackyeah :)14:25
ahasenackit's also a known issue in the faq, but for old compilers14:25
ahasenackand it built on all other arches, except ppc64el14:25
ahasenackhttps://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/3351/+packages14:26
ahasenackreproduced14:27
ahasenackwaaaat14:28
ahasenackI think the problem is something else, the message is just misleading14:29
cpaelzerahasenack: you reproduced it14:40
cpaelzerincluding the "working at first and then later breaking" ?14:41
ahasenackyes in the build14:41
ahasenackbut if I copy the command line, and run again, it works14:41
cpaelzercan you sneak in an env call14:41
cpaelzerso you see what is set for the compiler?14:41
ahasenackI think the real error trigger is a bit up in the logs, where it complains about a variable that may be used uninitialized14:41
ahasenackmaybe14:42
ahasenacktrying a build without the parallelism enabled now14:42
ahasenackbut it could really be just a different code path taken in the ppc64el arch, as I don't see what warning in the non-ppc builds14:42
ahasenacki'm talking about this one:14:42
ahasenackhttps://pastebin.ubuntu.com/p/HNC2Z2Yk9F/ <-- the tval warning that is being treated as an error14:43
ahasenackhttps://pastebin.ubuntu.com/p/JDVw8zFt6T/ I can probably fix that by just initializing tval with NULL, as parseTimeLine(&tval,...) stores a value there anyway14:46
ahasenackcpaelzer: rbasak: man17:03
ahasenack-O2/-O3 is the difference17:03
ahasenackhttps://gist.github.com/panlinux/4716e167c2e06612b28be4b9f8f2b52b just adding -O3 or -O2 at the end of that command line, which overrides any previous -On17:04
ahasenackfirst one, with -O2, worked17:04
ahasenacksecond one, huge error17:04
ahasenack-O3 seems to be enabling some -W options17:05
ahasenackthe manpage doesn't mention that next to -O317:05
hallynstgraber: is landscape suppsoed to be integrated with snappy?17:22
stgraberhallyn: I don't believe there's any snap support in Landscape at this point, some kind of integration between Landscape and the snap enterprise proxy would be nice though17:23
hallynwtf is "the snap enterprise proxy" :)17:24
hallynforget i asked :)17:24
hallynthanks.  so you'd recommend that casual users of landscape slowly migrate back to unattended-upgrades or ansible or something?17:24
stgraberLandscape is still good to manage your debs, apply updates, ... with snaps it doesn't get quite that much control and unless you're running an enterprise proxy, nothing really has that much control17:28
stgraberI suppose it could at least support installing and removing snaps, not sure if that's on the roadmap at this point17:28
stgraberdpb1 might know (I'd have pinged simpoir but he's not in this channel)17:28
dpb1hallyn: snappy integration will be coming in landscape but is still just in the planning stages, nothing official to announce.17:35
hallyndpb1: "coming" as in "perhaps during 2018", or coming as in "we'll put it in plan one day for sure" ?17:36
hallynfwiw the only reason i care about snaps is for lxd :)17:36
hallynand i don't really want bleeding edge there usually so no urgency even there.  i'm just curious.17:36
=== ashleyd is now known as ashd
dpb1hallyn: 'tracks' are really the thing you have there, which stgraber knows about.17:39
dpb1hallyn: and.  the enterprise snap proxy, but it's a commercial offering (as will be the landscape thing).17:39
dpb1tl;dr: fine-grained control of update frequency and pinning to specific revision numbers is an enterprise feature.17:39
dpb1hallyn: as for when it will be coming in landscape -- I don't know.17:40
hallynthanks dpb1 :)17:42
DelvienNot sure if this is the right place to ask this... Im running xfs formating on an NVME drive, and when I do an xfs_repair /dev/nvme1n1 I get "Phase 1 - find and verify superblock...18:03
Delvienbad primary superblock - bad magic number !!!18:03
tomreynand your question about this is?18:05
DelvienHow to fix it? Or tell if the drive is bad?18:06
ahasenackDelvien: shouldn't the device be something like /dev/nvme1n1p1?18:06
ahasenackwith a "pN" at the end, indicating the partition?18:06
ahasenackDelvien: for example, this is what I have: https://pastebin.ubuntu.com/p/Wy5rbpysHm/18:07
DelvienI have two nvme on board with this mobo18:08
ahasenackso?18:08
Delvienso thats what they were assigned as.18:08
ahasenacknvme0 and nvme118:08
ahasenackn1 is the namespace18:08
ahasenackand p1 is first partition18:08
ahasenackand so on18:08
ahasenacknvme1n1 is the equivalent of a "full disk", like sda18:09
ahasenacknvme1n1p1 would be sda1 in this example18:09
ahasenackand so on18:09
Delvienalright, so18:11
Delvienxfs_repair /dev/nvme1n1p1  spits out the same thing.18:11
ahasenackdid you format /dev/nvme1n1p1?18:11
Delvienyes18:11
ahasenackyou have to use the same name for format and verification18:11
RoyKDelvien: pastebin output of lsblk, please18:12
sarnoldis there a reason why you have seven partitions on tht devcie?18:14
ahasenackme?18:14
sarnoldahasenack: oh :) hah18:15
DelvienSeems formatting a 6th time did the trick.. Holy craperoni18:15
sarnoldahasenack: actualy now I am kind of curious :) what do you do with seven partitions on an nvme? :)18:16
ahasenackwindows is still there, then I have /boot, /boot/efi, swap and one for linux (crypt)18:16
sarnoldaha!18:16
sarnoldI've got slog on one partition and l2arc on a second partition, and even that feels a bit silly (I should probably just remove the slog, I don't think it ever gets any use)18:17
ahasenackI did an experiment in another laptop and there I can actually have /boot encrypted (no uefi boot there)18:17
ahasenackbut grub takes about 30s to unlock the luks key18:17
ahasenackoh, and /boot is on zfs as well18:17
ahasenackI didn't want to try that on this laptop just yet. That one is my testbed18:18
ahasenackthis one isn't :)18:18
sarnoldooh /boot on zfs?18:18
sarnoldnice18:18
sarnoldI'm too lazy to even try18:18
ahasenackit spews out some warnings about unknown compression algorithms and such, but works in the end18:18
=== tomreyn_ is now known as tomreyn
=== xMopx- is now known as xMopx
tomreynteward: i'm a happy user of your ZNC PPA. is there a chance you'll do new builds to handle the CVEs discussed in https://wiki.znc.in/ChangeLog/1.7.1 - or do you have no motivating factor there on your own currently?19:38
=== geofft_ is now known as geofft
tomreynsorry, i didnt realize you have a bug tracker for those. :)19:51
jonfatinoanyone know how to launch ubuntu installer over ssh (in a livecd)21:03
jonfatinolike setup or install.bla   with kickstart.conf21:03
jonfatinoand no I don't want to netboot and pass kernel parms.21:03
tomreynjonfatino: i haven't done it for a long time, but you should be able to start the alterantive server installer , wait until it's booted to the installer, then press escape and find an option for ssh there.21:06
tomreynthere may also be a kernel option for this you can pass. the only way to fully automate bringing up the ssh server would be with a preseed file or netboot, i guess.21:07
tomreynalso please dont cross post21:08
arooniso my ssh user doesnt always have access to ls directories like /etc/letsencrypt/live ;; how can i do a one off ls in this case23:04
sarnoldif you can't execute ls for some reason but you do have a shell, you can use 'echo *' kind of thing to see files and directories, if the read and execute permissions on the directory allow you23:07
sarnoldtry echo /etc/letsencrypt/live/*23:07

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