/srv/irclogs.ubuntu.com/2016/01/07/#ubuntu-server.txt

`jpgIt actually looks like Semisync in MySQL might be enough to port the Manatee state machine with reasonable safety guarantees.00:06
`jpgThe AFTER_SYNC mode will probably be required to ensure safety invariants are violated but it could definitely work.00:06
`jpg*aren't00:06
[Mew2]Anyone?00:20
sarnold[Mew2]: there's loads of different monitoring tools.. nagios, icinga, bro, collectd, ..00:23
sarnold[Mew2]: there's also loads of different log monitoring tools; kabana and elasticsearch seems to get a lot of press lately but I can't tell if that's just because the pictures are pretty or if there's something useful there00:24
sarnoldin fact the biggest problem is there's so many different tools that picking one and building on it might be difficult :)00:25
[Mew2]Friend of mine had mentioned nagios00:25
[Mew2]What things do server admins look for00:25
[Mew2]Connections, usage, what else?00:26
sarnoldused memory, used syslog, used filedescrptors, number of processes, number of blocked processes, ping latency, application response latency..00:27
[Mew2]Nagios will do all of this?00:27
sarnoldmaybe not all of it..00:28
sarnoldthere seems to be a distinction between "measure these things and graph them over time" vs "check that things are up and responsive". I'm not sure why.00:28
[Mew2]Hmm00:30
[Mew2]Will nagios tell me what IP address have connected to that server?00:30
[Mew2]Across all ports00:31
sarnoldprobably not; that might take some custom iptables rules, thuogh you might be able to collect them centrally using nagios once you have those rules written..00:32
[Mew2]Hmm ok00:33
[Mew2]I think I will start with nagios00:33
[Mew2]Thank you so much sarnold :) <3300:33
sarnoldhave fun [Mew2] :)00:34
* [Mew2] excited00:34
AlecTaylorhi00:39
=== stevenroose|BNC is now known as stevenroose
=== Lcawte|Away is now known as Lcawte
=== Lcawte|Away is now known as Lcawte
=== jfh is now known as jfh_away
[Mew2]So nagios is accessed through webbrowser correct?  Does it require a login? Can I use fail2ban on incorrect logins?08:41
ikonia[Mew2]: no08:46
ikonia[Mew2]: it is a web gui, yes it requires a login08:46
ikoniayou'd have to setup fail2ban bad bots to log scrape and pattern match incorrect logins08:46
[Mew2]Thank you ikonia :) <3308:51
willemgfHi, We have a strange situation with vm's running ubuntu server 14.04 LTS on esxi-5.5. It happens that a VM doesn't boot well, it gets stuck on plymouth-upstart-bridge and doesn't go further. after performing ctrl-alt-del we see there are errors found on the disk, but we are at this point no more able to select the fix-option.09:13
willemgfwhat could be the reason the system gets stuck and get no interaction regarding the disk-error?09:14
hateballwillemgf: are you running open-vm-tools on it, and have you fsck'd the disks?09:15
willemgffor now we edit the grub by adding init=/bin/bash in order to perform the e2fsck to get the system back fully operational. But I would like to see the console allowing us to select the action on the error during boot.09:15
willemgfhateball: yes, open-vm-tools is installed on the vm09:16
hateballsomething seems off if they keep corrupting09:16
willemgfonce th efscj is done as described above, a reboot of the vm goes perfect09:17
willemgfBut I thought we would be able to interact by default when a disk-error appears without performing our (temporary) method to perform the fsck09:18
ikoniawillemgf: remove the boot splash09:21
hateballif errors are found it should indeed prompt you09:21
ikoniawillemgf: see if there is anything else going on that you miss09:21
ikoniaboot into single user mode too, see if you get a clean minimal boot09:21
hateballdoes pressing ESC remove the splash after it's "hung"? I cannot recall09:21
ikoniaI don't think so, it depends on how/why it's hung09:21
ikoniamost cases not, only if it's super slow will that work (I think )09:22
hateballI think they wanted to not have to reboot to grub and pick modes/alter options09:22
hateballrather see at once that it needed interaction to fsck09:22
=== ejat_ is now known as ejat
* hateball removes quiet splash in /etc/default/grub09:23
ikoniayeah, for me it's worth altering the splash on the fly just to see the boot process09:23
willemgfikonia: from the grub, 'quiet splash' has been removed, so this is not the problem. We also tried to apply noplymouth, since we saw at the ctrl-alt-del that plymouth-upstart-bridge was killed by TERM.09:23
ikoniaif you're running a server, I'd question if you ever need that splash in place09:23
ikoniawillemgf: so you actually get to see the full boot process09:24
willemgfindeed we see the complete bootprocess, were it suddenly get stuck. no notification of the eroor in order to apply on of the options.09:25
ikoniaso what's the last thing you actually see09:25
willemgfeven ESC does not allow us to continue. Seems like something else is blocking in order to go further.09:26
willemgfany way to provide a record of our situation?09:27
ikoniawillemgf: whats the last thing you see on the screen09:27
willemgfWill paste some screenshots from my recordmydesktop ...09:28
willemgfhere it gets stuck: http://i.imgur.com/ZPbeWwm.png09:32
willemgfwhen performing ctrl-alt-del we see the following: http://imgur.com/RWoIZhP09:34
ikoniaso plymouth looks like it's in a loop09:36
ikoniawhich is creating a wait loop in the boot process09:36
ikoniarather than hanging09:36
ikoniacan you boot into single usermode ?09:37
willemgfthat is what we thought too, but using noplymouth in grub does not solve the issue, it still gets stuck.Even in single user mode we have the same issue.09:38
willemgfAs I said, our only way to solve it at this moment is to apply init=/bin/bash in order to get a shell, perform the e2fsck en reboot, wereafter the vm comes up well as expected.09:39
ikoniaafter you run the fsck and reboot normally it comes up ok ?09:40
willemgfyes, then it comes up normally09:42
ikoniaso I would question if your actual problem is based around disk problems09:42
ikoniawillemgf: if you reboot that now working VM a few times, does it stay working ?09:43
willemgfeven that we tried already, after the e2fsck, rebooting the VM a couple of times, it comes up normally.09:43
ikoniaok, so that does suggest to me - disk problems on the VM from the host is a problem09:44
willemgfIt only happens in case we have a situation were disk errors appeared on that vm09:44
ikoniahow are you installing these machines ?09:44
willemgfMight be, a colleague also pointed to disk timeout as described on http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=100946509:45
willemgfis it worth to thy this out?09:46
willemgfthese are VM's installed by a template09:46
willemgfAnd they all worked fine after installation.09:46
ikoniaI'd look at your template first09:47
ikoniais your template made out of a corrupted disk09:47
ikoniabecause if you are having a disk time out, I doubt an fsck would have an impact on that09:48
willemgfcertainly not. We have other VM's made prom the same template that reboot correctly.09:48
willemgf*from*09:48
ikoniaso how many of your VM's are having this problem09:48
willemgfYesterday I had  VM's, today I had one. Maybe nice to know: these VM's were stopped as I needed to migrate the OS disk to another datastore.09:51
ikoniaroughly how many out of how many VM's had this problem09:52
ikoniaeg: 5 out of 100 built09:52
willemgfthe VM's were initiale installed on slow datastores, and are now mirgated to faster datastores09:52
ikoniaso they have broke in the migration ?09:53
ikoniaor broke at install time09:53
willemgfI'm still performing this migration process. It's a new Vmware environment on which we have currently VM's running on.09:53
ikoniahow where they migrated09:54
ikoniaon the fly using vmware data migration tools ?09:54
ikoniaor shutdown and the vmdk's moved09:54
willemgfthrough the migration process in the vsphere web client.The VM's were first brought down before migrating.09:55
ikoniaroughly how many have had this problem ?09:55
willemgfNevertheless, I would have expected that the boot of the VM would inform me in a correct way of any disk error on which I should be able to choose which action to perform. And this is not the case, so I guess some kind of bug in the upstart, not?09:56
ikoniayou are getting a disk warning error on boot though are yo unot ?09:57
ikoniaI suspect if you left it long enough for the plymouth-bridge to stop trying and time out, it would move on09:57
ikoniabut complain of errors09:57
willemgfAs we did not finished our migration process no idea of how many of the VM's, but for the   I did yesterday, I had this issue for  of them.09:58
ikoniafor "them"09:58
ikoniahow many did you have09:58
ikoniaout of how many machines09:58
willemgfthe eroor appears after applying tghe ctrl-alt-del. from that point on I saw extra lines appeared on the screen, but disappeared to fast in result of the reboot. That is why I recorded the situation and saw what came afterwards.10:00
willemgfSorry num-loch was off: I had it for 5 VM's of the (about) 12 migtrations I performed yesterday.10:01
willemgf*num-lock*10:01
ikoniathats a higher ratio than I'd like10:02
willemgfMe too, that is why I came to ask on this channel for any possible help10:03
willemgfAs of this morning I'm trying out different grub-options for a VM having this issue as well, so far no solution found yet.10:06
willemgfit gets stuck till I perform the ctrl-alt-del and can see the message regarding the disk-error. the VM for which I provided the screenshots.10:07
willemgfBTW, strange that, when noplymouth is used in grub (edit at boot) the startup still performs actions for plymouth-upstart-bridge!10:13
ikoniaI dont think grub options will help disk problems10:15
ikoniait really looks like everything your showing me that certain boxes have migration disk corruption10:15
willemgfI totaly agree, but nevertheless I would expect to see on my console the error found on the disk(s) on which I should choose which action to apply, but We don't get this at all.10:16
ikoniawillemgf: I suspect if you leave it long enough it will move onto the disk error10:18
willemgfnow trying to boot in recover single user mode with grub options 'single nomodeset noplymouth'. Very slowly I see new lines appearing on the console, see: http://i.imgur.com/inDJV1l.png10:20
lordievaderGood morning.10:20
willemgfikonia: meanwhile, the boot in single user mode is still stuck, no message regarding the disk-error so far.10:38
willemgfIs not the way it should happen for each vm having this issue :(10:39
ikoniawillemgf: how long are you waiting11:05
ikoniaI'm just wondering how long it would take for the plymouth-bridge to give up re-rtying11:05
ikoniathat console does just suggest disk errors to me11:06
=== hxm is now known as Guest56481
repozitori have configured my firewall very well, it's state is running12:04
repozitorbut seems firewall don't work12:04
repozitorbecause still some ports are open!12:04
willemgfikonia: just back from luch, and the VM is still stuck. So for 1h30, not what we should expect12:04
repozitorany idea to fix it?12:04
hateball!ufw | repozitor12:06
ubotturepozitor: Ubuntu, like any other Linux distribution, has built-in firewall capabilities. The firewall is managed using the 'ufw' command - see https://help.ubuntu.com/community/UFW | GUI frontends such as gufw and ufw-kde also exist. | An alternative to ufw is the 'iptables' command - See https://help.ubuntu.com/community/IptablesHowTo12:06
repozitorubottu, i'm using firewalld and firewall-cmd12:07
ubotturepozitor: I am only a bot, please don't think I'm intelligent :)12:07
repozitorhateball, ^_^12:07
hateballrepozitor: Nothing I use, but at least you've provided more detail than "don't work" now12:07
hateballSo someone else may know12:08
repozitorhateball, for example port 21 is not allowed. but nmap scanning show me it is open!12:08
shaunoare you scanning from the same host or another?12:09
repozitorshauno. of course, other host12:09
repozitorshauno, any idea?12:21
repozitori'm using firewalld for my ubuntu server12:22
repozitorbut if ufw work better, i can use it instead12:22
shaunoI have no idea about firewalld at all I'm afraid.  just grasping for low-hanging fruit ( / false positives)12:27
=== Guest56481 is now known as hxm
repozitorshauno, http://dpaste.com/2MNQR5413:13
repozitori used ufw, but i still see my firewall don't block programs internet activity13:13
repozitoranyone have any idea?13:15
lordievaderrepozitor: What is the output of 'sudo iptables-save' (and 'sudo ip6tables-save' if you use ipv6)?13:17
repozitorhttp://paste.ubuntu.com/14429768/13:19
repozitorOMG, before configuring ufw, i use iptable -F13:19
repozitorwhy these command exist?13:19
lordievaderrepozitor: See lines 111 and 112.13:20
repozitorwhat is wrong with 111, 112?13:21
repozitorthey allow me to connect by ssh13:21
repozitoras you see, ufw allow ssh output on above link13:21
lordievaderYou complain that port 22 is open, looking at line 111 that is correct.13:24
lordievaderOh wait, I misread the port.13:24
repozitorlordievader, i know ssh is open, it's ok13:25
repozitori want to block 8080 for example13:25
repozitorwhy ufw don't block 8080 by itself?13:25
repozitori never allowed 8080, but ufw can't block it13:25
repozitorso my question is why my firewall don't work?13:26
repozitorbecause of ufw status show me only ssh is allowed, i say my firewall don't work13:26
lordievaderrepozitor: 8080/tcp filtered http-proxy looks okay from here.13:27
repozitorREALLY? are you familiar with nmap?13:28
repozitorright now it show me it is open!!!!!!!!13:28
repozitorhttp://paste.ubuntu.com/14429812/13:28
repozitoralso you can connect by teletn to 808013:29
repozitortelnet 82.102.12.142 808013:29
lordievaderHmm that is odd.13:31
lordievaderSince your firewall rules do suggest it is being dropped.13:31
lordievaderIs that machine behind a nat?13:31
repozitorno13:32
repozitorhhmm, it is located on RED station datacenter13:32
repozitorreally i dunno13:32
patdk-wkdoes netstat show something listening to 8080?13:32
lordievaderrepozitor: You run tomcat on that port?13:33
repozitorpatdk-wk. yeah13:33
repozitoryeah13:33
repozitoroh my god!!!!!13:37
repozitornow i uninstalled it and installed it again, and before i enable ufw, i allowed ssh13:37
repozitorand now when i enable ufw, my server is completely unreachable.13:37
repozitori dunno what i should to do!!!!!13:37
lordievaderrepozitor: Try and get a console a different way (through a web service or something).13:38
lordievaderNot sure if your providers has that service.13:38
repozitorlordievader, i know!13:38
lordievaderrepozitor: Let me know when you have access again ;)13:42
repozitoryeah, i fixed it again :))13:42
repozitorlast week this problem occured, and i request  a direct console, they grant me13:43
repozitoranyone have any idea?13:46
lordievaderrepozitor: Yes, try 'sudo iptables -I INPUT 1 -p tcp --dport 8080 -j DROP'.13:48
repozitorlordievader, the problem is not 808013:49
repozitori want to know why firewall don't work!!!13:49
repozitori should find a wise reason for this problem13:49
lordievaderrepozitor: This is a way of finding out why things don't work...13:50
repozitorlordievader, i DROP 8080, but it still is open!!!!!13:53
repozitortest  it by telnet13:53
repozitorneeding a better idea13:54
lordievaderMy browser takes a long time to connect to it...13:54
repozitorlordievader, go to matrix world :D13:54
shaunofwiw, 8080 is timing out for me13:54
lordievaderTelnet hangs on Trying 82.102.12.142...13:55
lordievaderrepozitor: Iptables works fine if you ask me. I guess the flaw is somewhere in the ufw rules.13:55
shaunois there a possibility it's being held open for your specific case by a conntrack rule?  so iptables thinks it's related to a previously-existing connection and passes your specific connection?13:55
repozitorshauno, http://paste.ubuntu.com/14429957/13:56
repozitorare you kidding me?13:56
repozitori swear to GOD 8080 is open!!!!13:56
patdk-wkit is open13:57
patdk-wkbut doesn't mean that it is HITTING your server13:57
patdk-wkdo a tcpdump on your server for port 808013:57
shaunoI get http://paste.ubuntu.com/14429966/13:57
patdk-wkand see if you actually DO see the connection13:57
ogra_did you make sure to flush all rules you did set with firewalld before (by rebooting after removing all bits and configs of it) before you tired other fw tools ?13:57
YamakasYguy do you store your antispam loggings ?13:57
YamakasYarchive13:57
repozitorYamakasY, me?13:58
repozitorno13:58
YamakasYok13:58
YamakasYwhy not if I may ask ?13:58
YamakasYafraid for your wife ? :P13:58
repozitorno, usually antispam tool need money :D13:59
shaunoif you have an antispam you can train, keeping hold of a pile of ham & spam to feed it can be beneficial.  if you don't/can't, there's not much worth holding on to14:00
YamakasYtrue14:00
YamakasYI mean as it's also a mail gateway, it might be handy14:00
repozitorshauno, something were wrong with apache, now i fix it14:01
repozitorany idea?14:03
repozitorwhat is wrong with ubuntu?14:03
repozitorfirewall is running, and blocking all port except 2214:03
repozitorbut nmap show me there are about 8port is opne14:03
repozitoropen*14:03
repozitorany idea?14:06
repozitorhow can i remove all iptables & ufw rules?14:08
repozitori want to remove everything about firewall14:09
lordievaderrepozitor: First set your policies so that you still have access then: sudo iptables -F && sudo iptables -X14:09
lordievaderThat should leave you with just the empty built-in chains.14:10
repozitorlordievader, where i should set my policy?14:10
lordievaderrepozitor: ACCEPT14:10
repozitorhey buddy, i know how to work with iptables, ufw, firewall-cmd14:11
repozitorwhich of them do you mean?14:11
pmatulistych0: hi, re yesterday's container migration question and the necessity of a 4.4 kernel. will that kernel, or the magic it brings, be backported to trusty or will people be expected to run the new LTS?14:12
patdk-wkrepozitor, hmm, using a new tool won't fix it14:13
patdk-wkufw and firewall-cmd are just tools that work ontop of iptables14:13
tych0pmatulis: 4.4 is going into X, so it should be available when linux-generic-lts-xenial comes available i think14:13
patdk-wkshorewall also14:13
lordievaderrepozitor: Looking at the command I gave you, iptables policies ofcourse.14:13
patdk-wkyou should do like I said, and make sure that port is actually routed to your machine first14:13
pmatulistych0: ta14:13
lordievaderBy the by, if you don't want my help, say so, it ain't my problem...14:13
an3kHi everybody. I already googled and found plenty of commands to use but neither of them gave any information. I just installed Ubuntu Server 14.04.3 LTS on my Server using its Intel RSTe RAID. In the installation process Ubuntu found RAID Container and AHCI RAID Container. I selected "use them" for both. Now after the system is running neither dmraid nor dmadm knows about the raid (status,14:40
an3ketc.). I'm new to Linux Software Raids so I have no clue if the RAID is working well or not, especially because none of the commands shows useful information.14:40
=== lool- is now known as lool
an3khttp://paste.ubuntu.com/14430372/14:49
jrwrenpmatulis: I'm pretty sure trusty will get a 4.4 HWE kernel14:51
pmatulisjrwren: yeah, like tych0 said, the backport kernel14:51
jrwrenpmatulis: ah, I didn't understand. Thanks.14:51
jdstrandrepozitor: you might check the output of 'sudo /usr/share/ufw/check-requirements'. it is possible your kernel doesn't have everything ufw expects and isn't fully configuring itself (this can happen in hosting environments)15:27
=== jfh is now known as jfh_away
repozitornow i'm tired, i dunno how to fix it!15:45
repozitormaybe i need to fresh install ubuntu15:45
ogra_repozitor, did you make sure to remove all traces of firewalld (never heard of it) and reboot before yu started playing with the other FW tools ?15:46
repozitorogra_, i can't find all traces of firewalld, but i use apt-get to remove15:52
repozitorapt-get remove, apt-get clean, apt-get purge.15:52
ogra_remove or purge ?15:53
repozitorboth of them15:53
ogra_and did you reboot to make sure to get back to a virgin state15:53
repozitoryeah15:53
ogra_(thoough if firewalld saves some iptables rules they might still persist, no idea how it works)15:54
repozitori dunno whether ubuntu has this feature or not15:55
repozitorin macosx i can save all setting of application, and after installing we can restore them by time machine15:55
repozitoris there exist such this settings?15:55
repozitorfeatures*15:55
jrwrenrepozitor: how do you do that? i've never seen that time machine feature.15:55
repozitorjrwren, did you ever use time machine?15:56
jrwrenrepozitor: yes, only to restore full system or single files, not app settings.15:56
repozitorinstall a fresh macosx, and put time machine backup disk into your os, and them use it15:56
jrwrenrepozitor: ah, so you mean full restore.15:56
repozitorno15:56
repozitorfull restore change your main os to backup version15:57
jrwrenrepozitor: how is that not full restore?15:57
repozitorwhat?15:57
jrwrenrepozitor: ah, i've never used time machine that way. are you saying that i can have TM backup with older OSX and use newer OSX to restore it and it will not overwrite my newer OSX?15:58
repozitorjrwren, yeah, i use it for 2 time.15:59
repozitorprobably you know all app setting is store in this path16:00
repozitor/Users/username/Library and this path is resotre when you restore app setting16:00
an3kDo I really need a swap with 128 GB RAM?16:17
repozitorif you reach at 100GB memory usage, yes16:18
an3kok, then I don't. Thanks :)16:18
shaunoI'm always tempted to keep swap, yeah.  stuff that's barely used can stay paged out and leave you with more free for whatever you bought 128 for16:18
repozitorshauno, i think os don't start page in/out if he don't reach at 100GB or 80GB16:19
shaunoI have about 700Mb paged out, and over 50% of my ram is just caches16:20
an3kI'll barely maybe never reach the 60 GB ram usage mark and I don't want swap to be on the SATA-DOM or on the raid16:20
patdk-wkshauno, what is wrong with that?16:21
shaunoabsolutely nothing.  that's why I'm advocating at least a little swap so that stuff that's not being used, doesn't need to be wired16:22
repozitorshauno, in newer linux, app wont swap untill RAM usage reach at 75%, instead they chache files for faster IO, so you 700mb is full of file contents,  i guess16:22
patdk-wkhow can 700mb of swap contain files?16:22
patdk-wkwhy would you put into disk, what is already on disk?16:23
an3kMicrosoft knows :)16:23
repozitorpatdk-wk, because they are dirty16:23
shaunothat's what I mean though.  caching files is more efficient use of ram than holding onto a process that hasn't done anything in days16:23
patdk-wkheh?16:23
patdk-wkcache is not dirty16:23
patdk-wkthat is not possible16:24
patdk-wk700mb paged out can only be application memory16:24
repozitorpatdk-wk, they can write into the original file's disk, because in feature os move them again into RAM16:24
patdk-wknot file cache, not file buffers16:24
patdk-wkthen it WOULD NOT BE paged out16:24
patdk-wkbut written to disk16:25
patdk-wkand would not show up in the 700mb of paged to swap16:25
patdk-wkso the 700mb would not apply to those16:25
repozitorpatdk-wk:700mb paged out can only be application memory16:25
repozitorprove it16:25
patdk-wkI don't need to16:25
patdk-wkread the linux kernel documentation on memory management16:25
jrwrenan3k: skip the swap partition, apt-get install swapspace, and it will be zero swap until you need it.16:25
naccan3k: the short answer is, it depends ...16:25
patdk-wkyou are the one saying the documentation is wrong16:25
naccan3k: and you can always use swapfiles, or swapspace16:26
repozitorpatdk-wk, show me a reference indicating this topic16:26
repozitorpatdk-wk, i never said "documentation is wrong"16:27
repozitorif you think so, prove it16:27
patdk-wkhttps://www.kernel.org/doc/gorman/html/understand/understand014.html16:27
patdk-wkyou think so too, prove yours :)16:27
patdk-wkyou did read that first sentence right?16:28
shaunoyou don't page out disk caches, you just commit them.  if they're gonna hit the disk anyway, may as well do it properly16:29
patdk-wkyou don't commit disk caches16:29
patdk-wkyou DROP them16:30
patdk-wkyour commit disk buffers16:30
patdk-wkcache == read, buffers = dirty writes16:30
repozitorpatdk-wk, answer me16:33
repozitorimagine you have 8GB memory, and you working with gimp, you load a 6GB image into the disk, and now os want to load another applications, so os need 5GB of memory16:33
repozitoryou think os drop gimp file?16:33
repozitoror swap it into swap area, so user can still work with it?16:33
patdk-wkhttp://linux-mm.org/Low_On_Memory16:33
patdk-wkthe authorative source on it16:33
repozitorread doc CAREFULLT16:33
repozitorCAREFULLY*16:34
patdk-wkrepozitor, you oviously are confused and don't know what memory is16:34
patdk-wkloading a file into gimp != cache16:34
patdk-wkit is GIMP memory, assigned to gimp, unless gimp mmapped it, and it doesn't16:34
patdk-wkso that file is no longer a file it is application memory assigned to gimp16:34
an3kI think https://help.ubuntu.com/community/SwapFaq helps :)16:34
patdk-wkto claim it is a file or cache is completely wrong16:35
patdk-wkand that *file* is no longer a file in gimp, cause that image is not 6gigs anymore, cause gimp will have to decode/decompress and create structures to use that image16:35
patdk-wkso it's likely much much larger16:35
patdk-wkthere is no way to claim that is a *file* anymore once it is loaded into an application16:35
patdk-wknow if you want to state it correctly16:36
patdk-wkyou loaded your 6meg image into gimp16:36
repozitorpatdk-wk, hhhm, sorry, i remeber another thing16:36
repozitormy question was totaly wrong!16:36
patdk-wkthe 6meg image is in the disk cache, and the decompressed gimp copy of that image is in gimp application memory as 50megs16:36
patdk-wkthe 6megs will be dropped at any time linux feels like it16:36
patdk-wkbut the 50meg one would have to be swapped16:36
=== med_` is now known as med_
=== med_ is now known as med
=== med is now known as med_
pbxmanis there a way to know what console commands were sent by a user and the time they were sent in Ubuntu?16:46
patdk-wkif the user is forced to use sudo, yes16:47
patdk-wkif not, and you didn't force the user to use a shell that logged that info, then no ( the default )16:48
pbxmanauth.log?16:48
patdk-wkyes, that will show logins and sudo commands16:48
pbxmanDoes a kill -9 show up?16:49
patdk-wkwas it run as, sudo kill -916:49
patdk-wkthen yes16:49
patdk-wkif not, then no16:49
pbxmanok thank you for that patdk-wk16:49
an3kIs root login with password NOT permitted because one could steal the password entered when logging in?16:51
patdk-wkit's just such a bad idea generally16:54
patdk-wkand people don't generally use good password16:54
patdk-wkso if they go through the work to enable that, heh, the should have learned the issues with enabling it too :)16:54
an3kIndeed but the current approach isn't any more secure. If I MITM the password of root I am root, sure. But if I MITM the password of the user used to login then sudo I am root too16:57
patdk-wkhow are you doing MITM16:59
patdk-wkand who said it was to protect against MITM at all? atleast I didn't16:59
an3kdunno but that was one reason I got told of why direct root login isn't disabled by default16:59
patdk-wkssh fingerprints limit mitm17:00
an3kyes but these doesn't help17:00
an3kLet me try to explain.17:00
patdk-wkthese?17:00
patdk-wkit matters not what authenication method you use17:00
patdk-wkif you are MITM, it's already an issue when you make the connection17:01
an3kThere's server A. It allows SSH login as root with a password.17:01
patdk-wkso I dunno how a root password has anything to do with mitm17:01
an3kAnd there's server B. It does NOT allow SSH login as root with a password. Instead you have to login to your normal user account (which uses a password) and then sudo.17:01
patdk-wkstill dunno how mitm has anything to do with this17:02
an3kIn both cases somebody else gets root access as soon as he knows the password (of either root or the normal user).17:02
an3kok, stop focusing on MITM now ;)17:02
patdk-wkyes, that is true17:02
patdk-wkbut the server A, they also need to know a valid username17:02
patdk-wkin the second, they already know root is a valid username, and only need the password, and randomly guessing is *fine*17:03
an3kvice-versa but you're absolutely right. Never really thought about this.17:03
patdk-wkI do set a root password, but also don't allow root logins on ssh17:05
an3kI do too but also allow root-ssh-login since it's a seperated network and just a LAN server17:06
thebwtwe turn off password auth for root in the sshd conf.17:10
* thebwt resumes lurk mode17:11
an3kyeah, already found the required setting yesterday when working on the server. PermitRootLogin with-password is nicely misleading :)17:14
an3khmm, interestingly all the guides on how to setup ubuntu server on a software raid are wrong. RAID10 is supported by the installer and nothing has to be done in console or Live environment before the actual installation.17:23
patdk-wkheh?17:26
patdk-wkI thought it was always supported17:26
patdk-wkatleast since 10.04 or maybe it was 12.0417:27
patdk-wkthere is only one guide that matters, and that is the ubuntu documentation though17:27
an3khmm, that isn't found using google17:30
an3kand https://help.ubuntu.com/lts/serverguide/advanced-installation.html is actually not "correct". I haven't tested it so it may work but theres no need to manually create partitions on17:32
geniiAFAIK all RAID types are supported during install for server and alternate17:32
an3kis that guide (mostly) in german for you too?17:34
an3kfor example I didn't created any partitions (swap and /) on the RAID drives. I simply created a partition table on each and then "Create Software RAID > Create MD"17:36
an3kis there a difference between both approaches?17:52
binwiederhierHello there, I was wondering if there was still a chance to get PHP 7 into Ubuntu 16.04. I hear that it might be a bit late for that, but a little bird told me (https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1522422) that rbasak might know more?! Apologies for the hightlight, I hope that's okay :-)18:27
ubottuLaunchpad bug 1522422 in php5 (Ubuntu) "PHP5 branch and PHP7 branch" [Undecided,Confirmed]18:27
ikoniait's not released yet 7 is it ?18:29
binwiederhierit has been released. a month ago or so.18:30
naccbinwiederhier: I'm going to be taking a look at exactly that18:30
ikoniawas it really a month or so18:30
binwiederhierbut see it this way: "I don't know anyone running Ubuntu servers who's using the stock PHP because it's usually too old. People either use Ondrejs PPAs, compile themselves or use some other vendor (i.e. Plesk provided packages). PHP 5.6 support ends August 2017. That's 9 months of backporting security fixes. PHP 7.0 is supported until December 2018. If you ask me, this is a no-brainer. "18:30
naccbinwiederhier: just starting on it now ... can try and keep you posted18:30
ikoniamaybe a bit too soon for a long term support release18:30
ikoniapretty much every ubuntu server I see with php is the stock LTS version18:30
ikoniait's no way too old18:30
=== cpaelzer is now known as cpaelzer_afk
naccbinwiederhier: fwiw, it's in universe already just fyi18:32
binwiederhierlast i checked it was "proposed"18:32
nacchttps://launchpad.net/ubuntu/+source/php7.018:33
nacc7.0.1-5 is in release18:33
nacc7.0.1-6 is in proposed18:33
binwiederhier4 hours ago!18:33
binwiederhier?!18:33
nacc:)18:33
binwiederhierwow18:33
Piciha18:33
naccenjoy!18:33
ikoniauniverse is a good solution18:34
ikoniause at your own risk, but a good proving ground18:34
an3koh great ... resolvconf is now not capable of simply adding the DNS server upon boot once VLAN is added ....18:34
patdk-wkheh?18:42
patdk-wkit does for me18:42
an3kit did for me yesterday with the previous installation too but now it doesnt18:43
an3kI use VLAN on bonding on two NICs. That worked perfectly with the previous install18:45
an3kwhat's the logfile for all the stuff shown at booting with the [OK] at the right sideß18:49
an3khttp://paste.ubuntu.com/14431912/ ... I hadn't these issues yesterday18:52
an3kif the log entries are correctly ordered then why is IPv6 and 8021q processed before bond?18:55
an3kis it possible that it doesn't work because Ubuntu thinks both NICs have the very same MAC address?18:58
patdk-wkhow did you configure your interfaces file?18:59
patdk-wkbut that isn't the real issue18:59
patdk-wkbond0 was created, the vlans added18:59
patdk-wkbut the interface is down, cause the eth0/eth1 haven't been enslaved yet18:59
an3khttp://paste.ubuntu.com/14431994/19:01
patdk-wkremove the bond-slaves line19:02
patdk-wkactually19:02
patdk-wkbond-slaves none19:02
patdk-wkyou doubled it up19:02
patdk-wkwith the bond-master19:02
patdk-wkshould only use one of them19:02
patdk-wkis vlan_raw_device optional? I always set it19:03
an3kI can't remember now but afaik I got a warning or error without bond-slaves set19:04
an3kI never set vlan_raw_device and never had problems (until now ;)19:04
patdk-wkhttp://paste.ubuntu.com/14432017/19:05
patdk-wkis what I use19:05
=== DonRichie2 is now known as DonRichie
=== edwardly_ is now known as edwardly
=== neunon_ is now known as neunon
an3kI just do a new install and (try to) do the same I did yesterday and see if that works19:41
=== tgm4883_ is now known as tgm4883
=== thesheff17_ is now known as thesheff17
=== ggherdov`_ is now known as ggherdov`
=== cpaelzer is now known as cpaelzer_afk
jgeHey all, I wrote a init script for a JAR file I would like to run under a limited system user. My command looks like this: sudo su btds -s /bin/sh -c "nohup  java -jar $PATH_TO_JAR --propertiesFile /etc/btds/btds.properties 2>> /dev/null >> /dev/null &"20:36
jgeHowever, when I run it. Nothing happens.20:36
jgeI've seen it start for a second or two and then shutds down20:36
jgeanyone's got a clue what I'm missing here :\20:36
shaunono ideas, but perhaps remove the /dev/null redirects so you can see if/what it's complaining about during its short life?20:38
jgeshauno: ahh good idea, let me try that20:38
jgebingo nohup: failed to open ‘nohup.out’: Permission denied20:40
jgeim running the command as sudo though..20:40
sarnoldnohup sudo   or sudo nohup? :)20:41
tarpmanjge: you can replace that entire sudo, su, sh, nohup machinery with a single start-stop-daemon20:41
shaunoyou're not running it with sudo, you're running it with su btds.  you're running su with sudo.  so most likely it's trying to write to nohup.out in the current cwd as btds20:43
jgetarpman: Yeah I came across a site which recommended this as well, no idea how it works though so I picked the easiest solution20:43
jgesarnold: I did sudo nohup20:44
repozitorpatdk-wk, shauno, http://paste.ubuntu.com/14432573/20:44
repozitorcan you evaluate it?20:44
jgeand I get :  sudo: no tty present and no askpass program specified20:44
jgeshauno: you're right20:45
jgewhat if I create a nohup.out file in the current cwd and chown to btds, would that work?20:46
patdk-wkrepozitor, not really20:46
patdk-wkyou need to use -nn I think20:46
patdk-wkor maybe you just didn't use -n20:46
patdk-wkand you probably want to dump all 320:46
patdk-wkiptables -L -nv20:47
patdk-wkiptables -L -nv -t mangle20:47
patdk-wkiptables -L -nv -t raw20:47
patdk-wkbased on what your posted, assuming the /etc/services is ubuntu default, 8080 should not be accepted20:48
patdk-wkbut if it is being forwarded, or intercepted, those paths are open20:49
patdk-wkcause your forward table allows all20:49
patdk-wkbut that normally isn't used unless nat is enabled or something20:49
repozitorpatdk-wk, i think about memory swap, i think you were right, my apologize :D20:49
repozitorpatdk-wk, you need the output of -L -nv?20:50
patdk-wkit would help, your ports are mapped to services file20:50
patdk-wkso I don't know if webmin is 8080 or 1000020:50
patdk-wkcould be anything :)20:51
patdk-wkor even that http means 8020:51
repozitorhttp://paste.ubuntu.com/14432662/20:51
repozitorwebmin are listen on 1000020:51
patdk-wkthat says you have no firewall configured20:51
repozitorare port are set by default, for example http is 8020:52
patdk-wkvia /etc/services20:52
repozitorsorry buddy, before -L -nv i stopped iptables20:53
repozitorhttp://paste.ubuntu.com/14432692/20:54
repozitorthis is the output of your command after starting firewalld20:54
repozitorany idea?20:55
patdk-wkya, very interesting20:56
patdk-wkyou see lines 6,7,820:56
patdk-wkline 6, matches to line 107, does nothing, ignored20:56
patdk-wkline 7 matches line 104, does nothing20:57
patdk-wkline 8 matches 97, here EVERYTHING is accepted20:57
patdk-wkno nothing is ever denied20:57
patdk-wksomehow your network interfaces (eth0/tun0) are not mapped to zones20:57
patdk-wkzones you have are dmz, external, home, internal public, trusted, work, ...20:58
mkander_I have 4 web servers that all host the same web page. When I change something in the php files I want to push it out to all servers. What is the best way to do this? Ill be doing this on Google Compute Engine, so it must be possible to just start a new node and it automatically pulls in the latest files.20:58
repozitori can just understand what you says, but can't to fix it20:58
patdk-wkI can't either20:58
patdk-wkI don't use or really care how to use firewalld :)20:59
repozitoryea, i have these zones20:59
repozitorREALLY?20:59
patdk-wkheh?20:59
patdk-wkyour not paying for me to help ,ubuntu isn't, and I have to leave :)21:00
repozitoryou just said i don't use …21:00
repozitorand i put a comment: REALLY?21:00
patdk-wkatleast you know what is wrong21:00
repozitori can't sleep without firewall!!!21:00
patdk-wkI said I don't21:00
patdk-wkyou can use anything you want :)21:00
patdk-wkso I cannot answer you off the top of my head, and I don't have time to research the solution for you21:00
repozitorof course21:01
patdk-wkatleast you kow where the problem is though21:01
repozitorpatdk-wk, change your mind about firewall later :D21:01
repozitori'm serious.21:01
patdk-wkwhy?21:01
patdk-wkI don't like firewalld or ufw21:02
repozitorno, i mean firewall, not exactly firewalld or ufw21:02
patdk-wkI normally use iptables., shorewall, cisco acl, asa, ...21:02
repozitorpatdk-wk, so maybe you know how can i delete this rules?21:04
EmilienMcoreycb, jamespage: last week you told me we would have mitaka this week, what is the status please?21:08
EmilienM(in trusty)21:08
coreycbEmilienM, have I pointed you to this before? http://reqorts.qa.ubuntu.com/reports/ubuntu-server/cloud-archive/mitaka_versions.html21:10
coreycbEmilienM, it's a good way to check status of packages in the mitaka cloud archive21:11
EmilienMcoreycb: maybe I missed that, thanks a lot21:11
EmilienMI'll stop asking now :-)21:11
EmilienMcoreycb: is it for trusty?21:11
coreycbEmilienM, I think we have most everything in proposed for trusty-mitaka21:11
EmilienMawesome!21:12
EmilienMI'm testing it right now21:12
EmilienMwe were mainly waiting for that for our bump21:12
coreycbEmilienM, to ready that, left column is xenial, and the right 3 columns are trusty-mitaka21:12
coreycbready=read21:12
EmilienMok makes sense21:12
EmilienMcoreycb: thx again21:12
coreycbEmilienM, you're welcome21:12
=== RoyK^ is now known as RoyK
repozitorwhich web-based tool is proper for ubuntu?21:31
repozitorexcept webmin21:31
jc_Hi All. I have the HP 40L. I've place Ubuntu server on the 250GB hard drive and allocated it with 35GB through LVM. I've further 80GB I've assigned also from the 250GB hard drive. In addition there are two 1tb drives that I would like to put media on. How can I link these two together so that they are in a Raid that offers redundancy?21:32
uxfiHey how do I test my HTML CSS code on Ubuntu server on a VM?21:43
=== IdleOne- is now known as IdleOne
=== alexisb is now known as alexisb-afk
=== Lcawte is now known as Lcawte|Away
an3kpatdk-wk: I'm done with the reinstall and guess what. The exact same configuration now works23:33
an3kthe only issue I have left is that bond0 still has its own IPv6 address. AFAIK it shoudn't have any?!23:35
rbasakhallyn: a question on the ubuntu-devel-discuss ML might be relevant to your work (cgroups), I'm not sure.23:37
hallynrbasak: i'll look in a bit, thx23:38
hallynoh -discuss.  i'm not on that23:39
an3khttps://lists.ubuntu.com/archives/ubuntu-devel-discuss/2016-January/016090.html23:41
hallynanswer: systemd23:43
hallynwe've talked about creating a new boot-time service to create cgroups that admins want, but23:43
hallynif we do that we'll constantly be stubbing toes against systemd which wants to own those anyway23:43
hallynoh i see, someone replied to that effect already :)23:44
rbasakbinwiederhier: I replied in the bug.23:51
rbasakbinwiederhier: no problem with you pinging us for status updates on this channel at all. It's the appropriate venue to ask.23:51
rbasakbinwiederhier: though I should probably reply in the bug when appropriate for others to see too.23:52
an3kRAID Q: Why should I create the partitions on each RAID member hdd before I create the RAID instead of simply creating the RAID and then creating the partitions on the RAID device?23:55

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