/srv/irclogs.ubuntu.com/2013/11/10/#ubuntu-uk.txt

=== Lcawte is now known as Lcawte|Away
AzelphurLow: $267.21, High: $352.12, Bitcoin market volatility at its finest (3 hour time frame)01:27
daftykinsi had a message from my brother asking if i did anything with bitcoin today01:28
daftykinsi lawl'd 'cause i don't understand it at all01:28
daftykinshe alluded to that common idea of leaving a box crunching away mining01:28
Azelphurhehe01:28
daftykinsbut i said that from what i had heard that tends to just offset against your electricity bill :D01:28
Azelphurdaftykins: that means that the value of 1 bitcoin has fluctuated between $267.21 and $352.12 over the past 3 hours01:29
Azelphuralmost $100 price fluctuation xD01:29
daftykinsoh i more meant the entire bitcoin phenomena01:30
daftykinsbut ja, that's pretty mad01:30
Azelphurwhich means my BTC holdings have fluctuated between $30729 and $4049301:30
Azelphurergo, I just lost, and regained, $10k value01:30
Azelphurbitcoin is a fun little rollercoaster.01:30
daftykinscould you pull the trigger and cash-out instantly though? taxman aside01:31
Azelphuryea01:31
Azelphurwell not super instantly, I'd have to boot up my laptop with the encrypted drive01:31
Azelphurand transfer the funds into an exchange01:31
ali1234what exchange was at $267??02:32
Azelphurali1234: bitstamp02:32
Azelphurali1234: http://bitcoinity.org/markets/bitstamp/USD02:33
ali1234gox was at $381 earlier02:33
Azelphurali1234: yea, it's pre-crashing :)02:33
ali1234i should add bitstamp to my thing02:33
ali1234daftykins: mining was really profitable if you did it two years ago02:34
ali1234it's impossible now02:34
ali1234unless you have specialist hardware, which is almost impossible to buy02:35
Azelphurunless you're me02:35
Azelphurali1234: part of me wonders if I should go lawsuit BFL for late shipping02:35
Azelphurthey cost me a boatload02:35
ali1234you're lucky to even get anything02:35
Azelphurtrue02:35
ali1234you won't get anything from suing them, due to everyone else doing the same thing02:36
ali1234so i'd say it's a waste of time02:36
Azelphuramazingly, nobody else seems to be doing it02:36
Azelphurali1234: in other news, my channel has been taking great amusement at https://github.com/search?q=exec+sudo+%24_GET&type=Code02:37
AzelphurI'm sure you'll enjoy it too xD02:37
ali1234i don't get it02:38
Azelphurali1234: don't know PHP?02:38
ali1234well obviously php cannot into sudo02:38
ali1234if it's not interactive02:38
ali1234unless the host is really badly configured02:38
ali1234but other than that i don't get it02:38
Azelphurali1234: they probably nosudo'd it to get that code to work, I'd guess02:38
ali1234wait02:39
ali1234sudo $_GET02:39
ali1234noooooooo02:40
ali1234noooooooooooooooooooo02:40
ali1234 /o\02:40
ali1234exec anything with $_GET is bad enough, you can just inject your own sudo if you want02:41
Azelphurali1234: hahaha02:55
Azelphurali1234: you figured it out gz02:55
Azelphur:P02:55
ali1234hmm... it's now possible to have two gmail accounts open in tabs without one getting booted out09:38
ali1234this is cool09:38
jussiali1234: welcome to 201109:38
jussi:P09:38
ali1234well it never worked for me as recently as ... about 2 months ago09:38
jussiali1234: you just have to enable it09:39
jussiup to 4 accounts at once09:39
ali1234i did09:39
ali1234it seems to have started working when they changed the login screen recently09:39
jussiand then dont log out of the first one, you click the corner and click "add account"09:39
ali1234yes, that09:40
ali1234i was doing that months ago09:40
ali1234if i had two gmail tabs open on the same account, and then clicked that to open a different one, the other tab would also be booted out09:40
popeyI'm still keeping separate browser windows for separate accounts09:45
MartijnVdSI've started doing that as well09:46
=== Lcawte|Away is now known as Lcawte
Myrttineed to do hangouts for work, so I've got them on a separate profile in chromium and my own stuff in firefox09:52
MartijnVdSyou can have 2 profiles inside chrom(e|ium), running at the same time (in different windows, like private mode)09:52
brobostigongood morning everyone.09:56
MyrttiYeah10:03
MyrttiI did use separate profiles on Firefox first10:03
nigelbali1234: Oh, yeah. It stopped working for me recently too.10:04
* nigelb needs to try again.10:05
Myrttibut gdocs and hangouts work better on chromium, so I made a new profile for my work persona for chromium10:05
popeyI have 14 chromium personas10:06
popeyprobably should shrink that a bit10:06
popeymostly for separate random twitter accounts10:09
AlanBellmorning10:18
* AlanBell upgraded the home always-on server to 13.1010:18
AlanBelland couldn't get it to boot with the new kernel, so is now using a raspberry pi instead :)10:19
brobostigoni am an rpi doing loads of stuff, radvd, dlna, webcam server, get-iplayer repo.10:20
AlanBellhttp://hencam.libertus.co.uk/video is now back up (the server does the html page around the image, and reverse proxies the image)10:22
brobostigoncool.10:22
ali1234i've probably asked this before, but is there any way to make xterm cat it's stdin?10:31
ali1234eg to watch stderr on an interactive command: somecommand 2> $(xterm cat)10:35
AlanBellwhy xterm?10:36
AlanBelland not the tty device?10:36
ali1234i dunno, just seemed logical10:37
AlanBellif you do tty in the target xterm, then echo "foo" > /dev/pts/9   (or whatever) then it comes up10:39
ali1234i could also use a named pipe, or a logfile and tail, but that's messy10:40
AlanBellbut that does require you to launch the target xterm and find the tty number10:40
=== funkyHat1 is now known as funkyHat
dwatkinsAlanBell: I like your cluster idea, makes me wish I had the cash to burn so I could have you name it flibbertygibbet or something ;)13:46
AlanBell:)13:47
MartijnVdSdwatkins: try ssh'ing into "supercalifragilisticexpialidocious"13:47
MartijnVdSwithout tab-completion13:47
dwatkinsHost supercalifragilisticexpialidocious not found: 3(NXDOMAIN) ;)13:50
dwatkinsI was thinking more the name of the "let's compile Ubuntu for the ARM processor in the Raspberry Pi", but that would also be amusing.13:50
dwatkinsWe used to have a mailserver called Sagittarius, but no-one knew how to spell it.13:51
MartijnVdS"I name it `pwgen -sy 30 1`"13:52
AlanBell50 character limit :)13:52
MartijnVdSAlanBell: pwgen -sy 50 1 then13:52
AlanBellyay13:52
penguin42dwatkins: You're not trying if you don't get unicode into the hostname13:53
MartijnVdSpenguin42: ooh, Punycode :)13:54
dwatkinsCan you use unicode in DNS names?14:07
dwatkinsI vaguely remember reading it used to be allowed, but isn't any more, suggesting you can only use letters from "our" 26-letter alphabet.14:08
penguin42I thought there were top level internationals?14:08
AlanBellyou can probably use it in a hostname14:09
* penguin42 boots a VM to try14:09
ali1234reddit is letting gold buyers name servers now14:10
ali1234one of them got named localhost14:10
penguin42ouch14:10
penguin42hmm hostname didn't like the fliptext I gave it14:11
penguin42hmm, hostnamectl will set it14:13
penguin42haha - but sethostname does !14:15
penguin42as does avahi-set-host-name14:17
=== FixUbuntu is now known as LjL
penguin42MartijnVdS: Oh I hadn't read about punycode before - very neat14:24
shaunothere's sort of unicode dns names .. they get translated into ascii for lookups, which is a little mind bending14:35
shaunoeg, http://💩.l14:37
shaunoor not.  ate that one bad lol14:38
penguin42shauno: Yeh that's apparently the Punycode14:40
shaunoah, I didn't know it had a name.  the only rfc I've seen it in just calls it ToAscii.  and then proceeds to warp your mind trying to explain how it works14:43
shaunoabsolutely miserable here today, but I fear rain isn't going to be an acceptable excuse for avoiding the cinema :/14:49
penguin42it's ok here today, yesterday was biblical - thunder, hail, localised flooding etc14:50
shaunooh this isn't that bad, just "blah".  nonstop rain for the last 8 hours14:52
shaunocombined with sunday busses being run apparently by lottery, and my motivation to get into town is destroyed14:53
penguin42http://www.manchestereveningnews.co.uk/news/greater-manchester-news/flooding-after-hail-rain-thunder-628810114:53
shaunoheh, fun14:55
shaunoI haven't actually seen lightning since I moved here (2006).  strange place14:55
penguin42blue skies today14:55
penguin42where?14:55
shaunowest coast of ireland14:56
penguin42so you watch the storms roll in off the atlantic, go past and dump it on us?14:58
shaunowhen I was in the states, it seemed to be lightning all autumn.  sun all summer, and snow all winter.  all three are incredibly rare here14:58
penguin42generally we don't get much extreme weather - it's all kind of meh15:00
shaunoI used to live in barrow (south lakes) .. I assume it's much of the same there15:02
penguin42well, they don't call it lakes for nothing15:03
shaunothey call it lakes because it sounds much prettier than what it actually is ;)15:03
penguin42barrow is the industrially bit isn't/wasn't it?15:04
shaunoit was.  it's now the unemployed bit.  built on ironworks & shipbuilding - neither of which are particularly strong industries anymore15:05
penguin42nod15:06
shaunoabout the only thing they have left is that we can't outsource the military, so they still build submarines15:07
penguin42nod, I know someone who is an admin at a small ISP somewhere around there as well15:08
shaunoalthough last I heard, they still had europe's largest door.  which is a claim to fame I guess15:09
penguin42? Something for a submarine shed?15:09
shaunoyeah.  they're built indoors15:09
penguin42wouldn't want them to get wet15:09
shaunoI Think it's kinda neat.  it's nice to think that our nuclear deterent is built by some northern lads in a shed15:11
penguin42haha well if you put it like that15:12
dwatkinsI just broke my Windows 8 installation (deleted the D: drive whilst changing the linux swap partition size) - good job I don't really use nor care about it :)16:40
daftykinsD:16:41
daftykinswhoops16:41
dwatkinsYeah, that was my reaction, followed by a shrug. I can't remember the last time I used it for anything but games.16:41
dwatkinsTime to move Ubuntu onto the SSD :D16:42
daftykinsi've still not even used 8 native - though i'd want to acquire an 8.1 ISO now16:42
dwatkinsI played Borderlands 2 and Homeworld 2 on it a bit, but they are easily reinstalled.16:44
dwatkinsMy only dilemma now is whether Windows 8 can exist on the 2nd physical disk, which isn't an SSD.16:44
dwatkinsI'll either use this HOWTO or just reinstall 13.10 - https://help.ubuntu.com/community/MovingLinuxPartition16:45
daftykinsah the ol' juggling fun :)16:47
dwatkinsYeah, probably easier to just reinstall - might give Debian a try...16:48
* penguin42 is running Fedora/KDE on his main machine now - its' interesting, from a KDE perspective mostly the same, some places work better some worse16:49
dwatkinsI'd like to give Gnome 3 a try.16:53
penguin42dwatkins: Well you can do that on any of them16:53
dwatkinsYeah, it's the default on recent Debians, I gather, and I'm curious to see how well Steam runs on Debian, too.16:54
ali1234how recent?16:54
dwatkinsWheezy, I guess, ali1234.16:55
dwatkinsturns out the reason for all this is that I left my USB stick connected, so sda became the stick, and sdb and sdc are the new sda and sdb16:56
daftykinserk16:56
penguin42dwatkins: Yeh well the sd* naming is unspecified - you're not supposed to rely on them!16:57
dwatkinsJust goes to show you should always check before doing mkswap /dev/sdb216:57
dwatkinsyeah, I remembered that afterwards, penguin42 ...16:57
penguin42dwatkins: I just wanted to rub it in16:57
dwatkinshehe16:58
dwatkinsall this was probably pointless, and I'll most likely discover that hibernation isn't working for some other reason, but at least I havn't lost anything important.16:59
daftykinshow might i recursively grep a folder of .php configs and other files for "10.10.10.10" appearing somewhere therein?17:17
daftykinsgrep -r <string> * <-- is what i tried17:17
penguin42grep -r '10[.]10[.]10[.]10' .17:19
daftykinsah, the periods had to be escaped?17:20
penguin42yeh because they'll match on anything17:20
daftykinsah :) i just got nothing from either17:20
daftykinsty though!17:20
penguin42try it on a dummy text file first17:21
daftykinsi've just manually updated a wordpress site to the latest version but it still has issues connecting out17:21
dwatkinsInterestingly, Windows 8 recovered from my running mkswap on its C: drive, I guess it only wrote to the start of the partition.17:25
ali1234mkswap doesn't do very much at all unless you actually mount the swap17:25
dwatkinsI added it, realised it was 10 times too big, then swapoff'ed it.17:26
dwatkinss/added/mounted/17:26
dwatkinsHaving 8 GB of RAM is kinda useful.17:26
thatgreenguyadmin python17:28
daftykinsooh i finally have more error detail17:35
thatgreenguy#python17:38
penguin42thatgreenguy: You need to do   /join #python17:39
daftykins[Sun Nov 10 17:42:32 2013] [error] [client 80.73.221.144] PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server's configuration. If you continue to have problems, please try the <a href="http://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in .../wp-admin/includes/plugin-install17:49
daftykinsthat's what i'm getting on my VPS17:49
daftykinsvery, very odd17:50
penguin42can it resolve wordpress.org?17:50
daftykinsyep, wget files, connect with both SSL and without17:50
daftykinsecho $http_proxy returns a blank line, so no proxy is set i assume17:52
* penguin42 knows neither wordpress or php, but is there any way to trace what it's doing - if all else fails tcpdump or strace?17:52
daftykinsthat's an idea17:53
daftykinsnot used tcpdump before mind you17:53
penguin42daftykins: IMHO probably your easiest way if it's on a remote server is to use tcpdump to a file and then pull the file back to a local machine and poke at it with wireshark17:54
daftykinssounds good17:54
daftykinspenguin42: hrmm i can see DNS queries in my captures to api.wordpress.org but after that i can't tell what's going on18:04
daftykinsi think it gets the DNS response but then i have no record of it communicating with it18:07
penguin42daftykins: So you don't see it trying to open a connection to the IP it gets back?18:22
daftykinsno :S18:22
penguin42hmm, can you open a connection to api.wordpress.org?18:23
daftykinsyeah i used wget to grab its' index before18:23
daftykinsvia https18:23
daftykinsthere was an odd packet immediately after the DNS queries though18:24
penguin42do you see the DNS reply?18:25
daftykinshttps://www.dropbox.com/s/3cloqlhxdw6z8r6/cap.png18:25
daftykinspenguin42: what do you make of that?18:25
penguin42daftykins: What's that 80.73.221.144 address - bbdhome2-221-144.network.sure.com ?18:28
daftykinsmine18:28
daftykinsi'm SSH'd in18:28
penguin42ok, so did you have a web browser open and got an internal server error back?18:29
daftykinsyep18:29
daftykinsi performed my test action which errors, to try and get it to show packets of what it's up to18:30
daftykins(in this case, searching for plugins - which goes off to the wordpress API site for results)18:30
penguin42that I think is just part of that reply which you see in the full packet on the next line, it didn't fit in one ether (TCP?) packet18:30
daftykinshrmm18:31
penguin42daftykins: I don't see anything wrong there - maybe the AAAA lookups aren't helping, but I doubt it18:32
daftykinshmm an IPv4 vs. v6 quirk?18:32
penguin42maybe, but I doubt it - you can see it's doing IPv4 DNS lookups for both the IPv4 and IPv6 addresses, and only getting an IPv4 address back (is my reading) - so that should be OK?18:33
penguin42daftykins: But it doesn't look like it's then trying to open any connection18:33
daftykinsindeed, it's like it gives up18:33
daftykinsthanks penguin42 - i've no idea who to ask this of next :S18:33
daftykinsactually maybe if i create a test site18:33
penguin42a php person I think18:34
daftykinsi can see if a stock one works18:34
daftykinshehe18:34
MartijnVdSYay!19:51
MartijnVdSJust ordered some EP I've wanted for *years*19:52
MartijnVdS(but that wasn't available)19:52
penguin42you mean one of those vinyl things?19:55
MartijnVdSpenguin42: no, a CD (the digital edition exists, but is missing a track)19:55
penguin42oh, that's ok then - of what?19:55
MartijnVdSpenguin42: http://www.nerinapallot.com/shop2/?productDetails.cfm?Basket=1@,&ProductID=150019:55
MartijnVdSthat one :)19:56
penguin42MartijnVdS: Never heard of her - but ... Buckminster fuller as a song....19:58
MartijnVdSpenguin42: http://www.youtube.com/watch?v=C7eclTcAht019:59
shaunowhat's that 500 Server Error on the line below the one highlighted?19:59
MartijnVdSshauno: which one?19:59
MartijnVdSshauno: oh you're reading backlog20:00
shaunosorry, the screencap of wireshark20:00
shaunoah yeah, didn't notice that was 90 mins ago20:00
penguin42MartijnVdS: How bizarre20:00
penguin42shauno: I think that's the result of the reassembly of the one that's highlighted ?20:00
MartijnVdSpenguin42: I drove to Cornwall to see her last May. She's great :)20:01
penguin42from where?20:06
MartijnVdSpenguin42: from my place in the Netherlands20:07
MartijnVdSpenguin42: so.. here to Rotterdam, then Harwich to Land's End20:07
penguin42wow20:08
daftykinsshauno: are you good with wordpress and related shenanigans?20:08
MartijnVdSpenguin42: I needed a few days off anyway, drove down (and back up) over 3-4 days :)20:08
shaunonot particularly  lol20:08
MartijnVdSpenguin42: (so a week total)20:08
daftykinsshauno: the next packet was just the web server coming back with the error page that it can't contact wordpress' API domain20:08
popeyEvening.20:08
shaunoI was just curious where the 500 was coming from, because there'd be more logged on the server for that20:08
shaunoah20:08
daftykinsshauno: this is the issue i've been fighting with tonight, both the real site and a test wordpress site can't talk to wordpress.org on my bigv VPS20:09
daftykinsi've asked the web dev that made the site but he's stumped20:09
shaunoit almost looks like 'happy eyeballs' going wrong20:11
daftykinshuh? :)20:11
shaunothis practice of sending A & AAAA requests together instead of sequentially20:12
daftykinshmm20:12
daftykinsany thoughts on how to rule that out from testing?20:12
MartijnVdSdaftykins: disable IPv4 xor IPv620:13
MartijnVdSdaftykins: if that makes it work, you've found the problem20:13
shaunopretty much, yeah :/20:13
daftykinsooh - can i stop apache running on IPv6 0o20:13
daftykinswould that work maybe? or does the PHP code being system level still see interfaces and get results etc.20:13
shauno(or making it try to hit a host that does have an AAAA record)20:13
MartijnVdSdaftykins: you need to deconfigure the address, or libc will magically send AAAA and A requests20:14
shaunothe crashcourse on 'happy eyeballs' is that originally the RFCs said you queried AAAA first and A if it returned negative, if you have a native (not-teredo, etc) v6 route.20:16
shaunowhich was a great plan until real life showed up, and sticking that delay on every single v4 query sucked.  so now they have a scheme where they send them in parallel20:16
daftykins:>20:17
daftykinsperhaps it not getting an answer for both is indeed, why it seems to give up trying20:17
shaunowell, I'm not getting a v6 for wordpress.org either20:17
daftykinsand api.wordpress.org ?20:18
shaunois just a cname to wordpress.org20:18
shaunoI gotta pop out :/  but on that, it is the dns I'd be looking at, because there's no outgoing connections after the response20:19
shaunoit gets the dns response, and then complains.  rather than trying to connect to anything at all, and then complaining20:20
daftykins*nod*20:20
daftykinsthanks shauno20:21
daftykinsi echo'd 1 to /proc/sys/net/ipv6/conf/eth0/disable_ipv620:23
daftykinsthe interface lost its' v6 config20:23
daftykinsbut no change has been had20:24
penguin42that's not the problem you had - the problem was it was doing an IPv4 lookup for IPv6 addresses20:24
penguin42so that's DNS config - although I actually doubt it's the problem you had20:24
daftykinsoh?20:24
penguin42daftykins: Yeh all the packets were on IPv4 addresses, but it was sending a AAAA DNS lookup which is for IPv6 addresses20:24
penguin42(but since it got a reply to the A query, that's why I'm saying I doubt it's the problem - but it's possible)20:25
daftykinssorry i must be being daft here, i see it sent both queries then it got the v4 replies - isn't that normal?20:25
MartijnVdSit is20:25
daftykinsMartijnVdS: have you seen the pic in question?20:26
daftykinshttps://www.dropbox.com/s/3cloqlhxdw6z8r6/cap.png20:26
MartijnVdSdaftykins: yes, the server replies "500" which means something on the server doesn't like the request20:26
MartijnVdSthe request is sent, and is responded to20:26
daftykinsnah that's the error page saying it was unable to contact the API at wordpress20:26
daftykinsthe thing i'm doing on the site (searching for a plugin) trips out20:27
daftykins"WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator."20:27
MartijnVdSdaftykins: it doesn't do anything but a DNS request, before it determines it can't connect to WP?20:27
daftykinscorrect20:27
daftykinshighly suspicious isn't it?20:28
MartijnVdSmaybe you don't have php-ssl installed? :)20:28
MartijnVdSor whatever PHP uses to talk SSL20:28
MartijnVdS("secure connection")20:28
daftykinsi can't see a relevant package20:28
MartijnVdSbecause it's not even sending a SYN to open a connection to one of the IPs it receives from the DNS lookup20:28
daftykinsindeed20:29
MartijnVdSdaftykins: the openssl-module is included with php, but your extensions.ini might have it disabled20:29
MartijnVdScan you ping the address? (api.wordpress.org)20:30
MartijnVdS66.155.30.{249,250}20:30
daftykinsyep and wget the index20:30
MartijnVdSusing https?20:30
daftykinsyep20:30
MartijnVdSor plain old http20:30
daftykinswget https://api.wordpress.org20:31
daftykins2013-11-10 20:31:00 (108 MB/s) - `index.html' saved [442]20:31
MartijnVdSI think it's suspicious that you get the 500 error before it even *tries* to connect (i.e. send a SYN packet) to those addresses20:31
MartijnVdSunless you filtered those from the capture20:31
MartijnVdSI have a bigv.io VM, let me try.20:31
daftykinsty :)20:31
daftykinsi created a fresh 3.7.1 wordpress instance which still has the same issue20:32
MartijnVdSah wait20:32
MartijnVdSI'd need to set up mysql and everything for that wouldn't I20:32
daftykinsyeah :(20:32
daftykinsi chose debian for mine - is there a wise meta package i can install that might cover any potential deps?20:33
MartijnVdSdaftykins: wordpress? 8-)20:33
daftykinshaha20:33
MartijnVdS$ apt-cache show wordpress20:33
MartijnVdSPackage: wordpress20:33
MartijnVdSPriority: optional20:33
daftykinswell no i'm using their auto management thing20:33
daftykinsso things would no doubt berak20:33
daftykins*break20:33
MartijnVdSsure but apt-cache show shows you what the Debian dev thinks are the dependencies20:34
daftykins*nod* i just ran:  apt-cache showpkg wordpress20:34
MartijnVdSjust use "show", showpkg is unreadable ;)20:34
MartijnVdSdaftykins: is that wireshark dump filtered at all?20:36
daftykinsno, but i'm a newbie when it comes to the tcpdump command i used to create it20:36
MartijnVdSdaftykins: tcpdump -i eth0 -w dumpfile20:36
MartijnVdSshould be enough20:36
daftykinstcpdump -nnvvw capture3.cap i ran20:36
MartijnVdSthat's extra verbose and no DNS lookups by tcpdump itself20:37
daftykins*nod*20:37
MartijnVdSdaftykins: you could write a small PHP program and run it on the cli20:37
daftykinsThe following extra packages will be installed: libjs-prototype libjs-scriptaculous20:37
daftykinsThe following NEW packages will be installed: libjs-cropper libjs-prototype libjs-scriptaculous libphp-phpmailer libphp-snoopy20:37
daftykinsthose were missing but nothing has changed as a result20:37
MartijnVdS Some of Snoopy's features:20:38
MartijnVdS .20:38
MartijnVdS  * easily fetch the contents of a web page20:38
daftykins:D20:38
daftykinsclassic20:38
daftykinssame issue even now20:39
MartijnVdSdaftykins: do you get "An unexpected error occurred. Something may be wrong with WordPress.org or this server's configuration"20:40
daftykinsyep20:40
daftykinsi've poured over the results in google regarding it20:40
daftykinsnothing seems relevant20:40
MartijnVdSdaftykins: This might be the culprit:20:41
MartijnVdS                        'sslcertificates' => ABSPATH . WPINC . '/certificates/ca-bundle.crt',20:41
MartijnVdSdoes that exist?20:41
MartijnVdSit should..20:42
daftykinswhereabouts are you looking?20:42
MartijnVdSwordpress/ root20:42
MartijnVdSjust downloaded the tarball20:42
daftykinsthere are no certs at all, no20:42
MartijnVdSdaftykins: you could put a "strace -f -p xxx -p yyy" on all your httpd processes (xxx, yyy are the PIDs, add more as needed)20:43
MartijnVdSdaftykins: uh20:43
MartijnVdSstrace -f -o outputfile20:43
daftykinshang on it's meant to be in /wp-includes/20:43
MartijnVdS-p xxx -p yyy20:43
MartijnVdSdaftykins: it is: ABSPATH is the absolute path to wordpress/, WPINC is the wp-includes dir20:43
MartijnVdSthe strace might contain useful information (what it tries/gets back) for API access20:44
MartijnVdSit's a bit low-level20:44
daftykinswhat's the location of that path reference for me to check?20:45
MartijnVdSdaftykins: wordpress/wp-includes/certificates/ca-bundle.crt20:45
MartijnVdSdaftykins: should all be readable (not writable!) by the user php runs as (www-data?)20:45
daftykinsah-haaaa permissions, let's give that a whirl20:46
daftykinsmy site is actually in /srv/domain.com/public/htdocs/20:47
MartijnVdSdaftykins: though it's not even trying to create a connection (let alone an SSL connection), so either it aborts before trying (because it can't find the file) or something weird is going on20:48
daftykins*nod*20:49
daftykinsso the strace plan could be a good one20:49
daftykinsok i'll give that one a whirl after i make some food20:50
MartijnVdSdaftykins: it might be overkill, is there anything in your errorlog? (httpd)20:50
daftykins[Sun Nov 10 20:48:02 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)20:51
daftykinsthat crops up20:51
MartijnVdSis that *your* https cert, or the remote end?20:51
daftykinsnone of my domains possess certs as far as i know20:52
MartijnVdSdaftykins: but apache is still instructed to load one.. maybe the snakeoil one20:52
MartijnVdSthe default always-installed one20:52
daftykinsi wonder if i can justk ill it20:52
MartijnVdSa2dismod ssl20:53
popeyI pulled a tenner out of my pocket and noticed some scribbles all over it...20:55
popeyhttp://i.imgur.com/ra8r3Ka.jpg20:55
daftykinsMartijnVdS: bytemark's symbiosis thing, has SSLEngine enabled within its' sites-available config20:55
MartijnVdSdaftykins: ah you use that? :)20:55
MartijnVdSdaftykins: I just installed Ubuntu server on mine ;)20:55
daftykinsyeah atop debian20:55
=== webpigeon is now known as Guest43495
daftykinsalright i'm really burnt out on this now20:58
daftykinstime for food20:58
daftykinsMartijnVdS: thanks for your help thus far - if you have any further ideas i'd be pleased :>20:58
daftykinspopey: how rude21:00
daftykinssidenote: do any clothes shops in London stay open late on a Sunday night? 0o21:03
penguin42are they allowed to?21:04
popeyunlikely21:05
popeymost places close at 4pm21:05
diddledandaftykins: just a wild guess, is php5-curl installed?21:11
diddledanhowever, php errors should be logged somewhere, so a 500 error should have something in a logfile to explain why wordpress failed21:12
daftykinsdiddledan: yep it is - i enabled PHP logging to file, but didn't get anything produced when repeating the action21:46
daftykinswhich i found very odd :S21:48
diddledandaftykins: you could try editing your wp-config.php and add `define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);` and rerun. the debug log is in "wordpress/wp-content/debug.log" <-- remember to delete it once done because it can leak information21:49
daftykinsdiddledan: roger that! i'll do it on my test site, i had seen that idea but hadn't gotten around to it for whatever reason21:51
daftykinsdiddledan: it's not writing anything new compared with the apache error log :(21:55
daftykinsstill just: "WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator."21:55
diddledanhmm21:55
diddledanis there nothing preceeding that statement?21:56
daftykins[10-Nov-2013 21:54:07] PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="http://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /srv/test.com/public/htdocs/wp-admin/includes/plugin-install.php 21:57
daftykinsthat's the full sucker21:57
diddledandaftykins: can you try running http://pastebin.com/SERmAPbF which should output the full headers in addition to the html from a connection to wordpress.org22:04
diddledanif that fails but still doesn't telll us why, we can amend it to add some more error reporting22:04
daftykinswould i just put that in a file and run "php file" ?22:04
diddledanyes please :-)22:04
diddledanit'll make a nice mess in your terminal - I've written it to be runnable in a browser, too22:05
daftykinsnot sure if this is an issue but i re-ran it outputting to a file22:06
daftykinsPHP Warning:  Cannot modify header information - headers already sent by (output started at /srv/test.com/public/htdocs/file:3) in /srv/test.com/public/htdocs/file on line 1222:06
daftykinsand got told that22:06
diddledanthat's fine22:06
diddledanthat's because I used header() in the php file22:07
daftykinshttp://pastebin.com/WSFq6UCN22:07
daftykinsdiddledan: there she be ^22:08
diddledanok, that says that php can successfullly connect to wordpress.org - it gets weirderer22:08
daftykins^_^22:08
diddledantry plopping it on your test site and running it via the browser to confirm whether it's able to do it when run through apache22:09
daftykinswas naming it file.php and visiting path/file.php correct?22:10
diddledanyup22:10
daftykinsas i just get a blank page22:10
daubersEvening22:11
diddledanaha, that's interesting22:11
diddledanI've written a two-line modification to force it to output errors to the browser: http://pastebin.com/q6kUzWDt do the same as before to run it via a browser22:12
daftykinsi'm pasting into nano over SSH with KiTTY and getting a lot of green squares - that likely to be a problem?22:13
diddledanooh22:13
diddledanerm22:13
diddledanthat doesn't sound right22:13
daftykinsi manually typed it out and still get blank :O22:15
diddledanhmm22:16
diddledantry putting a "print 'finished';" at the bottom underneath the print $output line22:17
diddledanthat was we can tell whether I've messed up my code :-p22:17
diddledanway*22:17
daftykinsyep it returned 'finished'22:17
daftykins:S22:17
daftykinswhat is it doing D:22:19
daftykinsdiddledan: any further thoughts :)22:22
daftykins+?22:22
diddledanI'm just gonna do a bit of experimentation on my vps22:22
daftykinsis it the content type throwing it?22:22
=== marxjohn1on is now known as marxjohnson
diddledannope, it works fine on my ubuntu 12.04 virtual machine22:25
daftykinsare you expecting to see the HTML text or will it show the actual page?22:25
diddledanthe text22:25
diddledanalong with headers at the top22:25
daftykinsyeah it works at command line but apache2 is doing something22:25
daftykinscould a funky php-suhosin status be causing it?22:25
diddledanit might be an issue with suhosin22:26
daftykins(i'm unsure whether it's on, off, or partially there at the moment)22:26
diddledanalternatively apache may not have been restarted since php5-curl was installed?22:26
daftykinsit was definitely already installed22:26
diddledanor alternatively there might be php.ini differences between the apache2 and cli iterations22:27
daftykinsmy /etc/php5/apache2/php.ini is actually autocreated by the bytemark symbiosis system i'm using22:28
diddledandang22:28
daftykinsbut it's there and readable22:28
daftykinsshall i pastebin it?22:28
diddledanworth a try22:28
daftykinshttp://pastebin.com/KUt47XKS22:31
diddledannothing seems out of the ordinary there22:38
daftykinshang on /usr/bin/php /usr/bin/php522:39
daftykinsno difference with either 0o22:40
daftykins/usr/bin/php -> /etc/alternatives/php22:40
daftykins0o22:40
daftykinssymlink^22:41
diddledan`man update-alternatives` tells you about that mechanism22:41
diddledanon my ubuntu the /etc/alternatives/php points to /usr/bin/php522:42
daftykinsah yes :)22:43
daftykinswell i'm glad i don't seem to have done anything too stupid22:43
daftykinswould it help if i let you have a look at my test domain at all?22:43
diddledanit might22:45
daftykinshttp://test.com.testing.togusa.default.kusanagi.uk0.bigv.io/file2.php22:45
daftykinsthere's where i created the file22:45
diddledanlurvely url :-p22:46
daftykinshah yeah, crazy bigv domains are soooo long22:46
daftykinsthen test.com.testing for my little fake domain22:46
diddledanok, I've been reading up on suhosin - it might be logging to /var/log/messages22:47
daftykinsi think i managed to fully remove it22:48
daftykinsphp5-suhosin got removed22:48
diddledansorry, I mena /var/log/syslog22:48
diddledanhmm22:48
diddledandid you restart apache after?22:48
daftykinsyep22:48
diddledanand yet it's still failing. I was working on the assumption that we'd proven that php itself can do the job22:49
daftykins*nod*22:49
diddledanit doeswn't make sense >.<22:49
daftykinssomething is highly screwy isn't it22:49
daftykinsperhaps i should fire something off to bytemark and just see if i've done something stupid that their symbiosis system gets affected by?22:49
diddledanI don't suppose it can hurt22:49
diddledanthey might be able to help22:50
daftykinsis there any other form of test i can have php perform atop apache?22:50
mgdmwhat's going on, and did you turn selinux off?22:54
mgdmif indeed it's on...22:54
daftykinshow would i tell on this debian VPS?22:54
mgdmah, that's probably a no22:54
daftykinswin \o/22:55
mgdmI don't have a page up button - can you explain (in PM if you like) what's up?22:55
daftykinsbasically wordpress isn't able to contact its' API address, in order to get some results22:55
AzelphurSeeker`: I got the arduino out...and I UNKILLED IT.22:55
daftykins(e.g. plugin searches)22:55
daftykinsmgdm: diddledan kindly helped create a test PHP file that pulls the target page down, it works at CLI, but not from behind apache22:55
mgdmOh, it's wordpress. hmmm. :-) So - do you know what mechanism it's using? curl? file_get_contents?22:56
daftykinshttps://github.com/WordPress/WordPress/blob/master/wp-admin/includes/plugin-install.php22:56
daftykinsi believe that's the one in question22:56
mgdmholy moley22:57
mgdmit sends seriazed PHP to another host, which then unserializes it22:57
daftykinsline 77 is what keeps getting flagged as the issue22:57
daftykinswell you know, where it breaks from22:58
mgdmi'm trying to find the source of wp_http22:59
diddledanhttps://github.com/WordPress/WordPress/blob/master/wp-includes/http.php23:00
diddledannot sure where the calss is tho23:01
diddledanclass*23:01
mgdmI found it23:01
mgdmhttps://github.com/WordPress/WordPress/blob/70fd806759b7a18d45950eb2c368e15949f1ef21/wp-includes/class-http.php23:01
daftykinsooh i'm getting more content in tcpdump now23:02
mgdmwhaaat23:02
mgdmthis impleents its own HTTP client using fsockopen()23:02
mgdmwhat the *hell* are these guys smoking?23:03
daftykinsit appears to be getting TCP resets when awaiting its' reply23:03
daftykinsmaybe it is firewall after all...?23:03
mgdmseems that way23:03
daftykinsomg.23:03
daftykinsi just flushed iptables and it works23:03
mgdmheh23:03
diddledan>.<23:03
diddledandon't you hate that23:04
daftykinssorry about that guys, but earlier tcpdump wasn't even showing anything beyond the DNS queries23:04
daftykinshttps://www.dropbox.com/s/3cloqlhxdw6z8r6/cap.png23:04
daftykinsin my earlier capture ^23:04
daftykinsok so now i need to look into what's blocking the response :D23:05
daftykinsdiddledan + mgdm thanks guys, i think i'm going to call it a night there before i go crazier with it23:08
diddledanlol23:08
mgdmhehe, fair enough23:08
daftykinsg'night everyone \o23:09
daftykinsthank you to all those who helped23:10
daftykinsdafty in mountain out of a molehill situation23:14
daftykins^_^23:14

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