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

dorkwhat do people typically use for wan failover on an ubuntu router, basically just need to swing the default gateway to a slave if the router can't hit an ip via icmp01:22
dorkor anyone know if keepalived can do that01:22
patdk-lapheh?01:24
patdk-lapI thought keepalived died awhile ago01:24
* patdk-lap just uses ospf01:24
dorkpatdk-lap: you using quagga?01:31
dorki wasn't sure if ospf was the right protocol to use for this since i only have a border router and nothing routing downstream in my network, i just need failover for a multihomed ubuntu router stack that uses keepalived for lvs/vrrp so that the local network has a floating vip for its default gateway01:32
dorkso wasn't sure if keepalived could handle that as well01:33
dorkbut originally i was thinking of ospf for this just didn't know if it was overkill01:33
patdk-lapwell, depends on what you need01:35
patdk-lapvrrp is the simple way01:35
patdk-lapbut as soon as you add in any kind of firewall, it will get complex01:35
dorkhow so01:36
kteckcaHello?02:50
lordievaderGood morning.06:00
=== Lcawte|Away is now known as Lcawte
=== markthomas is now known as markthomas|away
skylitehow can I mount an nfs by giving the username and password in one command?08:06
lordievaderSince when does nfs require a username and password?08:07
skylitelordievader since: mount.nfs: access denied by server while mounting .....08:08
jellyskylite: is your client's IP or hostname allowed to mount?08:09
skylitejelly yes08:09
lordievaderskylite: Look in the server's logs why it is denying you. That is not due to a username or password since nfs doesn't use that.08:10
skyliteah ok08:11
skylitelordievader got it thanks08:14
lordievaderskylite: ;)08:15
ubuntugeekhi all unable to install the zenoss core on ubuntu 14 on an aws ec2 instance08:41
KlausedSourceGood Morning, I have ubuntu-server 14.04 LTS installed on my arm7 machine. On top of that runs an owncloud server which I want to use php-apcu 4.0.7 with. The problem is it is not in the repositories. So I downloaded it manually.08:42
KlausedSourcewhen trying to install the .deb with dpkg i get the following output "php5-apcu depends on phpapi-20131226, ; however:  Package phpapi-20131226 is not installed."08:43
ubuntugeek hi all unable to install the zenoss core on ubuntu 14 on an aws ec2 instance   i followed this link but 8080 port is not running http://idroot.net/tutorials/how-to-install-zenoss-on-ubuntu-14-04/08:44
ubuntugeekplease help me out08:44
KlausedSourceSo when I try to install phpapi-20131226 I get: "Package phpapi-20131226 is not available, but is referred to by another package."08:44
KlausedSourceHow can I resolve this "the ubuntu way" without messing something up?08:44
ubuntugeek hi all unable to install the zenoss core on ubuntu 14 on an aws ec2 instance   i followed this link but 8080 port is not running http://idroot.net/tutorials/how-to-install-zenoss-on-ubuntu-14-04/08:49
ubuntugeekis der anybody08:49
ubuntugeekto answer i08:49
ubuntugeekit*08:49
lordievaderubuntugeek: Is anything listening to that port?08:57
ubuntugeeklordievader   no09:02
lordievaderRead the script they gave you and try to figure out why there ain't anything listening to it.09:02
ubuntugeekactually aws ec2 instance having 2 ip's 1)private 2)public so it is configuring at private ip so how can i acess zenoss dashboard?09:03
ubuntugeekdo i ned to install apache2 and liten set it to 8080 port lordievader09:04
lordievaderI suppose the program runs its own web server. I don't know the program.09:07
ubuntugeekcan u check zenoss installation please?09:10
ws2k3does the sshd server has an error log? sshd is installed but when i restart it it says unknown instandse and ssh is not reachable09:10
lordievaderubuntugeek: No, the script looks rather ugly.09:11
ubuntugeekcan u make google research09:13
jellyws2k3: if you're using debian, then ask only in #debian.  service startup can differ a lot.09:14
lordievaderubuntugeek: You can ;)09:14
jelly(ws2k3 said they were using wheezy, in #debian, after being warned they asked exactly the same question in both channels)09:15
jamespagesmb, good morning09:38
jamespagesmb, how goes dpdk?09:38
smbjamespage, morning. it goes here and there... making progress, I am about to put a new revision with some updates to my ppa09:40
jamespagesmb, I'm going to push a ovs 2.4 snapshot sans the dpdk support to wily today (pending some successful local testing)09:46
jamespagesmb, as I'm away from end of thurs and want to get my new upstream rev's in before I go09:47
jamespage:-)09:47
smbjamespage, not sure we handle all the MIR/optional FFE in time but we try09:47
jamespagesmb, well if we could get it in the queue for the 20th (uploaded, MIR raised) that would give us a fighting chance!09:48
smbjamespage, yeah, that kind of is this weeks plan since I also will be somewhere else next week09:49
jamespagesmb, ack09:50
jamespagesmb, I think we can enable the dpdk bits post freeze ok09:50
jamespageits not the 'default' - just an option09:50
smboption and completely new package, so I also think the enabling is not that big of an issue.09:51
smbjamespage, but since I have not yet gone through a MIR handling that is more the unknown lands09:51
jamespagesmb, https://launchpad.net/ubuntu/+source/openvswitch/2.4.0~git20150810.97bab95-0ubuntu110:58
jamespageI really hate powerpc sometimes10:58
smbjamespage, not sure what makes you think I am a lover. :)11:04
jamespagesmb, oh it was just a passing comment :-)11:04
jamespagelol11:04
smb:)11:04
arcskyGuys where do i add dns servers from CLI ?11:16
ogra_man resolvconf11:20
arcskyI have added dns-nameservers 192.168.1.254 8.8.8.8 in /etc/network/interfaces and restarted it but nothing works11:23
patdk-lapthat assumes your using resolvconf11:26
ogra_which all ubuntu installs do by default ... usually :)11:27
arcskypatdk-lap: where do i add it then?11:28
patdk-laponly if he didn't upgrade from an installal prior to resolvconf11:29
TJ-arcsky: what does "/etc/resolv.conf" contain?11:29
arcsky# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)11:29
arcsky#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN11:29
TJ-arcsky: OK, so resolvconf hasn't added the "nameserver ..." line(s)11:30
arcskyok what can i do then?11:31
arcskyfor ages i have only used resolv.conf. where to add it?11:31
TJ-arcsky: Is it still a symbolic link?  /etc/resolv.conf -> ../run/resolvconf/resolv.conf11:33
arcskyyeah11:33
jellyarcsky: it depends, how is your network configured?11:33
arcsky/etc/network/interfaces11:34
jellyiface ... inet static?11:34
arcskyyeah11:34
TJ-arcsky: what does this report? "resolvconf --updates-are-enabled && echo Yes"11:35
arcskyoutput YES11:35
TJ-arcsky: Is this interface enabled automatically, aside from the dns-nameservers being ignored? ... can you pastebin "/etc/network/interfaces"11:36
jellyarcsky: add a "dns-nameservers your.dns.recursor.ip another.dns.recursor.ip" to the iface stanza, if it's not there.  There's an example in "man resolvconf"11:37
arcskythis is wierd feature Ubuntu has made11:37
arcskykeep the classic way11:37
arcskyhttp://pastebin.com/uRcuG17W11:38
jellyso you already have a dns-nameservers line11:40
arcskyyes but it doesng work to ping google.com11:40
* jelly wonders where arcsky's loopback iface definition has gone11:41
TJ-arcsky: any clues from "sudo ifup --verbose --no-act"11:41
arcskyjelly: my lo0 is up dont worry11:41
jelly(also, resolvconf comes from Debian, it's not an Ubuntu-specific weird feature)11:42
arcskyresolv.conf i work with gentoo,slackware,debian,(old ubuntu),redhat,centos11:42
TJ-jelly: loopback is an internal i/f; ipfup -a brings it up11:42
TJ-s/ipfup/ifup/11:43
jellyTJ-: maybe, but the "iface lo inet loopback" it's still present in my trusty interfaces file11:45
arcskyok i delete this shitty symlink and run the old classic way. thanks anyway guys11:45
TJ-arcsky: I'd guess the problem is you've got something preventing resolvconf from doing it's thing (writing the correct entry to "/etc/resolv.conf") when the boot scripts call "ifup -a"11:47
TJ-arcsky: see https://wiki.debian.org/NetworkConfiguration#Defining_the_.28DNS.29_Nameservers11:48
TJ-arcsky: I suspect your issue is you haven't *indented* the lines in "/etc/network/interfaces" below the "iface eth0 " - indentation is required for the parser to figure out which statements belong to the interface11:51
lordievaderarcsky: Is /etc/resolv.conf still a symlink to /run/resolvconf/resolv.conf?11:54
arcskyi did delete it. did create a new one.  and chmod -x /etc/ini.t/resolvconf11:58
arcskyworks like a charm11:58
JanCTJ-: according to interfaces(5) “Options are usually indented for clarity (as in the example above) but are not required to be.”12:38
freezeveeis anyone using Chef ?12:47
TJ-JanC: I know, but the Debian guide states "Place the line indented within an iface stanza, e.g., right after the gateway line. Enter the IP addresses of the nameservers you need to use after dns-nameservers."12:57
JanCTJ-: so there is a bug somewhere then?  :)13:07
=== cipi is now known as CiPi
dman777_alterwhen I ssh into my ubuntu server and do env, I get TERM=rxvt-unicode. But when I ssh into my gentoo server I get TERM=rxvt-unicode-256color. This is from the same client pc that I am using to ssh. How can I make the ubuntu server TERM=rxvt-unicode-256color?13:22
TJ-JanC: I'm looking at the code of ifupdown: config.c:get_line() does "while (isspace((*result)[first]) && (*result)[first]) { ..." so it skips over any space-like characters13:25
JanCso that would mean that Debian guide is wrong?  :)13:26
jellyJanC: it's not wrong, but it's not exhaustive and complete either13:29
TJ-The indentation is optional not required, so not a cause for a failure13:31
JanCto be honest, making indentation mandatory would probably have been better...13:31
jellywhitespace as syntax is for crazy people.  And pythonistas.13:31
JanCbut changing that now would be impossible13:31
TJ-jelly: fully agreed :D13:31
ogra_systemd-networkd will make that discussion moot anyway :P13:32
JanCpretty much every programming language uses whitespace as part of its syntax ;)13:32
TJ-JanC: but most do not enforce a type or quantity of white-space, as long as it is 1+13:33
cofoHi14:14
cofoI setup LAMP in ubuntu usin digitalocean and I don't know how to add tables14:14
tewardadd tables...?14:15
tewardoh., you mean to mysql?14:15
cofoyes14:15
* teward forgot what LAMP meant for a moment :P14:15
cofoI don't remember my password.14:15
cofoPeople referer me to here from #ubuntu, #ubuntu-offtopic and #mysql14:15
tewardcofo: usually i just `dpkg-reconfigure mysql-server-VERSION` (where VERSION is the version of mysql installed), but i've become a postgres convert :P14:17
jrwrencofo: if you used dpkg to set the root password, its in a file: /etc/mysql/debian.cnf14:17
cofoi think i found my password thanks god14:17
cofoi don't know how to add table14:17
cofolike in webhost14:17
tewardcofo: typically the web applications you're installing will set up the database/tables for you14:18
tewardor, you provide the database and credentials and it sets up the tables14:18
tewardso i'm not sure what you're trying to do/achieve14:18
cofoI don't understand14:19
cofoIm creating an app14:19
tewardcofo: OK that's what you left out14:19
cofothe thing is to create table and put their information like user an password14:19
cofohttps://www.irccloud.com/pastebin/Y37N7C5T/14:29
cofoAny help?14:29
cofomysqld --console14:29
jrwrencofo: you likely need to run that as the mysql user.14:30
cofohttps://www.irccloud.com/pastebin/l0b0Vd17/14:30
cofoI tried14:30
cofoI should reinstall ubuntu?14:32
cofojwren:14:33
jrwrencofo: no, never. reinstall is for folks who cannot learn.14:33
cofoPlease assit me14:33
jrwrencofo: sudo -u mysql mysql14:33
cofoassist*14:33
cofohttps://www.irccloud.com/pastebin/jxwC6Zxk/14:33
jrwrencofo: read this: https://help.ubuntu.com/stable/serverguide/mysql.html14:34
cofosudo /usr/bin/mysql_secure_installation i able to login14:34
cofobut i dont know14:34
maxbYou should learn how to use MysQL14:34
maxb* MySQL14:34
cofoI don't know14:35
cofoyeah14:35
cofoi able to do it14:35
cofoi change -u to user14:35
jrwrensee also: https://help.ubuntu.com/community/ApacheMySQLPHP14:37
cofoi able to login into mysql14:38
cofo:)14:38
cofomy self14:38
dman777_alterwhen I ssh into my ubuntu server and do env, I get TERM=rxvt-unicode. But when I ssh into my gentoo server I get TERM=rxvt-unicode-256color. This is from the same client pc that I am using to ssh. How can I make the ubuntu server TERM=rxvt-unicode-256color?15:12
pmatulisdman777_alter: change the value in your shell's init file. but why do you want to do that? what's the problem?15:37
pmatulisdman777_alter: fwiw, i use urxvt and my TERM value is 'xterm-256color' :)15:38
=== arosales_ is now known as arosales
=== markthomas|away is now known as markthomas
dman777_alterpmatulis: vim colorscheme is messed up16:05
dman777_alterpmatulis: thanks16:11
pmatulisdman777_alter: right, i changed mine around a few years back due to vim as well16:13
=== markthomas is now known as markthomas|away
rcjstgraber, Is there a way I can use nested containers with LXD?17:55
=== Lcawte is now known as Lcawte|Away
=== Lcawte|Away is now known as Lcawte
blizzowI was trying the ubuntu cloud-installer to install openstack.  I'm installing on an ubuntu 15.04 server bare-metal machine with 16GB RAM and kvm-ok returns all good.  I did the single installer mode, the installer gets through bootstrapping juju but then fails at starting the KVM hosts.  I went into the lxc console during the juju bootstrap and did a force installation of virtinst and qemu-kvm while it's trying to bootstrap juj18:29
blizzowThe thing I see in the qemu logs within the lxc container is this:  libvirt:  error : libvirtd quit during handshake: Input/output error18:31
sarnoldhey blizzow, I got to thinking about that over the weekend.. check dmesg, there might be IO errors to the disk18:33
blizzowsarnold: dmesg shows nothing on either the container or the bare-metal host... I've also tried this on a VM and get the same problem. :(18:37
sarnoldblizzow: well, that's good news for your hardware anyway :)18:37
VillageHello Guys, i faced with problem when installing MySQL - "sudo apt-get install mysql-server php5-mysql" i got error - http://pastebin.com/yAA1kJdi maybe who knows what's can be?18:37
sarnoldblizzow: I'd say it's time to file a bug against it18:38
blizzowsarnold: agreed.18:38
sarnoldVillage: scroll back up, the error that happened is higher up18:38
Villagesarnold, let me check18:39
Villagesarnold, maybe this - http://pastebin.com/nZd43TKY ?18:42
sarnoldVillage: awesome ;) it's a good start, apt-get install bsdutils and try again18:44
Villagesarnold, thanks, let me try do it at clear VPS, from new, and i will tell you, thanks. Let's try18:45
sarnoldVillage: why all the extra hassle?18:46
VillageBecause not order here now.. i try from new and i will tell you18:47
Villagethere*18:47
Villagewhat i need install can i - sudo apt-get install bsdutils ? Or bsdutils named diferent ?18:48
Villagei willtry18:50
Villagesarnold, i try with bsdutils installed, but same:( Ubuntu 14.04 (64-bit) - http://pastebin.com/WN88i66T19:07
sarnoldVillage: strange. I've never understood why mysql asks to set the password multiple times anyway :(19:10
VillageI enter good root pass19:11
VillageBut why error?19:11
tewardsarnold: that's also you over on oftc19:14
teward?19:14
sarnoldteward: yeah, you can't get away from me ;)19:14
tewardsarnold: good, then you know who to yell at over at OFTC to fix their DNS19:14
tewardso yell19:14
tewardbecause doko and others can't get to OFTC19:14
tewardDNS RR Explosion Confirmed19:14
sarnoldteward: yeah, I've done the yelling that I can do, sadly I can't actually fix it19:16
tewardsarnold: indeed, but i wanted a confirmation that the yelling happened :)19:16
tewardNoResponse on oftc's channel made me like "Hey, did he drop connections...?" ::P19:16
tewardbut yeah i have a v6 addr i can give doko in the interim so they can connect (hopefully)19:17
K4kDoes anyone know of a program, such as apt-offline, that can keep a rolling archive of packages and versions present on a system that can be used to identify the current "state" of a system when using apt-offline19:21
K4kapt-offline is pretty good but it's annoying to have to export the list, specific to the package I want to grab, each time I want to install something. I'd rather just have a file containing the "state of packages" on a system and then download the files needed based on that and update the file if I choose to actually install the packages on the remote system.19:23
stgraberrcj: I've not tried nested LXD, but running LXC instead of a LXD container should be fine, you'll need to set raw.lxc to lxc.aa_profile=lxc-container-default-with-nesting though.20:02
stgraberrcj: btw, did you get my e-mail about changing the lxd metadata for precise and trusty to include upstart overrides for console and tty[1234]?20:03
rcjstgraber, yes.  I was out and failed to create a bug to track.  Doing that now20:04
stgraberrcj: great, thanks!20:04
stgraberrcj: that'll make it much simpler for us to run scaling tests. Currently we're getting a load of around 3000 on the test box due to getty processes respawning in an infinite loop in all containers :)20:05
rcjstgraber, I'll retry with that raw.lxc setting on the container.  Do I not need the "lxc.mount.auto = cgroup" set in some manner as well?20:05
stgraberrcj: nope, lxc.mount.auto as of LXC 1.1 defaults to "sys:mixed proc:mixed cgroup:mixed" which should be sufficient for nesting20:05
=== IdleOne is now known as Guest18872
rcjstgraber, when you have time, can you check out nested containers with LXD?  I just see the lxd daemon constantly restarting.20:25
rcjstgraber, I've pushed the change to add the new template.  I'll let the next daily build pick up the change and we'll see if it works.20:26
stgraberrcj: ok, great, thanks. For nested LXD, can you file a bug at github.com/lxc/lxd?20:26
rcjstgraber, sure20:26
stgraberrcj: we're all a bit swamped with ContainerCon and Plumbers next week, so it's best to have it recorded :)20:27
rcjstgraber, I understand20:27
rcjstgraber, new issue for nested lxd is #1002,  for some reason the nested lxd can't read the server certificate that was created20:52
stgraberthanks20:53
=== markthomas|away is now known as markthomas
=== markthomas is now known as markthomas|away
jasonkeeneanyone know how to write to files via cloud init 12.04? write_files doesn’t work23:06
jasonkeenehttp://serverfault.com/questions/605670/ubuntu-12-04-cloud-init-doesnt-support-write-files-what-to-do23:06
jasonkeenethat’s a pretty disappointing work around23:07

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