/srv/irclogs.ubuntu.com/2015/12/07/#ubuntu-server.txt

=== ossurayynot is now known as tonyyarusso
=== CrypticSquared is now known as group
=== group is now known as CrypticSquared
=== KnownSyntax_ is now known as KnownSyntax
lordievaderGood morning.09:04
=== CiPi is now known as cipi
=== cipi is now known as CiPi
eahmedshendyHi11:06
lordievadero/11:07
eahmedshendyWhen you manager asks you to look at this file /proc/tomcat-pid/limits from this link and asks you to increase all values for our tomcat, so that we need our tomcat to use our system efficiently, I know he does not know about administration very well11:09
eahmedshendyI am junior11:09
eahmedshendyHow we come to this?11:09
eahmedshendyWe have an issue "Too many opne files"11:09
eahmedshendyThat was a response from tomcat711:10
lordievaderI don't know Tomcat, but blindly increasing values is allways a bad idea.11:10
lordievaderThe too many open files is more likely generated by the kernel. There is a limit on how many files a process may open. Above that it (likely) gets killed.11:11
hateballit's not a matter of ulimit ?11:11
hateballnon-root users will have a limit, and hopefully tomcat is not running as root11:11
eahmedshendyThe issue finished with this: http://paste.ubuntu.com/13784768/11:11
eahmedshendylordievader, hateball: I need to read to be able to answer closer to you11:12
eahmedshendyWhat I topic I should read?11:12
lordievaderUsually you need to know what the value means before you start changing it.11:13
eahmedshendyBut after changing the value of /etc/security/limits.conf, cat /proc/tomcat7pid/limits, still have the low values11:13
eahmedshendylordievader: yes, I just need to make the move on in testing then I will finish my readings11:13
hateballeahmedshendy: here is a nice read http://www.jayway.com/2012/02/11/how-to-really-fix-the-too-many-open-files-problem-for-tomcat-in-ubuntu/11:14
hateballeahmedshendy: adjust ulimit for the user that tomcat runs as11:14
hateballso if it runs as www, su www and set desired ulimit. the link above shows setting it in the init script11:15
lordievaderIsn't it better to research why that limit is reached in the first place?11:15
eahmedshendyhateball: I read that link, so you see that It is better to do it like this?11:15
hateballlordievader: The problem is that it's tomcat/java :p11:15
hateballhard to get around!11:16
eahmedshendylordievader: do you ask me that question? anyway I find that tomcat didn't affected with the changes I did in /proc/tomcat7-pid/limits11:17
lordievadereahmedshendy: Yes and no. It was more a general remark ;)11:18
eahmedshendylordievader: :), I really do not understand what you mean11:19
eahmedshendylordievader: I am doing research for that, but I prefer asking the professional about what I need to search for11:20
eahmedshendyhateball: do you know where to put the "ulimit" lines from the link you gave to me in /etc/init.d/tomcat711:47
eahmedshendyhttp://paste.ubuntu.com/13785212/, http://paste.ubuntu.com/13785225/11:47
eahmedshendyand Also I tried in /etc/init.d/tomcat7, but with no change11:47
=== cpaelzer is now known as cpaelzer_afk
=== cpaelzer_afk is now known as cpaelzer
bekkseahmedshendy: The link he gave you states where to put it in :)12:33
bekkseahmedshendy: It is: /etc/security/limits.conf12:33
=== robher_ is now known as robher
Walexbekks: note that 'limits.conf' applies at login time, not at dæmon startup time13:38
Walexbekks: it is quite unlikely that a dæmon startup script would use PAM13:38
=== ksx4system_ is now known as ksx4system
=== hxm is now known as Guest15809
=== cpaelzer is now known as cpaelzer_afk
zertyuohi there15:26
zertyuoi try to install vsftpd15:27
zertyuoon my ubuntu server15:27
zertyuoi would like to know how to restrict access to one of my user on /var/www just only ?15:27
david2I'm trying to delete a partition that was used for LVM using the ubuntu server installer, but it's saying the partition is in use by the lvm group, and the installer doesn't seem to have fdisk/parted/etc15:36
* CornishPasty = david215:41
david2It does appear I fixed it by messing around with pvremove and then rebooting15:42
Wamphyriis there a way to take / which is currently ext4 and convert it to lvm+ext415:43
lordievaderWamphyri: If you have multiple disk, dd.15:44
Wamphyrisingle disk15:44
lordievaderThen it will be difficult, not impossible but difficult.15:47
=== cpaelzer_afk is now known as cpaelzer
jamespagehey smoser - any opinion on https://code.launchpad.net/~james-page/simplestreams/multihypervisor/+merge/278127 ?16:44
smoseri think loong ago i said somethign about that..16:45
smoserforget what it was.16:45
smoserjamespage, is 'hypervisor_type' a openstack documented thing ?16:49
jamespagesmoser, it is16:49
smosercan it be a list ?16:49
smoserhttp://docs.openstack.org/cli-reference/content/chapter_cli-glance-property.html16:49
jamespagesmoser, http://docs.openstack.org/cli-reference/content/chapter_cli-glance-property.html16:49
smoserright.16:49
smoserit woudlseem limiting for us to say 'qemu' when in all likelyhood that image shoudl run in xen at least16:49
jamespagesmoser, I don't think so but I'll check16:50
jamespagesmoser, yeah that was actually my concern about turning this on by default16:50
rbasakkickinz1_: could you take bug 1518440 please?16:53
ubottubug 1518440 in tgt (Ubuntu) "tgt fails to install in LXD" [High,Triaged] https://launchpad.net/bugs/151844016:53
=== Lcawte|Away is now known as Lcawte
smoserjamespage, well, i'll put that comment there.17:02
smoserbut thats my only reservation17:02
acmehendelCan someone provide me with some info on how to set up a streaming video server?  Going up stream and down stream?17:08
Wamphyrilordievader, difficult sounds interesting17:08
acmehendelwhere there is a cam on one end somewhere remotely that streams to another end like a browser?>17:08
Wamphyriglad you said not imposable lol17:08
=== IdleOne is now known as Guest31736
lordievaderWamphyri: You create a secondary partition large enough to hold the root. On that partition you build a pv. Put an lv on there for your root-fs. Dd your root-fs over. Then remove the original root-fs and enlarge the pv in someway. (Ofcourse all of this should be done in a live-cd after making a backup)17:46
Wamphyriit would all need to be done through a kvm17:46
lordievaderEven better, you can do everything from the host.17:47
lordievaderAssuming you have access to the host.17:47
=== Lcawte is now known as Lcawte|Away
kickinz1_rbasak, OK, I'll take it.18:27
=== Lcawte|Away is now known as Lcawte
rbasakkickinz1_: thanks!18:51
fuzzywuzzyCan anyone recommend a simple to use HID for Ubuntu server?19:23
andolHID, as in a keyboard? :)19:25
fuzzywuzzyhost intrusion detection19:42
fuzzywuzzy=P19:42
DammitJimdo you guys know the proper way of getting iptable rules to load upon a server reboot?19:49
DammitJimfor some reason the rules I have added aren't getting set if I restart my server19:49
DammitJimbut the bottom line is that it seems that if I add a new rule, I'll have to > my iptables-save to a file?19:50
lordievaderDammitJim: Write a service that restores your iptable rules.19:53
DammitJimI was reading about iptables-persistent19:53
DammitJimmy confusion is that every time I change my rules, I'm going to have to not only iptables-save, but also do what I described above... is that correct?19:54
lordievaderWhat did you describe besided iptables-save?19:55
DammitJimiptables-save > /etc/iptable-rules19:55
DammitJimI don't know why it feels odd to have to create a service to deal with this19:55
lordievaderFor me that is the only thing I have to do to have it saved.19:55
DammitJimso, you didn't create a service as you had suggested?19:56
lordievaderI did.19:56
DammitJimare you using iptables-persistent ?19:56
lordievaderIt loads ipset and then iptables and ip6tables. No, I do not use iptables-persistent.19:56
DammitJimyikes19:57
DammitJimok, thanks lordievader19:57
fuzzywuzzyanyone using Apache 2 seen an issue with corrupted .htaccess?20:18
patdk-wkheh?20:21
patdk-wkwhat does one have to do with the other?20:21
geniifuzzywuzzy: the webserver doesn't write to those files, that would be a security problem20:26
=== chmurifree is now known as chmuri
=== cpaelzer is now known as cpaelzer_afk
Lukewhat do I need to do to ensure the group level permissions are always matching the parent dir on newly created files in that dir?22:51
Lukei have the dir as "2770" and the "2" bit preserves the group but not the group permissions22:51
Lukei want all new folders to be 770 and all new files to be 660 when they're created in that dir22:52

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