/srv/irclogs.ubuntu.com/2014/04/25/#ubuntu-server.txt

=== jrgifford__ is now known as jrgifford
=== robher_ is now known as robher
jeremy_carroll_Question. Is there any documentation on how Canonical creates the cleanup process for the UEC images? i'm downloading, modifying, then re-bundling a UEC image. I want to ensure that I cleaned up all boot artifacts correctly.02:00
med_jeremy_carroll_, that's not really a supported process.  You shouldn't ever "boot" them to modify them.02:08
med_Canonical doesn't "clean" them, it makes them pristine from the get-go.02:09
med_and they generally aren't called UEC images (well, not for the last 3 years or so.)02:09
jeremy_carroll_med_: :) Any information on what makes them different then a vanilla install? Ex: How they are built?02:09
med_jeremy_carroll_, they are built (or were) with vm-builder02:10
med_yes, they are distinct from a vanilla install.02:10
med_They include cloud-init is one of the HUGE differences. It allows you to take the generic cloud-image and at boot time make it into whatever you want.02:10
med_A much more supportable way to go.02:10
med_https://help.ubuntu.com/community/CloudInit02:11
jeremy_carroll_med_: Currently a big fan of CloudInit. We have custom modules ourselves. Works great. Looking into what makes a Cloud Image unique so I can modify it to suit our needs. I did not find much in the way of what makes the provided images different than stock ISO builds. Etc..02:12
med_CloudInit is likely the Windows functional clone of cloud-init02:12
med_you can look at the manifest to see what differs.02:13
med_this is what's in an ubuntu cloud image: http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64.manifest02:13
med_the server iso doesn't have a published manifest (though you may be able to extract one). That will tell you the difference.02:14
jeremy_carroll_So no other modifications other than package builds?02:14
jeremy_carroll_Er. Packages installed?02:14
med_basically, that's how ubuntu is made -- from packages02:15
med_even the isos02:15
jeremy_carroll_Fantastic. Thanks for your assistance. Very helpful.02:15
med_jeremy_carroll_, reading scott moser's blog is a great use of time if you really want to understand... http://ubuntu-smoser.blogspot.com/02:18
jeremy_carroll_Bookmarked. Thanks again. ;)02:18
med_another related blog comes from ben howard: http://blog.utlemming.org/02:18
med_both are (afaik) on the ubuntu server team (or something akin to that)02:19
med_and both follow this channel closely02:19
jeremy_carroll_Hah. Just found that via the link on the first site. ;)02:20
=== Guegs_ is now known as Guegs
=== ming is now known as Guest41611
=== axisys is now known as info
=== info is now known as axisys
AtuMhow can I get the info on what version of the software would be installed if i chose to do so.. I'm trying to find out what version of drbd8-utils is in the repo.05:41
AtuMapt-get changelog gives some info... any other way?05:42
AtuMsomething to just get the version string05:43
pabs3I'm getting really slow downloads (18.1kB/s) from security.ubuntu.com from a server in hetzner.de, is there a faster security mirror I should use?05:53
lkthomashey guys, does anyone know some tools could generate preseed file ?06:13
AtuMlkthomas, I've used vim editor06:14
AtuMWould like to know if anything like this exists, too..06:15
lkthomasAtuM: I mean, a more intuitive tool06:15
AtuMlkthomas, I've seen that it's possible to install system-config-kickstart, but that was of no particular use to me since the kickstart support is really bad06:16
lkthomasI know as well06:16
lkthomasthe best is preseed06:17
AtuMI've researched preseed for 3 days to find how to finally make install from local repo work06:17
lkthomasAtuM: worse part, the time we spend on research already enough for us to provision all Ubuntu and leave the scene06:18
AtuMlkthomas, do you know of a good site that expains the options in more detail? I would like to set keyboard/location and I can't seem to "guess" the right option.06:19
lkthomasAtuM: nope06:19
pabs3https://help.ubuntu.com/12.04/installation-guide/example-preseed.txt06:20
AtuMlkthomas, I might have a cure for you.. it's not a well documented fact.. but this guy found it: http://www.michaelm.info/blog/?p=137806:20
pabs3try picking things from that ^06:20
AtuMmade my network install from local repo usable..06:20
lkthomasWTF06:21
lkthomasso it change from version to version06:21
lkthomasthat's stupid06:21
AtuMpabs3, I have seen this.. not much help.. I need to set Slovenian keyboard.. it always asks me about it06:22
AtuMno matter what I set in the preseed06:22
AtuMlkthomas, well.. glad I could help... my reaction was much the same as yours06:23
AtuMlkthomas, though I understand how the installer process evolved to use an image to copy files over to the target.. it's much more efficient06:24
AtuMI do wish things got documented better when they happen...06:24
lkthomasAtuM: problem is this, it's not well documented and potentially wasting a lot of time on it06:30
lkthomasAtuM: I still struggle if we should get it done , I mean preseed part06:30
AtuMlkthomas, well.. I've done it.. but I can't get my locale set.. I just hate the fact that I need to select all that location/language crap at the beginning of the install.. I've tried many possibilities without any success..06:31
AtuMdocumentation is next to unusable... if only there would be a preeseed template available for each release...06:32
AtuMhm.. preseed is made by debian.. just adopted by ubuntu... perhaps i find answers there06:33
AtuMthough as far as i can tell the installation process is somewhat different in ubuntu06:36
lkthomasbrb06:41
anunakkihello, i'm having an issue with sshd, i've googled and tried multiple methods to resolve the issue with no luck06:52
anunakkisshd is hanging before password prompt06:53
anunakkicant seem to fix it on ubuntu-server06:53
anunakkinever actually had to deal with this issue before on other distrobutions06:53
andolanunakki: How do you define hanging? See anything userful in the server logs? If you connect using ssh -v, (or -vvv), how far do you make it?06:57
anunakkiit makes it all the way, by hanging i mean a fairly significant delay before actually prompting for password06:57
andolptr lookup timeout?06:58
anunakkihere let me paste my verbose login and maybe you can notice something i'm overlooking06:59
anunakkimind if i msg andol?07:00
anunakkimeh actually not really a big deal07:01
anunakkihttp://codepad.org/6MAXNLPO07:01
AtuMI've found a way to get rid of the language/location questions at the beginning of network install.. you have to put these lines into the "append" line of the pxe-boot: "locale=en_US console-setup/layoutcode=<map> keymap=<map>"07:03
andolanunakki: Hmm, any chance you can pinpoint at what line in that listing the delay happens?07:04
anunakkihmm, yea let me see07:04
andolanunakki: Checked the PTR lookup yet?07:04
anunakkii have not07:04
anunakkiseems to hang in two places07:04
anunakkiits a small delay07:04
anunakkiok yea i thought if ixed it but i didnt lol07:05
SpamapSrbasak: 2014-04-25 00:25:28.239 | W: Failed to fetch bzip2:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty-updates_main_binary-amd64_Packages  Hash Sum mismatch07:06
SpamapSrbasak: weren't you going to fix that? ;)07:06
=== kaydo__ is now known as kaydo
rbasakSpamapS: yeah but I kept getting pulled into other things, and it never happened.09:42
* rbasak still has a working implementation somewhere.09:42
MohammadAGHi, I recently added a MediaWiki to my home server, and forgot about it, apparently it was being attacked by multiple IPs and that causes my server to restart all the time09:51
MohammadAGsince I don't need the wiki, I shut it down, but I'm still getting HTTP GET requests to parts of it09:51
MohammadAGI'm trying to use fail2ban to block them, but not much success09:52
MohammadAGthis is the regex I'm using failregex = ^<HOST> -."(GET|POST)./wiki/.*$09:52
=== Lcawte|Away is now known as Lcawte
AtuMHow would I get ocfs2 kernel module version 1.6.x built on 14.04 ??10:16
=== G is now known as Guest98481
pmatulismorning10:43
chrisrermorniiiing10:45
rymate1234I have a discourse instance running on port 8080 in a docker. Is there a way to get appache to redirect all traffic from forums.mysite.com to the discourse instance on port 8080?11:05
mardraumreverse proxy11:06
rymate1234thanks11:07
=== Lcawte is now known as Lcawte|Away
rymate1234yay it worked!11:20
chrisrermardraum i have a local wifi server without internet connection and i want when one user connect to server and type google.com or something else i want to redirect him to localhost .... any ideas?11:26
AtuMchrisrer, set up a dns and insert a record there to point google.com to 127.0.0.111:27
AtuMthat would redirect clients to themselves.. if you want to direct them to your wifi server, then enter that server's ip address to google.com zone11:28
chrisreratum not only google everything type's the user like captive portal....... server have DNS11:28
chrisrerserver not have internet connection everything are local11:29
AtuMoh.. i think there's a setting for that in the wifi-server software.. i remember seeing it11:30
AtuMso it redirects all request to a login server or sth11:30
=== dayangkun is now known as dayangkun_afk
AtuMchrisrer, I've used hostapd afair11:33
chrisrerwhat do you mean I've used hostapd afair11:34
AtuMchrisrer, I was setting up an access point of my own.. i've used software hostapd.. "as far as i remember" :D11:35
chrisreraha.........hostpad is firmware for access point's?11:36
AtuMnot firmware.. software - a manager for wifi ap11:41
chrisreraha let's search about this software ... let's see.........do you suggest a good captive portal to work to another server? or some ready packet with linux to congif only?11:44
bekkschrisrer: What are you actually asking?11:44
chrisrerbekks my first question is: mardraum i have a local wifi server without internet connection and i want when one user connect to server and type google.com or something else i want to redirect him to localhost .... any ideas?.....2:28:50 μμ - chrisrer: atum not only google everything type's the user like captive portal....... server have DNS11:46
chrisrer2:29:22 μμ - chrisrer: server not have internet connection everything are local11:46
chrisrerand my second question: do you suggest a good captive portal to work to another server? or some ready packet with linux to congif only?11:46
bekkschrisrer: What are you talking about? I just read nonsense after the first "....".11:47
chrisreri want to make a second server wifi hotspot with program captive portal and i ask if someone suggest to me a good captive portal or full packet with linux to install to server and make only the configuration ;)11:49
bekksThen maybe you have to clarify what a "captive portal" is, since it isnt a linux software from what I understand.11:51
chrisrerit's linux programs captive portal's i'll give you an example to see my friend https://www.youtube.com/watch?v=lNS32DRc01c#t=1211:56
bekksI am not going to watch some videos.11:56
chrisrerhttp://www.hotspotsystem.com/11:56
bekksHow is that related to redirecting DNS entries?11:58
chrisreri repeat this is my second question...captive portals i suppose tha have ip tables? i don't know some sites suggest to upgrae the firmware from access point's12:04
bekksThats totally unrelated to redirecting a domain name to a specific IP.12:05
chrisreryou mean the captive portal?12:06
chrisreror about my first question12:06
bekksI still dont know what a "captive portal" is about to be.12:06
bekksThat link you gave me is the successor of chillispot, and I never heard "captive" in that context.12:08
Tazmainhi all, what is the best way to copy a large folder to a remote server ?12:08
chrisreryes my friend the name of all this programs are captive portal's general term12:09
bekksTazmain: scp, nfs, cifs, sftp - choose your weapon.12:09
chrisrerlike joomla ,wordpress etc.....called cms12:09
bekkschrisrer: you are totally mixing up things.12:09
bekkschrisrer: chillispot/hotspotsystems has nothing to do with CMS at all.12:10
bekkschrisrer: And "captive systems" in general have nothing to do with redirecting a domain name to a specific IP.12:10
chrisreryes but i give you an example for cms12:10
bekksYou didnt.12:11
bekksYou gave me a link to wireless hotspot software.12:11
chrisrerbekks ifyou take a wifi hotspot and connect with your mobile when you type something like google.com they redirect you to first page12:11
bekkschrisrer: Which has nothing to do with a CMS at all.12:12
chrisrerbekks read slowly my friend i give you an example about general names........chillispot etc are captive portals general name.......and joomla etc are cms12:13
bekkschrisrer: a) I am not your friend b) you are mixing up terms c) you still did not clarify what you are talking about d) and I dont want to know it anymore.12:14
bekksand e) your keyboard is broken, it randomly repeats the . multiple times :)12:14
chrisrerouf ..............bekks find a girl to relax :)12:14
bekkschrisrer: No need to get personal when people tell you you have obviously absolutely no clue about what you are talking about. Good luck. Ignore set.12:15
chrisrerthank you my good friend....xaxaxaxaax12:16
Tazmainbekks, but which one will work if the network drops and just continues ? from windows to remote ubutnu server ?12:19
bekksTazmain: The one that matches your requirements best.12:19
=== ikonia is now known as Guest8168
=== mjohnson151 is now known as mjohnson15
=== Guest8168 is now known as ikonia
chrisreri have ubuntu server 14.04 and when install phplive support extension give me this error: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead ........ any ideas?13:10
rbasakchrisrer: somebody asked this yesterday I think. Was it you? If you don't get an answer here, try askubuntu.com maybe?13:20
rbasakI've no idea what phplive is - maybe try their support options?13:20
chrisreryes i ask yesterday to........ phplive is a chat support script for webpages13:22
chrisrer;)13:23
rbasakDoes it support PHP 5.5? 14.04 provides a major new version of PHP with a number of changes.13:23
chrisreryou know the php version changed etc and i have some problems ...you know from mysql to mysqli13:23
rbasakSoftware that uses PHP will likely need to be updated.13:23
patdk-wkwhy not just use php-mysqlnd instead?13:27
chrisreri'll try but nothind13:28
beisnergood morning all!13:30
jacobwHow should one persist an NISDOMAINNAME in 12.04?13:56
sander^workHi. I'm getting: mount: mounting /sys on /root/sys failed: no such file or directory.. and dropped into initramfs on boot.14:08
yochaiHello all. I have a question involving Ubuntu, Nginx, php5-fpm, and mysql. Is this the right forum?14:14
yochaiThe nginx, php5-fpm, php have not been super helpful14:15
jacobwAre you using Ubuntu Server?14:16
yochaiyeah, 13.1014:17
jacobwOk14:17
jacobw!ask14:17
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 !patience14:17
jacobwShould be fine :)14:17
yochaihere's the situation:14:20
yochaiI'm setting up a simple application (projectsend.org) that uses php+mysql on any webserver. I use nginx. For some reason, I cannot get php to recognize the mysql extensions - if I go to a php page, it shows up as blank. however, if i go to a phpinfo page I created, it generates correctly (and shows no mysql libraries being loaded). thus I know that nginx is correctly pulling in the php5-fpm socket, but14:22
yochaifor some reason php is not loading the appropriate mysql libraries14:22
jacobwIs php-mysql installed?14:23
mardraumdo you have pkg php5-mysql installed ?14:23
yochaiyes14:24
mardraumdid you edit php.ini or related based on some silly web page you read?14:24
yochaiI edited php.ini to allow for logging; that's it14:25
yochaianyways the problem occurred long before that (which is why i was trying to enable more verbose logging)14:25
patdk-wkdid you restart php5-fpm?14:43
yochaiof course I restarted it14:44
yochaiI've been working on this issue for days - restarting php5-fpm, nginx each time. Remember, I can get a working phpinfo page - it just refuses to load any mysql extensions.14:45
patdk-wkwell, there is only one reason for that then14:45
patdk-wkdid you check /etc/php5/conf.d/mysql*14:45
patdk-wkand make sure it wasn't commented out?14:45
patdk-wkoh wait, it changed to an enable module thing didn't it?14:46
patdk-wkor is that later?14:46
patdk-wkphp5enmod mysql14:47
yochaiwill that work with nginx though?14:47
patdk-wkwhat does nginx have to do with php?14:47
yochaihold on, firstly: there is no /etc/php5/conf.d14:48
yochaiI have /etc/php5/fpm14:48
patdk-wkyou have no /etc/php5/conf.d?14:48
yochaiand within /etc/php5/fpm/conf.d/ I have 20-curl.ini  20-json.ini  20-xmlrpc.ini14:48
patdk-wkyou sure you installed ubuntu?14:48
yochaiuh14:48
yochaidude, I'm a sysadmin. yes i'm sure14:49
patdk-wknormally /etc/php5/fpm/conf.d is a symlink to /etc/php5/conf.d14:49
RoyKyochai: lsb_release -a ?14:49
patdk-wkor maybe this is just an upgrade issue on my machine14:49
yochai cat /etc/lsb-release:  DISTRIB_ID=Ubuntu DISTRIB_RELEASE=13.10 DISTRIB_CODENAME=saucy DISTRIB_DESCRIPTION="Ubuntu 13.10"14:49
RoyKnot sure about that. I only use LTS for servers...14:51
patdk-wkwhat is in /etc/php5/fpm/conf.d14:51
yochaiI upgraded from 13.04 a few weeks back because of heartbleed (long story).   Anyways, i'm relatively new to nginx, and I was able to get this specific application working on another machine under apache - but I have to use nginx on this machine for other reasons.14:51
yochai20-curl.ini  20-json.ini  20-xmlrpc.ini14:51
patdk-wkso you didn't php5enmod mysql yet14:52
patdk-wkor mysqlnd14:52
yochaiWARNING: Module mysql ini file doesn't exist under /etc/php5/mods-available14:52
patdk-wkapt-get install php5-mysql14:53
patdk-wkoh, php5-mysql is gone14:53
RoyKyochai: I beleive fastcgi uses php5-cli - is that installed14:53
RoyK?14:53
patdk-wkonly mysqlnd anymore14:53
yochai ls /etc/php5/mods-available:    curl.ini  json.ini  mysqlnd.ini  xmlrpc.ini14:53
patdk-wkroyk, seriously?14:53
patdk-wkwhat does cli have to do with fcgi?14:53
patdk-wkphp5enmod mysqlnd14:54
RoyKpatdk-wk: think so - why should it be using mod_php?14:54
RoyKwell, not sure14:54
patdk-wkroyk, he is using fpm, not comamnd line14:54
patdk-wkcli == command line14:54
patdk-wkcgi == cgi/fcgi14:54
patdk-wkfpm == fcgi14:54
yochaiwait wait wait - i think you guys are on to something14:54
patdk-wkmod_php == apache14:54
RoyKbut - rather good weather, so I'm off - TTYL14:54
yochaiwait wait wait - i think you guys are on to something14:54
yochaiI just did apt-get install --reinstall php5-mysql14:54
patdk-wkyochai, will, if you have php5-mysql ok, but it is going away, and you will have to change to mysqlnd or pdo-mysql at some point14:55
yochaiOK14:55
patdk-wkI've switch most of mine to mysqlnd already14:55
patdk-wkit's faster14:55
patdk-wkbut it doesn't support older mysql 4.x stuff14:56
yochaiok, so what does it mean that /etc/php5/mods-available is missing the mysql ini?14:59
patdk-wklikely not installed14:59
patdk-wkor it was deleted14:59
patdk-wkpersonally, I would just use mysqlnd15:00
patdk-wkif you have a problem, then switch back to mysql15:00
yochaiis it the mariadb fork/15:00
yochai?15:00
yochaioh I see15:00
yochaiit's a native driver15:00
patdk-wkya, but support for old stuff, was removed15:00
patdk-wklike v3 passwords15:01
patdk-wkand crap15:01
=== negronjl is now known as negronjl-afk
patdk-wkbut maria  Idon't think supports that stuff anyways15:01
yochaiok so I've installed it, and my phpinfo shows mysqlnd support - however, I am still getting a blank page on any php files more complicated than a phpinfo or hello world15:02
bekksyochai: Then increase the log level and take a look at the logs.15:03
yochaithat's the problem - the logs don't show ANYTHING15:03
bekksThen configure logging.15:03
yochaiI have15:04
yochaiI get15:04
yochaiDEBUG: pid 1519, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 0 active children, 2 spare children, 2 running children. Spawning rate 115:04
bekksthats the apache log, not the php log, isnt it?15:04
yochaino15:05
yochaiit's from /var/log/upstart/php5-fpm.log15:05
yochaiand in /var/log/php5-fpm.log I get15:05
yochai[25-Apr-2014 11:01:18] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful15:05
patdk-wkyou didn't bother reading the nxign log?15:06
yochaiwell, if you must know they show nothing useful either15:07
patdk-wkI would expect that from a blank page15:09
patdk-wkcause if it was an error, you would get a 500 error15:09
yochaiYeah15:09
yochaiok, so I've got mysqlnd extensions loaded, php is "working" in that I have a phpinfo page - what could I be missing?15:09
patdk-wkno errors or warnings, and no html errors, it's easily your script15:10
patdk-wkit's not erroring, so it's purposely cleanly exiting15:10
yochaithat makes sense15:11
yochaiafter installing mysqlnd, should I use php5enmod to load it or is that no longer necessary?15:11
patdk-wkyou likely do15:16
patdk-wkthen restart php5-fpm15:16
yochaiI GOT IT15:22
yochaii purged php5-mysql - which removed the "block" i had on the php modules (it was saying it couldn't replace deleted ini files when i tried reinstalling)15:23
yochaithen i reinstall php5-mysql15:23
yochaiand it works!15:23
yochaithanks guys!15:23
bjfcan anyone tell me when cloud images get respun? specifically, do SRU kernels trigger a rebuild or are they like ISOs and they only get redone at point releases16:39
=== Lcawte|Away is now known as Lcawte
sarnoldbjf: we did release new cloud images for heartbleed: http://blog.utlemming.org/2014/04/updated-12044-lts-cloud-images-in.html17:30
bjfsarnold, so it takes a significant reason to do so17:30
sarnoldbjf: I think it may17:31
bjfutlemming, can you help ^ ?17:33
rostamHI I have installed  two instances of the same ubuntu version, 12.04 LTS, on my disk, /dev/sda1, /dev/sda2.  Whenever I switch the boot from one partition to another partition, and try to ssh to it, I get warning: Remote Host Indentification has changed.  Is there a work around this please?  The IP address is identical for both partition,.   Thx17:34
sarnoldrostam: you -could- use the same ssh host key on both systems but that seems like a bad bad bad idea to me. why don't they have their own ips?17:35
SpamapSrbasak: bummer.. I really hate whenever I see a fail because of hash sum mismatch. :-/17:35
rostamsarnold,  They get their IP address from dhcp and since there is only one MAC address they get the same IP address.17:36
=== jamescarr_ is now known as jamescarr
=== matsubara is now known as matsubara-afk
=== matsubara-afk is now known as matsubara
duxklrrostam: This may be old, but did you figure out the ssh host key issue?21:20
jay2kSomeone have a good resource for setting up a Ubuntu HA Cluster for KVM (DRDB - LVM - KVM). I don't realy know how to start.21:27
Patrickdksound good21:42
Patrickdkstart drbd21:42
Patrickdkthen start lvm, or clvm21:42
Patrickdkthen start kvm21:42
rostamduxklr,  no not yet23:44
rostamHI I have installed  two instances of the same ubuntu version, 12.04 LTS, on my disk, /dev/sda1, /dev/sda2.  Most of the time I will be booting from one partition, e.g /dev/sda1. I like to have images sync, is there a way I can install a package to both partitions without booting on each different partition and install the package? Hope it is clear. Thx.23:48
keithzgchroot!23:49
sarnoldrostam: see dpkg(8) instdir thing23:49
rostamkeithzg,  sarnold  thank you.23:50

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