/srv/irclogs.ubuntu.com/2014/09/08/#ubuntu-server.txt

dustinspringmanwhat up fishes00:00
dustinspringmanI think I finally know how to ask my question properly! So here goes: what log should I examine for pppd interfaces that are disconnected when a user drops?00:01
=== Sachiru is now known as Guest27942
=== Sachiru_ is now known as Sachiru
=== cgseller1 is now known as cgseller
fl8sh123I am trying to host a webserver running on Ubuntu 14.04.1 and am having a hard time changing from local to public03:08
SP33Doh holly ubuntu server community plz answer my question: does any one can imagin a way to move a directory inside a tar.gz file i mean i got bla.tar.gz that contains /bla/files* now i whant to remove bla to have the content of bla in tar root04:09
SP33Dfl8sh123 hahahha04:10
SP33Dya thats normal04:10
=== Sachiru is now known as Guest83073
=== Sachiru_ is now known as Sachiru
zubairahmedfl8sh123 what are u trying to do05:51
zubairahmedSp33d what are you trying to do05:54
SP33Di need to manipulate a zip file for processing or a tar.gz file05:55
SP33Dall git hub downloads tar.gz are packed inside a tar container a folder with a project name05:55
SP33Dthat needs to be eliminated05:55
zubairahmedCan't you unpack and then repack05:56
zubairahmedI mean untar and tar05:56
SP33Dnot good05:56
SP33Dbut will then probally need to do that05:56
SP33Dif there is no alternate05:56
faryshtahi, how can i configure apache so that *.faryshta uses the /home/faryshta/*/public folder?06:57
=== kickinz1|afk is now known as kickinz1
=== Lcawte|Away is now known as Lcawte
=== phaidros_ is now known as phaidros
Rar9hi need a quick feedback for tomcat8 restarting.... used this to get it installed. http://www.liquidweb.com/kb/how-to-install-apache-tomcat-8-on-ubuntu-14-04/07:39
Rar9service tomcat restart07:39
Rar9Gives me  - tomcat: unrecognized service07:39
lordievaderRar9: Autocomplete the tomcat part, and use sudo. For starting services you need root.07:44
Rar9lordievader entering $CATALINA_HOME/bin/startup.sh gives me the shown output.07:50
Rar9I´ve already restared the server07:50
lordievaderErr, why would you start a service from a script in your home-dir?07:51
Rar9lordievader I´ve just followed the instruction...07:55
Rar9where they wrong?07:55
lordievaderRar9: Could you pastebin that script (I must say I do not know tomcat ;) )08:01
Rar9lordievader I´ve simply followed the step by step install instruction in the above link.08:01
lordievader!info tomcat08:02
ubottuPackage tomcat does not exist in trusty08:02
lordievader!info tomcat708:03
ubottutomcat7 (source: tomcat7): Servlet and JSP engine. In component main, is optional. Version 7.0.52-1ubuntu0.1 (trusty), package size 34 kB, installed size 365 kB08:03
lordievaderRar9: Does it specifically need to be tomcat8? Else I'd suggest you use the one from the repo.08:03
Rar9I´m sorry I´m very new to all of this...08:04
lordievaderRar9: In Ubuntu it is standard practice to install software from the repo. You rarely need to manually download and compile things.08:04
Rar9ok.. but i belive this will then only install tomcat708:06
lordievaderRar9: Do you specifically need tomcat 8?08:07
Rar9I´ve I setup a new server I belive having the laster version of tomcat would help.08:08
=== kickinz1 is now known as kickinz1|afk
ikoniaRar9: why would it help ?08:11
ikoniaRar9: what is your reasoning to think tomcat 8 would be better for you?08:11
lordievaderRar9: It's better to use the one from the repo. This one will receive updates automatically, whereas if you install it manually you need to update it yourself.08:13
* svg looks for help regarding a problem I experience with open-iscsi on precise using the backported package 2.0.873-3ubuntu5~ubuntu12.04.108:18
* ikonia looks for a description of the problem rather than useless meta comments08:20
svgalready being friendly early in the morning ikonia :)08:21
svgI upgraded open-iscsi to that backported package on some precise servers, and since then, devices that hold a FS that should get mounted at boot, are breaking the boot sequence08:22
svgit gets the usual 'press m for manual recovery' message08:23
svgwhat happens is that mountall is trying to mount that device *before* iscsid gets started08:23
svgif I skip thatmount and let the boot sequence continue, the first next thing that happens is iscsid getting started...08:24
=== kickinz1|afk is now known as kickinz1
=== kickinz1 is now known as kickinz1|lunch
=== kickinz1|lunch is now known as kickinz1
reshadfarHi guys. I just upgraded my ubuntu to 14.04 and unfortunately my mailserver messed up Is there someone who can help me get it up and running again?13:26
=== mollerup is now known as nmollerup
patdk-wk!ask13:32
ubottuPlease don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-) See also !patience13:32
jamescarrhello15:23
jamescarrI installed https://launchpad.net/ubuntu/precise/+package/libmemcached-tools15:23
jamescarrnone of the binaries the package provides seem to be present on my system15:23
jamescarrcheck this out15:23
jamescarrnevermind15:24
jamescarrnothing to see here15:24
xperiahi all. small question. what is best solution to have a real fast gigabit network storage server solution for my webserver where i am able to store gigabit of web data and access it over the network to proccess that data? What for a throughput can be expected from such a decentral network storage inside a gigabit lan network?15:26
xperiawould a ubuntu nfs server be enoght? is this the best and fastest solution or does it exist some other special software for such storage cluster ?15:27
=== matsubara is now known as matsubara-lunch
smoserhallyn, how dows python know this: http://paste.ubuntu.com/8291613/16:10
smosersomehow it knows that i can't open /dev/loop0 as write.16:10
hallynsmoser: it uses access(2)16:11
hallyn(so the kernel tells it)16:12
=== Ursinha is now known as Ursinha-afk
tewardrbasak: FYI, for nginx, https://bugs.launchpad.net/nginx/+bug/1366651 is extremely relevant, and we should probably review the package before it's included in the future.  It's changes in Debian which break configs for most default-config users, which means it's extremely relevant to users of the package.  (When considering a merge/change for the next release or even a late change this one)16:12
uvirtbotLaunchpad bug 1366651 in nginx "1.6.1 upgrade breaks fastcgi / php5-fpm with changed config file" [Undecided,Won't fix]16:12
hallynunfotunately there is no equivalent for kill :(16:13
hallyntha ti know of16:13
rbasakteward: thank you for the heads-up. It sounds like this is the sort of thing we want to change in-between releases and before feature freeze only.16:24
tewardrbasak, right.  1.6.1-2 which introduced the change only came out 2 days ago so I don't think it's a hugely important thing to be aware of16:26
tewardat least, not at this point in the cycle16:26
tewardrbasak, big FYI though: this is due to nginx Debian syncing configs up with nginx upstream, so..........16:26
tewardrbasak, it's Won't Fix in the PPAs because it's synced up with Debian/Upstream, but for Ubuntu it's going to need considerations in the future16:27
rbasakteward: I think it makes sense to sync, but we'll want a release note for it.16:27
tewardrbasak, i suggest you check the changelog of 1.6.1-2, the lua module is against luajit now16:27
tewardso that may break main16:27
tewards/main/main eligibility/16:27
rbasakLovely.16:28
teward(i'm alive more, now, btw, now that i'm back at college instead of pulling 8 hour days of work :))16:28
rbasakteward: that's great, thanks. I hope my last merge was OK?16:32
tewardrbasak, haven't peeked, been busy up until a few days ago (including but not limited to taking the gf out to dinner, proposing to her, her syaing yes, and preparing that whole thing...)16:33
tewardrbasak, i haven't seen any new bugs against it but i also don't have utopic server VM set up to test either16:34
tewards/have utopic/have a utopic/16:34
cfhowlettteward, too much work.  sudo /join --matrimony gf --verbose16:34
tewardcfhowlett, lol16:34
tewardcfhowlett, regardless now, she said yes, so........... :)16:35
tewardhaving said this, that's been a recent development keeping me from peeking at rbasak's last merge :)16:35
tewardrbasak, i'd suggest you keep an eye on the nginx bugs as well as nginx in Ubuntu bugs, because issues for Ubuntu will probably be seen ahead of Ubuntu inclusion in the nginx project, i'm pointing people who report PPA bug issues right to the nginx project on LP16:36
tewardthis is one of those kinds of bugs16:36
hallynjdstrand: with libvirt 1.2.8, su -c "sudo -H -u serge2 virsh -c qemu:///session capabilities"  is failing with16:39
hallynerror: failed to connect to the hypervisor16:39
hallyndoes that ring any bells for you?16:39
hallynerror: Failed to connect socket to '/home/serge2/.cache/libvirt/libvirt-sock': No such file or directory16:39
jdstrandhallyn: sorry, no16:41
hallynok, thx, guess i'll have to bisect this bad boy16:41
hallynif the default session sock moved i'd have expected a git commit msg mentioning it16:42
jdstrandhallyn: fyi, I am trying to land 1.2.6-0ubuntu6 today (https://launchpad.net/~ubuntu-security-proposed/+archive/ubuntu/ppa/+packages)16:42
hallynjdstrand: does that include only upstream fixes?16:43
hallynreally 1.2.8 is only hung on my figuring out what the heck is going on with qrt failing16:43
jdstrandhallyn: that contains only changes to apparmor policy on Ubuntu16:44
hallynok, zul ^ we'll have to make sure to remember to fit those into 1.2.8 :)16:44
zulerm16:46
hallynd'oh16:48
hallynjdstrand: nm, found it.  libvirt has stopped creating ~/.cache/libvirt/ before creating the unix sock under there when it needs to16:48
jdstrandcool16:48
=== matsubara-lunch is now known as matsubara
tewardrbasak, FWIW, your dep8 smoketests got included - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756391 - http://anonscm.debian.org/cgit/collab-maint/nginx.git/diff/?id=0aaa29616:49
uvirtbotDebian bug 756391 in src:nginx "No dep8 tests" [Wishlist,Fixed]16:49
tewardrbasak, otherwise, merge looks good.  :)16:50
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
hallynzul: feh.  so i fi can find the fix for libvirt no longer creating ~/.cache/libvirt, the bigger problem is that it is not creating apparmor policies for kvm domains at all.17:26
zulhallyn: quality stuf..17:27
hallynit must be fallout of the container policy stuff.  as i recall files were renamed, so we'll have to update17:27
=== Ursinha is now known as Ursinha-afk
=== wendar_ is now known as wendar
=== Ursinha-afk is now known as Ursinha
NoReflexhello! is there a way to enable boot logging in Ubuntu 14.04.1 LTS?18:59
NoReflexI installed bootlogd and it intstalled successfully but I don't know if bootlogd is working yet because I've seen many reports for older versions that it does not work anymore19:07
=== UKn0Me is now known as ohsomanyhats
NoReflexanyone?19:34
=== kickinz1 is now known as kickinz1|afk
pmatulisNoReflex: wow first time i hear of it.  it doesn't seem to be getting much attention from developers19:43
NoReflexpmatulis, it is a shame because many hosting providers provide a rescue mode for machines - where you boot a separate image and can inspect your actual drives19:45
NoReflexso the logs are pretty much all you got in case the machine won't boot normally19:45
pmatulisNoReflex: did you enable under /etc/default?19:47
NoReflexpmatulis, in the file /var/log/boot there is only: (Nothing has been logged yet.)19:55
NoReflexthere is a folder /etc/default19:56
NoReflexbut no bootlogd file19:56
=== snuffeluffegus is now known as gurpgork
pmatulisNoReflex: is the software running?  is it meant to run only at boot time?  dunno20:01
NoReflexpmatulis, neither do I; I created the bootlogd file but after reboot same thing20:12
NoReflex(Nothing has been logged yet.)20:12
NoReflexI found an error message saying: rescue rsyslogd: imklog: cannot open kernel log(/proc/kmsg): No such file or directory.20:14
NoReflexbut I don't know if that is the culprit20:14
TJ-NoReflex: I came in after you started describing your issue, but could it be that the log output from /dev/console is being captured by plymouth, in which case it gets dumped to /var/log/boot.log20:15
NoReflexTJ-, could be but the boot.log file is old ...20:16
NoReflex-rw-r----- 1 root              adm     31 Sep  8 21:03 boot20:16
NoReflex-rw-r--r-- 1 root              root  6.9K Jul 13 11:17 boot.log20:16
NoReflexand boot only contains - nothing logged20:16
TJ-No_one_at_all: What's the base system the OS is booting on?20:16
TJ-oops!20:16
TJ-NoReflex: : What's the base system the OS is booting on?20:16
NoReflexTJ-, Description:    Ubuntu 14.04.1 LTS20:17
=== esde is now known as Guest90980
TJ-NoReflex: On bare metal, or virtualised. If a VM, which hypervisor?20:17
NoReflexafter an update (apport issued some errors) the machine boots apparently but cannot access it, does not respond to ping20:18
NoReflexTJ-, bare metal hosted at a provide, I don't have physical access to it; I can only access a recovery shell where I can access my drives and chroot20:19
TJ-NoReflex: OK; are you also able to alter the boot configuration such as kernel command-line manually, or do you have to alter grub.cfg via rescue shell each time, to do that?20:20
NoReflexTJ-, I don't have any control over the boot process20:24
TJ-NoReflex: So you'd have you use the rescue shell to edit grub.cfg to add kernel command-line options20:24
NoReflexyes20:25
TJ-NoReflex: From what you're saying you have no remote KVM over IP, or IPMI, or serial-over-LAN connection to the bare-metal ?20:25
NoReflexTJ-, none; I only have that rescue shell20:27
TJ-NoReflex: So the issue is that the boot process is hanging at some point?20:27
NoReflexTJ-, most likely because I don't have any access to the machine when t boots normally; it does not even respond to ping20:28
NoReflexthat is why I thought bootlogd might help20:28
TJ-NoReflex: OK, well use what you've got. You only know that networking, or more accurately, sshd, doesn't become available?20:29
NoReflexyes20:30
TJ-NoReflex: Are there any netfilters DROP rules st by iptables at boot-time? If so, it's worth temporarily adding an ACCEPT for you client's address to ensure it can get through despite other rules. Then, try pining the server once you know it should have started. If the indicates no networking, then go back to the rescue shell.20:30
TJ-Before you leave the current rescue shell, add a command to "/etc/rc.local" to show whether it gets to that point: "echo "rc.local" > /var/log/rc.log"20:31
TJ-Next time you use the rescue shell check for that file - if it existing you know the boot is getting that far. If not, you know it's an Upstart/init issue. You might also add "--verbose and "--debug" to the *end* of the default menuitem "linux ..." line in "/boot/grub/grub.cfg" to force Upstart/init mountall and other boot-time processes to do more logging20:33
NoReflexTJ-, the iptables rules should be in /etc/iptables.rules right? or something similar20:33
=== Guest90980 is now known as esde
NoReflexand the loading should appear in /etc/network/interfaces20:34
NoReflexthere is nothing about iptables in /etc or network/interfaces20:34
TJ-NoReflex: You might also add to the kernel command line the options to have the kernel set the public IP on the public ethernet interface so there's early networking available, with that you could even configure it to write to a netconsole (being your local PC with "netcat -l ..." listening)20:34
TJ-NoReflex: It depends on what 'firewall' configuration tools are in use; if it is just iptables-{save,restore} then yes, 'interfaces' should have an entry for those20:35
TJ-NoReflex: It'd be worth creating a dedicated menuitem in "grub.cfg" with all the remote debug options needed, and then configure grub to automatically use that entry if it detects a boot failure.20:36
TJ-NoReflex: That's something else you need to consider - the system might be simply sitting at the GRUB menu waiting for a manual selection due to a previous boot failure20:36
NoReflexTJ-, isn't there a timeout for the boot process? never heard of waiting indefinitely at boot20:37
TJ-NoReflex: there are three. By default, if a boot fails the system waits indefinitely20:38
TJ-NoReflex: However, there is GRUB_RECORDFAIL_TIMEOUT which simple changes "set timeout=-1" to "set timeout=<some number of seconds>". If you edit "/boot/grub/grub.cfg", look for the current "set timout=" line and make that a positive number that will ensure the system continues to boot if it is waiting at the boot menu20:39
NoReflexTJ-, if [ "${recordfail}" = 1 ] ; then20:40
NoReflex  set timeout=-120:40
NoReflexelse20:40
NoReflex  if [ x$feature_timeout_style = xy ] ; then20:40
NoReflex    set timeout_style=menu20:40
NoReflex    set timeout=220:40
TJ-This:20:40
TJ-if [ "${recordfail}" = 1 ] ; then20:40
TJ-  set timeout=-120:40
TJ-else20:40
TJ-"recordfail" is the boot flag set on each boot. The OS has to start and clear that flag otherwise GRUB finds it still set and then will wait20:41
NoReflexI changed it to 2320:44
NoReflex320:44
TJ-NoReflex: Add "debug --verbose --debug" to the end of the default menuitem's "linux ..." entry too ... best to do belt-and-braces debugging here since you have to use that rescue shell20:46
NoReflexadded; do I have to regenerate the boot image now?20:47
TJ-NoReflex: No; that file is read by GRUB's "normal" module at boot-time and the shell-script like commands executed20:48
NoReflexTJ-, thank you, very much!. I'm sure to give it a try tomorrow morning as it is late here20:57
NoReflexthanks again for your time!20:57
=== Locke2002 is now known as Guest15478
netameta_anyone familiar with ec2/aws or knows of a channel that relate to that ?21:29
=== netameta_ is now known as netameta
TJ-netameta_: See the AWS FAQ, "Q: How do I access my systems?"21:31
netametaTJ- nah thats not my question though, was wondering if i am intended to get 1 public DNS per account or 1 per instanse , currently i have 3 instanse and only 1 DNS21:33
TJ-netameta: What is a "DNS" ?21:34
=== SpamapS_ is now known as SpamapS
netametaTJ-, domain name server ?21:35
netametaor are you asking something else ?21:35
Monotoko2in simple terms it's what translates a name into an IP address21:36
TJ-netameta: So do you mean A or CNAME records in a zone file, that resolve names to IP addresses?21:37
TJ-netameta: The AWS FAQ answer to the question I pointed you to says "The RunInstances call that initiates execution of your application stack will return a set of DNS names, one for each system that is being booted. This name can be used to access the system exactly as you would if it were in your own data center. You own that machine while your operating system stack is executing on it."21:37
netametaMonotoko2, thanks. TJ- yea i am suppose to have a DNS for each server.21:39
netametaTJ- and currently i am only getting one21:39
Monotoko2netameta: where are you getting them from?21:40
netametaI am talking about ec2 in amazon21:40
netametai have 3 instanses running, and only 1 has an public IP/ public DNS21:41
=== Lcawte is now known as Lcawte|Away
Monotoko2netameta: Yeah... you want another IP22:29
Monotoko2and a slave DNS box setup22:30
Monotoko2or you could just use Route 5322:30
netametabox setup ?22:30
sarnoldthere's no need for all that if you just want to use the amazon-assigned IPs and DNS names22:31
Monotoko2Route 53 does it all for you... or you can just use your registrars servers (just add an A-record for @ and www pointing to your public IP)22:32
netametawell sarnold, and monotoko2, i am trying to set up a loadbalancer22:39
netametaso i've create 3 instanses to test and that's where the problem came from22:39
zartooshHi using ubuntu 14.04, what faiclity I need to use for detecting hotplug events please?22:41
sarnoldzartoosh: udevadm monitor is probably a good starting point22:42
zartooshsarnold, thanks22:42

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