=== Lcawte is now known as Lcawte|Away [01:27] Low: $267.21, High: $352.12, Bitcoin market volatility at its finest (3 hour time frame) [01:28] i had a message from my brother asking if i did anything with bitcoin today [01:28] i lawl'd 'cause i don't understand it at all [01:28] he alluded to that common idea of leaving a box crunching away mining [01:28] hehe [01:28] but i said that from what i had heard that tends to just offset against your electricity bill :D [01:29] daftykins: that means that the value of 1 bitcoin has fluctuated between $267.21 and $352.12 over the past 3 hours [01:29] almost $100 price fluctuation xD [01:30] oh i more meant the entire bitcoin phenomena [01:30] but ja, that's pretty mad [01:30] which means my BTC holdings have fluctuated between $30729 and $40493 [01:30] ergo, I just lost, and regained, $10k value [01:30] bitcoin is a fun little rollercoaster. [01:31] could you pull the trigger and cash-out instantly though? taxman aside [01:31] yea [01:31] well not super instantly, I'd have to boot up my laptop with the encrypted drive [01:31] and transfer the funds into an exchange [02:32] what exchange was at $267?? [02:32] ali1234: bitstamp [02:33] ali1234: http://bitcoinity.org/markets/bitstamp/USD [02:33] gox was at $381 earlier [02:33] ali1234: yea, it's pre-crashing :) [02:33] i should add bitstamp to my thing [02:34] daftykins: mining was really profitable if you did it two years ago [02:34] it's impossible now [02:35] unless you have specialist hardware, which is almost impossible to buy [02:35] unless you're me [02:35] ali1234: part of me wonders if I should go lawsuit BFL for late shipping [02:35] they cost me a boatload [02:35] you're lucky to even get anything [02:35] true [02:36] you won't get anything from suing them, due to everyone else doing the same thing [02:36] so i'd say it's a waste of time [02:36] amazingly, nobody else seems to be doing it [02:37] ali1234: in other news, my channel has been taking great amusement at https://github.com/search?q=exec+sudo+%24_GET&type=Code [02:37] I'm sure you'll enjoy it too xD [02:38] i don't get it [02:38] ali1234: don't know PHP? [02:38] well obviously php cannot into sudo [02:38] if it's not interactive [02:38] unless the host is really badly configured [02:38] but other than that i don't get it [02:38] ali1234: they probably nosudo'd it to get that code to work, I'd guess [02:39] wait [02:39] sudo $_GET [02:40] noooooooo [02:40] noooooooooooooooooooo [02:40] /o\ [02:41] exec anything with $_GET is bad enough, you can just inject your own sudo if you want [02:55] ali1234: hahaha [02:55] ali1234: you figured it out gz [02:55] :P [09:38] hmm... it's now possible to have two gmail accounts open in tabs without one getting booted out [09:38] this is cool [09:38] ali1234: welcome to 2011 [09:38] :P [09:38] well it never worked for me as recently as ... about 2 months ago [09:39] ali1234: you just have to enable it [09:39] up to 4 accounts at once [09:39] i did [09:39] it seems to have started working when they changed the login screen recently [09:39] and then dont log out of the first one, you click the corner and click "add account" [09:40] yes, that [09:40] i was doing that months ago [09:40] if 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 out [09:45] I'm still keeping separate browser windows for separate accounts [09:46] I've started doing that as well === Lcawte|Away is now known as Lcawte [09:52] need to do hangouts for work, so I've got them on a separate profile in chromium and my own stuff in firefox [09:52] you can have 2 profiles inside chrom(e|ium), running at the same time (in different windows, like private mode) [09:56] good morning everyone. [10:03] Yeah [10:03] I did use separate profiles on Firefox first [10:04] ali1234: Oh, yeah. It stopped working for me recently too. [10:05] * nigelb needs to try again. [10:05] but gdocs and hangouts work better on chromium, so I made a new profile for my work persona for chromium [10:06] I have 14 chromium personas [10:06] probably should shrink that a bit [10:09] mostly for separate random twitter accounts [10:18] morning [10:18] * AlanBell upgraded the home always-on server to 13.10 [10:19] and couldn't get it to boot with the new kernel, so is now using a raspberry pi instead :) [10:20] i am an rpi doing loads of stuff, radvd, dlna, webcam server, get-iplayer repo. [10:22] http://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] cool. [10:31] i've probably asked this before, but is there any way to make xterm cat it's stdin? [10:35] eg to watch stderr on an interactive command: somecommand 2> $(xterm cat) [10:36] why xterm? [10:36] and not the tty device? [10:37] i dunno, just seemed logical [10:39] if you do tty in the target xterm, then echo "foo" > /dev/pts/9 (or whatever) then it comes up [10:40] i could also use a named pipe, or a logfile and tail, but that's messy [10:40] but that does require you to launch the target xterm and find the tty number === funkyHat1 is now known as funkyHat [13:46] AlanBell: 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:47] :) [13:47] dwatkins: try ssh'ing into "supercalifragilisticexpialidocious" [13:47] without tab-completion [13:50] Host supercalifragilisticexpialidocious not found: 3(NXDOMAIN) ;) [13:50] I 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:51] We used to have a mailserver called Sagittarius, but no-one knew how to spell it. [13:52] "I name it `pwgen -sy 30 1`" [13:52] 50 character limit :) [13:52] AlanBell: pwgen -sy 50 1 then [13:52] yay [13:53] dwatkins: You're not trying if you don't get unicode into the hostname [13:54] penguin42: ooh, Punycode :) [14:07] Can you use unicode in DNS names? [14:08] I 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] I thought there were top level internationals? [14:09] you can probably use it in a hostname [14:09] * penguin42 boots a VM to try [14:10] reddit is letting gold buyers name servers now [14:10] one of them got named localhost [14:10] ouch [14:11] hmm hostname didn't like the fliptext I gave it [14:13] hmm, hostnamectl will set it [14:15] haha - but sethostname does ! [14:17] as does avahi-set-host-name === FixUbuntu is now known as LjL [14:24] MartijnVdS: Oh I hadn't read about punycode before - very neat [14:35] there's sort of unicode dns names .. they get translated into ascii for lookups, which is a little mind bending [14:37] eg, http://💩.l [14:38] or not. ate that one bad lol [14:40] shauno: Yeh that's apparently the Punycode [14:43] ah, 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 works [14:49] absolutely miserable here today, but I fear rain isn't going to be an acceptable excuse for avoiding the cinema :/ [14:50] it's ok here today, yesterday was biblical - thunder, hail, localised flooding etc [14:52] oh this isn't that bad, just "blah". nonstop rain for the last 8 hours [14:53] combined with sunday busses being run apparently by lottery, and my motivation to get into town is destroyed [14:53] http://www.manchestereveningnews.co.uk/news/greater-manchester-news/flooding-after-hail-rain-thunder-6288101 [14:55] heh, fun [14:55] I haven't actually seen lightning since I moved here (2006). strange place [14:55] blue skies today [14:55] where? [14:56] west coast of ireland [14:58] so you watch the storms roll in off the atlantic, go past and dump it on us? [14:58] when I was in the states, it seemed to be lightning all autumn. sun all summer, and snow all winter. all three are incredibly rare here [15:00] generally we don't get much extreme weather - it's all kind of meh [15:02] I used to live in barrow (south lakes) .. I assume it's much of the same there [15:03] well, they don't call it lakes for nothing [15:03] they call it lakes because it sounds much prettier than what it actually is ;) [15:04] barrow is the industrially bit isn't/wasn't it? [15:05] it was. it's now the unemployed bit. built on ironworks & shipbuilding - neither of which are particularly strong industries anymore [15:06] nod [15:07] about the only thing they have left is that we can't outsource the military, so they still build submarines [15:08] nod, I know someone who is an admin at a small ISP somewhere around there as well [15:09] although last I heard, they still had europe's largest door. which is a claim to fame I guess [15:09] ? Something for a submarine shed? [15:09] yeah. they're built indoors [15:09] wouldn't want them to get wet [15:11] I Think it's kinda neat. it's nice to think that our nuclear deterent is built by some northern lads in a shed [15:12] haha well if you put it like that [16:40] I 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:41] D: [16:41] whoops [16:41] Yeah, that was my reaction, followed by a shrug. I can't remember the last time I used it for anything but games. [16:42] Time to move Ubuntu onto the SSD :D [16:42] i've still not even used 8 native - though i'd want to acquire an 8.1 ISO now [16:44] I played Borderlands 2 and Homeworld 2 on it a bit, but they are easily reinstalled. [16:44] My only dilemma now is whether Windows 8 can exist on the 2nd physical disk, which isn't an SSD. [16:45] I'll either use this HOWTO or just reinstall 13.10 - https://help.ubuntu.com/community/MovingLinuxPartition [16:47] ah the ol' juggling fun :) [16:48] Yeah, probably easier to just reinstall - might give Debian a try... [16:49] * penguin42 is running Fedora/KDE on his main machine now - its' interesting, from a KDE perspective mostly the same, some places work better some worse [16:53] I'd like to give Gnome 3 a try. [16:53] dwatkins: Well you can do that on any of them [16:54] Yeah, it's the default on recent Debians, I gather, and I'm curious to see how well Steam runs on Debian, too. [16:54] how recent? [16:55] Wheezy, I guess, ali1234. [16:56] turns 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 sdb [16:56] erk [16:57] dwatkins: Yeh well the sd* naming is unspecified - you're not supposed to rely on them! [16:57] Just goes to show you should always check before doing mkswap /dev/sdb2 [16:57] yeah, I remembered that afterwards, penguin42 ... [16:57] dwatkins: I just wanted to rub it in [16:58] hehe [16:59] all 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. [17:17] how might i recursively grep a folder of .php configs and other files for "10.10.10.10" appearing somewhere therein? [17:17] grep -r * <-- is what i tried [17:19] grep -r '10[.]10[.]10[.]10' . [17:20] ah, the periods had to be escaped? [17:20] yeh because they'll match on anything [17:20] ah :) i just got nothing from either [17:20] ty though! [17:21] try it on a dummy text file first [17:21] i've just manually updated a wordpress site to the latest version but it still has issues connecting out [17:25] Interestingly, Windows 8 recovered from my running mkswap on its C: drive, I guess it only wrote to the start of the partition. [17:25] mkswap doesn't do very much at all unless you actually mount the swap [17:26] I added it, realised it was 10 times too big, then swapoff'ed it. [17:26] s/added/mounted/ [17:26] Having 8 GB of RAM is kinda useful. [17:28] admin python [17:35] ooh i finally have more error detail [17:38] #python [17:39] thatgreenguy: You need to do /join #python [17:49] [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 support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in .../wp-admin/includes/plugin-install [17:49] that's what i'm getting on my VPS [17:50] very, very odd [17:50] can it resolve wordpress.org? [17:50] yep, wget files, connect with both SSL and without [17:52] echo $http_proxy returns a blank line, so no proxy is set i assume [17: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:53] that's an idea [17:53] not used tcpdump before mind you [17:54] daftykins: 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 wireshark [17:54] sounds good [18:04] penguin42: hrmm i can see DNS queries in my captures to api.wordpress.org but after that i can't tell what's going on [18:07] i think it gets the DNS response but then i have no record of it communicating with it [18:22] daftykins: So you don't see it trying to open a connection to the IP it gets back? [18:22] no :S [18:23] hmm, can you open a connection to api.wordpress.org? [18:23] yeah i used wget to grab its' index before [18:23] via https [18:24] there was an odd packet immediately after the DNS queries though [18:25] do you see the DNS reply? [18:25] https://www.dropbox.com/s/3cloqlhxdw6z8r6/cap.png [18:25] penguin42: what do you make of that? [18:28] daftykins: What's that 80.73.221.144 address - bbdhome2-221-144.network.sure.com ? [18:28] mine [18:28] i'm SSH'd in [18:29] ok, so did you have a web browser open and got an internal server error back? [18:29] yep [18:30] i performed my test action which errors, to try and get it to show packets of what it's up to [18:30] (in this case, searching for plugins - which goes off to the wordpress API site for results) [18:30] that 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?) packet [18:31] hrmm [18:32] daftykins: I don't see anything wrong there - maybe the AAAA lookups aren't helping, but I doubt it [18:32] hmm an IPv4 vs. v6 quirk? [18:33] maybe, 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] daftykins: But it doesn't look like it's then trying to open any connection [18:33] indeed, it's like it gives up [18:33] thanks penguin42 - i've no idea who to ask this of next :S [18:33] actually maybe if i create a test site [18:34] a php person I think [18:34] i can see if a stock one works [18:34] hehe [19:51] Yay! [19:52] Just ordered some EP I've wanted for *years* [19:52] (but that wasn't available) [19:55] you mean one of those vinyl things? [19:55] penguin42: no, a CD (the digital edition exists, but is missing a track) [19:55] oh, that's ok then - of what? [19:55] penguin42: http://www.nerinapallot.com/shop2/?productDetails.cfm?Basket=1@,&ProductID=1500 [19:56] that one :) [19:58] MartijnVdS: Never heard of her - but ... Buckminster fuller as a song.... [19:59] penguin42: http://www.youtube.com/watch?v=C7eclTcAht0 [19:59] what's that 500 Server Error on the line below the one highlighted? [19:59] shauno: which one? [20:00] shauno: oh you're reading backlog [20:00] sorry, the screencap of wireshark [20:00] ah yeah, didn't notice that was 90 mins ago [20:00] MartijnVdS: How bizarre [20:00] shauno: I think that's the result of the reassembly of the one that's highlighted ? [20:01] penguin42: I drove to Cornwall to see her last May. She's great :) [20:06] from where? [20:07] penguin42: from my place in the Netherlands [20:07] penguin42: so.. here to Rotterdam, then Harwich to Land's End [20:08] wow [20:08] shauno: are you good with wordpress and related shenanigans? [20:08] penguin42: I needed a few days off anyway, drove down (and back up) over 3-4 days :) [20:08] not particularly lol [20:08] penguin42: (so a week total) [20:08] shauno: the next packet was just the web server coming back with the error page that it can't contact wordpress' API domain [20:08] Evening. [20:08] I was just curious where the 500 was coming from, because there'd be more logged on the server for that [20:08] ah [20:09] shauno: 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 VPS [20:09] i've asked the web dev that made the site but he's stumped [20:11] it almost looks like 'happy eyeballs' going wrong [20:11] huh? :) [20:12] this practice of sending A & AAAA requests together instead of sequentially [20:12] hmm [20:12] any thoughts on how to rule that out from testing? [20:13] daftykins: disable IPv4 xor IPv6 [20:13] daftykins: if that makes it work, you've found the problem [20:13] pretty much, yeah :/ [20:13] ooh - can i stop apache running on IPv6 0o [20:13] would that work maybe? or does the PHP code being system level still see interfaces and get results etc. [20:13] (or making it try to hit a host that does have an AAAA record) [20:14] daftykins: you need to deconfigure the address, or libc will magically send AAAA and A requests [20:16] the 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] which 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 parallel [20:17] :> [20:17] perhaps it not getting an answer for both is indeed, why it seems to give up trying [20:17] well, I'm not getting a v6 for wordpress.org either [20:18] and api.wordpress.org ? [20:18] is just a cname to wordpress.org [20:19] I gotta pop out :/ but on that, it is the dns I'd be looking at, because there's no outgoing connections after the response [20:20] it gets the dns response, and then complains. rather than trying to connect to anything at all, and then complaining [20:20] *nod* [20:21] thanks shauno [20:23] i echo'd 1 to /proc/sys/net/ipv6/conf/eth0/disable_ipv6 [20:23] the interface lost its' v6 config [20:24] but no change has been had [20:24] that's not the problem you had - the problem was it was doing an IPv4 lookup for IPv6 addresses [20:24] so that's DNS config - although I actually doubt it's the problem you had [20:24] oh? [20:24] daftykins: Yeh all the packets were on IPv4 addresses, but it was sending a AAAA DNS lookup which is for IPv6 addresses [20:25] (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] sorry i must be being daft here, i see it sent both queries then it got the v4 replies - isn't that normal? [20:25] it is [20:26] MartijnVdS: have you seen the pic in question? [20:26] https://www.dropbox.com/s/3cloqlhxdw6z8r6/cap.png [20:26] daftykins: yes, the server replies "500" which means something on the server doesn't like the request [20:26] the request is sent, and is responded to [20:26] nah that's the error page saying it was unable to contact the API at wordpress [20:27] the thing i'm doing on the site (searching for a plugin) trips out [20:27] "WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator." [20:27] daftykins: it doesn't do anything but a DNS request, before it determines it can't connect to WP? [20:27] correct [20:28] highly suspicious isn't it? [20:28] maybe you don't have php-ssl installed? :) [20:28] or whatever PHP uses to talk SSL [20:28] ("secure connection") [20:28] i can't see a relevant package [20:28] because it's not even sending a SYN to open a connection to one of the IPs it receives from the DNS lookup [20:29] indeed [20:29] daftykins: the openssl-module is included with php, but your extensions.ini might have it disabled [20:30] can you ping the address? (api.wordpress.org) [20:30] 66.155.30.{249,250} [20:30] yep and wget the index [20:30] using https? [20:30] yep [20:30] or plain old http [20:31] wget https://api.wordpress.org [20:31] 2013-11-10 20:31:00 (108 MB/s) - `index.html' saved [442] [20:31] I think it's suspicious that you get the 500 error before it even *tries* to connect (i.e. send a SYN packet) to those addresses [20:31] unless you filtered those from the capture [20:31] I have a bigv.io VM, let me try. [20:31] ty :) [20:32] i created a fresh 3.7.1 wordpress instance which still has the same issue [20:32] ah wait [20:32] I'd need to set up mysql and everything for that wouldn't I [20:32] yeah :( [20:33] i chose debian for mine - is there a wise meta package i can install that might cover any potential deps? [20:33] daftykins: wordpress? 8-) [20:33] haha [20:33] $ apt-cache show wordpress [20:33] Package: wordpress [20:33] Priority: optional [20:33] well no i'm using their auto management thing [20:33] so things would no doubt berak [20:33] *break [20:34] sure but apt-cache show shows you what the Debian dev thinks are the dependencies [20:34] *nod* i just ran: apt-cache showpkg wordpress [20:34] just use "show", showpkg is unreadable ;) [20:36] daftykins: is that wireshark dump filtered at all? [20:36] no, but i'm a newbie when it comes to the tcpdump command i used to create it [20:36] daftykins: tcpdump -i eth0 -w dumpfile [20:36] should be enough [20:36] tcpdump -nnvvw capture3.cap i ran [20:37] that's extra verbose and no DNS lookups by tcpdump itself [20:37] *nod* [20:37] daftykins: you could write a small PHP program and run it on the cli [20:37] The following extra packages will be installed: libjs-prototype libjs-scriptaculous [20:37] The following NEW packages will be installed: libjs-cropper libjs-prototype libjs-scriptaculous libphp-phpmailer libphp-snoopy [20:37] those were missing but nothing has changed as a result [20:38] Some of Snoopy's features: [20:38] . [20:38] * easily fetch the contents of a web page [20:38] :D [20:38] classic [20:39] same issue even now [20:40] daftykins: do you get "An unexpected error occurred. Something may be wrong with WordPress.org or this server's configuration" [20:40] yep [20:40] i've poured over the results in google regarding it [20:40] nothing seems relevant [20:41] daftykins: This might be the culprit: [20:41] 'sslcertificates' => ABSPATH . WPINC . '/certificates/ca-bundle.crt', [20:41] does that exist? [20:42] it should.. [20:42] whereabouts are you looking? [20:42] wordpress/ root [20:42] just downloaded the tarball [20:42] there are no certs at all, no [20:43] daftykins: 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] daftykins: uh [20:43] strace -f -o outputfile [20:43] hang on it's meant to be in /wp-includes/ [20:43] -p xxx -p yyy [20:43] daftykins: it is: ABSPATH is the absolute path to wordpress/, WPINC is the wp-includes dir [20:44] the strace might contain useful information (what it tries/gets back) for API access [20:44] it's a bit low-level [20:45] what's the location of that path reference for me to check? [20:45] daftykins: wordpress/wp-includes/certificates/ca-bundle.crt [20:45] daftykins: should all be readable (not writable!) by the user php runs as (www-data?) [20:46] ah-haaaa permissions, let's give that a whirl [20:47] my site is actually in /srv/domain.com/public/htdocs/ [20:48] daftykins: 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 on [20:49] *nod* [20:49] so the strace plan could be a good one [20:50] ok i'll give that one a whirl after i make some food [20:50] daftykins: it might be overkill, is there anything in your errorlog? (httpd) [20:51] [Sun Nov 10 20:48:02 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [20:51] that crops up [20:51] is that *your* https cert, or the remote end? [20:52] none of my domains possess certs as far as i know [20:52] daftykins: but apache is still instructed to load one.. maybe the snakeoil one [20:52] the default always-installed one [20:52] i wonder if i can justk ill it [20:53] a2dismod ssl [20:55] I pulled a tenner out of my pocket and noticed some scribbles all over it... [20:55] http://i.imgur.com/ra8r3Ka.jpg [20:55] MartijnVdS: bytemark's symbiosis thing, has SSLEngine enabled within its' sites-available config [20:55] daftykins: ah you use that? :) [20:55] daftykins: I just installed Ubuntu server on mine ;) [20:55] yeah atop debian === webpigeon is now known as Guest43495 [20:58] alright i'm really burnt out on this now [20:58] time for food [20:58] MartijnVdS: thanks for your help thus far - if you have any further ideas i'd be pleased :> [21:00] popey: how rude [21:03] sidenote: do any clothes shops in London stay open late on a Sunday night? 0o [21:04] are they allowed to? [21:05] unlikely [21:05] most places close at 4pm [21:11] daftykins: just a wild guess, is php5-curl installed? [21:12] however, php errors should be logged somewhere, so a 500 error should have something in a logfile to explain why wordpress failed [21:46] diddledan: yep it is - i enabled PHP logging to file, but didn't get anything produced when repeating the action [21:48] which i found very odd :S [21:49] daftykins: 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 information [21:51] diddledan: roger that! i'll do it on my test site, i had seen that idea but hadn't gotten around to it for whatever reason [21:55] diddledan: it's not writing anything new compared with the apache error log :( [21:55] still just: "WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator." [21:55] hmm [21:56] is there nothing preceeding that statement? [21:57] [10-Nov-2013 21:54:07] 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 support forums. (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] that's the full sucker [22:04] daftykins: can you try running http://pastebin.com/SERmAPbF which should output the full headers in addition to the html from a connection to wordpress.org [22:04] if that fails but still doesn't telll us why, we can amend it to add some more error reporting [22:04] would i just put that in a file and run "php file" ? [22:04] yes please :-) [22:05] it'll make a nice mess in your terminal - I've written it to be runnable in a browser, too [22:06] not sure if this is an issue but i re-ran it outputting to a file [22:06] PHP 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 12 [22:06] and got told that [22:06] that's fine [22:07] that's because I used header() in the php file [22:07] http://pastebin.com/WSFq6UCN [22:08] diddledan: there she be ^ [22:08] ok, that says that php can successfullly connect to wordpress.org - it gets weirderer [22:08] ^_^ [22:09] try plopping it on your test site and running it via the browser to confirm whether it's able to do it when run through apache [22:10] was naming it file.php and visiting path/file.php correct? [22:10] yup [22:10] as i just get a blank page [22:11] Evening [22:11] aha, that's interesting [22:12] I'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 browser [22:13] i'm pasting into nano over SSH with KiTTY and getting a lot of green squares - that likely to be a problem? [22:13] ooh [22:13] erm [22:13] that doesn't sound right [22:15] i manually typed it out and still get blank :O [22:16] hmm [22:17] try putting a "print 'finished';" at the bottom underneath the print $output line [22:17] that was we can tell whether I've messed up my code :-p [22:17] way* [22:17] yep it returned 'finished' [22:17] :S [22:19] what is it doing D: [22:22] diddledan: any further thoughts :) [22:22] +? [22:22] I'm just gonna do a bit of experimentation on my vps [22:22] is it the content type throwing it? === marxjohn1on is now known as marxjohnson [22:25] nope, it works fine on my ubuntu 12.04 virtual machine [22:25] are you expecting to see the HTML text or will it show the actual page? [22:25] the text [22:25] along with headers at the top [22:25] yeah it works at command line but apache2 is doing something [22:25] could a funky php-suhosin status be causing it? [22:26] it might be an issue with suhosin [22:26] (i'm unsure whether it's on, off, or partially there at the moment) [22:26] alternatively apache may not have been restarted since php5-curl was installed? [22:26] it was definitely already installed [22:27] or alternatively there might be php.ini differences between the apache2 and cli iterations [22:28] my /etc/php5/apache2/php.ini is actually autocreated by the bytemark symbiosis system i'm using [22:28] dang [22:28] but it's there and readable [22:28] shall i pastebin it? [22:28] worth a try [22:31] http://pastebin.com/KUt47XKS [22:38] nothing seems out of the ordinary there [22:39] hang on /usr/bin/php /usr/bin/php5 [22:40] no difference with either 0o [22:40] /usr/bin/php -> /etc/alternatives/php [22:40] 0o [22:41] symlink^ [22:41] `man update-alternatives` tells you about that mechanism [22:42] on my ubuntu the /etc/alternatives/php points to /usr/bin/php5 [22:43] ah yes :) [22:43] well i'm glad i don't seem to have done anything too stupid [22:43] would it help if i let you have a look at my test domain at all? [22:45] it might [22:45] http://test.com.testing.togusa.default.kusanagi.uk0.bigv.io/file2.php [22:45] there's where i created the file [22:46] lurvely url :-p [22:46] hah yeah, crazy bigv domains are soooo long [22:46] then test.com.testing for my little fake domain [22:47] ok, I've been reading up on suhosin - it might be logging to /var/log/messages [22:48] i think i managed to fully remove it [22:48] php5-suhosin got removed [22:48] sorry, I mena /var/log/syslog [22:48] hmm [22:48] did you restart apache after? [22:48] yep [22:49] and yet it's still failing. I was working on the assumption that we'd proven that php itself can do the job [22:49] *nod* [22:49] it doeswn't make sense >.< [22:49] something is highly screwy isn't it [22:49] perhaps 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] I don't suppose it can hurt [22:50] they might be able to help [22:50] is there any other form of test i can have php perform atop apache? [22:54] what's going on, and did you turn selinux off? [22:54] if indeed it's on... [22:54] how would i tell on this debian VPS? [22:54] ah, that's probably a no [22:55] win \o/ [22:55] I don't have a page up button - can you explain (in PM if you like) what's up? [22:55] basically wordpress isn't able to contact its' API address, in order to get some results [22:55] Seeker`: I got the arduino out...and I UNKILLED IT. [22:55] (e.g. plugin searches) [22:55] mgdm: diddledan kindly helped create a test PHP file that pulls the target page down, it works at CLI, but not from behind apache [22:56] Oh, it's wordpress. hmmm. :-) So - do you know what mechanism it's using? curl? file_get_contents? [22:56] https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/plugin-install.php [22:56] i believe that's the one in question [22:57] holy moley [22:57] it sends seriazed PHP to another host, which then unserializes it [22:57] line 77 is what keeps getting flagged as the issue [22:58] well you know, where it breaks from [22:59] i'm trying to find the source of wp_http [23:00] https://github.com/WordPress/WordPress/blob/master/wp-includes/http.php [23:01] not sure where the calss is tho [23:01] class* [23:01] I found it [23:01] https://github.com/WordPress/WordPress/blob/70fd806759b7a18d45950eb2c368e15949f1ef21/wp-includes/class-http.php [23:02] ooh i'm getting more content in tcpdump now [23:02] whaaat [23:02] this impleents its own HTTP client using fsockopen() [23:03] what the *hell* are these guys smoking? [23:03] it appears to be getting TCP resets when awaiting its' reply [23:03] maybe it is firewall after all...? [23:03] seems that way [23:03] omg. [23:03] i just flushed iptables and it works [23:03] heh [23:03] >.< [23:04] don't you hate that [23:04] sorry about that guys, but earlier tcpdump wasn't even showing anything beyond the DNS queries [23:04] https://www.dropbox.com/s/3cloqlhxdw6z8r6/cap.png [23:04] in my earlier capture ^ [23:05] ok so now i need to look into what's blocking the response :D [23:08] diddledan + mgdm thanks guys, i think i'm going to call it a night there before i go crazier with it [23:08] lol [23:08] hehe, fair enough [23:09] g'night everyone \o [23:10] thank you to all those who helped [23:14] dafty in mountain out of a molehill situation [23:14] ^_^