/srv/irclogs.ubuntu.com/2015/10/21/#ubuntu-server.txt

=== Lcawte is now known as Lcawte|Away
=== markthomas is now known as markthomas|away
=== cpaelzer_ is now known as cpaelzer
lordievaderGood morning07:46
=== Lcawte|Away is now known as Lcawte
sliddisIf I change an option in a DHCP-server (eg dns server), and a client has a lease. After half the lease-time the client will ask if it still can use it's address, right? Would the client also apply the new DNS servers from DHCP at the same time? Or does the client have to release and renew completely to receive the new DNS?08:48
rbasakI think the renewal will cause it to pick up the new DNS servers (through DHCP options present in the renewed lease) but I'm not absolutely sure.08:50
rbasakThe client doesn't *have* to renew at half the lease time. Technically it could wait all the way to the end.08:50
bekkssliddis: No, it just asks wether the lease is still valid.08:51
bekkssliddis: For applying new options, you need to request a new IP address.08:51
sliddisbekks: are you sure? If the client asks if the lease is valid, the server never sends options?09:03
bekksI am pretty sure of it, yes.09:03
rbasakIn that case a smart DHCP server should refuse the renewal and force the client to take an entirely new lease.09:04
rbasakNo idea whether that happens or not though,.09:04
sliddisIt seems though like the clients have recieved the new dns server. I dont get any firewall hits on the old dns server. Although not verified.09:06
sliddisI am using a mikrotik routerOS as dns-server09:06
sliddisI am using a mikrotik routerOS as dhcp-server*09:06
sliddisnot dns -_-09:07
chRi____Hi all! That's my first activity here so please be kind ;)11:08
chRi____I'm normaly doing webdevelopment, but since a lot of my colleagues don't bother, I also administer most of the webservers and I'm loving the out-of-the-box configuration that ubuntus vanilla lamp-stack offers...11:08
chRi____But now I have a strange problem:11:08
chRi____I installed a Ubuntu Server 14.04.3 LTS as a virtual machine inside a KVM/libvirt infrastructure.11:08
chRi____My Images are qcow2 and I enabled LVM for my ext4 fs.11:08
chRi____Strange thing and I'm not sure if it is really Ubuntu related, you guys have to decide:11:08
chRi____I (re-)installed a php application via composer several times and had the strange result, that all the executable bits where removed from scripts that need to be run right after the php-apps installation. What might be the problem?11:08
chRi____The git-repo that gets cloned via a packagist-link, has the executable bits, but the decompressed files don't... Any Ideas?11:08
chRi____I'm able to run other scripts, so at least I assume, there is no "noexec" mount flag set or so...11:08
chRi____I would be really glad if someone could help or has also experienced such behaviour in the past!11:08
chRi____Best Regards,11:08
chRi____Christian11:08
bekksgit doesnt keep track of executable permissions, since thats irrelevant for a RCS.11:13
rbasakYes it does.11:15
rbasak$ git diff11:15
rbasakdiff --git a/foo b/foo11:15
rbasakold mode 10064411:15
rbasaknew mode 10075511:15
rbasakIt's only the executable bit mind. I had actually set foo to 0700 in that example.11:16
bekksThen how does it handle permissions for two different client OS?11:16
rbasakNo idea. All I'm saying is that it does track the executable bit (but not whether it's assigned to user, group or other - it seems to just be one bit)11:16
bekksah ok.11:17
chRi____@rbasak: that's what I also exprienced until yesterday11:17
chRi____excutable bit was still there11:18
rbasakchRi____: I don't know what composer is.11:18
rbasakchRi____: but your problem lies in the area of how you deploy it11:18
chRi____its a package manager for php11:18
rbasakYou are welcome to try here but you might find more people are likely to know the answer in a PHP related channel or something.11:19
rbasakIt doesn't sound like your problem is Ubuntu-specific.11:19
chRi____You maybe right... But I'm asking here, because I have an Arch Workstation at home and the the same composer-based installation leaves the executable bits intact11:28
chRi____And I can't remember that I had this problem before, when I used 14.04.1 LTS or so...11:29
rbasakThere could be a bug in Ubuntu then, or a bug in composer in how it handles an Ubuntu system.11:35
rbasakSomebody who knows composer will need to pin it down.11:36
rbasakIs composer packaged in Ubuntu or are you installing it from an external source?11:36
chRi____since it really is just an php application archive it's installed via curl and you can than install it "globally" by simlinking the composer.phar11:40
chRi____I will try to get in  touch with the composer-minds!11:40
chRi____thanks!11:40
alximychhi! I intstalled fail2ban and each time I start the service I receive an email notification that fail2ban was started. I have already tried to create a senamail.local, mail.local, sendmail-common.local, etc. files and override actionstart = (nothing), but I still get notifications. How do I disable service started/stopped mail notifications?12:48
smo80hi12:50
smo80i have a new fujitsu primergy tx 1330 m1 server... with damn hardware raid controller.... first i made a software thru ubuntu installer, no problems but when i reboot i don t have anything to choose in the bios to boot on, so i created a raid array thru the raid controller interface on boot... it add an raid arrray"12:52
smo80option to the bios12:52
smo80but once i return to ubuntu installer i can t make the partitions as i want... i m trying lvm, i can create my group and logical volumes but don t know what to choose at the grub-install , /dev/????12:53
smo80i tried /dev/sda, /dev/mapper/md126 and others it always fail12:54
alximych*solved my issue by creating 9 .local files...13:00
=== Lcawte is now known as Lcawte|Away
pmatulismorning13:06
smoserhey. an someone who has a "fresh"-ish ubuntu run 'echo $TERM' from a gnome-terminal ?13:27
smoseri'm pretty sure i've not touched that, but one can never be sure.13:27
rbasaksmoser: xterm on gnome-terminal on a system that booted Vivid but is actually now running Wily (not rebooted yet).14:06
rbasakThough it's not really a fresh machine. Upgraded for many years. I don't recall ever touching terminal stuff though.14:07
smoserand ?14:07
rbasak"xterm"14:07
=== jgrimm is now known as jgrimm-brb
fishcookeri have 2 dns cache, 1 server take so long to resolve yahoo.co.uk, but the another one take short time to resolve, how to inspect the case?14:23
=== jgrimm-brb is now known as jgrimm
soc42hi15:48
soc42i want to configure xdebug settings on ubuntu 12.04, but can't find the right .ini file to change these settings15:48
=== Lcawte|Away is now known as Lcawte
soc42the .ini-files i found only containt the path to the xdebug.so module, but no xdebug config options... ?15:49
=== markthomas|away is now known as markthomas
soc42as i am doing a $> php -i the current xdebug settings appear, but where the heck are they set?15:52
soc42i checked all files, which appear for $> php --ini15:52
Odd_Blokesmoser: Argh, just upgraded to wily and now I'm hitting https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/146307215:55
ubottuLaunchpad bug 1463072 in gnome-terminal (Ubuntu) "highlighting on left mouse double click ends at :" [Medium,Invalid]15:55
smoser:)15:56
Odd_Blokesmoser: I'd be tempted to say that we should be doing something to make this less painful for our users.15:56
Odd_BlokeThough as I am one of those users, I am somewhat biased. :p15:56
Odd_BlokeIn fact, I might just stop using gnome-terminal.16:00
rbasakhallyn_: need any help with bug 1490110?16:08
ubottubug 1490110 in lxc (Ubuntu) "package lxc 1.1.3-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100" [Medium,Confirmed] https://launchpad.net/bugs/149011016:08
hallyn_rbasak: yes i do.  got any idea what's going on there?16:13
rbasakhallyn_: no idea, I've not looked apart from confirming the reproducer. I can start digging though I only have 45 minutes left today. I can carry on looking tomorrow.16:14
arrrghhhHey all.  Still having issues with syslog, kern.log, auth.log etc being completely empty and untouched files.  I found a bug which looks like it's related, but the 'fix' didn't work for me.  https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/105985416:14
ubottuLaunchpad bug 940030 in rsyslog (Ubuntu) "duplicate for #1059854 rsyslog stops working after logrotate until restarted" [Critical,Confirmed]16:14
OverandIs there any reason I should or shouldn't use ext2/3/4 for /boot?16:15
Overand(Do we need /boot anymore? I'm looking at using LVM, so, mayube?)16:15
jpdsOverand: No, grub can do LVM16:16
OverandAlso, thoughts on using XFS vs EXT4?  This is 14.0416:16
jpdsOverand: You only need a /boot when you do encrypted /16:16
jpdsOverand: XFS is useful for lots of small files I think16:16
Overand75% of my systems are 14.04 with ext4, ~5% are 12.04, and ~15% are CentOS 7 with XFS16:16
hallyn_rbasak: it kinda rings a bell of when i converted libvirtd to systemd,16:16
jpdsOverand: For /boot, you could probably just do ext416:16
Overand(I more meant xfs for / or /var maybe, but I don't really care one wya or another)16:17
hallyn_so system was systemd, but no systme job so sysvinit job was running.  on upgrade, systemd lost track of the sysvinit job.16:17
hallyn_but, that cant be the case really...16:17
OverandJust building out a new template, wondering what the best-practices are these days.  Defaults on Ubuntu have been EXT4 so I've been using EXT4, likewise XFS on CentOS 716:17
RoyKjpds: XFS historically was rather bad on lots of small files, but I think most of that has been fixed now16:18
OverandI'll probably stick with ext4, but I suppose I'll want to enable xattrs unless there's some raeson not to16:18
RoyKjpds: Apart from that, the only reason I'd recommend ext4 over xfs is if you ever would want to shrink the filesystem16:18
RoyKOverand: I don't know any reason not to use xattr - it's been stable for years16:19
RoyKthe main reason redhat switched to XFS was for big-ish data - ext4 isn't very good on large filesystems when you have to do an fsck16:20
OverandThese will probably just be fairly bog-standard LAMP servers usually16:20
RoyKI had to fsck a 9TiB fs some weeks back, and it took ~8 hours16:20
OverandAt least so it seems based on our trajectory16:20
OverandRoyK: Yeah, I ahve a fairly large ext4 volume at home.  RAID 6 setup with 5 2TB SATA disks16:21
Overandlike 85% of the array is sliced up as raid 6, actually, the rest is RAID 10 and raid 116:21
* Overand really wishes everyone ever involved in ZFS could get into a room and sign a licensing change16:21
jpdsOverand: Probably easier to use btrfs16:22
RoyKOverand: hehe - you can use zfsonlinux, though16:22
RoyKjpds: really?16:22
RoyKjpds: last I checked, raid[56] on btrfs was still experimentally16:23
jpdsRoyK: I read these days that it performs better than zfs16:23
jpdsRoyK: Yeah, the raid[56] part is the only flaky bit16:23
RoyKI'm not sure16:23
jpdshttp://www.diva-portal.org/smash/get/diva2:822493/FULLTEXT01.pdf16:25
arrrghhhalthough bug 1059854 doesn't really match up with my issue... rebooting the server/rsyslog service I still do not get any logging...16:25
ubottubug 940030 in rsyslog (Ubuntu) "duplicate for #1059854 rsyslog stops working after logrotate until restarted" [Critical,Confirmed] https://launchpad.net/bugs/94003016:25
Overandthe raid5/6 part is the paort i want16:27
Overandwell, raid 6/716:27
Overand(coupled with the checksumming features and such)16:27
Overandgod there are so many friggin' filesystems out there16:28
quantic"raid 7" interesting.16:29
Overandhttps://en.wikipedia.org/wiki/List_of_file_systems#Disk_file_systems16:29
Overandquantic: raid 6 isn't going to be that useful for long16:29
Overandthey need to start naming them differently though16:29
Overandit should be raid 6+1 or somesuch16:29
Overandhttp://www.zdnet.com/article/why-raid-6-stops-working-in-2019/16:30
quanticyeah, raid 7 doesn't actually exist.16:30
quanticExcept for one proprietary thing from one company.16:31
jpdsRAID10 is what seems to be suggested these days16:31
quanticRAID10 for active data, RAID6 for archive data.16:31
quanticRAID6 can be used for active data if it's bulk, non-write-heavy data like a fileserver.16:33
quanticBut if you want to know what pain is, run a database server off of RAID6. :P16:33
RoyKjpds: depending on use16:34
RoyKquantic: depends on the database - a typical LAMP server's database can reside happily on r616:35
RoyKquantic: it all depends on how much iops you need16:37
quanticRoyK: I think that that's kinda obvious... or I wouldn't have mentioned write-heaviness as a decision point.16:39
RoyKquantic: most people don't databases that demanding16:42
quanticRoyK: That's true. Sorry, I'm used to high-demand databases. Enterprise environments and that.16:43
RoyKquantic: I'm managing some database servers at work (college with 25k students and 2k employees) and we don't have much that requires r10, even if we use it for them16:44
quanticRoyK: By high-demand I mean write-heavy as HELL.16:44
quanticRoyK: What's the read-write load of your database? Just curious.16:44
RoyKquantic: I haven't really checked - sar -b reports 10:1 write/read on the postgres thing, and something 3:1 write/read on the mysql thing16:48
RoyKwait - that's bytes16:48
RoyKa lot more writes according to sar's tps data16:48
qman__I've been using ZFS on Linux for over a year now, there were some bumps in the beginning but it's been pretty stable since16:53
qman__And those bumps were stuff like manually adding a boot wait so it'd assemble properly16:54
RoyKqman__: tbh, I haven't seen any issues at all after my PSU was replaced with something big enough to handle all the drives :)16:54
qman__And tweaking the arc size16:54
arrrghhhso... any ideas on my logging issue?  nothing is getting to syslog, auth.log, kern.log... they are 0b files which haven't been touched in a while.16:55
RoyKarrrghhh: lsof -p `pidof rsyslogd`16:55
RoyKarrrghhh: perhaps it's not been properly reloaded after logs were rotated16:56
arrrghhhyea I found a bug which suggested changing 'reload' to 'restart'... but that didn't make a difference in my case16:56
RoyKarrrghhh: a killall -1 rsyslogd should make it reload its config, close its open files and reopen them16:56
arrrghhhwow that lsof command put out a lot.  let me redirect to a file16:57
RoyKpaste it to pastebinit ;)16:57
RoyKthat is16:57
arrrghhhoh.  9662: command not found16:57
arrrghhhlsof: status error on 9662: No such file or directory16:58
RoyKlsof -p `pidof rsyslogd` | pastebinit16:58
RoyKdid you forget -p ?16:58
arrrghhhderp I did -l16:58
arrrghhhwhat is wrong with me today...16:58
arrrghhhhttp://paste.ubuntu.com/12886930/16:59
arrrghhhw/sudo http://paste.ubuntu.com/12886934/16:59
arrrghhhhm.  doesn't seem to be interacting with any of the /var/log 'system' files.17:00
arrrghhhmythtv is logging properly tho, I can confirm that17:00
RoyKarrrghhh: did you do something interesting to the rsyslog config?17:01
arrrghhhRoyK, well I did make a change after I noticed the issue based on that bug 105985417:02
ubottubug 940030 in rsyslog (Ubuntu) "duplicate for #1059854 rsyslog stops working after logrotate until restarted" [Critical,Confirmed] https://launchpad.net/bugs/94003017:02
arrrghhhhm I didn't try this "create 640 syslog adm" to /etc/logrotate.d/rsyslog17:03
arrrghhhI swapped "reload" with "restart"... I think there was a different bug I was looking at yesterday17:03
RoyKarrrghhh: which version of ubuntu is this?17:03
arrrghhh14.0417:03
RoyKnever seen that issue...17:04
arrrghhhevidently I haven't looked at system logs in a while, it almost appears this has been an issue since the upgrade17:05
arrrghhhI went from 12.04 to 14.04 last summer17:05
RoyKarrrghhh: please pastebin /etc/rsyslog.conf and the files under /etc/rsyslog.d17:06
arrrghhhhttp://paste.ubuntu.com/12886986/17:06
marka13Does anyone know if Landscape/Autopilot have their own channel?17:06
arrrghhhhttp://paste.ubuntu.com/12886992/17:07
arrrghhhhttp://paste.ubuntu.com/12886994/17:08
arrrghhhhttp://paste.ubuntu.com/12886996/17:08
arrrghhhhttp://paste.ubuntu.com/12886998/17:08
RoyKarrrghhh: try to stop rsyslogd and start it manually with -d17:10
arrrghhhhm stopping the service and the process is still running... kill -9 tiem17:11
arrrghhhmarka13, I just searched, there is #ubuntu-autopilot17:11
arrrghhhRoyK, http://paste.ubuntu.com/12887022/17:12
RoyKarrrghhh: check lsof again17:13
arrrghhhhm looks about the same...17:15
arrrghhhhttp://paste.ubuntu.com/12887042/17:15
RoyKcan you try to move the mythtv file aside and restart rsyslogd?17:15
arrrghhhinteresting that rsyslog is still running but it stopped putting text into the terminal...17:15
arrrghhhRoyK, so mv /var/log/mythtv/mythbackend.log 'somewhere else'?17:16
RoyKarrrghhh: /root or something17:17
RoyKerm17:17
RoyKno17:17
RoyKnot the log17:17
arrrghhh/tmp?17:17
RoyKthe one in /etc/rsyslog.d/17:17
arrrghhhoh 10-417:17
RoyKarrrghhh: don't use /tmp, some distros wipe that from time to time or even use tmpfs, so never store anything valueable there17:17
arrrghhhalright put it in ~17:18
RoyK(which probably is /root)17:18
RoyKmake sure the process is dead before you try to start things again17:18
arrrghhhhttp://paste.ubuntu.com/12887066/ startup17:19
arrrghhhyea I kill -9'd it17:19
arrrghhhlsof http://paste.ubuntu.com/12887068/17:19
RoyKrun 'logger "what's happening to my system???"'17:19
arrrghhhsyslog is still 0b17:20
arrrghhhI assume that should insert to syslog?17:20
RoyKit should indeed17:20
RoyKOct 21 19:20:46 roysk roysk: what's happening to my system???17:20
arrrghhhya empty... looking at perms, is this correct?17:21
arrrghhh-rw-r-----  1 root      adm       0 Aug  8  2014 syslog17:21
arrrghhhshouldn't it be syslog adm?17:21
RoyKit's root:adm here17:21
arrrghhhhm.  File hasn't been touched since 8/2014 :/17:21
RoyKremove the log files and try to restart rsyslogd again17:22
arrrghhhk17:22
RoyK(or move them away)17:23
arrrghhhyay lsof shows it's accessing them17:24
RoyKperhaps time for a little fsck ;)17:24
arrrghhhand it appears to have a non-zero size17:24
arrrghhhehm17:24
arrrghhhit shows syslog:adm now... probably because of that change I made17:24
arrrghhh-rw-r-----  1 syslog    adm     397 Oct 21 11:23 syslog17:24
arrrghhhOct 21 11:23:28 nas rsyslogd-2039: Could no open output pipe '/dev/xconsole': No such file or directory [try http://www.rsyslog.com/e/2039 ]17:25
arrrghhhthat may be an issue....17:25
arrrghhhbut auth.log is working, kern.log17:26
arrrghhhwhat else did I delete other than syslog17:26
arrrghhhwell those are the main ones I care about.  odd issue... thanks RoyK !17:26
RoyKarrrghhh: I suspect an old logrotate config may change the user to root after its run17:27
arrrghhhhttps://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/940030 << per that bug I changed /etc/logrotate.d/rsyslog17:28
ubottuLaunchpad bug 940030 in rsyslog (Ubuntu) "rsyslog stops working after logrotate until restarted" [Critical,Confirmed]17:28
arrrghhhI added create 640 syslog adm17:28
RoyKarrrghhh: ok17:28
RoyKarrrghhh: at least now you know where the error was - if it happens again, please call17:28
arrrghhh:) thanks!!!17:29
RoyKnp :)17:29
=== inaddy is now known as tinoco
marka13does landscape/autopilot have their own channel?17:48
arrrghhhmarka13, I just searched, there is #ubuntu-autopilot17:49
arrrghhh(fyi I said that almost an hour ago :P)17:49
marka13sorry didn't see it17:50
arrrghhhnp, I did ping you hoping you would17:50
arrrghhhit was mixed in with my troubleshooting mess17:50
marka13ya saw that17:50
marka13and I've been in TS hell myself  ;-)17:50
=== funkyHat_ is now known as funkyHat
atralheaven_Hello, I need someone outside of china, to test my openvpn connection. I can't connect to it I want to know if it is because of country firewalling19:51
rbasakI'd ask someone you know personally! Do you really want some stranger connecting to your VPN? Similarly, I don't want to connect to some stranger's VPN, as a malicious one could do weird things to my system.19:52
jpdsatralheaven_: You know that the great firewall doesn't block SSH at all?19:54
atralheaven_rbasak: I just want to see if it connects, and the ip is right, you don't need to browse with it! and I will revoke the certs so its not a problem19:55
atralheaven_jpds: Im using it now, but I need openvpn, it was working.... now it doesn't19:55
jpdsatralheaven_: Why do you need openvpn when you have working ssh?19:56
atralheaven_jpds: openvpn is faster and works easily everywhere.19:56
atralheaven_may just someone help me to test it :(19:56
atralheaven_is it something risky?20:06
rbasakatralheaven_: an OpenVPN server can send arbitrary routes that the client will put into its routing table, for a start.20:08
rbasakIt might be possible to disable that at the client end, but I wouldn't recommend that anyone connect to an untrusted OpenVPN server for security reasons.20:09
atralheaven_rbasak: what about testing on a vm?20:09
rbasakAlso the server might be able to route via a client, too.20:10
rbasakSo nobody can be sure that you aren't intending to use the client's Internet connection for nefarious purposes.20:10
rbasakThat applies to a VM, too.20:10
atralheaven_rbasak: what about connecting just for a second? to see it connects, and doesn't fail20:11
rbasakAsk someone you trust.20:11
rbasak(and who trusts you)20:11
atralheaven_if I had someone outside of here who could help me I wouldn't come here :|20:11
rbasakBuy some instance time on EC2 or something.20:13
atralheaven_if I run ssh socks on my system, and then connect to openvpn, if the problem be from the country firewalling, should I be able to connect?20:13
atralheaven_for using openvpn with obfsproxy, do I need 2 servers? I have one vps20:15
=== jgrimm is now known as jgrimm-afk
=== jgrimm-afk is now known as jgrimm
ponyofdeathanyone have any ideas why using ssh -f -N -D 8080 to set up a tsocks proxy times out after tyring to use it?20:46
ponyofdeathi have tsocks and the tunnel set up20:46
=== CiPi is now known as cipi
=== Lcawte is now known as Lcawte|Away

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